{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An attestation from an authorized granter issuing extra streak freezes to a user.",
      "key": "tid",
      "record": {
        "properties": {
          "count": {
            "default": 1,
            "description": "Number of freezes granted in this record.",
            "type": "integer"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "note": {
            "maxLength": 300,
            "type": "string"
          },
          "policy": {
            "description": "The URI of the policy these freezes apply to.",
            "format": "at-uri",
            "type": "string"
          },
          "recipient": {
            "description": "The DID of the user receiving the freezes.",
            "format": "did",
            "type": "string"
          },
          "sig": {
            "description": "Cryptographic signature from the granter (optional for self-hosted data, recommended for verification).",
            "type": "bytes"
          }
        },
        "required": [
          "recipient",
          "policy",
          "count",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.starrysky.streak.freezegrant",
  "lexicon": 1
}
