{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "collection": {
      "properties": {
        "endsAt": {
          "format": "datetime",
          "type": "string"
        },
        "id": {
          "maxLength": 64,
          "type": "string"
        },
        "kind": {
          "knownValues": [
            "season",
            "drop"
          ],
          "type": "string"
        },
        "name": {
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "endsAt"
      ],
      "type": "object"
    },
    "color": {
      "properties": {
        "background": {
          "type": "string"
        },
        "collection": {
          "description": "The season or drop this pair belongs to. Absent on base pairs. The pair leaves the palette at endsAt; a profile that picked it keeps it.",
          "ref": "#collection",
          "type": "ref"
        },
        "foreground": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        }
      },
      "required": [
        "id",
        "foreground",
        "background"
      ],
      "type": "object"
    },
    "main": {
      "description": "The server-owned profile foreground/background pairs shared with Byte: the base pairs, plus any season or drop running now.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "colors": {
              "items": {
                "ref": "#color",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "colors"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "com.getorbyt.actor.getColorPalette",
  "lexicon": 1
}
