{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "dashboard": {
      "description": "The dashboard's widgets (us.polhem.skywrite.widget records, by AT URI) in columns: Skywrite's built-in widgets, in skywrite.polhem.us's repo, and widgets you add, in your own. A built-in widget in neither columns nor hidden goes where the default dashboard (skywrite.polhem.us's own settings record) puts it, so new ones appear; one of your own goes at the end of the first column.",
      "properties": {
        "columns": {
          "description": "The columns, left to right, each with its widgets from top to bottom.",
          "items": {
            "ref": "#dashboardColumn",
            "type": "ref"
          },
          "maxLength": 4,
          "type": "array"
        },
        "hidden": {
          "description": "Built-in widgets turned off.",
          "items": {
            "format": "at-uri",
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        }
      },
      "type": "object"
    },
    "dashboardColumn": {
      "description": "One column of dashboard widgets.",
      "properties": {
        "widgets": {
          "description": "Widgets' AT URIs, from top to bottom.",
          "items": {
            "format": "at-uri",
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        }
      },
      "required": [
        "widgets"
      ],
      "type": "object"
    },
    "main": {
      "description": "A record containing user settings for the Skywrite app.",
      "key": "literal:self",
      "record": {
        "properties": {
          "colorScheme": {
            "description": "Light or dark mode, or auto to follow the device's setting.",
            "enum": [
              "light",
              "dark",
              "auto"
            ],
            "type": "string"
          },
          "dashboard": {
            "description": "How the dashboard's widgets are arranged. Absent: the default arrangement.",
            "ref": "#dashboard",
            "type": "ref"
          },
          "excludedCollections": {
            "description": "List of collections to exclude from the UI",
            "items": {
              "description": "The collection's NSID",
              "format": "nsid",
              "type": "string"
            },
            "type": "array"
          },
          "identifierDisplay": {
            "default": "handle",
            "description": "How AT URIs shown in the interface name the repo they point into: by handle (@alice.example/…) or by DID (@did:plc:…/…). While browsing a repo opened by handle or DID, they follow that instead. Accounts named on their own are always shown by handle.",
            "knownValues": [
              "handle",
              "did"
            ],
            "type": "string"
          },
          "navigation": {
            "description": "App domains to show in the menu, in order. Absent: every domain.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "navigationCollections": {
            "description": "Collections in the menu's order, within each app domain. Collections not listed follow those that are, A–Z. Absent: A–Z.",
            "items": {
              "format": "nsid",
              "type": "string"
            },
            "type": "array"
          },
          "navigationFiles": {
            "description": "Show Files in the menu. Absent: false.",
            "type": "boolean"
          },
          "navigationHiddenCollections": {
            "description": "Collections left out of the menu. The Collections page, and each domain's own page, still list them. Absent: none.",
            "items": {
              "format": "nsid",
              "type": "string"
            },
            "type": "array"
          },
          "onboarded": {
            "description": "When the account finished (or skipped) Skywrite's first-run setup: choosing a theme, the menu's collections and what to call a Bluesky post.",
            "format": "datetime",
            "type": "string"
          },
          "theme": {
            "description": "The theme in use: a us.polhem.skywrite.theme record's AT URI, such as one of Skywrite's built-in themes (in skywrite.polhem.us's repo) or one of your own. Its colors are read from that record.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "us.polhem.skywrite.settings",
  "lexicon": 1
}
