net.olamaelcu.livtet.biblio.ensureEdition

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.

Details · procedure
Kindprocedure
Authoritybiblio.livtet.olamaelcu.net
Commit rev3n2yrr5plvclv
Indexed

Procedure

procedure · POST

Input

application/json

Edition identifiers as search returns them. At most 100 entries across identifiers and uris.

  • maxLength: 100

uris

array

Edition uris as resolveEditions returns them (the `atproto` identifier), when the caller already has them.

  • maxLength: 100
itemsstring · at-uri

waitMs

integer

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.

  • minimum: 0
  • maximum: 5000

Output

application/json

editions

requiredarray

Editions whose records exist now. The cid is what a strongRef must carry.

itemsobject

pending

requiredarray

Uris whose publication was requested but not written within waitMs. The caller may retry; the request stays queued.

itemsstring · at-uri

Errors

AuthRequired

The service token was missing or rejected.

InvalidRequest

The body named no identifier or uri, or too many.