From
bafyreibvbzvak4clyqisbmb3dl7jw3zdrzmxm4ksctil5trurwcox3mxyu
indexed 2026-11-23 20:10 UTC
View this version
To
bafyreibvbzvak4clyqisbmb3dl7jw3zdrzmxm4ksctil5trurwcox3mxyu
indexed 2026-11-23 20:10 UTC
View this version
Compatibility
backward compatible No changes detected.
Changes
11
{22
"$type": "com.atproto.lexicon.schema",33
"defs": {44
"main": {55
"description": "Publish the edition records a reader is about to reference, and return the uri+cid a shelf record's strongRef needs. The AppView calls this when a reader acts — shelves a book, marks a status — never on a page render: a crawl must not republish the catalogue, and a strongRef cannot be written before the record exists. The caller authenticates with an atproto service token minted by its own PDS, so the request proves an intent rather than a page view.",66
"errors": [77
{88
"description": "The service token was missing or rejected.",99
"name": "AuthRequired"1010
},1111
{1212
"description": "The body named no identifier or uri, or too many.",1313
"name": "InvalidRequest"1414
}1515
],1616
"input": {1717
"encoding": "application/json",1818
"schema": {1919
"properties": {2020
"identifiers": {2121
"description": "Edition identifiers as search returns them. At most 100 entries across identifiers and uris.",2222
"items": {2323
"ref": "community.lexicon.media.book.defs#identifier",2424
"type": "ref"2525
},2626
"maxLength": 100,2727
"type": "array"2828
},2929
"uris": {3030
"description": "Edition uris as resolveEditions returns them (the `atproto` identifier), when the caller already has them.",3131
"items": {3232
"format": "at-uri",3333
"type": "string"3434
},3535
"maxLength": 100,3636
"type": "array"3737
},3838
"waitMs": {3939
"description": "How long the AppView may wait for a record to be written before the uri is reported as pending. Defaults to 2000; capped at 5000.",4040
"maximum": 5000,4141
"minimum": 0,4242
"type": "integer"4343
}4444
},4545
"type": "object"4646
}4747
},4848
"output": {4949
"encoding": "application/json",5050
"schema": {5151
"properties": {5252
"editions": {5353
"description": "Editions whose records exist now. The cid is what a strongRef must carry.",5454
"items": {5555
"properties": {5656
"cid": {5757
"format": "cid",5858
"type": "string"5959
},6060
"uri": {6161
"format": "at-uri",6262
"type": "string"6363
}6464
},6565
"required": [6666
"uri",6767
"cid"6868
],6969
"type": "object"7070
},7171
"type": "array"7272
},7373
"pending": {7474
"description": "Uris whose publication was requested but not written within waitMs. The caller may retry; the request stays queued.",7575
"items": {7676
"format": "at-uri",7777
"type": "string"7878
},7979
"type": "array"8080
}8181
},8282
"required": [8383
"editions",8484
"pending"8585
],8686
"type": "object"8787
}8888
},8989
"type": "procedure"9090
}9191
},9292
"id": "net.olamaelcu.livtet.biblio.ensureEdition",9393
"lexicon": 19494
}