ai.newnal.mydata.resourcesMemberships

Memberships and loyalty programmes the user holds, with their member number, tier and validity: frequent flyer and hotel programmes, retail and service memberships, professional and library memberships. Paid subscriptions to a service are kept in resources.subscriptions, and communities the user takes part in are kept in relationships.communities.

Details · record, key tid
Kindrecord
Record keytid
Authoritymydata.newnal.ai
Commit rev3n2lk5rjzfw23
Indexed
cid bafyreigh6bgethphzo7k5fnl3fc4oxnc5rr4z3igo2fdnmteia6di52nna

Checks

Valid
  • large-string defs.entry.properties.notesmaxLength is over 20 KB. Use a blob for content that large.
  • field-name-syntax defs.main.record.properties._metaThe field name _meta should be letters and digits, starting with a letter.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "description": "One membership.",
      "properties": {
        "category": {
          "description": "The kind of membership.",
          "knownValues": [
            "frequent_flyer",
            "hotel_program",
            "retail_membership",
            "loyalty_program",
            "professional_membership",
            "library",
            "gym",
            "other"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "memberId": {
          "description": "The member number or identifier.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "name": {
          "description": "The name of the membership or programme.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "notes": {
          "description": "An additional note.",
          "maxGraphemes": 3000,
          "maxLength": 30000,
          "type": "string"
        },
        "provider": {
          "description": "The organization that runs the membership or programme.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "status": {
          "description": "The status of the membership.",
          "knownValues": [
            "active",
            "expired",
            "paused"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "tier": {
          "description": "The membership tier or level.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "time": {
          "closed": true,
          "description": "The period the membership is valid, or the point in time it started.",
          "refs": [
            "ai.newnal.mydata.defs#instantTime",
            "ai.newnal.mydata.defs#intervalTime"
          ],
          "type": "union"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "Memberships and loyalty programmes the user holds, with their member number, tier and validity: frequent flyer and hotel programmes, retail and service memberships, professional and library memberships. Paid subscriptions to a service are kept in resources.subscriptions, and communities the user takes part in are kept in relationships.communities.",
      "key": "tid",
      "record": {
        "properties": {
          "_meta": {
            "ref": "ai.newnal.mydata.defs#recordMeta",
            "type": "ref"
          },
          "data": {
            "closed": true,
            "refs": [
              "#entry"
            ],
            "type": "union"
          }
        },
        "required": [
          "data",
          "_meta"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.mydata.resourcesMemberships",
  "lexicon": 1
}