Repository navigation
feat: Misskey 2026.10 / 2026.11 のサーバー変更に対応 - #119
Merged
Merged
Conversation
…er の auth・publickey、お知らせの autoArchiveAt、フォロー承認の待機秒数) Co-Authored-By: Codex Sol <noreply@openai.com>
…明を補う Co-Authored-By: Codex Sol <noreply@openai.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…Instance)が型エラーにならないようにする Co-Authored-By: Codex Sol <noreply@openai.com>
…限定する Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Misskey 2026.10.x / 2026.11.0 で変わった API への対応。古いサーバー(2026.5.1 以降)でも動く下位互換を保つ。
変更内容
破壊的変更
MisskeyTotpRegistration.qrを nullable に変更。2026.11.0 のサーバーはレスポンスにqrを含めない。nullのときはurl(otpauth://)から QR コードを生成する(ドキュメントに例を追記)追加
SwApi.unregisterにauth/publickeyを任意引数として追加。2026.10.0 以降は必須で、それ以前のサーバーは無視する。トークンなしでも呼べるよう認証を任意にしたAdminAnnouncementsApi.create/updateにautoArchiveAt、MisskeyAdminAnnouncementにautoArchiveAtを追加(2026.10.1 以降)。listのレスポンスにだけ含まれるMisskeyUserにfollowApprovalLocalSeconds/followApprovalRemoteSeconds、AccountApi.updateに同名の引数を追加(2026.10.1 以降。新しいアカウントからのフォローを自動でフォロー申請にする待機秒数、0〜30 日)INVALID_AUTO_ARCHIVE_AT、AVATAR_IS_SENSITIVE、BANNER_IS_SENSITIVE、INVALID_ENDPOINT)をドキュメントに追記修正
SwApi.showRegistration/MetaApi.getEndpoint/FederationApi.showInstanceが、対象が存在しないとき型エラーで失敗していた問題を修正。Misskey は対象がないとき HTTP 204(本文なし)を返す。想定外の応答はFormatException(エンドポイント名付き)で通知する。2026.9.0 以前のサーバーでも起きていた既存の不具合ドキュメント
api/account.mdとapi/other.mdを更新確認
dart analyze --fatal-infos・dart format・dart test(945 件)が成功docsのnpm run buildが全 6 言語で成功備考