dev.knotless.getAccountData

lexicons.knotless.dev

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "collectionCount": {
      "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"
    },
    "main": {
      "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"
    },
    "repoData": {
      "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"
    }
  },
  "description": "What knotless data the asking account holds, before it deletes it.",
  "id": "dev.knotless.getAccountData",
  "lexicon": 1
}

Validate Record

Validate a record against dev.knotless.getAccountData

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:yqsg7znbbhfmj3a2nrpnaerk
CID
bafyreiaqglilvxvelym6bobioa5z5cgqxdqhs74x2mzhax4omszsa7agxu
Indexed At
2026-10-28 21:21 UTC
AT-URI
at://did:plc:yqsg7znbbhfmj3a2nrpnaerk/com.atproto.lexicon.schema/dev.knotless.getAccountData

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

Lexicon Garden

@