Repository navigation
feat: ugcVisibilityForVisitor を追加し、resetPassword と revokeToken のドキュメントを補う - #121
Merged
Merged
Conversation
…oken のドキュメントを補う Co-Authored-By: Codex Sol <noreply@openai.com>
…evokeToken の旧版のエラーと対応版の表記) Co-Authored-By: Claude <noreply@anthropic.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.
概要
管理者向け API の補足。非ログインのユーザー生成コンテンツの公開範囲の設定を扱えるようにし、不足していたドキュメントを補う。
変更内容
追加
MisskeyAdminMeta.ugcVisibilityForVisitor(all/local/none)と、AdminApi.updateMetaの任意引数を追加(Misskey 2025.5.1 以降。管理者向けのadmin/metaだけで返り、公開のmetaには含まれない)。古いサーバーではnull。指定したときだけ送るドキュメント
AdminApi.resetPassword: 発生しうるエラーを追記。NO_SUCH_USERとACCESS_DENIED(対象が別の管理者)は 2026.7.0 以降。2026.5.1 では対象がいないとINTERNAL_ERRORで、保護されるのは root ユーザーのみAccountApi.revokeTokenById/revokeTokenByToken: 導入版、2 つの形式の使い分け、認証の要件を追記。2026.9.0 より前はプライマリ API トークンが必要(それ以外はACCESS_DENIED)、2026.9.0 以降は第三者アクセストークンが自分自身のみ失効できる。エラー(CREDENTIAL_REQUIRED/PERMISSION_DENIED)の条件も追記ugcVisibilityForVisitorの 2026.10.0 以降の挙動(タイムライン・検索・ストリーミングへの適用)を追記api/account.md(トークン失効の節)を更新確認
dart analyze --fatal-infos・dart format・dart test(982 件)が成功docsのnpm run buildが全 6 言語で成功