{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Definition of a sticker",
      "key": "tid",
      "record": {
        "properties": {
          "image": {
            "description": "The image content, either a string URL (for CDN/Blob) or a BlobRef.",
            "type": "unknown"
          },
          "imageType": {
            "description": "Type of the image source.",
            "knownValues": [
              "avatar",
              "custom"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "message": {
            "maxGraphemes": 640,
            "maxLength": 6400,
            "type": "string"
          },
          "model": {
            "description": "Identifier for the sticker model. 'default' for avatar stickers, 'cid:<cid>' for custom stickers.",
            "maxLength": 64,
            "type": "string"
          },
          "name": {
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "obtainedAt": {
            "description": "The timestamp when this sticker was obtained.",
            "format": "datetime",
            "type": "string"
          },
          "obtainedFrom": {
            "description": "The DID of the user from whom this sticker was obtained (for provenance).",
            "format": "did",
            "type": "string"
          },
          "originalOwner": {
            "description": "The DID of the original creator/minter of this sticker.",
            "format": "did",
            "type": "string"
          },
          "shape": {
            "description": "The shape of the sticker canvas.",
            "knownValues": [
              "circle",
              "square",
              "rectangle",
              "star",
              "heart",
              "diamond",
              "butterfly",
              "transparent"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "signature": {
            "description": "Cryptographic signature from the server verifying the sticker's authenticity/provenance.",
            "maxLength": 2048,
            "type": "string"
          },
          "signedPayload": {
            "description": "The original JSON payload that was signed by the server.",
            "maxLength": 10000,
            "type": "string"
          },
          "subjectDid": {
            "description": "The DID of the user depicted in the sticker, if applicable (e.g. for avatar stickers).",
            "format": "did",
            "type": "string"
          },
          "tags": {
            "items": {
              "maxGraphemes": 64,
              "maxLength": 640,
              "type": "string"
            },
            "maxLength": 8,
            "type": "array"
          }
        },
        "required": [
          "image",
          "originalOwner",
          "model",
          "obtainedAt",
          "signature",
          "signedPayload"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.suibari.atsumeat.sticker",
  "lexicon": 1
}
