app.chronosky.plan.redeemTicket

chronosky.app

{
  "id": "app.chronosky.plan.redeemTicket",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "code"
          ],
          "properties": {
            "code": {
              "type": "string",
              "maxLength": 100,
              "minLength": 1,
              "description": "Ticket redemption code"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "TicketNotFound",
          "description": "Ticket code not found"
        },
        {
          "name": "TicketAlreadyRedeemed",
          "description": "Ticket has already been redeemed"
        },
        {
          "name": "TicketExpired",
          "description": "Ticket has expired"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "assignment",
            "message"
          ],
          "properties": {
            "message": {
              "type": "string",
              "maxLength": 1000,
              "description": "Success message"
            },
            "assignment": {
              "ref": "#redeemedAssignment",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Redeem a ticket code and assign a plan to the authenticated user"
    },
    "redeemedAssignment": {
      "type": "object",
      "required": [
        "id",
        "planId",
        "activatedAt",
        "expiresAt",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 100,
          "description": "Plan assignment ID"
        },
        "planId": {
          "type": "string",
          "maxLength": 100,
          "description": "Plan ID"
        },
        "status": {
          "enum": [
            "ACTIVE",
            "EXPIRED",
            "CANCELLED"
          ],
          "type": "string",
          "maxLength": 20,
          "description": "Plan assignment status"
        },
        "expiresAt": {
          "type": "string",
          "format": "datetime",
          "maxLength": 100,
          "description": "Plan expiration timestamp"
        },
        "activatedAt": {
          "type": "string",
          "format": "datetime",
          "maxLength": 100,
          "description": "Plan activation timestamp"
        }
      },
      "description": "Redeemed plan assignment."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}

Validate Record

Validate a record against app.chronosky.plan.redeemTicket

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:bfjib7fy6dob3gyfssyfd4ry
CID
bafyreiexh5wijwy2cd3isp7u77pe2k622bjwqda4jrankfknolv35yi4e4
Indexed At
2026-02-18 18:03 UTC
AT-URI
at://did:plc:bfjib7fy6dob3gyfssyfd4ry/com.atproto.lexicon.schema/app.chronosky.plan.redeemTicket

Lexicon Garden

@