io.atcr.hold.getQuota

Get storage quota information for a user. Calculates total unique blob storage by iterating layer records and deduplicating by digest.

Repository @seamark.cr did:plc:wfj5kyialpmcv2fzk6uqwsln namespace authority
Details · query
Kindquery
Authorityhold.atcr.io
Indexed
cid bafyreid3xkdn4syxitk7qxhehczrihtkzakqouidzrssvvlejqkeipmasy

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get storage quota information for a user. Calculates total unique blob storage by iterating layer records and deduplicating by digest.",
      "errors": [
        {
          "name": "InvalidUserDid"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "limit": {
              "description": "Storage limit in bytes (absent if unlimited)",
              "type": "integer"
            },
            "tier": {
              "description": "Quota tier name (e.g., 'deckhand', 'bosun', 'quartermaster')",
              "maxLength": 32,
              "type": "string"
            },
            "totalSize": {
              "description": "Total size in bytes of unique blobs",
              "type": "integer"
            },
            "uniqueBlobs": {
              "description": "Number of unique blob digests",
              "type": "integer"
            },
            "userDid": {
              "description": "DID of the user",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "userDid",
            "uniqueBlobs",
            "totalSize"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "userDid": {
            "description": "DID of the user to get quota for",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "userDid"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "io.atcr.hold.getQuota",
  "lexicon": 1
}