ai.newnal.mydata.resourcesSubscriptions

The fee, billing cycle, period and status of subscription services.

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

Checks

Valid
  • 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 subscription service.",
      "properties": {
        "amount": {
          "description": "The subscription fee per billing cycle.",
          "ref": "ai.newnal.mydata.defs#money",
          "type": "ref"
        },
        "billingFrequency": {
          "description": "The billing cycle of the subscription fee.",
          "knownValues": [
            "monthly",
            "yearly",
            "weekly",
            "quarterly",
            "one_time",
            "usage_based"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "service": {
          "description": "The name of the service subscribed to.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "status": {
          "description": "The usage status of the subscription service.",
          "knownValues": [
            "active",
            "paused",
            "ended",
            "trial",
            "expired"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "time": {
          "closed": true,
          "description": "The period of the subscription, or the point in time it started.",
          "refs": [
            "ai.newnal.mydata.defs#instantTime",
            "ai.newnal.mydata.defs#intervalTime"
          ],
          "type": "union"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "The fee, billing cycle, period and status of subscription services.",
      "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.resourcesSubscriptions",
  "lexicon": 1
}