net.wireservice.entitlement

A reader's access grant, stored in the publication's business space. Authoritative: the processor's state only proposes changes to it. Grants the plan's spaces plus any listed here; at least one of plan or spaces should be set.

Repository @wireservice.net did:plc:lktj64hp7lc3fzuf6iyy7lwj not from the namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authoritywireservice.net
Indexed
cid bafyreieoqqo2rby434efi452knei7ihsygum2ejj76rkj2q2vsgz4u2pn4

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A reader's access grant, stored in the publication's business space. Authoritative: the processor's state only proposes changes to it. Grants the plan's spaces plus any listed here; at least one of plan or spaces should be set.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "expiresAt": {
            "description": "When access ends. Paid entitlements set this to the end of the paid period plus a grace window and extend it on each payment. Omit for open-ended grants.",
            "format": "datetime",
            "type": "string"
          },
          "note": {
            "description": "Why a manual grant exists (e.g., 'Press pass', 'University site license').",
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "plan": {
            "description": "AT URI of the net.wireservice.plan this entitlement is for.",
            "format": "at-uri",
            "type": "string"
          },
          "reader": {
            "description": "URI of the net.wireservice.reader record.",
            "format": "uri",
            "type": "string"
          },
          "source": {
            "description": "Who manages this entitlement. Processor events never modify 'manual' entitlements.",
            "knownValues": [
              "stripe",
              "manual"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "spaces": {
            "description": "Additional spaces granted, beyond the plan's.",
            "items": {
              "format": "space-ref",
              "type": "string"
            },
            "type": "array"
          },
          "stripeSubscriptionId": {
            "maxLength": 256,
            "type": "string"
          }
        },
        "required": [
          "reader",
          "source",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "net.wireservice.entitlement",
  "lexicon": 1
}