com.suibari.nagi.getPreferences

端末をまたいで同期する本人の設定(既読位置、お気に入り絵文字、フィードタブ、投稿・翻訳言語、コンテンツ表示、通知、最後のブックマークフォルダ)を返す。他ユーザーからは参照できない。

Repository @suibari.com did:plc:uixgxpiqf4i63p6rgpu7ytmx namespace authority
Details · query
Kindquery
Authoritynagi.suibari.com
Commit rev3n32bfau3y52d
Indexed

Showing version bafyreifnw3mestlqzh5743eq7vn3eladudcigdxbutl67qzxdzr2ps4ehi. Show the latest

cid bafyreifnw3mestlqzh5743eq7vn3eladudcigdxbutl67qzxdzr2ps4ehi

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "adventRead": {
      "properties": {
        "lastSeenDay": {
          "maximum": 25,
          "minimum": 0,
          "type": "integer"
        },
        "openedDays": {
          "items": {
            "type": "integer"
          },
          "maxLength": 25,
          "type": "array"
        },
        "year": {
          "type": "integer"
        }
      },
      "required": [
        "year",
        "lastSeenDay",
        "openedDays"
      ],
      "type": "object"
    },
    "customFavorite": {
      "description": "Bluemoji のスナップショット。url などは表示のたびに再解決されるので、権威は uri のみ。",
      "properties": {
        "emoji": {
          "type": "unknown"
        },
        "kind": {
          "const": "custom",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "emoji"
      ],
      "type": "object"
    },
    "diaryDay": {
      "description": "日記の「1日」を決める設定。本人にだけ返す。PDS レコードには書かない。",
      "properties": {
        "current": {
          "ref": "#diaryDayCurrent",
          "type": "ref"
        },
        "detectedTimezone": {
          "description": "Nagi を開いたときにブラウザから届いたタイムゾーン。",
          "maxLength": 64,
          "type": "string"
        },
        "manualTimezone": {
          "description": "本人が選んだタイムゾーン。あれば自動検出より優先する。",
          "maxLength": 64,
          "type": "string"
        },
        "pending": {
          "ref": "#diaryDayPending",
          "type": "ref"
        },
        "startHour": {
          "description": "本人が選んだ区切りの時刻(18〜23, 0〜6)。既定は22。",
          "maximum": 23,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "startHour",
        "current"
      ],
      "type": "object"
    },
    "diaryDayCurrent": {
      "description": "今開いている日に使っている設定。effectiveFrom はその設定が有効になった日(言語からの推定のままなら省略)。",
      "properties": {
        "effectiveFrom": {
          "maxLength": 10,
          "type": "string"
        },
        "startHour": {
          "maximum": 23,
          "minimum": 0,
          "type": "integer"
        },
        "timezone": {
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "timezone",
        "startHour"
      ],
      "type": "object"
    },
    "diaryDayPending": {
      "description": "まだ有効になっていない変更。effectiveFrom の日の日記から反映される。",
      "properties": {
        "effectiveFrom": {
          "maxLength": 10,
          "type": "string"
        },
        "startHour": {
          "maximum": 23,
          "minimum": 0,
          "type": "integer"
        },
        "timezone": {
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "timezone",
        "startHour",
        "effectiveFrom"
      ],
      "type": "object"
    },
    "feedTab": {
      "description": "フィードのタブ1枚。必要なフィールドは kind ごとに異なる(list / custom は source、hashtag / search は query、bsky は uri または source=following)。",
      "properties": {
        "id": {
          "maxLength": 64,
          "type": "string"
        },
        "kind": {
          "knownValues": [
            "list",
            "global",
            "custom",
            "hashtag",
            "search",
            "bsky"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "label": {
          "description": "表示名のスナップショット。権威は query / uri 側。",
          "maxLength": 64,
          "type": "string"
        },
        "query": {
          "description": "kind が search のときは自由文の保存クエリ、hashtag のときはタグ(先頭の # を除いた小文字)。",
          "maxLength": 128,
          "type": "string"
        },
        "source": {
          "description": "kind が list / custom のときの参照先(list=home, custom=recommended。affirmation は旧クライアントが書く値で、recommended として読む)。kind が bsky のときは following(Bluesky のホームタイムライン)だけを取り、uri と排他。",
          "knownValues": [
            "home",
            "recommended",
            "affirmation",
            "following"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "uri": {
          "description": "kind が bsky のときの app.bsky.feed.generator の AT-URI。source が following なら持たない。",
          "format": "at-uri",
          "maxLength": 512,
          "type": "string"
        }
      },
      "required": [
        "id",
        "kind"
      ],
      "type": "object"
    },
    "languagePreferences": {
      "properties": {
        "autoTranslate": {
          "type": "boolean"
        },
        "post": {
          "maxLength": 16,
          "type": "string"
        },
        "provider": {
          "knownValues": [
            "kagi",
            "deepl",
            "google"
          ],
          "type": "string"
        },
        "translation": {
          "maxLength": 16,
          "type": "string"
        }
      },
      "required": [
        "post",
        "translation",
        "provider",
        "autoTranslate"
      ],
      "type": "object"
    },
    "main": {
      "description": "端末をまたいで同期する本人の設定(既読位置、お気に入り絵文字、フィードタブ、投稿・翻訳言語、コンテンツ表示、通知、最後のブックマークフォルダ)を返す。他ユーザーからは参照できない。",
      "errors": [
        {
          "name": "AuthRequired"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "adventRead": {
              "description": "今年のアドベントカレンダーの既読と、開封演出を見終えた自分のカードの日。",
              "ref": "#adventRead",
              "type": "ref"
            },
            "chronicleReadYears": {
              "description": "年ごとの既読ハッシュ。過去の版は蓄積せず、現在の年表内容と一致する版だけを保存する。",
              "items": {
                "ref": "com.suibari.nagi.getChronicle#readYear",
                "type": "ref"
              },
              "type": "array"
            },
            "diaryDay": {
              "ref": "#diaryDay",
              "type": "ref"
            },
            "emojiFavorites": {
              "description": "お気に入り絵文字パレット。表示順そのまま。要素は #unicodeFavorite または #customFavorite。",
              "items": {
                "type": "unknown"
              },
              "maxLength": 32,
              "type": "array"
            },
            "emojiFavoritesUpdatedAt": {
              "description": "省略時は、この利用者のお気に入りがまだ一度も同期されていないことを表す。",
              "format": "datetime",
              "type": "string"
            },
            "feedTabs": {
              "description": "フィードのタブ。表示順そのまま。",
              "items": {
                "ref": "#feedTab",
                "type": "ref"
              },
              "maxLength": 16,
              "type": "array"
            },
            "feedTabsUpdatedAt": {
              "description": "省略時は、この利用者がまだ一度もタブをカスタムしていないことを表す(クライアントは既定タブを使う)。",
              "format": "datetime",
              "type": "string"
            },
            "languagePreferences": {
              "ref": "#languagePreferences",
              "type": "ref"
            },
            "languagePreferencesUpdatedAt": {
              "format": "datetime",
              "type": "string"
            },
            "lastBookmarkFolderId": {
              "maxLength": 64,
              "type": "string"
            },
            "lastBookmarkFolderUpdatedAt": {
              "format": "datetime",
              "type": "string"
            },
            "moderationPreferences": {
              "ref": "#moderationPreferences",
              "type": "ref"
            },
            "moderationPreferencesUpdatedAt": {
              "format": "datetime",
              "type": "string"
            },
            "notificationPreferences": {
              "ref": "#notificationPreferences",
              "type": "ref"
            },
            "notificationPreferencesUpdatedAt": {
              "description": "省略時は、この利用者がまだ一度も通知設定を保存していないことを表す(すべて既定)。",
              "format": "datetime",
              "type": "string"
            },
            "preferredName": {
              "description": "botたんに呼んでほしい名前。省略時は未設定=表示名で呼ばれる。",
              "maxGraphemes": 40,
              "maxLength": 120,
              "type": "string"
            },
            "readPositions": {
              "items": {
                "ref": "#readPosition",
                "type": "ref"
              },
              "type": "array"
            },
            "replyFreq": {
              "description": "botたんからの返信確率(0〜100%)。Bluesky側のfreq設定と共用。",
              "maximum": 100,
              "minimum": 0,
              "type": "integer"
            },
            "tagFavorites": {
              "description": "お気に入りタグ。# を除いた小文字の正規形で、表示順そのまま。",
              "items": {
                "maxLength": 64,
                "type": "string"
              },
              "maxLength": 32,
              "type": "array"
            },
            "tagFavoritesUpdatedAt": {
              "description": "省略時は、この利用者のお気に入りタグがまだ一度も同期されていないことを表す。",
              "format": "datetime",
              "type": "string"
            }
          },
          "required": [
            "readPositions",
            "emojiFavorites"
          ],
          "type": "object"
        }
      },
      "type": "query"
    },
    "moderationPreferences": {
      "properties": {
        "automatic": {
          "knownValues": [
            "warn",
            "hide",
            "ignore"
          ],
          "type": "string"
        },
        "selfAi": {
          "knownValues": [
            "warn",
            "hide",
            "ignore"
          ],
          "type": "string"
        },
        "selfNsfw": {
          "knownValues": [
            "warn",
            "hide",
            "ignore"
          ],
          "type": "string"
        }
      },
      "required": [
        "automatic",
        "selfAi",
        "selfNsfw"
      ],
      "type": "object"
    },
    "notificationPreference": {
      "description": "list は通知欄に出すか、push はプッシュ通知するか。",
      "properties": {
        "list": {
          "type": "boolean"
        },
        "push": {
          "type": "boolean"
        }
      },
      "required": [
        "list",
        "push"
      ],
      "type": "object"
    },
    "notificationPreferences": {
      "description": "通知の種別ごとの設定。Bluesky の app.bsky.notification.defs#preferences に倣う。省略したカテゴリは list / push とも true。botInteraction は botたんからの返信・メンション・リアクション(その3種別では人からのものと分けて扱う)。seasonal は季節の特別なお知らせ(アドベントカレンダーなど期間限定の催し)。bluesky で始まるカテゴリは Bluesky の通知の Push で、省略時は list / push とも false。list は使わない。",
      "properties": {
        "analysis": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "blueskyFollow": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "blueskyLike": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "blueskyMention": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "blueskyQuote": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "blueskyReply": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "blueskyRepost": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "botInteraction": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "chronicle": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "diary": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "gift": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "mention": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "mood": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "reaction": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "reply": {
          "ref": "#notificationPreference",
          "type": "ref"
        },
        "seasonal": {
          "ref": "#notificationPreference",
          "type": "ref"
        }
      },
      "type": "object"
    },
    "readPosition": {
      "description": "「ここまで読んだ」位置。新旧の比較は (indexedAt, uri) の辞書順で行う。",
      "properties": {
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "section": {
          "knownValues": [
            "bot",
            "community",
            "list",
            "channels",
            "news"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "section",
        "indexedAt",
        "uri"
      ],
      "type": "object"
    },
    "unicodeFavorite": {
      "properties": {
        "emoji": {
          "maxLength": 64,
          "type": "string"
        },
        "kind": {
          "const": "unicode",
          "type": "string"
        }
      },
      "required": [
        "kind",
        "emoji"
      ],
      "type": "object"
    }
  },
  "id": "com.suibari.nagi.getPreferences",
  "lexicon": 1
}