Counts the records the asking account holds in each dev.knotless.* collection, read from its PDS rather than the index, and names its repositories, public and private, with how many other accounts push to or read each: what dev.knotless.deleteAccountData would delete, as `knotless delete-data` lists it. A private repository's records are in its space, counted as one space. Only the account itself, logged in to this appview's web pages, can ask: the appview reads its spaces with the session it keeps for it, which the pages' session cookie names.
Output
application/jsoncollections
array
Required
Each dev.knotless.* collection the account holds records in, in the order of their names.
did
stringdid
Required
The account.
repos
array
Required
The account's repositories, public ones first, each by name.
spaces
integer
Required
The spaces the account owns for private repositories: one for each, and one for each name a rename of one left.
Errors
AuthenticationRequired
No account is logged in to the pages, or its session has ended. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Counts the records the asking account holds in each dev.knotless.* collection, read from its PDS rather than the index, and names its repositories, public and private, with how many other accounts push to or read each: what dev.knotless.deleteAccountData would delete, as `knotless delete-data` lists it. A private repository's records are in its space, counted as one space. Only the account itself, logged in to this appview's web pages, can ask: the appview reads its spaces with the session it keeps for it, which the pages' session cookie names.",
"errors": [
{
"description": "No account is logged in to the pages, or its session has ended.",
"name": "AuthenticationRequired"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"collections": {
"description": "Each dev.knotless.* collection the account holds records in, in the order of their names.",
"items": {
"ref": "#collectionCount",
"type": "ref"
},
"type": "array"
},
"did": {
"description": "The account.",
"format": "did",
"type": "string"
},
"repos": {
"description": "The account's repositories, public ones first, each by name.",
"items": {
"ref": "#repoData",
"type": "ref"
},
"type": "array"
},
"spaces": {
"description": "The spaces the account owns for private repositories: one for each, and one for each name a rename of one left.",
"minimum": 0,
"type": "integer"
}
},
"required": [
"did",
"collections",
"repos",
"spaces"
],
"type": "object"
}
},
"type": "query"
}