full diff

community.lexicon.media.book.searchEditions

From
bafyreigttdny6253gmwmzf3pwo4tussp2vwem4fkwsjwfbd47rfsijyjym indexed 2026-11-16 18:28 UTC View this version
To
bafyreifegoyw6q5qcjrxnggebinsclx42i7a6kgu75uwucyjm56tfipzaq indexed 2026-11-17 18:30 UTC View this version

Compatibility

backward compatible Backward compatible. 6 non-breaking changes.

Non-breaking changes (6)
  • AddedVertex AddedVertex { vertex_id: "community.lexicon.media.book.searchEditions:input.language" }
  • AddedVertex AddedVertex { vertex_id: "community.lexicon.media.book.searchEditions:input.order" }
  • AddedVertex AddedVertex { vertex_id: "community.lexicon.media.book.searchEditions:input.sort" }
  • AddedEdge AddedEdge { src: "community.lexicon.media.book.searchEditions:input", tgt: "community.lexicon.media.book.searchEditions:input.language", kind: "prop", name: Some("language") }
  • AddedEdge AddedEdge { src: "community.lexicon.media.book.searchEditions:input", tgt: "community.lexicon.media.book.searchEditions:input.order", kind: "prop", name: Some("order") }
  • AddedEdge AddedEdge { src: "community.lexicon.media.book.searchEditions:input", tgt: "community.lexicon.media.book.searchEditions:input.sort", kind: "prop", name: Some("sort") }

Migration guidance

Added

  • AddedVertex { vertex_id: "community.lexicon.media.book.searchEditions:input.language" }
  • AddedVertex { vertex_id: "community.lexicon.media.book.searchEditions:input.order" }
  • AddedVertex { vertex_id: "community.lexicon.media.book.searchEditions:input.sort" }

Notes

  • Non-breaking: AddedEdge { src: "community.lexicon.media.book.searchEditions:input", tgt: "community.lexicon.media.book.searchEditions:input.language", kind: "prop", name: Some("language") }
  • Non-breaking: AddedEdge { src: "community.lexicon.media.book.searchEditions:input", tgt: "community.lexicon.media.book.searchEditions:input.order", kind: "prop", name: Some("order") }
  • Non-breaking: AddedEdge { src: "community.lexicon.media.book.searchEditions:input", tgt: "community.lexicon.media.book.searchEditions:input.sort", kind: "prop", name: Some("sort") }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "Search a provider's catalog using text and structured hints. Fuzzy matching, field interpretation, and ranking are provider-specific. This operation does not write user records.",
66 "errors": [
77 {
88 "description": "No nonblank q, title, author, or nonempty identifiers array was supplied.",
99 "name": "InvalidQuery"
1010 }
1111 ],
1212 "input": {
1313 "encoding": "application/json",
1414 "schema": {
1515 "description": "Supply at least one nonblank q, title, author, or a nonempty identifiers array. Providers enforce this cross-field requirement.",
1616 "properties": {
1717 "author": {
1818 "description": "Author relevance hint, interpreted by the provider.",
1919 "minLength": 1,
2020 "type": "string"
2121 },
2222 "identifiers": {
2323 "description": "Structured identifier relevance hints; search matching and ranking are provider-defined.",
2424 "items": {
2525 "ref": "community.lexicon.media.book.defs#identifier",
2626 "type": "ref"
2727 },
2828 "minLength": 1,
2929 "type": "array"
3030 },
31 "language": {
32 "description": "Local extension (not in the upstream books-wg PR): return only editions whose language claim matches this value. Matching is case-insensitive on the primary subtag, so `en` also matches `en-US`. Omit it for no language filter.",
33 "maxLength": 35,
34 "minLength": 2,
35 "type": "string"
36 },
3137 "limit": {
3238 "default": 25,
3339 "description": "Maximum number of editions to return in this page.",
3440 "maximum": 100,
3541 "minimum": 1,
3642 "type": "integer"
3743 },
3844 "offset": {
3945 "default": 0,
4046 "description": "Number of matching editions to skip in the provider's ordered result set.",
4147 "minimum": 0,
4248 "type": "integer"
4349 },
50 "order": {
51 "default": "asc",
52 "description": "Local extension (not in the upstream books-wg PR): direction for a `title` or `publishedYear` sort. Ignored when `sort` is `relevance`, whose ranking is provider-defined.",
53 "knownValues": [
54 "asc",
55 "desc"
56 ],
57 "type": "string"
58 },
4459 "q": {
4560 "description": "Broad search text, which may describe a title, contributor, description, or identifier. Matching and ranking are provider-defined.",
4661 "minLength": 1,
4762 "type": "string"
4863 },
64 "sort": {
65 "default": "relevance",
66 "description": "Local extension (not in the upstream books-wg PR): ordering of the result page. `title` is alphabetical by edition title; `publishedYear` orders by the edition's published date, and an edition with no usable year sorts last. `relevance` keeps the provider-defined ranking.",
67 "knownValues": [
68 "relevance",
69 "title",
70 "publishedYear"
71 ],
72 "type": "string"
73 },
4974 "title": {
5075 "description": "Title relevance hint, interpreted by the provider.",
5176 "minLength": 1,
5277 "type": "string"
5378 }
5479 },
5580 "required": [],
5681 "type": "object"
5782 }
5883 },
5984 "output": {
6085 "encoding": "application/json",
6186 "schema": {
6287 "ref": "community.lexicon.media.book.defs#editionResults",
6388 "type": "ref"
6489 }
6590 },
6691 "type": "procedure"
6792 }
6893 },
6994 "description": "Search a provider's catalog using text and structured hints. Fuzzy matching, field interpretation, and ranking are provider-specific. This operation does not write user records.",
7095 "id": "community.lexicon.media.book.searchEditions",
7196 "lexicon": 1
7297}