{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "User-defined display preferences for a discovered standard.site publication. The publication list itself is derived from the user's ATProto follow graph (app.bsky.graph.follow records) — this record stores only the organizational preferences that are not expressed in the protocol: folder assignment, display order, and visibility.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "ISO 8601 timestamp when this prefs record was created.",
            "format": "datetime",
            "maxLength": 64,
            "type": "string"
          },
          "folderId": {
            "description": "The rkey (TID) of the app.thesocialwire.folder record this publication is assigned to. Omit or set to null to leave the publication in 'All Publications'.",
            "maxLength": 512,
            "type": "string"
          },
          "hidden": {
            "default": false,
            "description": "If true, this publication is excluded from the sidebar entirely. Useful for discovered publications the user doesn't want to read.",
            "type": "boolean"
          },
          "publicationId": {
            "description": "The at-uri or canonical URL identifying the publication. Used to correlate this prefs record with a discovered publication.",
            "maxLength": 8192,
            "type": "string"
          },
          "sortOrder": {
            "default": 0,
            "description": "Position of this publication within its folder (or in 'All Publications' if unfoldered). Lower values appear first.",
            "type": "integer"
          }
        },
        "required": [
          "publicationId",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.thesocialwire.publicationPrefs",
  "lexicon": 1
}
