dev.knotless.getAccountData

lexicons.knotless.dev

Documentation

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.

main query

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

Encodingapplication/json
collections 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.

Base URL for XRPC calls (e.g., https://api.bsky.social)
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"
}
collectionCount object

How many records the account holds in one collection.

Properties

collection string nsid Required

The collection, as dev.knotless.issue.

count integer Required

How many records it holds there.

minimum: 0
View raw schema
{
  "description": "How many records the account holds in one collection.",
  "properties": {
    "collection": {
      "description": "The collection, as dev.knotless.issue.",
      "format": "nsid",
      "type": "string"
    },
    "count": {
      "description": "How many records it holds there.",
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "collection",
    "count"
  ],
  "type": "object"
}
repoData object

One of the account's repositories, and how many other accounts it concerns.

Properties

collaborators integer Required

The other accounts its record lets push to it.

minimum: 0
members integer Optional

For a private one, the other accounts that read it, its runners left out.

minimum: 0
name string Required

Its name, its dev.knotless.repo record's key.

maxLength: 100 bytes
private boolean Required

Whether it is private, in a space of its own.

View raw schema
{
  "description": "One of the account's repositories, and how many other accounts it concerns.",
  "properties": {
    "collaborators": {
      "description": "The other accounts its record lets push to it.",
      "minimum": 0,
      "type": "integer"
    },
    "members": {
      "description": "For a private one, the other accounts that read it, its runners left out.",
      "minimum": 0,
      "type": "integer"
    },
    "name": {
      "description": "Its name, its dev.knotless.repo record's key.",
      "maxLength": 100,
      "type": "string"
    },
    "private": {
      "description": "Whether it is private, in a space of its own.",
      "type": "boolean"
    }
  },
  "required": [
    "name",
    "private",
    "collaborators"
  ],
  "type": "object"
}

Lexicon Garden

@