org.cairnsproto.draft.getInputs
Everything a client needs to recompute a project's reading itself: every input record with its value, the beacons its draw claims used, the epoch each author was first seen in, and the labels of the policy's labelers. A client can drop records before reading, such as stones from sponsors it blocks, without telling the indexer.
Details · query
| Kind | query |
|---|---|
| Authority | draft.cairnsproto.org |
| Commit rev | 3mzxyqidwyl2o |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"firstEpoch": {
"properties": {
"did": {
"format": "did",
"type": "string"
},
"epoch": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"did",
"epoch"
],
"type": "object"
},
"label": {
"description": "An ATProto label as its labeler published it.",
"properties": {
"cid": {
"format": "cid",
"type": "string"
},
"cts": {
"format": "datetime",
"type": "string"
},
"exp": {
"format": "datetime",
"type": "string"
},
"neg": {
"type": "boolean"
},
"src": {
"format": "did",
"type": "string"
},
"uri": {
"format": "uri",
"type": "string"
},
"val": {
"maxLength": 128,
"type": "string"
}
},
"required": [
"src",
"uri",
"val"
],
"type": "object"
},
"main": {
"description": "Everything a client needs to recompute a project's reading itself: every input record with its value, the beacons its draw claims used, the epoch each author was first seen in, and the labels of the policy's labelers. A client can drop records before reading, such as stones from sponsors it blocks, without telling the indexer.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"beacons": {
"items": {
"ref": "org.cairnsproto.draft.getReading#beacon",
"type": "ref"
},
"type": "array"
},
"epoch": {
"description": "The indexer's current epoch.",
"minimum": 0,
"type": "integer"
},
"firstEpochs": {
"items": {
"ref": "#firstEpoch",
"type": "ref"
},
"type": "array"
},
"labels": {
"description": "Every label from the labelers the policy lists, for the reading to evaluate as of its time.",
"items": {
"ref": "#label",
"type": "ref"
},
"type": "array"
},
"policy": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"project": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"records": {
"items": {
"ref": "#record",
"type": "ref"
},
"type": "array"
},
"sources": {
"description": "Every source record, from any author, whose hash is one of the project's scope sources or a source its stones' sites trace back to, ordered by URI. The hash is the source's identity and records with the same hash are interchangeable metadata, such as URLs and a MIME type. They are not reading inputs and are not in the input root.",
"items": {
"ref": "#record",
"type": "ref"
},
"type": "array"
},
"tombstones": {
"description": "The project's stones deleted from their repos: CID and site key only, with no URI, author or payload. A reading counts each as withdrawn and adds it to the input root.",
"items": {
"ref": "#tombstone",
"type": "ref"
},
"type": "array"
}
},
"required": [
"project",
"policy",
"epoch",
"records",
"beacons",
"firstEpochs"
],
"type": "object"
}
},
"parameters": {
"properties": {
"project": {
"format": "at-uri",
"type": "string"
}
},
"required": [
"project"
],
"type": "params"
},
"type": "query"
},
"record": {
"properties": {
"cid": {
"format": "cid",
"type": "string"
},
"seenEpoch": {
"minimum": 0,
"type": "integer"
},
"uri": {
"format": "at-uri",
"type": "string"
},
"value": {
"type": "unknown"
}
},
"required": [
"uri",
"cid",
"seenEpoch",
"value"
],
"type": "object"
},
"tombstone": {
"properties": {
"cid": {
"format": "cid",
"type": "string"
},
"site": {
"ref": "org.cairnsproto.draft.defs#hash",
"type": "ref"
}
},
"required": [
"cid",
"site"
],
"type": "object"
}
},
"id": "org.cairnsproto.draft.getInputs",
"lexicon": 1
}