place.hud.index.query
The records a spec asks for, or their counts grouped by a field, from HUD's index of public records (`hud index`). A collection the index has not seen is backfilled from that moment: its first answer holds what came in by the time asked to wait, and says it is not complete. The authors a spec names come in first. A collection held by too many repositories to take in whole is taken in per author: only the authors specs name are read, and a spec naming none answers from those, partial. No auth required.
Details · query
| Kind | query |
|---|---|
| Authority | index.hud.place |
| Commit rev | 3n3lhh3tnebju |
| Indexed |
Showing version bafyreig2t4rmuob5nxdzbbo34ybpagb4e2tfc3e5jzltes67unbxrogfye. Show the latest
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"group": {
"description": "One value at the spec's group path, and how many records hold it.",
"properties": {
"count": {
"minimum": 1,
"type": "integer"
},
"key": {
"description": "The value, as text: a number written out in decimal.",
"maxLength": 8192,
"type": "string"
}
},
"required": [
"key",
"count"
],
"type": "object"
},
"main": {
"description": "The records a spec asks for, or their counts grouped by a field, from HUD's index of public records (`hud index`). A collection the index has not seen is backfilled from that moment: its first answer holds what came in by the time asked to wait, and says it is not complete. The authors a spec names come in first. A collection held by too many repositories to take in whole is taken in per author: only the authors specs name are read, and a spec naming none answers from those, partial. No auth required.",
"errors": [
{
"description": "spec is missing, wait is not a number, or the cursor is not one this spec's pages give.",
"name": "InvalidRequest"
},
{
"description": "The spec is not one the index takes; the message says why.",
"name": "InvalidSpec"
},
{
"description": "The index could not read its store.",
"name": "IndexUnavailable"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"complete": {
"description": "Whether every repository holding the collection has been read into the index.",
"type": "boolean"
},
"cursor": {
"description": "Where the next page starts; absent on the last.",
"maxLength": 512,
"type": "string"
},
"finding": {
"description": "Whether the relay is still listing the repositories holding the collection: repos is then how many it listed so far, not their total. Absent from an index older than it.",
"type": "boolean"
},
"groups": {
"description": "The values at the spec's group path with their counts, most first: empty for a spec that does not group.",
"items": {
"ref": "#group",
"type": "ref"
},
"type": "array"
},
"partial": {
"description": "Whether the answer may miss records the index holds, or would hold: partialReason says why.",
"type": "boolean"
},
"partialReason": {
"description": "Why the answer is partial: filling, a field the spec reads is still being indexed, newest first, and this answer reached as far as it has come; deadline, the answer ran out of time and holds nothing, so ask again; perAuthor, the collection is held by too many repositories to take in whole, so it is taken in per author and a spec naming no authors (by) answers from those read in so far. Absent where the answer is not partial, and from an index older than it.",
"knownValues": [
"filling",
"deadline",
"perAuthor"
],
"maxLength": 64,
"type": "string"
},
"records": {
"description": "The records, in the spec's order: empty for a spec that groups.",
"items": {
"ref": "#record",
"type": "ref"
},
"type": "array"
},
"repos": {
"description": "How many repositories the relay lists with the collection: while finding, how many it listed so far.",
"minimum": 0,
"type": "integer"
},
"reposIn": {
"description": "How many of them have been read into the index.",
"minimum": 0,
"type": "integer"
},
"version": {
"description": "A mark of what the answer read, which changes whenever that could have changed (a record of the collection written or deleted, or the follow graph a spec of follows reads): the same spec asked again with the same version answers the same. Opaque; absent from an index older than it.",
"maxLength": 128,
"type": "string"
}
},
"required": [
"records",
"groups",
"complete",
"repos",
"reposIn",
"partial"
],
"type": "object"
}
},
"parameters": {
"properties": {
"cursor": {
"description": "Where the last page ended, as its answer's cursor said.",
"maxLength": 512,
"type": "string"
},
"spec": {
"description": "The spec, as JSON: collection, and optionally by, where, since, sort, group and limit.",
"maxLength": 4096,
"type": "string"
},
"wait": {
"default": 800,
"description": "How many milliseconds to wait for the spec's authors' records still coming in before answering.",
"maximum": 5000,
"minimum": 0,
"type": "integer"
}
},
"required": [
"spec"
],
"type": "params"
},
"type": "query"
},
"record": {
"description": "A record, as its repository holds it.",
"properties": {
"cid": {
"format": "cid",
"type": "string"
},
"uri": {
"format": "at-uri",
"type": "string"
},
"value": {
"type": "unknown"
}
},
"required": [
"uri",
"cid",
"value"
],
"type": "object"
}
},
"description": "Records of any collection, as a query spec asks for them, from HUD's index.",
"id": "place.hud.index.query",
"lexicon": 1
}