{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "profileBox": {
      "description": "One box on the profile header's second page. The service composes it: what it says, its size and where it goes.",
      "properties": {
        "editable": {
          "description": "The account can change what the box says.",
          "type": "boolean"
        },
        "hidden": {
          "description": "Not shown on the profile; only present when the read asked for every box.",
          "type": "boolean"
        },
        "icon": {
          "description": "The destination site's icon, for a link.",
          "format": "uri",
          "type": "string"
        },
        "id": {
          "description": "Stable id, the one com.getorbyt.actor.profile profileBoxes lists.",
          "maxLength": 640,
          "type": "string"
        },
        "kind": {
          "description": "How the box draws. `joined` carries Orbyt's mascot; `link` opens `url`; `about` is something the account says about itself, such as its pronouns; `message` opens a direct message to the account where the viewer may send one, and is left out unless the read lists it in `boxKinds`. Unknown kinds draw as a plain label and value.",
          "knownValues": [
            "count",
            "joined",
            "link",
            "about",
            "message"
          ],
          "type": "string"
        },
        "label": {
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "platform": {
          "description": "For a link to a known social network, which one; its label is then the network and its value the account on it.",
          "knownValues": [
            "instagram",
            "tiktok",
            "youtube",
            "soundcloud",
            "tumblr",
            "x",
            "twitch",
            "github",
            "threads",
            "spotify"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "removable": {
          "description": "The account can remove the box, not only hide it.",
          "type": "boolean"
        },
        "size": {
          "description": "Small is one of three columns, wide two. Unknown sizes are small.",
          "knownValues": [
            "small",
            "wide"
          ],
          "type": "string"
        },
        "source": {
          "description": "Where the box comes from: Orbyt, or the account on the connected network (its profile or link records).",
          "knownValues": [
            "orbyt",
            "network"
          ],
          "type": "string"
        },
        "style": {
          "description": "How the account styled the box. Absent: the default look.",
          "ref": "#profileBoxStyle",
          "type": "ref"
        },
        "url": {
          "format": "uri",
          "type": "string"
        },
        "value": {
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        }
      },
      "required": [
        "id",
        "kind",
        "value"
      ],
      "type": "object"
    },
    "profileBoxSticker": {
      "properties": {
        "rotation": {
          "maximum": 180,
          "minimum": -180,
          "type": "integer"
        },
        "size": {
          "maximum": 2000,
          "minimum": 100,
          "type": "integer"
        },
        "url": {
          "format": "uri",
          "type": "string"
        },
        "x": {
          "maximum": 1000,
          "minimum": 0,
          "type": "integer"
        },
        "y": {
          "maximum": 1000,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "url",
        "x",
        "y",
        "size"
      ],
      "type": "object"
    },
    "profileBoxStyle": {
      "properties": {
        "background": {
          "description": "`#RRGGBB`.",
          "maxLength": 7,
          "type": "string"
        },
        "fill": {
          "description": "A photo or GIF behind the words, which sit on the feed's text shade.",
          "format": "uri",
          "type": "string"
        },
        "label": {
          "ref": "com.getorbyt.actor.profile#textPlacement",
          "type": "ref"
        },
        "outline": {
          "description": "`#RRGGBB`, a line around the box's edge.",
          "maxLength": 7,
          "type": "string"
        },
        "readableTextColor": {
          "description": "A shade of textColor that reads on background. Present only when textColor falls below the bar; draw it instead when the reader asked for more contrast.",
          "maxLength": 7,
          "type": "string"
        },
        "size": {
          "knownValues": [
            "fit",
            "wide",
            "tall"
          ],
          "type": "string"
        },
        "sticker": {
          "ref": "#profileBoxSticker",
          "type": "ref"
        },
        "textColor": {
          "description": "`#RRGGBB`.",
          "maxLength": 7,
          "type": "string"
        },
        "value": {
          "ref": "com.getorbyt.actor.profile#textPlacement",
          "type": "ref"
        }
      },
      "type": "object"
    },
    "profileView": {
      "description": "An actor as Orbyt presents them. Orbyt profile fields win; anything absent is filled from the connected network's profile, which is also all an account that has never used Orbyt has.",
      "properties": {
        "avatar": {
          "format": "uri",
          "type": "string"
        },
        "avatarVideo": {
          "format": "uri",
          "type": "string"
        },
        "banner": {
          "format": "uri",
          "type": "string"
        },
        "boxes": {
          "description": "The profile header's boxes in the order the account chose, only when the read asked for them. Clients lay them out in order and render a box of a kind they don't know as a plain label and value.",
          "items": {
            "ref": "#profileBox",
            "type": "ref"
          },
          "type": "array"
        },
        "colors": {
          "ref": "com.getorbyt.profile#colors",
          "type": "ref"
        },
        "description": {
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "followersCount": {
          "minimum": 0,
          "type": "integer"
        },
        "followsCount": {
          "minimum": 0,
          "type": "integer"
        },
        "handle": {
          "format": "handle",
          "type": "string"
        },
        "isBeta": {
          "description": "Joined during Orbyt's beta. Both apps badge it.",
          "type": "boolean"
        },
        "isOrbytUser": {
          "description": "False for an account known only from the connected network, which clients badge as such.",
          "type": "boolean"
        },
        "joinedAt": {
          "format": "datetime",
          "type": "string"
        },
        "showNetworkLink": {
          "type": "boolean"
        },
        "viewer": {
          "ref": "#viewerState",
          "type": "ref"
        }
      },
      "required": [
        "did",
        "isOrbytUser"
      ],
      "type": "object"
    },
    "viewerState": {
      "description": "The signed-in viewer's relationship to this actor. Absent for anonymous reads. Orbyt's follow is the viewer's follow on the connected network (`networkFollow`, `followingOnNetwork`); `following` and `followedBy` are legacy com.getorbyt.graph.follow records that only older builds write.",
      "properties": {
        "blocking": {
          "format": "at-uri",
          "type": "string"
        },
        "followedBy": {
          "format": "at-uri",
          "type": "string"
        },
        "following": {
          "description": "Legacy: the viewer's com.getorbyt.graph.follow record for this actor. Current clients follow on the connected network and read `networkFollow`.",
          "format": "at-uri",
          "type": "string"
        },
        "followingOnNetwork": {
          "description": "Whether the viewer follows this actor on the connected network, as of the viewer's last follow sync. Absent when unknown.",
          "type": "boolean"
        },
        "networkFollow": {
          "description": "The viewer's follow record for this actor on the connected network, as of the viewer's last follow sync: what an unfollow deletes. Absent when the viewer does not follow them or it is unknown.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "id": "com.getorbyt.actor.defs",
  "lexicon": 1
}
