io.atcr.hold.getQuota
Get storage quota information for a user. Calculates total unique blob storage by iterating layer records and deduplicating by digest.
Details · query
| Kind | query |
|---|---|
| Authority | hold.atcr.io |
| Indexed |
Checks
Valid Lint pass{
"$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
}