{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "content": {
      "properties": {
        "archived": {
          "type": "boolean"
        },
        "body": {
          "type": "string"
        },
        "checklist": {
          "type": "boolean"
        },
        "color": {
          "knownValues": [
            "default",
            "slate",
            "blue",
            "teal",
            "green",
            "sand",
            "amber",
            "clay",
            "rose",
            "violet"
          ],
          "type": "string"
        },
        "createdAt": {
          "description": "Unix milliseconds.",
          "type": "integer"
        },
        "modifiedAt": {
          "description": "Unix milliseconds.",
          "type": "integer"
        },
        "order": {
          "description": "Sort position, a decimal number. Higher is first.",
          "maxLength": 32,
          "type": "string"
        },
        "pinned": {
          "type": "boolean"
        },
        "title": {
          "type": "string"
        },
        "trashedAt": {
          "description": "Unix milliseconds. Absent when the note is not in the trash.",
          "type": "integer"
        }
      },
      "required": [
        "title",
        "body",
        "checklist",
        "color",
        "pinned",
        "archived",
        "order",
        "createdAt",
        "modifiedAt"
      ],
      "type": "object"
    },
    "main": {
      "description": "A note. When the notebook is encrypted, 'ct' holds all note fields. Otherwise 'content' holds them.",
      "key": "any",
      "record": {
        "properties": {
          "content": {
            "ref": "#content",
            "type": "ref"
          },
          "ct": {
            "description": "base64url(nonce || XChaCha20-Poly1305 ciphertext) of the padded note JSON.",
            "maxLength": 200000,
            "type": "string"
          },
          "v": {
            "const": 1,
            "description": "Envelope version.",
            "type": "integer"
          }
        },
        "required": [
          "v"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "studio.wholebit.stones.note",
  "lexicon": 1
}
