full diff

org.tangled.repo.listRecordVersions

tangled.org +0 −0
From
bafyreifvrylgl62f6w6zsikhbhy7nn4ftcpidg5ddn4x7ctwfuxzgd6yam indexed 2026-10-28 14:06 UTC View this version
To
bafyreifvrylgl62f6w6zsikhbhy7nn4ftcpidg5ddn4x7ctwfuxzgd6yam indexed 2026-10-28 14:06 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "Every version of a record this knot hosts, oldest first unless order says otherwise. A version's bytes are fetched by content id through com.atproto.sync.getBlocks.",
66 "errors": [
77 {
88 "description": "The uri isn't an at-uri, or the collection isn't versioned",
99 "name": "InvalidRequest"
1010 },
1111 {
1212 "description": "No such record on this knot",
1313 "name": "NotFound"
1414 },
1515 {
1616 "description": "The record's change history is still being folded; retry shortly",
1717 "name": "ProjectionWarming"
1818 }
1919 ],
2020 "output": {
2121 "encoding": "application/json",
2222 "schema": {
2323 "properties": {
2424 "cursor": {
2525 "description": "Cursor for the next page, left out when the page already reaches the newest version",
2626 "type": "string"
2727 },
2828 "uri": {
2929 "format": "at-uri",
3030 "type": "string"
3131 },
3232 "versions": {
3333 "items": {
3434 "ref": "#version",
3535 "type": "ref"
3636 },
3737 "type": "array"
3838 }
3939 },
4040 "required": [
4141 "uri",
4242 "versions"
4343 ],
4444 "type": "object"
4545 }
4646 },
4747 "parameters": {
4848 "properties": {
4949 "cursor": {
5050 "description": "Pagination cursor",
5151 "type": "string"
5252 },
5353 "limit": {
5454 "default": 100,
5555 "maximum": 500,
5656 "minimum": 1,
5757 "type": "integer"
5858 },
5959 "order": {
6060 "default": "asc",
6161 "description": "asc lists the oldest version first, desc the newest.",
6262 "knownValues": [
6363 "asc",
6464 "desc"
6565 ],
6666 "type": "string"
6767 },
6868 "uri": {
6969 "description": "Record in a repo this knot hosts",
7070 "format": "at-uri",
7171 "type": "string"
7272 }
7373 },
7474 "required": [
7575 "uri"
7676 ],
7777 "type": "params"
7878 },
7979 "type": "query"
8080 },
8181 "version": {
8282 "properties": {
8383 "changeId": {
8484 "description": "Object ID of the git change that produced this version",
8585 "type": "string"
8686 },
8787 "cid": {
8888 "description": "Content id of this version. Missing when the version was removed or the change is a deletion.",
8989 "format": "cid",
9090 "type": "string"
9191 },
9292 "createdAt": {
9393 "description": "When this knot wrote the commit this version rides in. Not the record's own `createdAt`.",
9494 "format": "datetime",
9595 "type": "string"
9696 },
9797 "editor": {
9898 "description": "The account that authored the change",
9999 "format": "did",
100100 "type": "string"
101101 }
102102 },
103103 "required": [
104104 "changeId",
105105 "editor",
106106 "createdAt"
107107 ],
108108 "type": "object"
109109 }
110110 },
111111 "id": "org.tangled.repo.listRecordVersions",
112112 "lexicon": 1
113113}