{"openapi":"3.1.0","info":{"title":"API do Modesto","version":"1","description":"O Modesto é o banco de dados da indústria brasileira do livro: obras, edições, pessoas, editoras, direitos, prêmios, eventos e os preços de capa do mercado. Qualquer pessoa lê esses dados por esta API, sem token e sem custo.\n\nAs editoras sobem os livros pelo Kafka, e cada edição segue o ONIX 3.1, o padrão que o mercado do livro usa para trocar dados. A API do Modesto só lê.\n\n## A primeira chamada\n\nO endereço base é `https://meta.kafka.com.br`. Comece pelo ISBN: `/v1/lookup` diz o que o Modesto guarda com aquele identificador.\n\n```\ncurl 'https://meta.kafka.com.br/v1/lookup?isbn=9786585892407'\n```\n\n```json\n{ \"kind\": \"edition\", \"id\": \"01a0e400-b6ba-772e-aca9-88435141753c\" }\n```\n\nCom o id, `/v1/editions/{id}` traz a edição inteira: título, editora e selo, créditos, assuntos, medidas, datas, preços e imagens.\n\n```\ncurl https://meta.kafka.com.br/v1/editions/01a0e400-b6ba-772e-aca9-88435141753c\n```\n\nA mesma rota de busca por identificador aceita `cnpj` para uma editora ou livraria e `isni`, `viaf`, `orcid` ou `wikidata` para uma pessoa. Mande um parâmetro só.\n\n## Acesso\n\nNão precisa de chave nem de conta: um token pessoal só aumenta o limite de uso. Toda rota é `GET`, responde em JSON e aceita chamadas de qualquer site, direto do navegador. O Modesto não cobra pela leitura: quem paga é a editora, por guardar as edições dela.\n\nOs dados entram pelo Kafka, não por esta API. Uma editora publica e corrige os livros dela no Kafka, e o Modesto mostra a nova versão.\n\n## Listas e páginas\n\nAs listas vêm em páginas. Mande `page`, a partir de 0, e `size`, de 1 a 200. Sem eles, a resposta traz a primeira página, com 50 itens.\n\n```json\n{\n  \"count\": 3,\n  \"next\": \"/v1/organizations?q=aboio&page=1&size=1\",\n  \"previous\": null,\n  \"results\": [{ \"id\": \"01a1b400-47b1-7552-b1a5-cccc1db4965b\", \"name\": \"Aboio\" }]\n}\n```\n\nSiga `next` até ele vir `null`. As buscas de obras e de pessoas andam por `cursor` em vez de `page`, e o `next` já traz o cursor certo. Uma busca chega até o resultado 10.000: um cursor além disso responde `422 SearchWindowExceeded`.\n\n## Cache\n\nCada resposta traz um `ETag`. Mande o valor em `If-None-Match` na próxima chamada, e a resposta vem vazia, com `304`, quando nada mudou. As respostas podem ficar no cache do navegador, mas são conferidas a cada uso.\n\n## Valores\n\n- **Preços** vêm em décimos de milésimo da moeda. Divida por 10.000: `799000` é R$ 79,90.\n- **Códigos** como `price_type` e `publishing_status` usam as listas de códigos do ONIX.\n- **Datas** usam `YYYY-MM-DD`, e **data e hora** usam RFC 3339, em UTC.\n- **Identificadores** são UUIDs. Obras e organizações também aceitam o slug no lugar do id.\n\n## Erros\n\nUm erro traz um código em `error`. Um parâmetro errado volta com `422` e diz qual campo falhou e por quê:\n\n```json\n{ \"error\": \"QueryParamInvalid\", \"field\": \"size\", \"code\": \"expected_integer\" }\n```\n\n- `301`: a obra, a pessoa ou a organização foi juntada a outra. O cabeçalho `Location` aponta para a que ficou. As rotas `/v1/work-merges`, `/v1/person-merges` e `/v1/organization-merges` listam cada junção.\n- `404 NotFound`: o Modesto não tem esse id ou identificador.\n- `405 MethodNotAllowed`: a rota não é `GET`. A API do Modesto só lê.\n- `422 QueryParamInvalid`: um parâmetro não passou na validação.\n- `503 DatabaseUnavailable`, `QueryTimedOut` ou `MarketSnapshotUnready`: o Modesto não conseguiu responder agora. Tente de novo em instantes.\n\nOs erros trazem códigos, não mensagens. O seu sistema escolhe o texto que mostra.\n\n## Limites de uso\n\nSem token, cada endereço IP faz até 2 chamadas por segundo e 500 por hora. Com um token pessoal do Modesto, o limite sobe para 5 chamadas por segundo e 2.000 por hora. Crie o token na sua conta do Modesto e mande-o no cabeçalho `Authorization: Bearer mdst_…`. O token só lê.\n\nCada resposta traz `X-RateLimit-Limit`, `X-RateLimit-Remaining` e `X-RateLimit-Reset`, este em segundos Unix. Depois do limite, a resposta é `429 RateLimited`, com `Retry-After` em segundos. Um token que o Modesto não conhece responde `401 TokenUnknown`, e um token revogado responde `401 TokenRevoked`. Guarde as respostas e use o `ETag`, para não pedir de novo o que não mudou.\n\n## O documento OpenAPI\n\nO documento OpenAPI 3.1 desta referência fica em `https://meta.kafka.com.br/doc`. Dê esse endereço a um agente ou a um gerador de código, e ele monta as chamadas. Mande `?lang=en` ou `?lang=es`, ou o cabeçalho `Accept-Language`, para ler em inglês ou espanhol. Sem eles, o documento vem em português."},"paths":{"/health":{"get":{"summary":"Saúde, com uma ida e volta ao banco de dados","operationId":"get_health","tags":["Sobre a API"],"responses":{"200":{"description":"Postgres answered","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["healthy","unhealthy"]},"database":{"type":"string","enum":["up","down"]}},"required":["status","database"]}}}},"503":{"description":"Postgres did not answer","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["healthy","unhealthy"]},"database":{"type":"string","enum":["up","down"]}},"required":["status","database"]}}}}}}},"/doc":{"get":{"summary":"Este documento OpenAPI","description":"O documento OpenAPI 3.1 de toda rota pública, no idioma de `lang`, senão no do cabeçalho `Accept-Language`, senão em português.","operationId":"get_openapi_document","tags":["Sobre a API"],"parameters":[{"name":"lang","in":"query","required":false,"description":"O idioma dos textos: `pt-BR`, `es` ou `en`.","schema":{"type":"string","enum":["pt-BR","es","en"]},"example":"en"}],"responses":{"200":{"description":"The OpenAPI 3.1 document"}}}},"/doc/ui":{"get":{"summary":"Esta referência da API","description":"A página que mostra o documento OpenAPI, no mesmo idioma do documento.","operationId":"get_openapi_ui","tags":["Sobre a API"],"parameters":[{"name":"lang","in":"query","required":false,"description":"O idioma dos textos: `pt-BR`, `es` ou `en`.","schema":{"type":"string","enum":["pt-BR","es","en"]},"example":"en"}],"responses":{"200":{"description":"The Scalar API reference HTML page"}}}},"/v1/languages":{"get":{"summary":"Idiomas","description":"Todos os códigos de idioma ISO 639-2/B (lista 74 do ONIX), com o nome em inglês, em ordem de código.","operationId":"list_languages","tags":["Listas de códigos"],"parameters":[{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of the code list, each entry a code and its name","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/CodeEntry"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/countries":{"get":{"summary":"Países","description":"Todos os códigos de país ISO 3166-1 alfa-2 (lista 91 do ONIX), com o nome em inglês, em ordem de código.","operationId":"list_countries","tags":["Listas de códigos"],"parameters":[{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of the code list, each entry a code and its name","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/CodeEntry"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/contributor-roles":{"get":{"summary":"Papéis de colaborador","description":"Todos os códigos de papel de colaborador da lista 17 do ONIX, como `A01` para autor e `B06` para tradutor, com o nome em inglês, em ordem de código.","operationId":"list_contributor_roles","tags":["Listas de códigos"],"parameters":[{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of the code list, each entry a code and its name","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/CodeEntry"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/territories":{"get":{"summary":"Territórios","description":"Todos os códigos de região da lista 49 do ONIX, os territórios além de um só país, como `WORLD`, com o nome em inglês, em ordem de código.","operationId":"list_territories","tags":["Listas de códigos"],"parameters":[{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of the code list, each entry a code and its name","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/CodeEntry"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/works":{"get":{"summary":"Buscar no catálogo","description":"Obras publicadas que atendem a todos os filtros enviados, ordenadas por `q`: primeiro o ISBN, depois o título, os colaboradores e a editora. Em cada grupo, vêm primeiro as obras com mais dados do que o registro de ISBN traz. Sem `q`, a lista segue a ordem do título. A lista para em 10.000 obras, e `count` diz se o total é exato (`exact`) ou um mínimo (`at_least`). A lista pagina por `cursor`, e `page` responde 422. Um filtro vazio é ignorado, e um valor inválido responde 422 com o nome do campo.","operationId":"list_works","tags":["Obras"],"parameters":[{"name":"q","in":"query","required":false,"description":"Palavras do título original, de um título provisório, do título de uma edição, do nome de um autor ou do nome da editora ou do selo de uma edição. Toda palavra precisa aparecer; um trecho entre aspas vale como frase; a última palavra solta, com 3 letras ou mais, vale como início de palavra. Acentos e maiúsculas não importam. Quando nada é encontrado, valem palavras com uma letra de diferença. O ISBN-10 ou ISBN-13 de uma edição, com ou sem hífens e espaços, traz só a obra dela. No máximo 200 caracteres; só as 12 primeiras palavras contam.","schema":{"type":"string"}},{"name":"author","in":"query","required":false,"description":"Parte do nome de um autor. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"title","in":"query","required":false,"description":"Parte do título original ou de um título provisório. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"translator","in":"query","required":false,"description":"Parte do nome do tradutor de uma edição publicada. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"original_publisher","in":"query","required":false,"description":"Parte do nome da editora de uma edição no idioma original. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"translating_publisher","in":"query","required":false,"description":"Parte do nome da editora de uma tradução. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"language","in":"query","required":false,"description":"Obras com uma tradução publicada para este idioma.","schema":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"}},{"name":"year_from","in":"query","required":false,"description":"Obras com uma edição publicada neste ano ou depois.","schema":{"type":"integer"}},{"name":"year_to","in":"query","required":false,"description":"Obras com uma edição publicada neste ano ou antes. Não pode ser anterior a `year_from`.","schema":{"type":"integer"}},{"name":"genre","in":"query","required":false,"description":"Obras deste gênero.","schema":{"type":"string","enum":["novel","short_stories","poetry","essay","childrens","comics","nonfiction"],"description":"The curated Genre label a Work carries."}},{"name":"status","in":"query","required":false,"description":"Obras com uma edição neste status de publicação, pelo código da lista 64 do ONIX (`04` é ativo).","schema":{"type":"string","enum":["00","01","02","03","04","05","06","07","08","09","10","11","12","13","15","16","17","18"],"x-enum-descriptions":{"00":"Unspecified","01":"Cancelled","02":"Forthcoming","03":"Postponed indefinitely","04":"Active","05":"No longer our product","06":"Out of stock indefinitely","07":"Out of print","08":"Inactive","09":"Unknown","10":"Remaindered","11":"Withdrawn from sale","12":"Recalled (deprecated)","13":"Active, but not sold separately","15":"Recalled","16":"Temporarily withdrawn from sale","17":"Permanently withdrawn from sale","18":"Active, but not sold as set"}}},{"name":"scope","in":"query","required":false,"description":"`all`, o padrão, ou `brazilian`: obras com o português como idioma original ou com um autor creditado de nacionalidade brasileira ou nascido numa cidade do Brasil.","schema":{"type":"string","enum":["all","brazilian"]},"example":"brazilian"},{"name":"grant","in":"query","required":false,"description":"O id de um apoio: só as obras que ele apoiou, por uma edição publicada ou por uma amostra de tradução publicada.","schema":{"type":"string","description":"Ledger Grant identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"publisher","in":"query","required":false,"description":"Ids de organizações, separados por vírgula, no máximo 50: obras com uma edição publicada por uma delas, direto ou por um selo dela.","schema":{"type":"string"}},{"name":"imprint","in":"query","required":false,"description":"Ids de selos, separados por vírgula, no máximo 50: obras com uma edição publicada sob um deles.","schema":{"type":"string"}},{"name":"subject","in":"query","required":false,"description":"<esquema>:<código>, o esquema um de thema, bisac, cdd, bic, clil ou lcc (thema:FBA, bisac:FIC027020, cdd:869.3): obras com uma edição publicada que traz exatamente este código de assunto. Maiúsculas não importam. Outro esquema é recusado como unknown_scheme.","schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"description":"Uma palavra-chave: obras com uma edição publicada que traz exatamente esta palavra-chave. Maiúsculas e acentos não importam.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"Onde a página começa na lista ordenada: uma posição contada a partir de 0, ou `<posição>.<id>` como o link `next` escreve, que continua depois daquela linha enquanto a lista ainda a tiver. Sem ele, 0. Uma posição de 10.000 ou mais responde 422 `SearchWindowExceeded`.","schema":{"type":"string"},"example":"50"},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of Works","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"object","properties":{"kind":{"type":"string","enum":["exact","at_least"],"description":"exact: n rows matched. at_least: n or more matched; the list stops at the window of 10000 rows."},"n":{"type":"integer"}},"required":["kind","n"]},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last. Its cursor resumes after the last row of this page."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Work"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses (QueryParamInvalid; page names replaced_by_cursor), or a cursor at or past 10000 (SearchWindowExceeded)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/QueryParamInvalid"},{"$ref":"#/components/schemas/Error"}]}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/works/editions":{"get":{"summary":"Buscar no catálogo com as edições de cada obra","description":"A busca de `/v1/works`, com cada obra ao lado das edições publicadas dela, da mais antiga para a mais nova e no máximo 20 por obra, cada uma com a forma do produto, o número da edição e as datas de publicação. Serve para mostrar uma lista de livros com as edições numa chamada só. Aceita os mesmos parâmetros e pagina por `cursor` do mesmo jeito, e `size` vai até 50.","operationId":"list_works_with_editions","tags":["Obras","Edições"],"parameters":[{"name":"q","in":"query","required":false,"description":"Palavras do título original, de um título provisório, do título de uma edição, do nome de um autor ou do nome da editora ou do selo de uma edição. Toda palavra precisa aparecer; um trecho entre aspas vale como frase; a última palavra solta, com 3 letras ou mais, vale como início de palavra. Acentos e maiúsculas não importam. Quando nada é encontrado, valem palavras com uma letra de diferença. O ISBN-10 ou ISBN-13 de uma edição, com ou sem hífens e espaços, traz só a obra dela. No máximo 200 caracteres; só as 12 primeiras palavras contam.","schema":{"type":"string"}},{"name":"author","in":"query","required":false,"description":"Parte do nome de um autor. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"title","in":"query","required":false,"description":"Parte do título original ou de um título provisório. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"translator","in":"query","required":false,"description":"Parte do nome do tradutor de uma edição publicada. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"original_publisher","in":"query","required":false,"description":"Parte do nome da editora de uma edição no idioma original. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"translating_publisher","in":"query","required":false,"description":"Parte do nome da editora de uma tradução. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"language","in":"query","required":false,"description":"Obras com uma tradução publicada para este idioma.","schema":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"}},{"name":"year_from","in":"query","required":false,"description":"Obras com uma edição publicada neste ano ou depois.","schema":{"type":"integer"}},{"name":"year_to","in":"query","required":false,"description":"Obras com uma edição publicada neste ano ou antes. Não pode ser anterior a `year_from`.","schema":{"type":"integer"}},{"name":"genre","in":"query","required":false,"description":"Obras deste gênero.","schema":{"type":"string","enum":["novel","short_stories","poetry","essay","childrens","comics","nonfiction"],"description":"The curated Genre label a Work carries."}},{"name":"status","in":"query","required":false,"description":"Obras com uma edição neste status de publicação, pelo código da lista 64 do ONIX (`04` é ativo).","schema":{"type":"string","enum":["00","01","02","03","04","05","06","07","08","09","10","11","12","13","15","16","17","18"],"x-enum-descriptions":{"00":"Unspecified","01":"Cancelled","02":"Forthcoming","03":"Postponed indefinitely","04":"Active","05":"No longer our product","06":"Out of stock indefinitely","07":"Out of print","08":"Inactive","09":"Unknown","10":"Remaindered","11":"Withdrawn from sale","12":"Recalled (deprecated)","13":"Active, but not sold separately","15":"Recalled","16":"Temporarily withdrawn from sale","17":"Permanently withdrawn from sale","18":"Active, but not sold as set"}}},{"name":"scope","in":"query","required":false,"description":"`all`, o padrão, ou `brazilian`: obras com o português como idioma original ou com um autor creditado de nacionalidade brasileira ou nascido numa cidade do Brasil.","schema":{"type":"string","enum":["all","brazilian"]},"example":"brazilian"},{"name":"grant","in":"query","required":false,"description":"O id de um apoio: só as obras que ele apoiou, por uma edição publicada ou por uma amostra de tradução publicada.","schema":{"type":"string","description":"Ledger Grant identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"publisher","in":"query","required":false,"description":"Ids de organizações, separados por vírgula, no máximo 50: obras com uma edição publicada por uma delas, direto ou por um selo dela.","schema":{"type":"string"}},{"name":"imprint","in":"query","required":false,"description":"Ids de selos, separados por vírgula, no máximo 50: obras com uma edição publicada sob um deles.","schema":{"type":"string"}},{"name":"subject","in":"query","required":false,"description":"<esquema>:<código>, o esquema um de thema, bisac, cdd, bic, clil ou lcc (thema:FBA, bisac:FIC027020, cdd:869.3): obras com uma edição publicada que traz exatamente este código de assunto. Maiúsculas não importam. Outro esquema é recusado como unknown_scheme.","schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"description":"Uma palavra-chave: obras com uma edição publicada que traz exatamente esta palavra-chave. Maiúsculas e acentos não importam.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"Onde a página começa na lista ordenada: uma posição contada a partir de 0, ou `<posição>.<id>` como o link `next` escreve, que continua depois daquela linha enquanto a lista ainda a tiver. Sem ele, 0. Uma posição de 10.000 ou mais responde 422 `SearchWindowExceeded`.","schema":{"type":"string"},"example":"50"},{"name":"size","in":"query","required":false,"description":"Obras por página, de 1 a 50. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of Works with their Editions","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"object","properties":{"kind":{"type":"string","enum":["exact","at_least"],"description":"exact: n rows matched. at_least: n or more matched; the list stops at the window of 10000 rows."},"n":{"type":"integer"}},"required":["kind","n"]},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last. Its cursor resumes after the last row of this page."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/WorkEditions"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses (QueryParamInvalid; page names replaced_by_cursor), or a cursor at or past 10000 (SearchWindowExceeded)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/QueryParamInvalid"},{"$ref":"#/components/schemas/Error"}]}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/works/facets":{"get":{"summary":"Contagens dos filtros do catálogo","description":"Para a mesma lista ordenada de `/v1/works`, o número de obras traduzidas para cada idioma, de cada gênero e com uma edição em cada status de publicação. `basis` é a contagem dessa lista: com `at_least`, cada número é um mínimo.","operationId":"get_work_facets","tags":["Obras"],"parameters":[{"name":"q","in":"query","required":false,"description":"Palavras do título original, de um título provisório, do título de uma edição, do nome de um autor ou do nome da editora ou do selo de uma edição. Toda palavra precisa aparecer; um trecho entre aspas vale como frase; a última palavra solta, com 3 letras ou mais, vale como início de palavra. Acentos e maiúsculas não importam. Quando nada é encontrado, valem palavras com uma letra de diferença. O ISBN-10 ou ISBN-13 de uma edição, com ou sem hífens e espaços, traz só a obra dela. No máximo 200 caracteres; só as 12 primeiras palavras contam.","schema":{"type":"string"}},{"name":"author","in":"query","required":false,"description":"Parte do nome de um autor. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"title","in":"query","required":false,"description":"Parte do título original ou de um título provisório. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"translator","in":"query","required":false,"description":"Parte do nome do tradutor de uma edição publicada. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"original_publisher","in":"query","required":false,"description":"Parte do nome da editora de uma edição no idioma original. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"translating_publisher","in":"query","required":false,"description":"Parte do nome da editora de uma tradução. Maiúsculas não importam; acentos, sim.","schema":{"type":"string"}},{"name":"language","in":"query","required":false,"description":"Obras com uma tradução publicada para este idioma.","schema":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"}},{"name":"year_from","in":"query","required":false,"description":"Obras com uma edição publicada neste ano ou depois.","schema":{"type":"integer"}},{"name":"year_to","in":"query","required":false,"description":"Obras com uma edição publicada neste ano ou antes. Não pode ser anterior a `year_from`.","schema":{"type":"integer"}},{"name":"genre","in":"query","required":false,"description":"Obras deste gênero.","schema":{"type":"string","enum":["novel","short_stories","poetry","essay","childrens","comics","nonfiction"],"description":"The curated Genre label a Work carries."}},{"name":"status","in":"query","required":false,"description":"Obras com uma edição neste status de publicação, pelo código da lista 64 do ONIX (`04` é ativo).","schema":{"type":"string","enum":["00","01","02","03","04","05","06","07","08","09","10","11","12","13","15","16","17","18"],"x-enum-descriptions":{"00":"Unspecified","01":"Cancelled","02":"Forthcoming","03":"Postponed indefinitely","04":"Active","05":"No longer our product","06":"Out of stock indefinitely","07":"Out of print","08":"Inactive","09":"Unknown","10":"Remaindered","11":"Withdrawn from sale","12":"Recalled (deprecated)","13":"Active, but not sold separately","15":"Recalled","16":"Temporarily withdrawn from sale","17":"Permanently withdrawn from sale","18":"Active, but not sold as set"}}},{"name":"scope","in":"query","required":false,"description":"`all`, o padrão, ou `brazilian`: obras com o português como idioma original ou com um autor creditado de nacionalidade brasileira ou nascido numa cidade do Brasil.","schema":{"type":"string","enum":["all","brazilian"]},"example":"brazilian"},{"name":"grant","in":"query","required":false,"description":"O id de um apoio: só as obras que ele apoiou, por uma edição publicada ou por uma amostra de tradução publicada.","schema":{"type":"string","description":"Ledger Grant identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"publisher","in":"query","required":false,"description":"Ids de organizações, separados por vírgula, no máximo 50: obras com uma edição publicada por uma delas, direto ou por um selo dela.","schema":{"type":"string"}},{"name":"imprint","in":"query","required":false,"description":"Ids de selos, separados por vírgula, no máximo 50: obras com uma edição publicada sob um deles.","schema":{"type":"string"}},{"name":"subject","in":"query","required":false,"description":"<esquema>:<código>, o esquema um de thema, bisac, cdd, bic, clil ou lcc (thema:FBA, bisac:FIC027020, cdd:869.3): obras com uma edição publicada que traz exatamente este código de assunto. Maiúsculas não importam. Outro esquema é recusado como unknown_scheme.","schema":{"type":"string"}},{"name":"keyword","in":"query","required":false,"description":"Uma palavra-chave: obras com uma edição publicada que traz exatamente esta palavra-chave. Maiúsculas e acentos não importam.","schema":{"type":"string"}}],"responses":{"200":{"description":"The counts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkFacets"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/works/{id}":{"get":{"summary":"Uma obra","description":"A obra com os créditos, o gênero, as capas e os títulos provisórios, e a sinopse da primeira edição publicada que tem uma, com o id dessa edição: a sinopse pertence a uma edição e à sua editora. A chave é o id da obra ou, se não for um id, o slug. O id ou o slug de uma obra juntada a outra responde 301 com o endereço da obra que ficou.","operationId":"get_work","tags":["Obras"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da obra ou o slug dela.","schema":{"type":"string"}}],"responses":{"301":{"description":"A merge retired the id; location names the survivor's path"},"200":{"description":"The Work","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Work"}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/work-merges":{"get":{"summary":"Junções de obras","description":"Toda obra juntada a outra, com o id para onde ela redireciona agora, da junção mais antiga para a mais nova. Um sistema que guarda ids do Modesto lê esta lista para atualizá-los. `since` mantém as junções feitas a partir de um momento.","operationId":"list_work_merges","tags":["Obras"],"parameters":[{"name":"since","in":"query","required":false,"description":"Mantém as junções feitas neste momento ou depois: no formato que `merged_at` escreve, uma data e hora RFC 3339 ou um dia (`YYYY-MM-DD`). Uma hora sem fuso vale como UTC.","schema":{"type":"string"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of merges","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/WorkMerge"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/works/{id}/editions":{"get":{"summary":"Edições de uma obra","description":"Todas as edições publicadas da obra, a original, as traduções e as reedições, da mais antiga para a mais nova. Cada edição traz a forma do produto, o número da edição, as datas de publicação e os apoios publicados que recebeu. Um valor de filtro inválido responde 422 com o nome do campo. Uma obra juntada a outra responde 301 com as edições da obra que ficou.","operationId":"list_work_editions","tags":["Edições"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da obra.","schema":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"language","in":"query","required":false,"description":"Edições neste idioma.","schema":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"}},{"name":"year_from","in":"query","required":false,"description":"Edições publicadas neste ano ou depois.","schema":{"type":"integer"}},{"name":"year_to","in":"query","required":false,"description":"Edições publicadas neste ano ou antes.","schema":{"type":"integer"}},{"name":"publisher","in":"query","required":false,"description":"O id de uma organização: só as edições que ela publicou.","schema":{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"translating_publisher","in":"query","required":false,"description":"O id de uma organização: só as traduções que ela publicou.","schema":{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"status","in":"query","required":false,"description":"Edições neste status de publicação, pelo código da lista 64 do ONIX (`04` é ativo).","schema":{"type":"string","enum":["00","01","02","03","04","05","06","07","08","09","10","11","12","13","15","16","17","18"],"x-enum-descriptions":{"00":"Unspecified","01":"Cancelled","02":"Forthcoming","03":"Postponed indefinitely","04":"Active","05":"No longer our product","06":"Out of stock indefinitely","07":"Out of print","08":"Inactive","09":"Unknown","10":"Remaindered","11":"Withdrawn from sale","12":"Recalled (deprecated)","13":"Active, but not sold separately","15":"Recalled","16":"Temporarily withdrawn from sale","17":"Permanently withdrawn from sale","18":"Active, but not sold as set"}}},{"name":"grant","in":"query","required":false,"description":"O id de um apoio: só as edições que ele apoiou diretamente.","schema":{"type":"string","description":"Ledger Grant identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of Editions","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Edition"}}},"required":["count","next","previous","results"]}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/editions/{id}":{"get":{"summary":"Uma edição","description":"O registro ONIX 3.1 inteiro da edição: a obra, a editora, o selo, a série, os créditos e o ISBN, depois a forma do produto, os títulos, os assuntos, as extensões, as medidas, os idiomas, os produtos relacionados, os preços e as imagens, a sinopse própria como a editora a escreveu, e o número da versão mais recente. Um id desconhecido responde 404.","operationId":"get_edition","tags":["Edições"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da edição.","schema":{"type":"string","description":"Ledger Edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}}],"responses":{"200":{"description":"The Edition record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditionRecord"}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/editions/{id}/revisions":{"get":{"summary":"Histórico de versões de uma edição","description":"Todas as versões da edição, da mais nova para a mais antiga, cada uma com a fonte e o registro exatamente como aquela versão o enviou. Uma edição desconhecida responde 404.","operationId":"list_edition_revisions","tags":["Edições"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da edição.","schema":{"type":"string","description":"Ledger Edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of revisions","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/EditionRevision"}}},"required":["count","next","previous","results"]}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organizations/{id}/editions":{"get":{"summary":"Edições de uma organização","description":"As edições publicadas da organização e dos selos dela, da mais nova para a mais antiga, cada uma com a forma do produto, o número da edição e as datas de publicação. Com `role=copublisher`, as edições que a citam como coeditora. Com `series`, só as edições dessa série. Uma organização juntada a outra responde 301 com as edições da organização que ficou.","operationId":"list_organization_editions","tags":["Edições","Organizações"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da organização.","schema":{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"role","in":"query","required":false,"description":"`publisher`, o padrão: as edições da organização e dos selos dela. `copublisher`: as edições que a citam como coeditora.","schema":{"type":"string","enum":["publisher","copublisher"]},"example":"copublisher"},{"name":"series","in":"query","required":false,"description":"O id de uma série de `/v1/organizations/{id}/series`: só as edições dessa série.","schema":{"type":"string","description":"Ledger Collection identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"301":{"description":"A merge retired the id; location names the survivor's path"},"200":{"description":"One page of Editions","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Edition"}}},"required":["count","next","previous","results"]}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/imprints/{id}/editions":{"get":{"summary":"Edições de um selo","description":"As edições publicadas do selo, da mais nova para a mais antiga, cada uma com a forma do produto, o número da edição e as datas de publicação. Com `series`, só as edições dessa série. Um selo desconhecido responde 404.","operationId":"list_imprint_editions","tags":["Edições","Organizações"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id do selo.","schema":{"type":"string","description":"Ledger Imprint identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"series","in":"query","required":false,"description":"O id de uma série de `/v1/organizations/{id}/series`: só as edições dessa série.","schema":{"type":"string","description":"Ledger Collection identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of Editions","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Edition"}}},"required":["count","next","previous","results"]}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/works/{id}/rights":{"get":{"summary":"Registros de direitos de uma obra","description":"Todos os registros de direitos publicados da obra, um por idioma e território, em ordem de idioma. Cada um traz a situação dos direitos (`rs_sold`, vendidos; `rs_available`, disponíveis; `rs_optioned`, em opção; `rs_reverted`, revertidos; ou `rs_unknown`, situação desconhecida), o titular dos direitos, uma organização ou uma pessoa, e, depois da venda, a editora compradora e o ano. Uma obra desconhecida responde 404.","operationId":"list_work_rights","tags":["Direitos"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da obra.","schema":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of rows","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/RightsRecord"}}},"required":["count","next","previous","results"]}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/works/{id}/samples":{"get":{"summary":"Amostras de tradução de uma obra","description":"Todas as amostras de tradução publicadas da obra, em ordem de idioma, cada uma com o tradutor e o papel dele, o ano e os apoios publicados. Uma obra desconhecida responde 404.","operationId":"list_work_samples","tags":["Amostras de tradução"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da obra.","schema":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of rows","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/SampleTranslation"}}},"required":["count","next","previous","results"]}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/works/{id}/press":{"get":{"summary":"Menções de uma obra na imprensa","description":"Todas as menções publicadas da obra na imprensa, da mais nova para a mais antiga: o veículo, o título, o link, o idioma, a data e a citação, quando houver. Cada menção aparece como foi publicada, sem tradução. Uma obra desconhecida responde 404.","operationId":"list_work_press","tags":["Imprensa"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da obra.","schema":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of rows","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/PressMention"}}},"required":["count","next","previous","results"]}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organizations":{"get":{"summary":"Organizações","description":"Editoras, livrarias e outras organizações, em ordem de nome, cada uma com os perfis, o país, o logo, os selos e o número de edições publicadas. `q` busca no nome, `profile` mantém um perfil, e `sort` ordena pelo nome ou pelo número de edições publicadas, nos dois sentidos. Um `profile` ou um `sort` desconhecido responde 422 com o nome do campo.","operationId":"list_organizations","tags":["Organizações"],"parameters":[{"name":"q","in":"query","required":false,"description":"Parte do nome da organização. Acentos e maiúsculas não importam.","schema":{"type":"string"},"example":"aboio"},{"name":"profile","in":"query","required":false,"description":"Organizações com este perfil: `pk_publisher` (editora), `pk_agency` (agência literária), `pk_prize_body` (entidade que concede prêmios), `pk_fair_organizer` (organizadora de feira), `pk_press_outlet` (veículo de imprensa), `pk_bookstore` (livraria) ou `pk_distributor` (distribuidora).","schema":{"type":"string","description":"Profile kind: pk_publisher, pk_agency, pk_prize_body, pk_fair_organizer, pk_press_outlet, pk_bookstore or pk_distributor."},"example":"pk_publisher"},{"name":"sort","in":"query","required":false,"description":"`name`, o padrão, `name_desc` (ordem de nome a partir do fim), `edition_count` (primeiro as que têm mais edições publicadas) ou `edition_count_asc` (primeiro as que têm menos). As edições contam as que ela publica diretamente ou por um dos selos dela, e os empates ficam em ordem de nome.","schema":{"type":"string","enum":["name","name_desc","edition_count","edition_count_asc"]},"example":"edition_count"},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of Organizations","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Organization"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organizations/{id}":{"get":{"summary":"Uma organização","description":"A organização com os perfis, os selos, cada um com o número de edições publicadas e de séries, o logo, a galeria, os links, a descrição e três contagens: edições publicadas, séries e edições em coedição. A chave é o id da organização ou, se não for um id, o slug. O id ou o slug de uma organização juntada a outra responde 301 com o endereço da organização que ficou.","operationId":"get_organization","tags":["Organizações"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da organização ou o slug dela.","schema":{"type":"string"}}],"responses":{"301":{"description":"A merge retired the id; location names the survivor's path"},"200":{"description":"The Organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organizations/{id}/series":{"get":{"summary":"Séries de uma organização","description":"As séries publicadas da organização e dos selos dela, em ordem de nome, cada uma com o número de edições publicadas. A lista pagina por `cursor`: o link `next` traz o cursor depois da última série da página, e `count` é o total. Um cursor inválido responde 422 com o nome `cursor`, e `page` responde 422. Uma organização juntada a outra responde 301 com as séries da organização que ficou.","operationId":"list_organization_series","tags":["Organizações"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da organização.","schema":{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"cursor","in":"query","required":false,"description":"Onde a página começa: o cursor que o link `next` traz, que continua depois da última série da página anterior. Sem ele, a primeira página.","schema":{"type":"string"}},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"301":{"description":"A merge retired the id; location names the survivor's path"},"200":{"description":"One page of Series","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last. Its cursor resumes after the last row of this page."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Always null: the route pages forward by cursor only."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Series"}}},"required":["count","next","previous","results"]}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization-merges":{"get":{"summary":"Junções de organizações","description":"Toda organização juntada a outra e todo selo incorporado a outro, com o id para onde redireciona agora, da junção mais antiga para a mais nova. Um sistema que guarda ids do Modesto lê esta lista para atualizá-los. `since` mantém as junções feitas a partir de um momento.","operationId":"list_organization_merges","tags":["Organizações"],"parameters":[{"name":"since","in":"query","required":false,"description":"Mantém as junções feitas neste momento ou depois: no formato que `merged_at` escreve, uma data e hora RFC 3339 ou um dia (`YYYY-MM-DD`). Uma hora sem fuso vale como UTC.","schema":{"type":"string"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of merges","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationMerge"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/imprints/{id}":{"get":{"summary":"Um selo","description":"O selo com o logo, a organização dona dele e duas contagens: edições publicadas e séries. As edições dele estão em `/v1/imprints/{id}/editions`. Um selo desconhecido, ou de uma organização que não está publicada, responde 404.","operationId":"get_imprint","tags":["Organizações"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id do selo.","schema":{"type":"string","description":"Ledger Imprint identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}}],"responses":{"200":{"description":"The Imprint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Imprint"}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/translators":{"get":{"summary":"Diretório de tradutores","description":"As pessoas com crédito de tradução numa tradução publicada ou numa amostra de tradução publicada, em ordem de nome, cada uma com os idiomas para os quais traduz e o número de edições que traduziu. Uma reedição compartilha o crédito da edição que reimprime e não soma nada à contagem.","operationId":"list_translators","tags":["Tradutores"],"parameters":[{"name":"language","in":"query","required":false,"description":"Só os tradutores com uma tradução ou uma amostra de tradução para este idioma. Um código desconhecido responde 422.","schema":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of Translators","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Translator"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/lookup":{"get":{"summary":"Achar um registro pelo identificador","description":"Envie exatamente um dos parâmetros abaixo. A resposta traz o tipo do registro, `edition`, `person` ou `organization`, e o id dele. Um valor que nenhum registro publicado tem responde 404. Nenhum parâmetro ou mais de um responde 422 com o código `exactly_one`, e um parâmetro desconhecido responde 422 com o código `unknown`.","operationId":"lookup_identifier","tags":["Identificadores"],"parameters":[{"name":"isbn","in":"query","required":false,"description":"Um ISBN-13, só com os dígitos. Acha uma edição.","schema":{"type":"string"}},{"name":"isni","in":"query","required":false,"description":"Um ISNI, com ou sem espaços e hífens. Acha uma pessoa ou uma organização.","schema":{"type":"string"}},{"name":"viaf","in":"query","required":false,"description":"Um id do VIAF. Acha uma pessoa ou uma organização.","schema":{"type":"string"}},{"name":"orcid","in":"query","required":false,"description":"Um ORCID iD, com ou sem hífens. Acha uma pessoa ou uma organização.","schema":{"type":"string"}},{"name":"wikidata","in":"query","required":false,"description":"Um id do Wikidata, o QID que começa com Q. Acha uma pessoa ou uma organização.","schema":{"type":"string"}},{"name":"cnpj","in":"query","required":false,"description":"Um CNPJ, com ou sem pontos, barra e hífen. Acha uma organização.","schema":{"type":"string"}},{"name":"gln","in":"query","required":false,"description":"Um GLN da GS1. Acha uma pessoa ou uma organização.","schema":{"type":"string"}},{"name":"san","in":"query","required":false,"description":"Um SAN da ISO, o Standard Address Number. Acha uma pessoa ou uma organização.","schema":{"type":"string"}}],"responses":{"200":{"description":"The row the identifier names","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lookup"}}}},"404":{"description":"No row carries the identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events":{"get":{"summary":"Eventos","description":"Feiras, festas literárias e outros eventos publicados, em ordem de nome, cada um com o organizador, as edições publicadas e as atividades publicadas de cada edição.","operationId":"list_events","tags":["Eventos"],"parameters":[{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of Events","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Event"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/{id}":{"get":{"summary":"Um evento","description":"O evento com o tipo, o organizador, a descrição e as imagens, e as edições, cada uma uma parada do evento (um ano e uma cidade) com o número, o nome, as datas, o local, a descrição, as imagens e as atividades. Um id desconhecido responde 404; o id de um evento juntado a outro responde 301 para ele enquanto ele está publicado.","operationId":"get_event","tags":["Eventos"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id do evento.","schema":{"type":"string","description":"Ledger Event identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}}],"responses":{"301":{"description":"A merge retired the id; location names the survivor's path"},"200":{"description":"The Event","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/event-merges":{"get":{"summary":"Junções de eventos","description":"Todo evento juntado a outro que está publicado, com o id para onde ele redireciona agora, da junção mais antiga para a mais nova. Um sistema que guarda ids do Modesto lê esta lista para atualizá-los. `since` mantém as junções feitas a partir de um momento.","operationId":"list_event_merges","tags":["Eventos"],"parameters":[{"name":"since","in":"query","required":false,"description":"Mantém as junções feitas neste momento ou depois: no formato que `merged_at` escreve, uma data e hora RFC 3339 ou um dia (`YYYY-MM-DD`). Uma hora sem fuso vale como UTC.","schema":{"type":"string"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of merges","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/EventMerge"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/prizes":{"get":{"summary":"Prêmios","description":"Prêmios literários publicados, em ordem de nome, cada um com a entidade que o concede, as edições publicadas, as categorias delas e os resultados de cada categoria.","operationId":"list_prizes","tags":["Prêmios"],"parameters":[{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of Prizes","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Prize"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/prizes/{id}":{"get":{"summary":"Um prêmio","description":"O prêmio com a entidade que o concede, o tipo, os promotores, os países, as línguas, os gêneros, a descrição, as imagens, as edições, as categorias delas e os resultados de cada categoria. Um id desconhecido responde 404; o id de um prêmio juntado a outro responde 301 para o sobrevivente enquanto ele está publicado.","operationId":"get_prize","tags":["Prêmios"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id do prêmio.","schema":{"type":"string","description":"Ledger Prize identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}}],"responses":{"301":{"description":"A merge retired the id; location names the survivor's path"},"200":{"description":"The Prize","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Prize"}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/prize-merges":{"get":{"summary":"Junções de prêmios","description":"Todo prêmio juntado a outro que está publicado, com o id para onde ele redireciona agora, da junção mais antiga para a mais nova. Um sistema que guarda ids do Modesto lê esta lista para atualizá-los. `since` mantém as junções feitas a partir de um momento.","operationId":"list_prize_merges","tags":["Prêmios"],"parameters":[{"name":"since","in":"query","required":false,"description":"Mantém as junções feitas neste momento ou depois: no formato que `merged_at` escreve, uma data e hora RFC 3339 ou um dia (`YYYY-MM-DD`). Uma hora sem fuso vale como UTC.","schema":{"type":"string"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of merges","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/PrizeMerge"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/grants":{"get":{"summary":"Apoios","description":"Apoios publicados à tradução e à publicação, em ordem de nome, cada um com a organização que o financia. Para ver o que um apoio pagou, filtre obras ou edições por `grant`.","operationId":"list_grants","tags":["Apoios"],"parameters":[{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of Grants","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Grant"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/persons":{"get":{"summary":"Buscar pessoas","description":"Autores, tradutores e outros colaboradores que atendem a `q` e a todos os filtros enviados, ordenados pela relevância BM25 em relação a `q`. A lista para em 10.000 pessoas, e `count` diz se o total é exato (`exact`) ou um mínimo (`at_least`). Cada pessoa traz `credit_counts`, o número de obras publicadas por papel. A lista pagina por `cursor`, e `page` responde 422. Um filtro vazio é ignorado, e um valor inválido responde 422 com o nome do campo.","operationId":"list_persons","tags":["Pessoas"],"parameters":[{"name":"q","in":"query","required":false,"description":"Palavras do nome ou do nome curto (`reduced_name`) da pessoa. Acentos e maiúsculas não importam. Toda palavra precisa aparecer; um trecho entre aspas vale como frase; a última palavra solta, com 3 letras ou mais, vale como início de palavra. Quando nada é encontrado, cada palavra pode ter uma letra de diferença. As palavras depois da 12ª são ignoradas. De 2 a 200 caracteres, sem os espaços das pontas.","schema":{"type":"string","description":"Search query. 2-200 characters.","example":"gleam programming"},"example":"lispector"},{"name":"publisher","in":"query","required":false,"description":"O id de uma organização: pessoas com crédito numa edição publicada por ela, diretamente ou por um dos selos dela. Uma organização juntada a outra não traz ninguém.","schema":{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"imprint","in":"query","required":false,"description":"O id de um selo: pessoas com crédito numa edição publicada desse selo.","schema":{"type":"string","description":"Ledger Imprint identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"role","in":"query","required":false,"description":"Pessoas com crédito neste papel da lista 17 do ONIX, como `A01` para autor. Com `publisher`, `imprint` ou `genre`, um mesmo crédito precisa atender a todos.","schema":{"type":"string","enum":["A01","A02","A03","A04","A05","A06","A07","A08","A09","A10","A11","A12","A13","A14","A15","A16","A17","A18","A19","A20","A21","A22","A23","A24","A25","A26","A27","A28","A29","A30","A31","A32","A33","A34","A35","A36","A37","A38","A39","A40","A41","A42","A43","A44","A45","A46","A47","A48","A49","A50","A51","A52","A56","A99","B01","B02","B03","B04","B05","B06","B07","B08","B09","B10","B11","B12","B13","B14","B15","B16","B17","B18","B19","B20","B21","B22","B23","B24","B25","B26","B27","B28","B29","B30","B31","B32","B33","B34","B35","B36","B99","C01","C02","C03","C04","C99","D01","D02","D03","D04","D99","E01","E02","E03","E04","E05","E06","E07","E08","E09","E10","E11","E99","F01","F02","F99","Z01","Z02","Z03","Z04","Z05","Z06","Z98","Z99"],"x-enum-descriptions":{"A01":"By (author)","A02":"With","A03":"Screenplay by","A04":"Libretto by","A05":"Lyrics by","A06":"By (composer)","A07":"By (artist)","A08":"By (photographer)","A09":"Created by","A10":"From an idea by","A11":"Designed by","A12":"Illustrated by","A13":"Photographs by","A14":"Text by","A15":"Preface by","A16":"Prologue by","A17":"Summary by","A18":"Supplement by","A19":"Afterword by","A20":"Notes by","A21":"Commentaries by","A22":"Epilogue by","A23":"Foreword by","A24":"Introduction by","A25":"Footnotes by","A26":"Memoir by","A27":"Experiments by","A28":"Interpreted through","A29":"Introduction and notes by","A30":"Software written by","A31":"Book and lyrics by","A32":"Contributions by","A33":"Appendix by","A34":"Index by","A35":"Drawings by","A36":"Cover design or artwork by","A37":"Preliminary work by","A38":"Original author","A39":"Maps by","A40":"Inked or colored by","A41":"Paper engineering by","A42":"Continued by","A43":"Interviewer","A44":"Interviewee","A45":"Comic script by","A46":"Inker","A47":"Colorist","A48":"Letterer","A49":"Cover inker","A50":"Cover colorist","A51":"Research by","A52":"Original character design","A56":"Cover graphic design by","A99":"Other primary creator","B01":"Edited by","B02":"Revised by","B03":"Retold by","B04":"Abridged by","B05":"Adapted by","B06":"Translated by","B07":"As told by","B08":"Translated with commentary by","B09":"Series edited by","B10":"Edited and translated by","B11":"Editor-in-chief","B12":"Guest editor","B13":"Volume editor","B14":"Editorial board member","B15":"Editorial coordination by","B16":"Managing editor","B17":"Founded by","B18":"Prepared for publication by","B19":"Associate editor","B20":"Consultant editor","B21":"General editor","B22":"Dramatized by","B23":"General rapporteur","B24":"Literary editor","B25":"Arranged by (music)","B26":"Technical editor","B27":"Thesis advisor or supervisor","B28":"Thesis examiner","B29":"Scientific editor","B30":"Historical advisor","B31":"Original editor","B32":"Translation revised by","B33":"Transcribed by","B34":"Sensitivity reader / editor","B35":"Image descriptions by","B36":"Text modernized or updated by","B99":"Other adaptation by","C01":"Compiled by","C02":"Selected by","C03":"Non-text material selected by","C04":"Curated by","C99":"Other compilation by","D01":"Producer","D02":"Director","D03":"Conductor","D04":"Choreographer","D99":"Other direction by","E01":"Actor","E02":"Dancer","E03":"Narrator","E04":"Commentator","E05":"Vocal soloist","E06":"Instrumental soloist","E07":"Read by","E08":"Performed by (orchestra, band, ensemble)","E09":"Speaker","E10":"Presenter","E11":"Introduction read by","E99":"Performed by","F01":"Filmed / photographed by","F02":"Editor (film or video)","F99":"Other recording by","Z01":"Assisted by","Z02":"Honored / dedicated to","Z03":"Enacting jurisdiction","Z04":"Peer reviewed","Z05":"Posthumously completed by","Z06":"In association with","Z98":"(Various roles)","Z99":"Other"}},"example":"A01"},{"name":"birth_state","in":"query","required":false,"description":"Pessoas nascidas neste estado brasileiro: a UF (`SP`) ou o código IBGE de 2 dígitos do estado.","schema":{"type":"string"},"example":"SP"},{"name":"birth_country","in":"query","required":false,"description":"Pessoas nascidas neste país.","schema":{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},"example":"BR"},{"name":"nationality","in":"query","required":false,"description":"Pessoas com esta nacionalidade.","schema":{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},"example":"BR"},{"name":"genre","in":"query","required":false,"description":"Pessoas com crédito numa obra publicada deste gênero.","schema":{"type":"string","enum":["novel","short_stories","poetry","essay","childrens","comics","nonfiction"],"description":"The curated Genre label a Work carries."}},{"name":"credit_count_min","in":"query","required":false,"description":"Pessoas com pelo menos este número de créditos: as obras publicadas por papel que `credit_counts` conta, somadas entre os papéis. 0 ou mais.","schema":{"type":"integer"},"example":5},{"name":"credit_count_max","in":"query","required":false,"description":"Pessoas com no máximo este número de créditos, contados como em `credit_count_min`. Não menor que `credit_count_min`.","schema":{"type":"integer"}},{"name":"scope","in":"query","required":false,"description":"`all`, o padrão, ou `brazilian`: pessoas de nacionalidade brasileira ou nascidas numa cidade do Brasil.","schema":{"type":"string","enum":["all","brazilian"]},"example":"brazilian"},{"name":"sort","in":"query","required":false,"description":"`relevance`, o padrão, `name`, `name_desc`, `birth_year`, `birth_year_desc`, `credit_count`, `credit_count_asc`, `nationality` ou `nationality_desc`. `relevance` põe primeiro as pessoas cuja fonte não é o registro de ISBN e depois ordena pela pontuação BM25 de `q`; sem `q`, vale como `name`. Com `q`, as outras ordens organizam os 10.000 melhores resultados. Pessoas sem ano de nascimento ficam por último nas duas ordens por ano de nascimento. `credit_count` põe primeiro quem tem mais créditos e `credit_count_asc` quem tem menos, contados como em `credit_count_min`. `nationality` ordena pelos códigos de nacionalidade, e quem não tem nenhuma fica por último nas duas direções. Os empates seguem o nome.","schema":{"type":"string","enum":["relevance","name","name_desc","birth_year","birth_year_desc","credit_count","credit_count_asc","nationality","nationality_desc"]},"example":"birth_year"},{"name":"cursor","in":"query","required":false,"description":"Onde a página começa na lista ordenada: uma posição contada a partir de 0, ou `<posição>.<id>` como o link `next` escreve, que continua depois daquela linha enquanto a lista ainda a tiver. Sem ele, 0. Uma posição de 10.000 ou mais responde 422 `SearchWindowExceeded`.","schema":{"type":"string"},"example":"50"},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of Persons","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"object","properties":{"kind":{"type":"string","enum":["exact","at_least"],"description":"exact: n rows matched. at_least: n or more matched; the list stops at the window of 10000 rows."},"n":{"type":"integer"}},"required":["kind","n"]},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last. Its cursor resumes after the last row of this page."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Person"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses (QueryParamInvalid; page names replaced_by_cursor), or a cursor at or past 10000 (SearchWindowExceeded)","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/QueryParamInvalid"},{"$ref":"#/components/schemas/Error"}]}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/persons/facets":{"get":{"summary":"Contagens dos filtros de pessoas","description":"Para a mesma lista ordenada de `/v1/persons`, o número de pessoas nascidas em cada estado brasileiro, nascidas em cada país e com crédito numa obra de cada gênero. `basis` é a contagem dessa lista: com `at_least`, cada número é um mínimo; com `exact`, é igual à contagem da lista com aquele valor somado ao filtro.","operationId":"get_person_facets","tags":["Pessoas"],"parameters":[{"name":"q","in":"query","required":false,"description":"Palavras do nome ou do nome curto (`reduced_name`) da pessoa. Acentos e maiúsculas não importam. Toda palavra precisa aparecer; um trecho entre aspas vale como frase; a última palavra solta, com 3 letras ou mais, vale como início de palavra. Quando nada é encontrado, cada palavra pode ter uma letra de diferença. As palavras depois da 12ª são ignoradas. De 2 a 200 caracteres, sem os espaços das pontas.","schema":{"type":"string","description":"Search query. 2-200 characters.","example":"gleam programming"},"example":"lispector"},{"name":"publisher","in":"query","required":false,"description":"O id de uma organização: pessoas com crédito numa edição publicada por ela, diretamente ou por um dos selos dela. Uma organização juntada a outra não traz ninguém.","schema":{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"imprint","in":"query","required":false,"description":"O id de um selo: pessoas com crédito numa edição publicada desse selo.","schema":{"type":"string","description":"Ledger Imprint identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"role","in":"query","required":false,"description":"Pessoas com crédito neste papel da lista 17 do ONIX, como `A01` para autor. Com `publisher`, `imprint` ou `genre`, um mesmo crédito precisa atender a todos.","schema":{"type":"string","enum":["A01","A02","A03","A04","A05","A06","A07","A08","A09","A10","A11","A12","A13","A14","A15","A16","A17","A18","A19","A20","A21","A22","A23","A24","A25","A26","A27","A28","A29","A30","A31","A32","A33","A34","A35","A36","A37","A38","A39","A40","A41","A42","A43","A44","A45","A46","A47","A48","A49","A50","A51","A52","A56","A99","B01","B02","B03","B04","B05","B06","B07","B08","B09","B10","B11","B12","B13","B14","B15","B16","B17","B18","B19","B20","B21","B22","B23","B24","B25","B26","B27","B28","B29","B30","B31","B32","B33","B34","B35","B36","B99","C01","C02","C03","C04","C99","D01","D02","D03","D04","D99","E01","E02","E03","E04","E05","E06","E07","E08","E09","E10","E11","E99","F01","F02","F99","Z01","Z02","Z03","Z04","Z05","Z06","Z98","Z99"],"x-enum-descriptions":{"A01":"By (author)","A02":"With","A03":"Screenplay by","A04":"Libretto by","A05":"Lyrics by","A06":"By (composer)","A07":"By (artist)","A08":"By (photographer)","A09":"Created by","A10":"From an idea by","A11":"Designed by","A12":"Illustrated by","A13":"Photographs by","A14":"Text by","A15":"Preface by","A16":"Prologue by","A17":"Summary by","A18":"Supplement by","A19":"Afterword by","A20":"Notes by","A21":"Commentaries by","A22":"Epilogue by","A23":"Foreword by","A24":"Introduction by","A25":"Footnotes by","A26":"Memoir by","A27":"Experiments by","A28":"Interpreted through","A29":"Introduction and notes by","A30":"Software written by","A31":"Book and lyrics by","A32":"Contributions by","A33":"Appendix by","A34":"Index by","A35":"Drawings by","A36":"Cover design or artwork by","A37":"Preliminary work by","A38":"Original author","A39":"Maps by","A40":"Inked or colored by","A41":"Paper engineering by","A42":"Continued by","A43":"Interviewer","A44":"Interviewee","A45":"Comic script by","A46":"Inker","A47":"Colorist","A48":"Letterer","A49":"Cover inker","A50":"Cover colorist","A51":"Research by","A52":"Original character design","A56":"Cover graphic design by","A99":"Other primary creator","B01":"Edited by","B02":"Revised by","B03":"Retold by","B04":"Abridged by","B05":"Adapted by","B06":"Translated by","B07":"As told by","B08":"Translated with commentary by","B09":"Series edited by","B10":"Edited and translated by","B11":"Editor-in-chief","B12":"Guest editor","B13":"Volume editor","B14":"Editorial board member","B15":"Editorial coordination by","B16":"Managing editor","B17":"Founded by","B18":"Prepared for publication by","B19":"Associate editor","B20":"Consultant editor","B21":"General editor","B22":"Dramatized by","B23":"General rapporteur","B24":"Literary editor","B25":"Arranged by (music)","B26":"Technical editor","B27":"Thesis advisor or supervisor","B28":"Thesis examiner","B29":"Scientific editor","B30":"Historical advisor","B31":"Original editor","B32":"Translation revised by","B33":"Transcribed by","B34":"Sensitivity reader / editor","B35":"Image descriptions by","B36":"Text modernized or updated by","B99":"Other adaptation by","C01":"Compiled by","C02":"Selected by","C03":"Non-text material selected by","C04":"Curated by","C99":"Other compilation by","D01":"Producer","D02":"Director","D03":"Conductor","D04":"Choreographer","D99":"Other direction by","E01":"Actor","E02":"Dancer","E03":"Narrator","E04":"Commentator","E05":"Vocal soloist","E06":"Instrumental soloist","E07":"Read by","E08":"Performed by (orchestra, band, ensemble)","E09":"Speaker","E10":"Presenter","E11":"Introduction read by","E99":"Performed by","F01":"Filmed / photographed by","F02":"Editor (film or video)","F99":"Other recording by","Z01":"Assisted by","Z02":"Honored / dedicated to","Z03":"Enacting jurisdiction","Z04":"Peer reviewed","Z05":"Posthumously completed by","Z06":"In association with","Z98":"(Various roles)","Z99":"Other"}},"example":"A01"},{"name":"birth_state","in":"query","required":false,"description":"Pessoas nascidas neste estado brasileiro: a UF (`SP`) ou o código IBGE de 2 dígitos do estado.","schema":{"type":"string"},"example":"SP"},{"name":"birth_country","in":"query","required":false,"description":"Pessoas nascidas neste país.","schema":{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},"example":"BR"},{"name":"nationality","in":"query","required":false,"description":"Pessoas com esta nacionalidade.","schema":{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},"example":"BR"},{"name":"genre","in":"query","required":false,"description":"Pessoas com crédito numa obra publicada deste gênero.","schema":{"type":"string","enum":["novel","short_stories","poetry","essay","childrens","comics","nonfiction"],"description":"The curated Genre label a Work carries."}},{"name":"credit_count_min","in":"query","required":false,"description":"Pessoas com pelo menos este número de créditos: as obras publicadas por papel que `credit_counts` conta, somadas entre os papéis. 0 ou mais.","schema":{"type":"integer"},"example":5},{"name":"credit_count_max","in":"query","required":false,"description":"Pessoas com no máximo este número de créditos, contados como em `credit_count_min`. Não menor que `credit_count_min`.","schema":{"type":"integer"}},{"name":"scope","in":"query","required":false,"description":"`all`, o padrão, ou `brazilian`: pessoas de nacionalidade brasileira ou nascidas numa cidade do Brasil.","schema":{"type":"string","enum":["all","brazilian"]},"example":"brazilian"},{"name":"sort","in":"query","required":false,"description":"`relevance`, o padrão, `name`, `name_desc`, `birth_year`, `birth_year_desc`, `credit_count`, `credit_count_asc`, `nationality` ou `nationality_desc`. `relevance` põe primeiro as pessoas cuja fonte não é o registro de ISBN e depois ordena pela pontuação BM25 de `q`; sem `q`, vale como `name`. Com `q`, as outras ordens organizam os 10.000 melhores resultados. Pessoas sem ano de nascimento ficam por último nas duas ordens por ano de nascimento. `credit_count` põe primeiro quem tem mais créditos e `credit_count_asc` quem tem menos, contados como em `credit_count_min`. `nationality` ordena pelos códigos de nacionalidade, e quem não tem nenhuma fica por último nas duas direções. Os empates seguem o nome.","schema":{"type":"string","enum":["relevance","name","name_desc","birth_year","birth_year_desc","credit_count","credit_count_asc","nationality","nationality_desc"]},"example":"birth_year"}],"responses":{"200":{"description":"The counts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonFacets"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/persons/{id}":{"get":{"summary":"Uma pessoa","description":"A pessoa com os nomes, as datas e os lugares de nascimento e morte, as nacionalidades, os idiomas, a biografia, os créditos, `credit_counts`, os identificadores, as imagens e os links. O id de uma pessoa juntada a outra responde 301 com o endereço da pessoa que ficou.","operationId":"get_person","tags":["Pessoas"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da pessoa.","schema":{"type":"string","description":"Ledger Person identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}}],"responses":{"301":{"description":"A merge retired the id; location names the survivor's path"},"200":{"description":"The Person","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/persons/{id}/credits":{"get":{"summary":"Créditos de uma pessoa","description":"Toda obra publicada que credita a pessoa, uma linha por papel e obra, do ano mais novo para o mais antigo e depois por título. Um crédito numa edição mostra essa edição; quando a obra e várias edições creditam o mesmo papel, a linha é a da obra. `count` é exato e, para um `role`, é igual ao desse papel em `credit_counts`. A lista pagina por `cursor`: o link `next` traz o cursor depois do último crédito da página. Um papel desconhecido ou um cursor inválido responde 422 com o nome do campo. O id de uma pessoa juntada a outra responde 301 com o endereço da pessoa que ficou.","operationId":"list_person_credits","tags":["Pessoas"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da pessoa.","schema":{"type":"string","description":"Ledger Person identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"role","in":"query","required":false,"description":"Mantém os créditos neste papel da lista 17 do ONIX, como `B24` para editor literário. Sem ele, todos os papéis.","schema":{"type":"string","enum":["A01","A02","A03","A04","A05","A06","A07","A08","A09","A10","A11","A12","A13","A14","A15","A16","A17","A18","A19","A20","A21","A22","A23","A24","A25","A26","A27","A28","A29","A30","A31","A32","A33","A34","A35","A36","A37","A38","A39","A40","A41","A42","A43","A44","A45","A46","A47","A48","A49","A50","A51","A52","A56","A99","B01","B02","B03","B04","B05","B06","B07","B08","B09","B10","B11","B12","B13","B14","B15","B16","B17","B18","B19","B20","B21","B22","B23","B24","B25","B26","B27","B28","B29","B30","B31","B32","B33","B34","B35","B36","B99","C01","C02","C03","C04","C99","D01","D02","D03","D04","D99","E01","E02","E03","E04","E05","E06","E07","E08","E09","E10","E11","E99","F01","F02","F99","Z01","Z02","Z03","Z04","Z05","Z06","Z98","Z99"],"x-enum-descriptions":{"A01":"By (author)","A02":"With","A03":"Screenplay by","A04":"Libretto by","A05":"Lyrics by","A06":"By (composer)","A07":"By (artist)","A08":"By (photographer)","A09":"Created by","A10":"From an idea by","A11":"Designed by","A12":"Illustrated by","A13":"Photographs by","A14":"Text by","A15":"Preface by","A16":"Prologue by","A17":"Summary by","A18":"Supplement by","A19":"Afterword by","A20":"Notes by","A21":"Commentaries by","A22":"Epilogue by","A23":"Foreword by","A24":"Introduction by","A25":"Footnotes by","A26":"Memoir by","A27":"Experiments by","A28":"Interpreted through","A29":"Introduction and notes by","A30":"Software written by","A31":"Book and lyrics by","A32":"Contributions by","A33":"Appendix by","A34":"Index by","A35":"Drawings by","A36":"Cover design or artwork by","A37":"Preliminary work by","A38":"Original author","A39":"Maps by","A40":"Inked or colored by","A41":"Paper engineering by","A42":"Continued by","A43":"Interviewer","A44":"Interviewee","A45":"Comic script by","A46":"Inker","A47":"Colorist","A48":"Letterer","A49":"Cover inker","A50":"Cover colorist","A51":"Research by","A52":"Original character design","A56":"Cover graphic design by","A99":"Other primary creator","B01":"Edited by","B02":"Revised by","B03":"Retold by","B04":"Abridged by","B05":"Adapted by","B06":"Translated by","B07":"As told by","B08":"Translated with commentary by","B09":"Series edited by","B10":"Edited and translated by","B11":"Editor-in-chief","B12":"Guest editor","B13":"Volume editor","B14":"Editorial board member","B15":"Editorial coordination by","B16":"Managing editor","B17":"Founded by","B18":"Prepared for publication by","B19":"Associate editor","B20":"Consultant editor","B21":"General editor","B22":"Dramatized by","B23":"General rapporteur","B24":"Literary editor","B25":"Arranged by (music)","B26":"Technical editor","B27":"Thesis advisor or supervisor","B28":"Thesis examiner","B29":"Scientific editor","B30":"Historical advisor","B31":"Original editor","B32":"Translation revised by","B33":"Transcribed by","B34":"Sensitivity reader / editor","B35":"Image descriptions by","B36":"Text modernized or updated by","B99":"Other adaptation by","C01":"Compiled by","C02":"Selected by","C03":"Non-text material selected by","C04":"Curated by","C99":"Other compilation by","D01":"Producer","D02":"Director","D03":"Conductor","D04":"Choreographer","D99":"Other direction by","E01":"Actor","E02":"Dancer","E03":"Narrator","E04":"Commentator","E05":"Vocal soloist","E06":"Instrumental soloist","E07":"Read by","E08":"Performed by (orchestra, band, ensemble)","E09":"Speaker","E10":"Presenter","E11":"Introduction read by","E99":"Performed by","F01":"Filmed / photographed by","F02":"Editor (film or video)","F99":"Other recording by","Z01":"Assisted by","Z02":"Honored / dedicated to","Z03":"Enacting jurisdiction","Z04":"Peer reviewed","Z05":"Posthumously completed by","Z06":"In association with","Z98":"(Various roles)","Z99":"Other"}},"example":"B24"},{"name":"cursor","in":"query","required":false,"description":"Onde a página começa: o cursor que o link `next` traz, que continua depois do último crédito da página anterior. Sem ele, a primeira página.","schema":{"type":"string"}},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"301":{"description":"A merge retired the id; location names the survivor's path"},"200":{"description":"One page of credits","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last. Its cursor resumes after the last row of this page."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Always null: the route pages forward by cursor only."},"results":{"type":"array","items":{"$ref":"#/components/schemas/PersonCredit"}}},"required":["count","next","previous","results"]}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/person-merges":{"get":{"summary":"Junções de pessoas","description":"Toda pessoa juntada a outra, com o id para onde ela redireciona agora, da junção mais antiga para a mais nova. Um sistema que guarda ids do Modesto lê esta lista para atualizá-los. `since` mantém as junções feitas a partir de um momento.","operationId":"list_person_merges","tags":["Pessoas"],"parameters":[{"name":"since","in":"query","required":false,"description":"Mantém as junções feitas neste momento ou depois: no formato que `merged_at` escreve, uma data e hora RFC 3339 ou um dia (`YYYY-MM-DD`). Uma hora sem fuso vale como UTC.","schema":{"type":"string"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of merges","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/PersonMerge"}}},"required":["count","next","previous","results"]}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/persons/{id}/participations":{"get":{"summary":"Participações de uma pessoa em eventos","description":"As participações publicadas da pessoa, do ano de evento mais recente para o mais antigo, cada uma com a atividade, o evento e o ano da edição. Uma pessoa desconhecida responde 404. Uma pessoa juntada a outra responde 301 com as participações da pessoa que ficou.","operationId":"list_person_participations","tags":["Pessoas"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da pessoa.","schema":{"type":"string","description":"Ledger Person identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"301":{"description":"A merge retired the id; location names the survivor's path"},"200":{"description":"One page of rows","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Participation"}}},"required":["count","next","previous","results"]}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organizations/{id}/participations":{"get":{"summary":"Participações de uma organização em eventos","description":"As participações publicadas da organização, do ano de evento mais recente para o mais antigo, cada uma com a atividade, o evento e o ano da edição. Uma organização desconhecida responde 404. Uma organização juntada a outra responde 301 com as participações da organização que ficou.","operationId":"list_organization_participations","tags":["Organizações"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da organização.","schema":{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"301":{"description":"A merge retired the id; location names the survivor's path"},"200":{"description":"One page of rows","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Participation"}}},"required":["count","next","previous","results"]}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/persons/{id}/relations":{"get":{"summary":"Relações de uma pessoa","description":"As relações publicadas da pessoa com outras pessoas, por tipo, cada uma com o tipo, a direção e a outra pessoa. Um tipo simétrico aparece dos dois lados; um tipo com direção aparece do lado onde começa. Uma pessoa desconhecida responde 404. Uma pessoa juntada a outra responde 301 com as relações da pessoa que ficou.","operationId":"list_person_relations","tags":["Pessoas"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da pessoa.","schema":{"type":"string","description":"Ledger Person identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"301":{"description":"A merge retired the id; location names the survivor's path"},"200":{"description":"One page of rows","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/Relation"}}},"required":["count","next","previous","results"]}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/cities":{"get":{"summary":"Buscar cidades","description":"As cidades do cadastro de lugares do Modesto cujo nome tem todas as palavras de `q`, sem importar acentos e maiúsculas, da que mais combina para a que menos combina. Uma cidade brasileira traz a UF do estado em `province` e o código IBGE. Todo município brasileiro está no cadastro; uma cidade de fora entra quando um registro a cita. Sem `q`, ou com um valor inválido, a resposta é 422 com o nome do campo.","operationId":"search_cities","tags":["Cidades"],"parameters":[{"name":"q","in":"query","required":true,"description":"Palavras do nome da cidade, sem importar acentos e maiúsculas; toda palavra precisa estar no nome. Obrigatório, de 2 a 200 caracteres, sem os espaços das pontas. Primeiro vem o nome igual ao texto inteiro, depois o nome que começa com ele, depois o que o tem no início de uma palavra e por fim o que o tem em qualquer lugar; nos empates, vence o nome mais curto.","schema":{"type":"string","description":"Search query. 2-200 characters.","example":"gleam programming"},"example":"sao paulo"},{"name":"country","in":"query","required":false,"description":"Cidades deste país.","schema":{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},"example":"BR"},{"name":"province","in":"query","required":false,"description":"Cidades deste estado brasileiro: a UF (`SP`) ou o código IBGE de 2 dígitos do estado.","schema":{"type":"string"},"example":"SP"},{"name":"limit","in":"query","required":false,"description":"O máximo de cidades na resposta, de 1 a 50. Sem ele, 10. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":5}],"responses":{"200":{"description":"The matching Cities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CityEntries"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/market-prices":{"get":{"summary":"Preços de capa do mercado por faixa de páginas","description":"Os preços de capa em reais dos livros em brochura e em capa dura publicados que têm número de páginas e um segmento pelos códigos Thema. Para cada segmento e faixa de páginas, nos dois formatos juntos e em cada um: o número de edições, esse número por base do preço, o percentil 25, a mediana e o percentil 75. Depois, até 150 edições por segmento e formato, espalhadas de forma regular pelo número de páginas, com título, editora, páginas, preço, segmento, formato e base, sem ids.\n\nCada dado vem primeiro do registro ONIX da edição e, na falta dele, do anúncio de um varejista:\n\n- o preço é o preço em reais do tipo 02 da lista 58, senão o do tipo 42 (base `mpb_announced`), senão o preço de lista em reais do varejista (base `mpb_retailer_list`);\n- as páginas são a extensão do tipo 00 da lista 23, em páginas, senão as do anúncio;\n- o formato é o `BB` ou o `BC` do registro, senão o do anúncio quando o registro não informa a forma ou informa `BA`;\n- o segmento lê os códigos Thema do registro, senão os do anúncio. Qualquer código `5A*` ou `Y*` é infantil. Senão, o assunto principal (o primeiro código principal que não é qualificador, senão o primeiro código de assunto) dá poesia para `DC*`, prosa para `F*`, `DD*` ou `DB*`, nenhum segmento para qualquer outro código de uma letra, e não ficção para o resto.\n\nA resposta é atualizada a cada 10 minutos. Enquanto o Modesto ainda não tem o retrato do mercado, a resposta é 503 `MarketSnapshotUnready`.","operationId":"get_market_prices","tags":["Preços do mercado"],"parameters":[{"name":"segment","in":"query","required":false,"description":"Um segmento do mercado: `mks_prose` (prosa), `mks_poetry` (poesia), `mks_children` (infantil) ou `mks_nonfiction` (não ficção). Sem ele, todos os segmentos. Um valor desconhecido responde 422.","schema":{"type":"string","enum":["mks_prose","mks_poetry","mks_children","mks_nonfiction"],"x-enum-descriptions":{"mks_prose":"Prose: main subject F*, DD* or DB*.","mks_poetry":"Poetry: main subject DC*.","mks_children":"Children: any 5A* or Y* Thema code.","mks_nonfiction":"Nonfiction: any other main subject."}},"example":"mks_poetry"},{"name":"format","in":"query","required":false,"description":"Um formato: `mkf_paperback` (brochura) ou `mkf_hardback` (capa dura). Sem ele, os dois. Um valor desconhecido responde 422.","schema":{"type":"string","enum":["mkf_paperback","mkf_hardback"],"x-enum-descriptions":{"mkf_paperback":"Paperback: ONIX List 150 BC.","mkf_hardback":"Hardback: ONIX List 150 BB."}},"example":"mkf_paperback"},{"name":"basis","in":"query","required":false,"description":"De onde vem o preço: `mpb_announced`, o preço que a editora anunciou no ONIX, ou `mpb_retailer_list`, o preço de lista de um varejista. Sem ele, os dois. Um valor desconhecido responde 422.","schema":{"type":"string","enum":["mpb_announced","mpb_retailer_list"],"x-enum-descriptions":{"mpb_announced":"Announced: the List 58 type 02 BRL price of the ONIX body, else type 42.","mpb_retailer_list":"Retailer list: a retailer's BRL list price, for an Edition whose body has no price."}},"example":"mpb_announced"}],"responses":{"200":{"description":"The market cover prices","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketPrices"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer (DatabaseUnavailable), or no market snapshot of the service's page bands is held yet (MarketSnapshotUnready)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/market-series":{"get":{"summary":"Preços de capa do mercado por trimestre","description":"As faixas de `/v1/market-prices` no fechamento de cada trimestre: para cada segmento, faixa de páginas e formato, o número de edições, esse número por base do preço e os quartis do preço de capa em reais que cada edição tinha na época. Uma edição entra com o preço que os fatos de preço dela tinham no fechamento do trimestre, por `valid_from`, nunca pela ordem em que foram registrados: o preço anunciado do tipo 02, senão o do tipo 42, senão o preço de lista do varejista. Ela entra com as páginas, o formato e o segmento de hoje. O trimestre atual fecha na última atualização. A série é atualizada junto com os preços do mercado, a cada 10 minutos. Ela não traz ids.","operationId":"get_market_series","tags":["Preços do mercado"],"parameters":[{"name":"segment","in":"query","required":false,"description":"Um segmento do mercado: `mks_prose` (prosa), `mks_poetry` (poesia), `mks_children` (infantil) ou `mks_nonfiction` (não ficção). Sem ele, todos os segmentos. Um valor desconhecido responde 422.","schema":{"type":"string","enum":["mks_prose","mks_poetry","mks_children","mks_nonfiction"],"x-enum-descriptions":{"mks_prose":"Prose: main subject F*, DD* or DB*.","mks_poetry":"Poetry: main subject DC*.","mks_children":"Children: any 5A* or Y* Thema code.","mks_nonfiction":"Nonfiction: any other main subject."}},"example":"mks_poetry"},{"name":"format","in":"query","required":false,"description":"Um formato: `mkf_paperback` (brochura) ou `mkf_hardback` (capa dura). Sem ele, os dois. Um valor desconhecido responde 422.","schema":{"type":"string","enum":["mkf_paperback","mkf_hardback"],"x-enum-descriptions":{"mkf_paperback":"Paperback: ONIX List 150 BC.","mkf_hardback":"Hardback: ONIX List 150 BB."}},"example":"mkf_paperback"},{"name":"basis","in":"query","required":false,"description":"De onde vem o preço: `mpb_announced`, o preço que a editora anunciou no ONIX, ou `mpb_retailer_list`, o preço de lista de um varejista. Sem ele, os dois. Um valor desconhecido responde 422.","schema":{"type":"string","enum":["mpb_announced","mpb_retailer_list"],"x-enum-descriptions":{"mpb_announced":"Announced: the List 58 type 02 BRL price of the ONIX body, else type 42.","mpb_retailer_list":"Retailer list: a retailer's BRL list price, for an Edition whose body has no price."}},"example":"mpb_announced"}],"responses":{"200":{"description":"The market cover prices by quarter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketSeries"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer (DatabaseUnavailable), or no market snapshot of the service's page bands is held yet (MarketSnapshotUnready)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/editions/{id}/prices":{"get":{"summary":"Histórico de preços de uma edição","description":"Todos os fatos de preço da edição, do `valid_from` mais recente para o mais antigo: os preços que a editora anunciou, os preços de lista dos varejistas e os preços antigos que um administrador registrou. Cada um traz o momento em que passou a valer, o momento em que uma atualização posterior o retirou e a fonte. O preço de lista de um varejista tem a base `mpb_retailer_list` e não traz o nome do varejista nem a referência da fonte. Onde este serviço não publica os preços dos varejistas, a resposta traz só os preços anunciados. A ordem é a do período em que o preço valeu, nunca a da data em que o Modesto o guardou. Um valor de filtro inválido responde 422 com o nome do campo, e uma edição desconhecida responde 404. Para ler pelo ISBN, ache antes a edição com `/v1/lookup?isbn=`.","operationId":"list_edition_prices","tags":["Edições","Preços"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da edição.","schema":{"type":"string","description":"Ledger Edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"price_type","in":"query","required":false,"description":"Um tipo de preço da lista 58 do ONIX, como `02` para o preço de venda sugerido com impostos. Sem ele, todos os tipos. Um valor desconhecido responde 422.","schema":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","11","12","13","14","15","17","21","22","23","24","25","27","31","32","33","34","35","36","37","41","42"],"x-enum-descriptions":{"01":"RRP excluding tax","02":"RRP including tax","03":"FRP excluding tax","04":"FRP including tax","05":"Supplier's Net price excluding tax","06":"Supplier's Net price excluding tax: rental goods","07":"Supplier's Net price including tax","08":"Supplier's alternative Net price excluding tax","09":"Supplier's alternative net price including tax","11":"Special sale RRP excluding tax","12":"Special sale RRP including tax","13":"Special sale fixed retail price excluding tax","14":"Special sale fixed retail price including tax","15":"Supplier's net price for special sale excluding tax","17":"Supplier's net price for special sale including tax","21":"Pre-publication RRP excluding tax","22":"Pre-publication RRP including tax","23":"Pre-publication fixed retail price excluding tax","24":"Pre-publication fixed retail price including tax","25":"Supplier's pre-publication net price excluding tax","27":"Supplier's pre-publication net price including tax","31":"Freight-pass-through RRP excluding tax","32":"Freight-pass-through billing price excluding tax","33":"Importer's Fixed retail price excluding tax","34":"Importer's Fixed retail price including tax","35":"Nominal gratis copy value for customs purposes, excluding tax","36":"Nominal value for claims purposes, excluding tax","37":"Nominal value for customs purposes, excluding tax","41":"Publishers retail price excluding tax","42":"Publishers retail price including tax"}},"example":"02"},{"name":"basis","in":"query","required":false,"description":"De onde vem o preço: `mpb_announced`, o preço que a editora anunciou no ONIX, ou `mpb_retailer_list`, o preço de lista de um varejista. Sem ele, os dois. Um valor desconhecido responde 422.","schema":{"type":"string","enum":["mpb_announced","mpb_retailer_list"],"description":"mpb_announced, the publisher's announced price, or mpb_retailer_list, a retailer's list price."},"example":"mpb_announced"},{"name":"page","in":"query","required":false,"description":"A página a ler, contada a partir de 0. Sem ele, a página 0. Um valor negativo vale 0, e um valor acima de 1.000.000 vale 1.000.000.","schema":{"type":"integer"},"example":0},{"name":"size","in":"query","required":false,"description":"Itens por página, de 1 a 200. Sem ele, 50. Um valor fora da faixa vale o limite mais próximo.","schema":{"type":"integer"},"example":50}],"responses":{"200":{"description":"One page of price facts","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total rows across every page."},"next":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the next page, null on the last."},"previous":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Path of the previous page, null on the first."},"results":{"type":"array","items":{"$ref":"#/components/schemas/PriceFact"}}},"required":["count","next","previous","results"]}}}},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/works/{id}/price-range":{"get":{"summary":"Faixa de preços de uma obra ao longo do tempo","description":"O menor e o maior preço que as edições publicadas da obra têm, por tipo de preço e moeda, em degraus, do mais recente para o mais antigo. Cada degrau vale do seu `starts_at` até o próximo degrau do mesmo tipo e moeda. Ela conta os preços que `/v1/editions/{id}/prices` mostra. Um degrau começa onde um fato de preço de uma edição começa ou termina, e um degrau com a mesma faixa do anterior se junta a ele. `low` e `high` são nulos e `editions` é 0 quando nenhuma edição tem preço a partir daquele momento. No máximo os 1.000 degraus mais recentes. Um valor de filtro inválido responde 422 com o nome do campo, e uma obra desconhecida responde 404. Uma obra juntada a outra responde 301 com a faixa de preços da obra que ficou.","operationId":"get_work_price_range","tags":["Obras","Preços"],"parameters":[{"name":"id","in":"path","required":true,"description":"O id da obra.","schema":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"}},{"name":"price_type","in":"query","required":false,"description":"Um tipo de preço da lista 58 do ONIX, como `02` para o preço de venda sugerido com impostos. Sem ele, todos os tipos. Um valor desconhecido responde 422.","schema":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","11","12","13","14","15","17","21","22","23","24","25","27","31","32","33","34","35","36","37","41","42"],"x-enum-descriptions":{"01":"RRP excluding tax","02":"RRP including tax","03":"FRP excluding tax","04":"FRP including tax","05":"Supplier's Net price excluding tax","06":"Supplier's Net price excluding tax: rental goods","07":"Supplier's Net price including tax","08":"Supplier's alternative Net price excluding tax","09":"Supplier's alternative net price including tax","11":"Special sale RRP excluding tax","12":"Special sale RRP including tax","13":"Special sale fixed retail price excluding tax","14":"Special sale fixed retail price including tax","15":"Supplier's net price for special sale excluding tax","17":"Supplier's net price for special sale including tax","21":"Pre-publication RRP excluding tax","22":"Pre-publication RRP including tax","23":"Pre-publication fixed retail price excluding tax","24":"Pre-publication fixed retail price including tax","25":"Supplier's pre-publication net price excluding tax","27":"Supplier's pre-publication net price including tax","31":"Freight-pass-through RRP excluding tax","32":"Freight-pass-through billing price excluding tax","33":"Importer's Fixed retail price excluding tax","34":"Importer's Fixed retail price including tax","35":"Nominal gratis copy value for customs purposes, excluding tax","36":"Nominal value for claims purposes, excluding tax","37":"Nominal value for customs purposes, excluding tax","41":"Publishers retail price excluding tax","42":"Publishers retail price including tax"}},"example":"02"},{"name":"basis","in":"query","required":false,"description":"De onde vem o preço: `mpb_announced`, o preço que a editora anunciou no ONIX, ou `mpb_retailer_list`, o preço de lista de um varejista. Sem ele, os dois. Um valor desconhecido responde 422.","schema":{"type":"string","enum":["mpb_announced","mpb_retailer_list"],"description":"mpb_announced, the publisher's announced price, or mpb_retailer_list, a retailer's list price."},"example":"mpb_announced"}],"responses":{"200":{"description":"The steps of the range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkPriceRange"}}}},"301":{"description":"A merge retired the id; location names the survivor's path"},"404":{"description":"Unknown or malformed id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A query value the codec refuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParamInvalid"}}}},"503":{"description":"The database did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string","description":"Machine code: NotFound, DatabaseUnavailable, QueryTimedOut (a search ran past its statement timeout), MethodNotAllowed or SearchWindowExceeded."}},"required":["error"]},"QueryParamInvalid":{"type":"object","properties":{"error":{"type":"string","enum":["QueryParamInvalid"]},"field":{"type":"string","description":"The query key the API refused."},"code":{"type":"string","description":"Why, never the submitted value."}},"required":["error","field","code"]},"CodeEntry":{"type":"object","properties":{"code":{"type":"string","description":"The code list value, upper-case as issued.","example":"B06"},"name":{"type":"string","description":"The English label the code list issues.","example":"Translated by"}},"required":["code","name"],"description":"One entry of a Ledger code list."},"Work":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"original_title":{"type":"string"},"slug":{"type":"string","description":"URL slug. Lowercase alphanumeric and hyphens, max 255 characters.","example":"meu-produto-exemplo"},"original_language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"first_published_year":{"oneOf":[{"type":"integer"},{"type":"null"}]},"genre":{"oneOf":[{"type":"string","enum":["novel","short_stories","poetry","essay","childrens","comics","nonfiction"],"description":"The curated Genre label a Work carries."},{"type":"null"}]},"synopsis":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"body":{"type":"string","description":"Portable Text JSON, as a string"}},"required":["language","body"]},"description":"The synopsis of the Edition synopsis_edition names: the first published Edition that holds one."},"synopsis_edition":{"oneOf":[{"type":"string","description":"Ledger Edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},{"type":"null"}],"description":"The Edition whose publisher wrote the synopsis, null when no published Edition holds one."},"credits":{"type":"array","items":{"type":"object","properties":{"person":{"type":"string","description":"Ledger Person identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"role":{"type":"string","enum":["A01","A02","A03","A04","A05","A06","A07","A08","A09","A10","A11","A12","A13","A14","A15","A16","A17","A18","A19","A20","A21","A22","A23","A24","A25","A26","A27","A28","A29","A30","A31","A32","A33","A34","A35","A36","A37","A38","A39","A40","A41","A42","A43","A44","A45","A46","A47","A48","A49","A50","A51","A52","A56","A99","B01","B02","B03","B04","B05","B06","B07","B08","B09","B10","B11","B12","B13","B14","B15","B16","B17","B18","B19","B20","B21","B22","B23","B24","B25","B26","B27","B28","B29","B30","B31","B32","B33","B34","B35","B36","B99","C01","C02","C03","C04","C99","D01","D02","D03","D04","D99","E01","E02","E03","E04","E05","E06","E07","E08","E09","E10","E11","E99","F01","F02","F99","Z01","Z02","Z03","Z04","Z05","Z06","Z98","Z99"],"x-enum-descriptions":{"A01":"By (author)","A02":"With","A03":"Screenplay by","A04":"Libretto by","A05":"Lyrics by","A06":"By (composer)","A07":"By (artist)","A08":"By (photographer)","A09":"Created by","A10":"From an idea by","A11":"Designed by","A12":"Illustrated by","A13":"Photographs by","A14":"Text by","A15":"Preface by","A16":"Prologue by","A17":"Summary by","A18":"Supplement by","A19":"Afterword by","A20":"Notes by","A21":"Commentaries by","A22":"Epilogue by","A23":"Foreword by","A24":"Introduction by","A25":"Footnotes by","A26":"Memoir by","A27":"Experiments by","A28":"Interpreted through","A29":"Introduction and notes by","A30":"Software written by","A31":"Book and lyrics by","A32":"Contributions by","A33":"Appendix by","A34":"Index by","A35":"Drawings by","A36":"Cover design or artwork by","A37":"Preliminary work by","A38":"Original author","A39":"Maps by","A40":"Inked or colored by","A41":"Paper engineering by","A42":"Continued by","A43":"Interviewer","A44":"Interviewee","A45":"Comic script by","A46":"Inker","A47":"Colorist","A48":"Letterer","A49":"Cover inker","A50":"Cover colorist","A51":"Research by","A52":"Original character design","A56":"Cover graphic design by","A99":"Other primary creator","B01":"Edited by","B02":"Revised by","B03":"Retold by","B04":"Abridged by","B05":"Adapted by","B06":"Translated by","B07":"As told by","B08":"Translated with commentary by","B09":"Series edited by","B10":"Edited and translated by","B11":"Editor-in-chief","B12":"Guest editor","B13":"Volume editor","B14":"Editorial board member","B15":"Editorial coordination by","B16":"Managing editor","B17":"Founded by","B18":"Prepared for publication by","B19":"Associate editor","B20":"Consultant editor","B21":"General editor","B22":"Dramatized by","B23":"General rapporteur","B24":"Literary editor","B25":"Arranged by (music)","B26":"Technical editor","B27":"Thesis advisor or supervisor","B28":"Thesis examiner","B29":"Scientific editor","B30":"Historical advisor","B31":"Original editor","B32":"Translation revised by","B33":"Transcribed by","B34":"Sensitivity reader / editor","B35":"Image descriptions by","B36":"Text modernized or updated by","B99":"Other adaptation by","C01":"Compiled by","C02":"Selected by","C03":"Non-text material selected by","C04":"Curated by","C99":"Other compilation by","D01":"Producer","D02":"Director","D03":"Conductor","D04":"Choreographer","D99":"Other direction by","E01":"Actor","E02":"Dancer","E03":"Narrator","E04":"Commentator","E05":"Vocal soloist","E06":"Instrumental soloist","E07":"Read by","E08":"Performed by (orchestra, band, ensemble)","E09":"Speaker","E10":"Presenter","E11":"Introduction read by","E99":"Performed by","F01":"Filmed / photographed by","F02":"Editor (film or video)","F99":"Other recording by","Z01":"Assisted by","Z02":"Honored / dedicated to","Z03":"Enacting jurisdiction","Z04":"Peer reviewed","Z05":"Posthumously completed by","Z06":"In association with","Z98":"(Various roles)","Z99":"Other"}},"sequence":{"type":"integer"}},"required":["person","name","role","sequence"]}},"publishers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"description":"The Organizations that publish the Work's published Editions, directly or through an Imprint they own, the earliest Edition's first, at most 5. A reader of an older Ledger takes an empty list."},"translated_into":{"type":"array","items":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"}},"available_languages":{"type":"array","items":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"}},"working_titles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Working title identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"work":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"title":{"type":"string"},"mark":{"type":"string","enum":["provisional"]},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["id","work","language","title","mark","source","publication_state"]}},"cover":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]},{"type":"null"}]},"translated_cover":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]},{"type":"null"}]},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."},"brazilian_basis":{"type":"array","items":{"type":"string","enum":["bb_original_language","bb_author"],"x-enum-descriptions":{"bb_original_language":"Portuguese as the original language","bb_author":"An Author who is a Brazilian Person"}},"description":"Why the Work is in the Brazilian scope, empty when it is not."}},"required":["id","original_title","slug","original_language","first_published_year","genre","synopsis","synopsis_edition","credits","publishers","translated_into","available_languages","working_titles","cover","translated_cover","source","publication_state","brazilian_basis"]},"WorkEditions":{"type":"object","properties":{"work":{"$ref":"#/components/schemas/Work"},"editions":{"type":"array","items":{"$ref":"#/components/schemas/Edition"},"description":"The Work's published Editions, oldest first, at most 20."}},"required":["work","editions"]},"WorkFacets":{"type":"object","properties":{"basis":{"type":"object","properties":{"kind":{"type":"string","enum":["exact","at_least"],"description":"exact: n rows matched. at_least: n or more matched; the list stops at the window of 10000 rows."},"n":{"type":"integer"}},"required":["kind","n"],"description":"The set the counts were taken over. Under at_least each count is a lower bound."},"languages":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"count":{"type":"integer"}},"required":["code","count"]}},"genres":{"type":"array","items":{"type":"object","properties":{"genre":{"type":"string","enum":["novel","short_stories","poetry","essay","childrens","comics","nonfiction"],"description":"The curated Genre label a Work carries."},"count":{"type":"integer"}},"required":["genre","count"]}},"statuses":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["00","01","02","03","04","05","06","07","08","09","10","11","12","13","15","16","17","18"],"x-enum-descriptions":{"00":"Unspecified","01":"Cancelled","02":"Forthcoming","03":"Postponed indefinitely","04":"Active","05":"No longer our product","06":"Out of stock indefinitely","07":"Out of print","08":"Inactive","09":"Unknown","10":"Remaindered","11":"Withdrawn from sale","12":"Recalled (deprecated)","13":"Active, but not sold separately","15":"Recalled","16":"Temporarily withdrawn from sale","17":"Permanently withdrawn from sale","18":"Active, but not sold as set"}},"count":{"type":"integer"}},"required":["status","count"]}}},"required":["basis","languages","genres","statuses"]},"WorkMerge":{"type":"object","properties":{"retired":{"type":"string","description":"The retired Work id.","example":"550e8400-e29b-71d4-a716-446655440000"},"survivor":{"type":"string","description":"The id the retired one redirects to, always one step.","example":"550e8400-e29b-71d4-a716-446655440000"},"merged_at":{"type":"string","description":"When the merge ran, as the Ledger prints a timestamp."}},"required":["retired","survivor","merged_at"],"description":"A retired Work and the id it redirects to."},"Edition":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"work":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"work_title":{"type":"string"},"title":{"type":"string"},"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"territory":{"type":"object","properties":{"region":{"oneOf":[{"type":"string","description":"ONIX List 49 region code.","example":"WORLD"},{"type":"null"}]},"country":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},{"type":"null"}]}},"required":["region","country"],"description":"Exactly one of region (ONIX List 49) or country."},"year":{"oneOf":[{"type":"integer"},{"type":"null"}]},"publisher":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"imprint":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"series":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Ledger Collection identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"position":{"oneOf":[{"type":"integer","minimum":0,"maximum":2147483647,"description":"The place of the Edition in its Serie editorial."},{"type":"null"}]}},"required":["id","name","position"]},{"type":"null"}],"description":"The Serie editorial, while it and its Organization are published."},"isbn":{"oneOf":[{"type":"string","description":"ISBN (International Standard Book Number). 10 or 13 digits, normalized to ISBN-13.","example":"978-0-306-40615-7"},{"type":"null"}]},"publishing_status":{"type":"string","enum":["00","01","02","03","04","05","06","07","08","09","10","11","12","13","15","16","17","18"],"x-enum-descriptions":{"00":"Unspecified","01":"Cancelled","02":"Forthcoming","03":"Postponed indefinitely","04":"Active","05":"No longer our product","06":"Out of stock indefinitely","07":"Out of print","08":"Inactive","09":"Unknown","10":"Remaindered","11":"Withdrawn from sale","12":"Recalled (deprecated)","13":"Active, but not sold separately","15":"Recalled","16":"Temporarily withdrawn from sale","17":"Permanently withdrawn from sale","18":"Active, but not sold as set"}},"kind":{"type":"string","description":"ek_original or ek_translation (derived)."},"reissue_of":{"oneOf":[{"type":"string","description":"Ledger Edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},{"type":"null"}]},"credits":{"type":"array","items":{"type":"object","properties":{"person":{"type":"string","description":"Ledger Person identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"role":{"type":"string","enum":["A01","A02","A03","A04","A05","A06","A07","A08","A09","A10","A11","A12","A13","A14","A15","A16","A17","A18","A19","A20","A21","A22","A23","A24","A25","A26","A27","A28","A29","A30","A31","A32","A33","A34","A35","A36","A37","A38","A39","A40","A41","A42","A43","A44","A45","A46","A47","A48","A49","A50","A51","A52","A56","A99","B01","B02","B03","B04","B05","B06","B07","B08","B09","B10","B11","B12","B13","B14","B15","B16","B17","B18","B19","B20","B21","B22","B23","B24","B25","B26","B27","B28","B29","B30","B31","B32","B33","B34","B35","B36","B99","C01","C02","C03","C04","C99","D01","D02","D03","D04","D99","E01","E02","E03","E04","E05","E06","E07","E08","E09","E10","E11","E99","F01","F02","F99","Z01","Z02","Z03","Z04","Z05","Z06","Z98","Z99"],"x-enum-descriptions":{"A01":"By (author)","A02":"With","A03":"Screenplay by","A04":"Libretto by","A05":"Lyrics by","A06":"By (composer)","A07":"By (artist)","A08":"By (photographer)","A09":"Created by","A10":"From an idea by","A11":"Designed by","A12":"Illustrated by","A13":"Photographs by","A14":"Text by","A15":"Preface by","A16":"Prologue by","A17":"Summary by","A18":"Supplement by","A19":"Afterword by","A20":"Notes by","A21":"Commentaries by","A22":"Epilogue by","A23":"Foreword by","A24":"Introduction by","A25":"Footnotes by","A26":"Memoir by","A27":"Experiments by","A28":"Interpreted through","A29":"Introduction and notes by","A30":"Software written by","A31":"Book and lyrics by","A32":"Contributions by","A33":"Appendix by","A34":"Index by","A35":"Drawings by","A36":"Cover design or artwork by","A37":"Preliminary work by","A38":"Original author","A39":"Maps by","A40":"Inked or colored by","A41":"Paper engineering by","A42":"Continued by","A43":"Interviewer","A44":"Interviewee","A45":"Comic script by","A46":"Inker","A47":"Colorist","A48":"Letterer","A49":"Cover inker","A50":"Cover colorist","A51":"Research by","A52":"Original character design","A56":"Cover graphic design by","A99":"Other primary creator","B01":"Edited by","B02":"Revised by","B03":"Retold by","B04":"Abridged by","B05":"Adapted by","B06":"Translated by","B07":"As told by","B08":"Translated with commentary by","B09":"Series edited by","B10":"Edited and translated by","B11":"Editor-in-chief","B12":"Guest editor","B13":"Volume editor","B14":"Editorial board member","B15":"Editorial coordination by","B16":"Managing editor","B17":"Founded by","B18":"Prepared for publication by","B19":"Associate editor","B20":"Consultant editor","B21":"General editor","B22":"Dramatized by","B23":"General rapporteur","B24":"Literary editor","B25":"Arranged by (music)","B26":"Technical editor","B27":"Thesis advisor or supervisor","B28":"Thesis examiner","B29":"Scientific editor","B30":"Historical advisor","B31":"Original editor","B32":"Translation revised by","B33":"Transcribed by","B34":"Sensitivity reader / editor","B35":"Image descriptions by","B36":"Text modernized or updated by","B99":"Other adaptation by","C01":"Compiled by","C02":"Selected by","C03":"Non-text material selected by","C04":"Curated by","C99":"Other compilation by","D01":"Producer","D02":"Director","D03":"Conductor","D04":"Choreographer","D99":"Other direction by","E01":"Actor","E02":"Dancer","E03":"Narrator","E04":"Commentator","E05":"Vocal soloist","E06":"Instrumental soloist","E07":"Read by","E08":"Performed by (orchestra, band, ensemble)","E09":"Speaker","E10":"Presenter","E11":"Introduction read by","E99":"Performed by","F01":"Filmed / photographed by","F02":"Editor (film or video)","F99":"Other recording by","Z01":"Assisted by","Z02":"Honored / dedicated to","Z03":"Enacting jurisdiction","Z04":"Peer reviewed","Z05":"Posthumously completed by","Z06":"In association with","Z98":"(Various roles)","Z99":"Other"}},"sequence":{"type":"integer"}},"required":["person","name","role","sequence"]}},"grant_support":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Grant support identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"grant":{"type":"string","description":"Ledger Grant identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"grant_name":{"type":"string"},"round":{"oneOf":[{"type":"string"},{"type":"null"}]},"year":{"oneOf":[{"type":"integer"},{"type":"null"}]},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["id","grant","grant_name","round","year","source","publication_state"]}},"identifiers":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string","enum":["is_isni","is_viaf","is_orcid","is_wikidata","is_cnpj","is_gln","is_san","is_isbn"],"description":"An external id scheme. is_isbn is read from the Edition only."},"value":{"type":"string"}},"required":["scheme","value"]}},"images":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]}},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."},"product_form":{"oneOf":[{"type":"string","enum":["00","AA","AB","AC","AD","AE","AF","AG","AH","AI","AJ","AK","AL","AM","AN","AO","AZ","BA","BB","BC","BD","BE","BF","BG","BH","BI","BJ","BK","BL","BM","BN","BO","BP","BZ","CA","CB","CC","CD","CE","CZ","DA","DB","DC","DE","DF","DI","DJ","DK","DL","DM","DN","DO","DZ","EA","EB","EC","ED","FA","FC","FD","FE","FF","FZ","LA","LB","LC","MA","MB","MC","MZ","PA","PB","PC","PD","PE","PF","PG","PH","PI","PJ","PK","PL","PM","PN","PO","PP","PQ","PR","PS","PT","PU","PV","PZ","SA","SB","SC","SD","SE","SF","SG","SH","VA","VF","VI","VJ","VK","VL","VM","VN","VO","VP","VQ","VZ","XA","XB","XC","XD","XE","XF","XG","XH","XI","XJ","XK","XL","XM","XN","XO","XY","XZ","ZA","ZB","ZC","ZD","ZE","ZF","ZG","ZH","ZI","ZJ","ZK","ZL","ZM","ZN","ZO","ZP","ZX","ZY","ZZ"],"x-enum-descriptions":{"00":"Undefined","AA":"Audio","AB":"Audio cassette","AC":"CD-Audio","AD":"DAT","AE":"Audio disc","AF":"Audio tape","AG":"MiniDisc","AH":"CD-Extra","AI":"DVD Audio","AJ":"Downloadable audio file","AK":"Pre-recorded digital audio player","AL":"Pre-recorded SD card","AM":"LP","AN":"Downloadable and online / streamed audio file","AO":"Online / streamed audio file","AZ":"Other audio format","BA":"Book","BB":"Hardback","BC":"Paperback / softback","BD":"Loose-leaf","BE":"Spiral bound","BF":"Pamphlet","BG":"Leather / fine binding","BH":"Board book","BI":"Rag book","BJ":"Bath book","BK":"Novelty book","BL":"Slide bound","BM":"Big book","BN":"Part-work (fascículo)","BO":"Fold-out book or chart","BP":"Foam book","BZ":"Other book format","CA":"Sheet map","CB":"Sheet map, folded","CC":"Sheet map, flat","CD":"Sheet map, rolled","CE":"Globe","CZ":"Other cartographic","DA":"Digital (on physical carrier)","DB":"CD-ROM","DC":"CD-I","DE":"Game cartridge","DF":"Diskette","DI":"DVD-ROM","DJ":"Secure Digital (SD) Memory Card","DK":"Compact Flash Memory Card","DL":"Memory Stick Memory Card","DM":"USB Flash Drive","DN":"Double-sided CD / DVD","DO":"BR-ROM","DZ":"Other digital carrier","EA":"Digital (delivered electronically)","EB":"Digital download and online / streamed","EC":"Digital online / streamed","ED":"Digital download","FA":"Film or transparency","FC":"Slides","FD":"OHP transparencies","FE":"Filmstrip","FF":"Film","FZ":"Other film or transparency format","LA":"Digital product license","LB":"Digital product license key","LC":"Digital product license code","MA":"Microform","MB":"Microfiche","MC":"Microfilm","MZ":"Other microform","PA":"Miscellaneous print","PB":"Address book","PC":"Calendar","PD":"Cards","PE":"Copymasters","PF":"Diary or journal","PG":"Frieze","PH":"Kit","PI":"Sheet music","PJ":"Postcard book or pack","PK":"Poster","PL":"Record book","PM":"Wallet or folder","PN":"Pictures or photographs","PO":"Wallchart","PP":"Stickers","PQ":"Plate (lámina)","PR":"Notebook / blank book","PS":"Organizer","PT":"Bookmark","PU":"Leaflet","PV":"Book plates","PZ":"Other printed item","SA":"Multiple-component retail product","SB":"Multiple-component retail product, boxed","SC":"Multiple-component retail product, slip-cased","SD":"Multiple-component retail product, shrink-wrapped","SE":"Multiple-component retail product, loose","SF":"Multiple-component retail product, part(s) enclosed","SG":"Multiple-component retail product, entirely digital","SH":"Multiple-component retail product, partly digital","VA":"Video","VF":"Videodisc","VI":"DVD video","VJ":"VHS video","VK":"Betamax video","VL":"VCD","VM":"SVCD","VN":"HD DVD","VO":"Blu-ray","VP":"UMD Video","VQ":"CBHD","VZ":"Other video format","XA":"Trade-only material","XB":"Dumpbin – empty","XC":"Dumpbin – filled","XD":"Counterpack – empty","XE":"Counterpack – filled","XF":"Poster, promotional","XG":"Shelf strip","XH":"Window piece","XI":"Streamer","XJ":"Spinner – empty","XK":"Large book display","XL":"Shrink-wrapped pack","XM":"Boxed pack","XN":"Pack (outer packaging unspecified)","XO":"Spinner – filled","XY":"Other point of sale – including retail product","XZ":"Other point of sale","ZA":"General merchandise","ZB":"Doll or figure","ZC":"Soft toy","ZD":"Toy","ZE":"Game","ZF":"T-shirt","ZG":"E-book reader","ZH":"Tablet computer","ZI":"Audiobook player","ZJ":"Jigsaw","ZK":"Mug","ZL":"Tote bag","ZM":"Tableware","ZN":"Umbrella","ZO":"Paints, crayons, pencils","ZP":"Handicraft kit","ZX":"Other toy / game accessories","ZY":"Other apparel","ZZ":"Other merchandise"}},{"type":"null"}]},"edition_number":{"oneOf":[{"type":"integer","description":"Positive integer (> 0).","example":1},{"type":"null"}]},"availability":{"oneOf":[{"type":"string","enum":["01","09","10","11","12","20","21","22","23","30","31","32","33","34","40","41","42","43","44","45","46","47","48","49","50","51","52","97","98","99"],"x-enum-descriptions":{"01":"Cancelled","09":"Not yet available, postponed indefinitely","10":"Not yet available","11":"Awaiting stock","12":"Not yet available, will be POD","20":"Available","21":"In stock","22":"To order","23":"POD","30":"Temporarily unavailable","31":"Out of stock","32":"Reprinting","33":"Awaiting reissue","34":"Temporarily withdrawn from sale","40":"Not available (reason unspecified)","41":"Not available, replaced by new product","42":"Not available, other format available","43":"No longer supplied by the supplier","44":"Apply direct","45":"Not sold separately","46":"Withdrawn from sale","47":"Remaindered","48":"Not available, replaced by POD","49":"Recalled","50":"Not sold as set","51":"Not available, publisher indicates OP","52":"Not available, publisher no longer sells product in this market","97":"No recent update received","98":"No longer receiving updates","99":"Contact supplier"}},{"type":"null"}]},"publishing_dates":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","description":"ONIX publishing date role code (ONIX List 163).","example":"01"},"date":{"type":"string","description":"Date in YYYY-MM-DD format (ISO 8601).","example":"2026-01-15","format":"date"},"precision":{"type":"string","enum":["dp_day","dp_month","dp_year"],"description":"How much of the day is known."}},"required":["role","date","precision"]}}},"required":["id","work","work_title","title","language","territory","year","publisher","imprint","series","isbn","publishing_status","kind","reissue_of","credits","grant_support","identifiers","images","source","publication_state","product_form","edition_number","availability","publishing_dates"]},"EditionRecord":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"work":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"work_title":{"type":"string"},"title":{"type":"string"},"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"territory":{"type":"object","properties":{"region":{"oneOf":[{"type":"string","description":"ONIX List 49 region code.","example":"WORLD"},{"type":"null"}]},"country":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},{"type":"null"}]}},"required":["region","country"],"description":"Exactly one of region (ONIX List 49) or country."},"year":{"oneOf":[{"type":"integer"},{"type":"null"}]},"publisher":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"imprint":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"series":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Ledger Collection identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"position":{"oneOf":[{"type":"integer","minimum":0,"maximum":2147483647,"description":"The place of the Edition in its Serie editorial."},{"type":"null"}]}},"required":["id","name","position"]},{"type":"null"}],"description":"The Serie editorial, while it and its Organization are published."},"isbn":{"oneOf":[{"type":"string","description":"ISBN (International Standard Book Number). 10 or 13 digits, normalized to ISBN-13.","example":"978-0-306-40615-7"},{"type":"null"}]},"publishing_status":{"type":"string","enum":["00","01","02","03","04","05","06","07","08","09","10","11","12","13","15","16","17","18"],"x-enum-descriptions":{"00":"Unspecified","01":"Cancelled","02":"Forthcoming","03":"Postponed indefinitely","04":"Active","05":"No longer our product","06":"Out of stock indefinitely","07":"Out of print","08":"Inactive","09":"Unknown","10":"Remaindered","11":"Withdrawn from sale","12":"Recalled (deprecated)","13":"Active, but not sold separately","15":"Recalled","16":"Temporarily withdrawn from sale","17":"Permanently withdrawn from sale","18":"Active, but not sold as set"}},"kind":{"type":"string","description":"ek_original or ek_translation (derived)."},"reissue_of":{"oneOf":[{"type":"string","description":"Ledger Edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},{"type":"null"}]},"credits":{"type":"array","items":{"type":"object","properties":{"person":{"type":"string","description":"Ledger Person identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"role":{"type":"string","enum":["A01","A02","A03","A04","A05","A06","A07","A08","A09","A10","A11","A12","A13","A14","A15","A16","A17","A18","A19","A20","A21","A22","A23","A24","A25","A26","A27","A28","A29","A30","A31","A32","A33","A34","A35","A36","A37","A38","A39","A40","A41","A42","A43","A44","A45","A46","A47","A48","A49","A50","A51","A52","A56","A99","B01","B02","B03","B04","B05","B06","B07","B08","B09","B10","B11","B12","B13","B14","B15","B16","B17","B18","B19","B20","B21","B22","B23","B24","B25","B26","B27","B28","B29","B30","B31","B32","B33","B34","B35","B36","B99","C01","C02","C03","C04","C99","D01","D02","D03","D04","D99","E01","E02","E03","E04","E05","E06","E07","E08","E09","E10","E11","E99","F01","F02","F99","Z01","Z02","Z03","Z04","Z05","Z06","Z98","Z99"],"x-enum-descriptions":{"A01":"By (author)","A02":"With","A03":"Screenplay by","A04":"Libretto by","A05":"Lyrics by","A06":"By (composer)","A07":"By (artist)","A08":"By (photographer)","A09":"Created by","A10":"From an idea by","A11":"Designed by","A12":"Illustrated by","A13":"Photographs by","A14":"Text by","A15":"Preface by","A16":"Prologue by","A17":"Summary by","A18":"Supplement by","A19":"Afterword by","A20":"Notes by","A21":"Commentaries by","A22":"Epilogue by","A23":"Foreword by","A24":"Introduction by","A25":"Footnotes by","A26":"Memoir by","A27":"Experiments by","A28":"Interpreted through","A29":"Introduction and notes by","A30":"Software written by","A31":"Book and lyrics by","A32":"Contributions by","A33":"Appendix by","A34":"Index by","A35":"Drawings by","A36":"Cover design or artwork by","A37":"Preliminary work by","A38":"Original author","A39":"Maps by","A40":"Inked or colored by","A41":"Paper engineering by","A42":"Continued by","A43":"Interviewer","A44":"Interviewee","A45":"Comic script by","A46":"Inker","A47":"Colorist","A48":"Letterer","A49":"Cover inker","A50":"Cover colorist","A51":"Research by","A52":"Original character design","A56":"Cover graphic design by","A99":"Other primary creator","B01":"Edited by","B02":"Revised by","B03":"Retold by","B04":"Abridged by","B05":"Adapted by","B06":"Translated by","B07":"As told by","B08":"Translated with commentary by","B09":"Series edited by","B10":"Edited and translated by","B11":"Editor-in-chief","B12":"Guest editor","B13":"Volume editor","B14":"Editorial board member","B15":"Editorial coordination by","B16":"Managing editor","B17":"Founded by","B18":"Prepared for publication by","B19":"Associate editor","B20":"Consultant editor","B21":"General editor","B22":"Dramatized by","B23":"General rapporteur","B24":"Literary editor","B25":"Arranged by (music)","B26":"Technical editor","B27":"Thesis advisor or supervisor","B28":"Thesis examiner","B29":"Scientific editor","B30":"Historical advisor","B31":"Original editor","B32":"Translation revised by","B33":"Transcribed by","B34":"Sensitivity reader / editor","B35":"Image descriptions by","B36":"Text modernized or updated by","B99":"Other adaptation by","C01":"Compiled by","C02":"Selected by","C03":"Non-text material selected by","C04":"Curated by","C99":"Other compilation by","D01":"Producer","D02":"Director","D03":"Conductor","D04":"Choreographer","D99":"Other direction by","E01":"Actor","E02":"Dancer","E03":"Narrator","E04":"Commentator","E05":"Vocal soloist","E06":"Instrumental soloist","E07":"Read by","E08":"Performed by (orchestra, band, ensemble)","E09":"Speaker","E10":"Presenter","E11":"Introduction read by","E99":"Performed by","F01":"Filmed / photographed by","F02":"Editor (film or video)","F99":"Other recording by","Z01":"Assisted by","Z02":"Honored / dedicated to","Z03":"Enacting jurisdiction","Z04":"Peer reviewed","Z05":"Posthumously completed by","Z06":"In association with","Z98":"(Various roles)","Z99":"Other"}},"sequence":{"type":"integer"}},"required":["person","name","role","sequence"]}},"grant_support":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Grant support identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"grant":{"type":"string","description":"Ledger Grant identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"grant_name":{"type":"string"},"round":{"oneOf":[{"type":"string"},{"type":"null"}]},"year":{"oneOf":[{"type":"integer"},{"type":"null"}]},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["id","grant","grant_name","round","year","source","publication_state"]}},"identifiers":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string","enum":["is_isni","is_viaf","is_orcid","is_wikidata","is_cnpj","is_gln","is_san","is_isbn"],"description":"An external id scheme. is_isbn is read from the Edition only."},"value":{"type":"string"}},"required":["scheme","value"]}},"images":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]}},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."},"product_form":{"oneOf":[{"type":"string","enum":["00","AA","AB","AC","AD","AE","AF","AG","AH","AI","AJ","AK","AL","AM","AN","AO","AZ","BA","BB","BC","BD","BE","BF","BG","BH","BI","BJ","BK","BL","BM","BN","BO","BP","BZ","CA","CB","CC","CD","CE","CZ","DA","DB","DC","DE","DF","DI","DJ","DK","DL","DM","DN","DO","DZ","EA","EB","EC","ED","FA","FC","FD","FE","FF","FZ","LA","LB","LC","MA","MB","MC","MZ","PA","PB","PC","PD","PE","PF","PG","PH","PI","PJ","PK","PL","PM","PN","PO","PP","PQ","PR","PS","PT","PU","PV","PZ","SA","SB","SC","SD","SE","SF","SG","SH","VA","VF","VI","VJ","VK","VL","VM","VN","VO","VP","VQ","VZ","XA","XB","XC","XD","XE","XF","XG","XH","XI","XJ","XK","XL","XM","XN","XO","XY","XZ","ZA","ZB","ZC","ZD","ZE","ZF","ZG","ZH","ZI","ZJ","ZK","ZL","ZM","ZN","ZO","ZP","ZX","ZY","ZZ"],"x-enum-descriptions":{"00":"Undefined","AA":"Audio","AB":"Audio cassette","AC":"CD-Audio","AD":"DAT","AE":"Audio disc","AF":"Audio tape","AG":"MiniDisc","AH":"CD-Extra","AI":"DVD Audio","AJ":"Downloadable audio file","AK":"Pre-recorded digital audio player","AL":"Pre-recorded SD card","AM":"LP","AN":"Downloadable and online / streamed audio file","AO":"Online / streamed audio file","AZ":"Other audio format","BA":"Book","BB":"Hardback","BC":"Paperback / softback","BD":"Loose-leaf","BE":"Spiral bound","BF":"Pamphlet","BG":"Leather / fine binding","BH":"Board book","BI":"Rag book","BJ":"Bath book","BK":"Novelty book","BL":"Slide bound","BM":"Big book","BN":"Part-work (fascículo)","BO":"Fold-out book or chart","BP":"Foam book","BZ":"Other book format","CA":"Sheet map","CB":"Sheet map, folded","CC":"Sheet map, flat","CD":"Sheet map, rolled","CE":"Globe","CZ":"Other cartographic","DA":"Digital (on physical carrier)","DB":"CD-ROM","DC":"CD-I","DE":"Game cartridge","DF":"Diskette","DI":"DVD-ROM","DJ":"Secure Digital (SD) Memory Card","DK":"Compact Flash Memory Card","DL":"Memory Stick Memory Card","DM":"USB Flash Drive","DN":"Double-sided CD / DVD","DO":"BR-ROM","DZ":"Other digital carrier","EA":"Digital (delivered electronically)","EB":"Digital download and online / streamed","EC":"Digital online / streamed","ED":"Digital download","FA":"Film or transparency","FC":"Slides","FD":"OHP transparencies","FE":"Filmstrip","FF":"Film","FZ":"Other film or transparency format","LA":"Digital product license","LB":"Digital product license key","LC":"Digital product license code","MA":"Microform","MB":"Microfiche","MC":"Microfilm","MZ":"Other microform","PA":"Miscellaneous print","PB":"Address book","PC":"Calendar","PD":"Cards","PE":"Copymasters","PF":"Diary or journal","PG":"Frieze","PH":"Kit","PI":"Sheet music","PJ":"Postcard book or pack","PK":"Poster","PL":"Record book","PM":"Wallet or folder","PN":"Pictures or photographs","PO":"Wallchart","PP":"Stickers","PQ":"Plate (lámina)","PR":"Notebook / blank book","PS":"Organizer","PT":"Bookmark","PU":"Leaflet","PV":"Book plates","PZ":"Other printed item","SA":"Multiple-component retail product","SB":"Multiple-component retail product, boxed","SC":"Multiple-component retail product, slip-cased","SD":"Multiple-component retail product, shrink-wrapped","SE":"Multiple-component retail product, loose","SF":"Multiple-component retail product, part(s) enclosed","SG":"Multiple-component retail product, entirely digital","SH":"Multiple-component retail product, partly digital","VA":"Video","VF":"Videodisc","VI":"DVD video","VJ":"VHS video","VK":"Betamax video","VL":"VCD","VM":"SVCD","VN":"HD DVD","VO":"Blu-ray","VP":"UMD Video","VQ":"CBHD","VZ":"Other video format","XA":"Trade-only material","XB":"Dumpbin – empty","XC":"Dumpbin – filled","XD":"Counterpack – empty","XE":"Counterpack – filled","XF":"Poster, promotional","XG":"Shelf strip","XH":"Window piece","XI":"Streamer","XJ":"Spinner – empty","XK":"Large book display","XL":"Shrink-wrapped pack","XM":"Boxed pack","XN":"Pack (outer packaging unspecified)","XO":"Spinner – filled","XY":"Other point of sale – including retail product","XZ":"Other point of sale","ZA":"General merchandise","ZB":"Doll or figure","ZC":"Soft toy","ZD":"Toy","ZE":"Game","ZF":"T-shirt","ZG":"E-book reader","ZH":"Tablet computer","ZI":"Audiobook player","ZJ":"Jigsaw","ZK":"Mug","ZL":"Tote bag","ZM":"Tableware","ZN":"Umbrella","ZO":"Paints, crayons, pencils","ZP":"Handicraft kit","ZX":"Other toy / game accessories","ZY":"Other apparel","ZZ":"Other merchandise"}},{"type":"null"}]},"form_details":{"type":"array","items":{"type":"string","description":"ONIX product form detail code (ONIX List 175).","example":"B101"}},"edition_types":{"type":"array","items":{"type":"string","enum":["ABR","ACT","ADP","ALT","ANN","AVS","BLL","BLP","BRL","BUD","CMB","CRI","CSP","DGO","ENH","ENL","ETR","EXP","FAC","FST","HRE","ILL","INT","LTE","MCP","MDT","MLL","NED","NUM","PBO","PRB","REV","SCH","SIG","SMP","SPE","STU","TCH","UBR","ULP","UNN","UXP","VAR","VOR"],"x-enum-descriptions":{"ABR":"Abridged edition","ACT":"Acting edition","ADP":"Adapted edition","ALT":"Alternate","ANN":"Annotated edition","AVS":"Anniversary edition","BLL":"Bilingual edition","BLP":"Bilingual 'facing page' edition","BRL":"Braille edition","BUD":"Budget edition","CMB":"Combined volume","CRI":"Critical edition","CSP":"Coursepack","DGO":"Digital original","ENH":"Enhanced edition","ENL":"Enlarged edition","ETR":"Easy-to-read edition","EXP":"Expurgated edition","FAC":"Facsimile edition","FST":"Festschrift","HRE":"High readability edition","ILL":"Illustrated edition","INT":"International edition","LTE":"Large type / large print edition","MCP":"Microprint edition","MDT":"Media tie-in","MLL":"Multilingual edition","NED":"New edition","NUM":"Edition with numbered copies","PBO":"Paperback original","PRB":"Prebound edition","REV":"Revised edition","SCH":"School edition","SIG":"Signed edition","SMP":"Simplified language edition","SPE":"Special edition","STU":"Student edition","TCH":"Teacher's edition","UBR":"Unabridged edition","ULP":"Ultra large print edition","UNN":"Edition with unnumbered copies","UXP":"Unexpurgated edition","VAR":"Variorum edition","VOR":"Readaloud edition"}}},"edition_number":{"oneOf":[{"type":"integer","description":"Positive integer (> 0).","example":1},{"type":"null"}]},"availability":{"oneOf":[{"type":"string","enum":["01","09","10","11","12","20","21","22","23","30","31","32","33","34","40","41","42","43","44","45","46","47","48","49","50","51","52","97","98","99"],"x-enum-descriptions":{"01":"Cancelled","09":"Not yet available, postponed indefinitely","10":"Not yet available","11":"Awaiting stock","12":"Not yet available, will be POD","20":"Available","21":"In stock","22":"To order","23":"POD","30":"Temporarily unavailable","31":"Out of stock","32":"Reprinting","33":"Awaiting reissue","34":"Temporarily withdrawn from sale","40":"Not available (reason unspecified)","41":"Not available, replaced by new product","42":"Not available, other format available","43":"No longer supplied by the supplier","44":"Apply direct","45":"Not sold separately","46":"Withdrawn from sale","47":"Remaindered","48":"Not available, replaced by POD","49":"Recalled","50":"Not sold as set","51":"Not available, publisher indicates OP","52":"Not available, publisher no longer sells product in this market","97":"No recent update received","98":"No longer receiving updates","99":"Contact supplier"}},{"type":"null"}]},"cities_of_publication":{"type":"array","items":{"type":"string"}},"country_of_publication":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},{"type":"null"}]},"country_of_manufacture":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},{"type":"null"}]},"audiences":{"type":"array","items":{"type":"object","properties":{"type_code":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"],"x-enum-descriptions":{"01":"ONIX audience codes","02":"Proprietary audience scheme","03":"MPAA rating","04":"BBFC rating","05":"FSK rating","06":"BTLF audience code","07":"Electre audience code","08":"ANELE Tipo","09":"AVI","10":"USK rating","11":"AWS","12":"Schulform (deprecated)","13":"Bundesland (deprecated)","14":"Ausbildungsberuf (deprecated)","15":"Suomalainen kouluasteluokitus","16":"CBG age guidance","17":"BookData audience code","18":"AVI (revised)","19":"Lexile measure (deprecated)","20":"Fry Readability score (deprecated)","21":"Japanese Children's audience code","22":"ONIX Adult audience rating","23":"Common European Framework of Reference for Language Learning (CEFR)","24":"Korean Publication Ethics Commission rating","25":"IoE Book Band (deprecated)","26":"FSK Lehr-/Infoprogramm","27":"Intended audience language","28":"PEGI rating","29":"Gymnasieprogram","30":"ISCED 2011"}},"value":{"type":"string","description":"A List 28 code when type_code is 01."}},"required":["type_code","value"]}},"audience_description":{"oneOf":[{"type":"string"},{"type":"null"}]},"copublishers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"role":{"type":"string","enum":["01","02","03","04","05","06","07","09","10","11","12","13","14","15","16","17","18","19","21"],"x-enum-descriptions":{"01":"Publisher","02":"Co-publisher","03":"Sponsor","04":"Publisher of original-language version","05":"Host / distributor of electronic content","06":"Published for / on behalf of","07":"Published in association with","09":"New or acquiring publisher","10":"Publishing group","11":"Publisher of facsimile original","12":"Repackager of prebound edition","13":"Former publisher","14":"Publication funder","15":"Research funder","16":"Funding body","17":"Printer","18":"Binder","19":"Manufacturer","21":"Previous publisher"}}},"required":["id","name","role"]}},"suppliers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"role":{"type":"string","enum":["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15"],"x-enum-descriptions":{"00":"Unspecified","01":"Publisher to resellers","02":"Publisher's exclusive distributor to resellers","03":"Publisher's non-exclusive distributor to resellers","04":"Wholesaler to retailers","05":"Sales agent (deprecated)","06":"Publisher's distributor to retailers","07":"POD supplier","08":"Retailer","09":"Publisher to end-customers","10":"Exclusive distributor to end-customers","11":"Non-exclusive distributor to end-customers","12":"Distributor to end-customers","13":"Exclusive distributor to resellers and end-customers","14":"Non-exclusive distributor to resellers and end-customers","15":"Distributor to resellers and end-customers"}}},"required":["id","name","role"]}},"titles":{"type":"array","items":{"type":"object","properties":{"title_type":{"type":"string","description":"ONIX title type code (ONIX List 15).","example":"01"},"text":{"type":"string"},"subtitle":{"oneOf":[{"type":"string"},{"type":"null"}]},"part_number":{"oneOf":[{"type":"string"},{"type":"null"}]},"sequence":{"type":"integer"}},"required":["title_type","text","subtitle","part_number","sequence"]}},"subjects":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string","description":"ONIX subject scheme identifier code (ONIX List 27).","example":"93"},"code":{"oneOf":[{"type":"string"},{"type":"null"}]},"heading":{"oneOf":[{"type":"string"},{"type":"null"}]},"sequence":{"type":"integer"},"rank":{"type":"string","enum":["sr_main","sr_secondary"],"description":"Whether the feed flags the subject as the main one of its scheme."}},"required":["scheme","code","heading","sequence","rank"]}},"extents":{"type":"array","items":{"type":"object","properties":{"extent_type":{"type":"string","description":"ONIX extent type code (ONIX List 23).","example":"00"},"value":{"type":"integer"},"unit":{"type":"string","description":"ONIX extent unit code (ONIX List 24).","example":"03"}},"required":["extent_type","value","unit"]}},"measures":{"type":"array","items":{"type":"object","properties":{"measure_type":{"type":"string","description":"ONIX measure type code (ONIX List 48).","example":"01"},"measurement":{"type":"string","description":"Dimension value in display units. Max 1,000,000.","example":"25.4"},"unit":{"type":"string","description":"ONIX measure unit code (ONIX List 50).","example":"mm"}},"required":["measure_type","measurement","unit"]}},"publishing_dates":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","description":"ONIX publishing date role code (ONIX List 163).","example":"01"},"date":{"type":"string","description":"Date in YYYY-MM-DD format (ISO 8601).","example":"2026-01-15","format":"date"},"precision":{"type":"string","enum":["dp_day","dp_month","dp_year"],"description":"How much of the day is known."}},"required":["role","date","precision"]}},"languages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["01","02","03","06","07","08","09","10","11","12","13","14","15"],"x-enum-descriptions":{"01":"Language of text","02":"Original language of a translated text","03":"Language of abstracts","06":"Original language in a multilingual edition","07":"Translated language in a multilingual edition","08":"Language of audio track","09":"Language of subtitles","10":"Language of original audio track","11":"Original language audio track in a multilingual product","12":"Language of notes","13":"Language of introduction / end matter","14":"Target language of teaching / learning","15":"Additional vocabulary / text in this language"}},"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"}},"required":["role","language"]}},"related_products":{"type":"array","items":{"type":"object","properties":{"relation":{"type":"string","description":"ONIX product relation code (ONIX List 51).","example":"06"},"isbn":{"type":"string","description":"ISBN (International Standard Book Number). 10 or 13 digits, normalized to ISBN-13.","example":"978-0-306-40615-7"},"edition":{"oneOf":[{"type":"string","description":"Ledger Edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},{"type":"null"}]}},"required":["relation","isbn","edition"]}},"prices":{"type":"array","items":{"type":"object","properties":{"price_type":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","11","12","13","14","15","17","21","22","23","24","25","27","31","32","33","34","35","36","37","41","42"],"x-enum-descriptions":{"01":"RRP excluding tax","02":"RRP including tax","03":"FRP excluding tax","04":"FRP including tax","05":"Supplier's Net price excluding tax","06":"Supplier's Net price excluding tax: rental goods","07":"Supplier's Net price including tax","08":"Supplier's alternative Net price excluding tax","09":"Supplier's alternative net price including tax","11":"Special sale RRP excluding tax","12":"Special sale RRP including tax","13":"Special sale fixed retail price excluding tax","14":"Special sale fixed retail price including tax","15":"Supplier's net price for special sale excluding tax","17":"Supplier's net price for special sale including tax","21":"Pre-publication RRP excluding tax","22":"Pre-publication RRP including tax","23":"Pre-publication fixed retail price excluding tax","24":"Pre-publication fixed retail price including tax","25":"Supplier's pre-publication net price excluding tax","27":"Supplier's pre-publication net price including tax","31":"Freight-pass-through RRP excluding tax","32":"Freight-pass-through billing price excluding tax","33":"Importer's Fixed retail price excluding tax","34":"Importer's Fixed retail price including tax","35":"Nominal gratis copy value for customs purposes, excluding tax","36":"Nominal value for claims purposes, excluding tax","37":"Nominal value for customs purposes, excluding tax","41":"Publishers retail price excluding tax","42":"Publishers retail price including tax"}},"amount":{"type":"integer","description":"Minor units of the currency."},"currency":{"type":"string","description":"ISO 4217 currency code (ONIX List 96).","example":"BRL"},"tax":{"oneOf":[{"type":"object","properties":{"tax_type":{"type":"string","enum":["01","02","03"],"x-enum-descriptions":{"01":"Value-added tax","02":"Sales tax","03":"ECO"}},"rate_basis_points":{"type":"integer","description":"Hundredths of a percent: 7.00% is 700."}},"required":["tax_type","rate_basis_points"]},{"type":"null"}]}},"required":["price_type","amount","currency","tax"]}},"assets":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","99"],"x-enum-descriptions":{"01":"Front cover","02":"Back cover","03":"Cover / pack","04":"Contributor picture","05":"Collection image / artwork","06":"Collection logo","07":"Product image / artwork","08":"Product logo","09":"Publisher logo","10":"Imprint logo","11":"Contributor interview","12":"Contributor presentation","13":"Contributor reading","14":"Contributor event schedule","15":"Sample content","16":"Widget","17":"Review","18":"Commentary / discussion","19":"Reading group guide","20":"Teacher's guide","21":"Feature article","22":"Character 'interview'","23":"Wallpaper / screensaver","24":"Press release","25":"Table of contents","26":"Trailer","27":"Cover thumbnail","28":"Full content","29":"Full cover","30":"Master brand logo","31":"Description","32":"Index","33":"Student's guide","34":"Publisher's catalogue","35":"Online advertisement panel","36":"Online advertisement page","37":"Promotional event material","38":"Digital review copy","39":"Instructional material","40":"Errata","41":"Introduction","42":"Collection description","43":"Bibliography","44":"Abstract","45":"Cover holding image","46":"Rules or instructions","47":"Transcript","48":"Full cast and credit list","49":"Image for social media","50":"Supplementary learning resources","51":"Cover flap image","52":"Warning label","53":"Product safety contacts","54":"Page edge deco image","55":"Endpaper deco image","56":"Spine image","57":"Spine panorama image","99":"License"}},"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"mode":{"oneOf":[{"type":"string","enum":["01","02","03","04","05","06"],"x-enum-descriptions":{"01":"Application","02":"Audio","03":"Image","04":"Text","05":"Video","06":"Multi-mode"}},{"type":"null"}]},"audiences":{"type":"array","items":{"type":"string","enum":["00","01","02","03","04","05","06","07","08","09","10","11","12"],"x-enum-descriptions":{"00":"Unrestricted","01":"Restricted","02":"Booktrade","03":"End customers","04":"Librarians","05":"Teachers","06":"Students","07":"Press","08":"Shopping comparison service","09":"Search engine index","10":"Social media","11":"Children","12":"Teens"}}},"features":{"type":"array","items":{"type":"object","properties":{"feature_type":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","10"],"x-enum-descriptions":{"01":"File format","02":"Image height in pixels","03":"Image width in pixels","04":"Filename","05":"Approximate download file size in megabytes","06":"MD5 hash value","07":"Exact download file size in bytes","08":"SHA-256 hash value","09":"ISCC","10":"Previous filename"}},"value":{"type":"string"}},"required":["feature_type","value"]}},"last_updated":{"oneOf":[{"type":"string","description":"Date in YYYY-MM-DD format (ISO 8601).","example":"2026-01-15","format":"date"},{"type":"null"}]}},"required":["kind","url","mode","audiences","features","last_updated"]}},"synopsis":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"body":{"type":"string","description":"Portable Text JSON, as a string"}},"required":["language","body"]},"description":"The Edition's own synopsis, one row per language, as its publisher wrote it."},"latest_revision":{"type":"integer","description":"The newest revision number; the history is /v1/editions/{id}/revisions."}},"required":["id","work","work_title","title","language","territory","year","publisher","imprint","series","isbn","publishing_status","kind","reissue_of","credits","grant_support","identifiers","images","source","publication_state","product_form","form_details","edition_types","edition_number","availability","cities_of_publication","country_of_publication","country_of_manufacture","audiences","audience_description","copublishers","suppliers","titles","subjects","extents","measures","publishing_dates","languages","related_products","prices","assets","synopsis","latest_revision"]},"EditionRevision":{"type":"object","properties":{"revision":{"type":"integer"},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"created_at":{"type":"string"},"record":{"type":"object","properties":{"work":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"title":{"type":"string"},"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"territory":{"type":"object","properties":{"region":{"oneOf":[{"type":"string","description":"ONIX List 49 region code.","example":"WORLD"},{"type":"null"}]},"country":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},{"type":"null"}]}},"required":["region","country"],"description":"Exactly one of region (ONIX List 49) or country."},"publishing_dates":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","description":"ONIX publishing date role code (ONIX List 163).","example":"01"},"date":{"type":"string","description":"Date in YYYY-MM-DD format (ISO 8601).","example":"2026-01-15","format":"date"},"precision":{"type":"string","enum":["dp_day","dp_month","dp_year"],"description":"How much of the day is known."}},"required":["role","date","precision"]}},"publisher":{"oneOf":[{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},{"type":"null"}]},"imprint":{"oneOf":[{"type":"string","description":"Ledger Imprint identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},{"type":"null"}]},"collection":{"oneOf":[{"type":"string","description":"Ledger Collection identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},{"type":"null"}]},"collection_position":{"oneOf":[{"type":"integer","minimum":0,"maximum":2147483647,"description":"The place of the Edition in its Serie editorial."},{"type":"null"}]},"isbn":{"oneOf":[{"type":"string","description":"ISBN (International Standard Book Number). 10 or 13 digits, normalized to ISBN-13.","example":"978-0-306-40615-7"},{"type":"null"}]},"publishing_status":{"oneOf":[{"type":"string","enum":["00","01","02","03","04","05","06","07","08","09","10","11","12","13","15","16","17","18"],"x-enum-descriptions":{"00":"Unspecified","01":"Cancelled","02":"Forthcoming","03":"Postponed indefinitely","04":"Active","05":"No longer our product","06":"Out of stock indefinitely","07":"Out of print","08":"Inactive","09":"Unknown","10":"Remaindered","11":"Withdrawn from sale","12":"Recalled (deprecated)","13":"Active, but not sold separately","15":"Recalled","16":"Temporarily withdrawn from sale","17":"Permanently withdrawn from sale","18":"Active, but not sold as set"}},{"type":"null"}]},"reissue_of":{"oneOf":[{"type":"string","description":"Ledger Edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},{"type":"null"}]},"product_form":{"oneOf":[{"type":"string","enum":["00","AA","AB","AC","AD","AE","AF","AG","AH","AI","AJ","AK","AL","AM","AN","AO","AZ","BA","BB","BC","BD","BE","BF","BG","BH","BI","BJ","BK","BL","BM","BN","BO","BP","BZ","CA","CB","CC","CD","CE","CZ","DA","DB","DC","DE","DF","DI","DJ","DK","DL","DM","DN","DO","DZ","EA","EB","EC","ED","FA","FC","FD","FE","FF","FZ","LA","LB","LC","MA","MB","MC","MZ","PA","PB","PC","PD","PE","PF","PG","PH","PI","PJ","PK","PL","PM","PN","PO","PP","PQ","PR","PS","PT","PU","PV","PZ","SA","SB","SC","SD","SE","SF","SG","SH","VA","VF","VI","VJ","VK","VL","VM","VN","VO","VP","VQ","VZ","XA","XB","XC","XD","XE","XF","XG","XH","XI","XJ","XK","XL","XM","XN","XO","XY","XZ","ZA","ZB","ZC","ZD","ZE","ZF","ZG","ZH","ZI","ZJ","ZK","ZL","ZM","ZN","ZO","ZP","ZX","ZY","ZZ"],"x-enum-descriptions":{"00":"Undefined","AA":"Audio","AB":"Audio cassette","AC":"CD-Audio","AD":"DAT","AE":"Audio disc","AF":"Audio tape","AG":"MiniDisc","AH":"CD-Extra","AI":"DVD Audio","AJ":"Downloadable audio file","AK":"Pre-recorded digital audio player","AL":"Pre-recorded SD card","AM":"LP","AN":"Downloadable and online / streamed audio file","AO":"Online / streamed audio file","AZ":"Other audio format","BA":"Book","BB":"Hardback","BC":"Paperback / softback","BD":"Loose-leaf","BE":"Spiral bound","BF":"Pamphlet","BG":"Leather / fine binding","BH":"Board book","BI":"Rag book","BJ":"Bath book","BK":"Novelty book","BL":"Slide bound","BM":"Big book","BN":"Part-work (fascículo)","BO":"Fold-out book or chart","BP":"Foam book","BZ":"Other book format","CA":"Sheet map","CB":"Sheet map, folded","CC":"Sheet map, flat","CD":"Sheet map, rolled","CE":"Globe","CZ":"Other cartographic","DA":"Digital (on physical carrier)","DB":"CD-ROM","DC":"CD-I","DE":"Game cartridge","DF":"Diskette","DI":"DVD-ROM","DJ":"Secure Digital (SD) Memory Card","DK":"Compact Flash Memory Card","DL":"Memory Stick Memory Card","DM":"USB Flash Drive","DN":"Double-sided CD / DVD","DO":"BR-ROM","DZ":"Other digital carrier","EA":"Digital (delivered electronically)","EB":"Digital download and online / streamed","EC":"Digital online / streamed","ED":"Digital download","FA":"Film or transparency","FC":"Slides","FD":"OHP transparencies","FE":"Filmstrip","FF":"Film","FZ":"Other film or transparency format","LA":"Digital product license","LB":"Digital product license key","LC":"Digital product license code","MA":"Microform","MB":"Microfiche","MC":"Microfilm","MZ":"Other microform","PA":"Miscellaneous print","PB":"Address book","PC":"Calendar","PD":"Cards","PE":"Copymasters","PF":"Diary or journal","PG":"Frieze","PH":"Kit","PI":"Sheet music","PJ":"Postcard book or pack","PK":"Poster","PL":"Record book","PM":"Wallet or folder","PN":"Pictures or photographs","PO":"Wallchart","PP":"Stickers","PQ":"Plate (lámina)","PR":"Notebook / blank book","PS":"Organizer","PT":"Bookmark","PU":"Leaflet","PV":"Book plates","PZ":"Other printed item","SA":"Multiple-component retail product","SB":"Multiple-component retail product, boxed","SC":"Multiple-component retail product, slip-cased","SD":"Multiple-component retail product, shrink-wrapped","SE":"Multiple-component retail product, loose","SF":"Multiple-component retail product, part(s) enclosed","SG":"Multiple-component retail product, entirely digital","SH":"Multiple-component retail product, partly digital","VA":"Video","VF":"Videodisc","VI":"DVD video","VJ":"VHS video","VK":"Betamax video","VL":"VCD","VM":"SVCD","VN":"HD DVD","VO":"Blu-ray","VP":"UMD Video","VQ":"CBHD","VZ":"Other video format","XA":"Trade-only material","XB":"Dumpbin – empty","XC":"Dumpbin – filled","XD":"Counterpack – empty","XE":"Counterpack – filled","XF":"Poster, promotional","XG":"Shelf strip","XH":"Window piece","XI":"Streamer","XJ":"Spinner – empty","XK":"Large book display","XL":"Shrink-wrapped pack","XM":"Boxed pack","XN":"Pack (outer packaging unspecified)","XO":"Spinner – filled","XY":"Other point of sale – including retail product","XZ":"Other point of sale","ZA":"General merchandise","ZB":"Doll or figure","ZC":"Soft toy","ZD":"Toy","ZE":"Game","ZF":"T-shirt","ZG":"E-book reader","ZH":"Tablet computer","ZI":"Audiobook player","ZJ":"Jigsaw","ZK":"Mug","ZL":"Tote bag","ZM":"Tableware","ZN":"Umbrella","ZO":"Paints, crayons, pencils","ZP":"Handicraft kit","ZX":"Other toy / game accessories","ZY":"Other apparel","ZZ":"Other merchandise"}},{"type":"null"}]},"form_details":{"type":"array","items":{"type":"string","description":"ONIX product form detail code (ONIX List 175).","example":"B101"}},"edition_types":{"type":"array","items":{"type":"string","enum":["ABR","ACT","ADP","ALT","ANN","AVS","BLL","BLP","BRL","BUD","CMB","CRI","CSP","DGO","ENH","ENL","ETR","EXP","FAC","FST","HRE","ILL","INT","LTE","MCP","MDT","MLL","NED","NUM","PBO","PRB","REV","SCH","SIG","SMP","SPE","STU","TCH","UBR","ULP","UNN","UXP","VAR","VOR"],"x-enum-descriptions":{"ABR":"Abridged edition","ACT":"Acting edition","ADP":"Adapted edition","ALT":"Alternate","ANN":"Annotated edition","AVS":"Anniversary edition","BLL":"Bilingual edition","BLP":"Bilingual 'facing page' edition","BRL":"Braille edition","BUD":"Budget edition","CMB":"Combined volume","CRI":"Critical edition","CSP":"Coursepack","DGO":"Digital original","ENH":"Enhanced edition","ENL":"Enlarged edition","ETR":"Easy-to-read edition","EXP":"Expurgated edition","FAC":"Facsimile edition","FST":"Festschrift","HRE":"High readability edition","ILL":"Illustrated edition","INT":"International edition","LTE":"Large type / large print edition","MCP":"Microprint edition","MDT":"Media tie-in","MLL":"Multilingual edition","NED":"New edition","NUM":"Edition with numbered copies","PBO":"Paperback original","PRB":"Prebound edition","REV":"Revised edition","SCH":"School edition","SIG":"Signed edition","SMP":"Simplified language edition","SPE":"Special edition","STU":"Student edition","TCH":"Teacher's edition","UBR":"Unabridged edition","ULP":"Ultra large print edition","UNN":"Edition with unnumbered copies","UXP":"Unexpurgated edition","VAR":"Variorum edition","VOR":"Readaloud edition"}}},"edition_number":{"oneOf":[{"type":"integer","description":"Positive integer (> 0).","example":1},{"type":"null"}]},"availability":{"oneOf":[{"type":"string","enum":["01","09","10","11","12","20","21","22","23","30","31","32","33","34","40","41","42","43","44","45","46","47","48","49","50","51","52","97","98","99"],"x-enum-descriptions":{"01":"Cancelled","09":"Not yet available, postponed indefinitely","10":"Not yet available","11":"Awaiting stock","12":"Not yet available, will be POD","20":"Available","21":"In stock","22":"To order","23":"POD","30":"Temporarily unavailable","31":"Out of stock","32":"Reprinting","33":"Awaiting reissue","34":"Temporarily withdrawn from sale","40":"Not available (reason unspecified)","41":"Not available, replaced by new product","42":"Not available, other format available","43":"No longer supplied by the supplier","44":"Apply direct","45":"Not sold separately","46":"Withdrawn from sale","47":"Remaindered","48":"Not available, replaced by POD","49":"Recalled","50":"Not sold as set","51":"Not available, publisher indicates OP","52":"Not available, publisher no longer sells product in this market","97":"No recent update received","98":"No longer receiving updates","99":"Contact supplier"}},{"type":"null"}]},"cities_of_publication":{"type":"array","items":{"type":"string"}},"country_of_publication":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},{"type":"null"}]},"country_of_manufacture":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},{"type":"null"}]},"audiences":{"type":"array","items":{"type":"object","properties":{"type_code":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"],"x-enum-descriptions":{"01":"ONIX audience codes","02":"Proprietary audience scheme","03":"MPAA rating","04":"BBFC rating","05":"FSK rating","06":"BTLF audience code","07":"Electre audience code","08":"ANELE Tipo","09":"AVI","10":"USK rating","11":"AWS","12":"Schulform (deprecated)","13":"Bundesland (deprecated)","14":"Ausbildungsberuf (deprecated)","15":"Suomalainen kouluasteluokitus","16":"CBG age guidance","17":"BookData audience code","18":"AVI (revised)","19":"Lexile measure (deprecated)","20":"Fry Readability score (deprecated)","21":"Japanese Children's audience code","22":"ONIX Adult audience rating","23":"Common European Framework of Reference for Language Learning (CEFR)","24":"Korean Publication Ethics Commission rating","25":"IoE Book Band (deprecated)","26":"FSK Lehr-/Infoprogramm","27":"Intended audience language","28":"PEGI rating","29":"Gymnasieprogram","30":"ISCED 2011"}},"value":{"type":"string","description":"A List 28 code when type_code is 01."}},"required":["type_code","value"]}},"audience_description":{"oneOf":[{"type":"string"},{"type":"null"}]},"copublishers":{"type":"array","items":{"type":"object","properties":{"organization":{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"role":{"type":"string","enum":["01","02","03","04","05","06","07","09","10","11","12","13","14","15","16","17","18","19","21"],"x-enum-descriptions":{"01":"Publisher","02":"Co-publisher","03":"Sponsor","04":"Publisher of original-language version","05":"Host / distributor of electronic content","06":"Published for / on behalf of","07":"Published in association with","09":"New or acquiring publisher","10":"Publishing group","11":"Publisher of facsimile original","12":"Repackager of prebound edition","13":"Former publisher","14":"Publication funder","15":"Research funder","16":"Funding body","17":"Printer","18":"Binder","19":"Manufacturer","21":"Previous publisher"}}},"required":["organization","role"]}},"suppliers":{"type":"array","items":{"type":"object","properties":{"organization":{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"role":{"type":"string","enum":["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15"],"x-enum-descriptions":{"00":"Unspecified","01":"Publisher to resellers","02":"Publisher's exclusive distributor to resellers","03":"Publisher's non-exclusive distributor to resellers","04":"Wholesaler to retailers","05":"Sales agent (deprecated)","06":"Publisher's distributor to retailers","07":"POD supplier","08":"Retailer","09":"Publisher to end-customers","10":"Exclusive distributor to end-customers","11":"Non-exclusive distributor to end-customers","12":"Distributor to end-customers","13":"Exclusive distributor to resellers and end-customers","14":"Non-exclusive distributor to resellers and end-customers","15":"Distributor to resellers and end-customers"}}},"required":["organization","role"]}},"titles":{"type":"array","items":{"type":"object","properties":{"title_type":{"type":"string","description":"ONIX title type code (ONIX List 15).","example":"01"},"text":{"type":"string"},"subtitle":{"oneOf":[{"type":"string"},{"type":"null"}]},"part_number":{"oneOf":[{"type":"string"},{"type":"null"}]},"sequence":{"type":"integer"}},"required":["title_type","text","subtitle","part_number","sequence"]}},"subjects":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string","description":"ONIX subject scheme identifier code (ONIX List 27).","example":"93"},"code":{"oneOf":[{"type":"string"},{"type":"null"}]},"heading":{"oneOf":[{"type":"string"},{"type":"null"}]},"sequence":{"type":"integer"},"rank":{"type":"string","enum":["sr_main","sr_secondary"],"description":"Whether the feed flags the subject as the main one of its scheme."}},"required":["scheme","code","heading","sequence","rank"]}},"extents":{"type":"array","items":{"type":"object","properties":{"extent_type":{"type":"string","description":"ONIX extent type code (ONIX List 23).","example":"00"},"value":{"type":"integer"},"unit":{"type":"string","description":"ONIX extent unit code (ONIX List 24).","example":"03"}},"required":["extent_type","value","unit"]}},"measures":{"type":"array","items":{"type":"object","properties":{"measure_type":{"type":"string","description":"ONIX measure type code (ONIX List 48).","example":"01"},"measurement":{"type":"string","description":"Dimension value in display units. Max 1,000,000.","example":"25.4"},"unit":{"type":"string","description":"ONIX measure unit code (ONIX List 50).","example":"mm"}},"required":["measure_type","measurement","unit"]}},"languages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["01","02","03","06","07","08","09","10","11","12","13","14","15"],"x-enum-descriptions":{"01":"Language of text","02":"Original language of a translated text","03":"Language of abstracts","06":"Original language in a multilingual edition","07":"Translated language in a multilingual edition","08":"Language of audio track","09":"Language of subtitles","10":"Language of original audio track","11":"Original language audio track in a multilingual product","12":"Language of notes","13":"Language of introduction / end matter","14":"Target language of teaching / learning","15":"Additional vocabulary / text in this language"}},"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"}},"required":["role","language"]}},"related_products":{"type":"array","items":{"type":"object","properties":{"relation":{"type":"string","description":"ONIX product relation code (ONIX List 51).","example":"06"},"isbn":{"type":"string","description":"ISBN (International Standard Book Number). 10 or 13 digits, normalized to ISBN-13.","example":"978-0-306-40615-7"}},"required":["relation","isbn"]}},"prices":{"type":"array","items":{"type":"object","properties":{"price_type":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","11","12","13","14","15","17","21","22","23","24","25","27","31","32","33","34","35","36","37","41","42"],"x-enum-descriptions":{"01":"RRP excluding tax","02":"RRP including tax","03":"FRP excluding tax","04":"FRP including tax","05":"Supplier's Net price excluding tax","06":"Supplier's Net price excluding tax: rental goods","07":"Supplier's Net price including tax","08":"Supplier's alternative Net price excluding tax","09":"Supplier's alternative net price including tax","11":"Special sale RRP excluding tax","12":"Special sale RRP including tax","13":"Special sale fixed retail price excluding tax","14":"Special sale fixed retail price including tax","15":"Supplier's net price for special sale excluding tax","17":"Supplier's net price for special sale including tax","21":"Pre-publication RRP excluding tax","22":"Pre-publication RRP including tax","23":"Pre-publication fixed retail price excluding tax","24":"Pre-publication fixed retail price including tax","25":"Supplier's pre-publication net price excluding tax","27":"Supplier's pre-publication net price including tax","31":"Freight-pass-through RRP excluding tax","32":"Freight-pass-through billing price excluding tax","33":"Importer's Fixed retail price excluding tax","34":"Importer's Fixed retail price including tax","35":"Nominal gratis copy value for customs purposes, excluding tax","36":"Nominal value for claims purposes, excluding tax","37":"Nominal value for customs purposes, excluding tax","41":"Publishers retail price excluding tax","42":"Publishers retail price including tax"}},"amount":{"type":"integer","description":"Minor units of the currency."},"currency":{"type":"string","description":"ISO 4217 currency code (ONIX List 96).","example":"BRL"},"tax":{"oneOf":[{"type":"object","properties":{"tax_type":{"type":"string","enum":["01","02","03"],"x-enum-descriptions":{"01":"Value-added tax","02":"Sales tax","03":"ECO"}},"rate_basis_points":{"type":"integer","description":"Hundredths of a percent: 7.00% is 700."}},"required":["tax_type","rate_basis_points"]},{"type":"null"}]}},"required":["price_type","amount","currency","tax"]}},"assets":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","99"],"x-enum-descriptions":{"01":"Front cover","02":"Back cover","03":"Cover / pack","04":"Contributor picture","05":"Collection image / artwork","06":"Collection logo","07":"Product image / artwork","08":"Product logo","09":"Publisher logo","10":"Imprint logo","11":"Contributor interview","12":"Contributor presentation","13":"Contributor reading","14":"Contributor event schedule","15":"Sample content","16":"Widget","17":"Review","18":"Commentary / discussion","19":"Reading group guide","20":"Teacher's guide","21":"Feature article","22":"Character 'interview'","23":"Wallpaper / screensaver","24":"Press release","25":"Table of contents","26":"Trailer","27":"Cover thumbnail","28":"Full content","29":"Full cover","30":"Master brand logo","31":"Description","32":"Index","33":"Student's guide","34":"Publisher's catalogue","35":"Online advertisement panel","36":"Online advertisement page","37":"Promotional event material","38":"Digital review copy","39":"Instructional material","40":"Errata","41":"Introduction","42":"Collection description","43":"Bibliography","44":"Abstract","45":"Cover holding image","46":"Rules or instructions","47":"Transcript","48":"Full cast and credit list","49":"Image for social media","50":"Supplementary learning resources","51":"Cover flap image","52":"Warning label","53":"Product safety contacts","54":"Page edge deco image","55":"Endpaper deco image","56":"Spine image","57":"Spine panorama image","99":"License"}},"path":{"type":"string","description":"The object key under the image base."},"mode":{"oneOf":[{"type":"string","enum":["01","02","03","04","05","06"],"x-enum-descriptions":{"01":"Application","02":"Audio","03":"Image","04":"Text","05":"Video","06":"Multi-mode"}},{"type":"null"}]},"audiences":{"type":"array","items":{"type":"string","enum":["00","01","02","03","04","05","06","07","08","09","10","11","12"],"x-enum-descriptions":{"00":"Unrestricted","01":"Restricted","02":"Booktrade","03":"End customers","04":"Librarians","05":"Teachers","06":"Students","07":"Press","08":"Shopping comparison service","09":"Search engine index","10":"Social media","11":"Children","12":"Teens"}}},"features":{"type":"array","items":{"type":"object","properties":{"feature_type":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","10"],"x-enum-descriptions":{"01":"File format","02":"Image height in pixels","03":"Image width in pixels","04":"Filename","05":"Approximate download file size in megabytes","06":"MD5 hash value","07":"Exact download file size in bytes","08":"SHA-256 hash value","09":"ISCC","10":"Previous filename"}},"value":{"type":"string"}},"required":["feature_type","value"]}},"last_updated":{"oneOf":[{"type":"string","description":"Date in YYYY-MM-DD format (ISO 8601).","example":"2026-01-15","format":"date"},{"type":"null"}]}},"required":["kind","path","mode","audiences","features","last_updated"]}},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["work","title","language","territory","publishing_dates","publisher","imprint","collection","collection_position","isbn","publishing_status","reissue_of","product_form","form_details","edition_types","edition_number","availability","cities_of_publication","country_of_publication","country_of_manufacture","audiences","audience_description","copublishers","suppliers","titles","subjects","extents","measures","languages","related_products","prices","assets","publication_state"]}},"required":["revision","source","created_at","record"],"description":"One write to an Edition. Revisions are immutable and numbered from 1."},"RightsRecord":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Rights record identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"work":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"work_title":{"type":"string"},"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"territory":{"type":"object","properties":{"region":{"oneOf":[{"type":"string","description":"ONIX List 49 region code.","example":"WORLD"},{"type":"null"}]},"country":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},{"type":"null"}]}},"required":["region","country"],"description":"Exactly one of region (ONIX List 49) or country."},"status":{"type":"string","enum":["rs_sold","rs_available","rs_optioned","rs_reverted","rs_unknown"],"description":"Rights status; silence is rs_unknown, never rs_available."},"holder":{"type":"object","properties":{"organization":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"person":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]}},"required":["organization","person"],"description":"Exactly one of organization (a Publisher or Agency) or person (the Author)."},"buyer":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"sold_year":{"oneOf":[{"type":"integer"},{"type":"null"}]},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["id","work","work_title","language","territory","status","holder","buyer","sold_year","source","publication_state"]},"SampleTranslation":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Sample translation identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"work":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"translator":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Person identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"role":{"type":"string","enum":["A01","A02","A03","A04","A05","A06","A07","A08","A09","A10","A11","A12","A13","A14","A15","A16","A17","A18","A19","A20","A21","A22","A23","A24","A25","A26","A27","A28","A29","A30","A31","A32","A33","A34","A35","A36","A37","A38","A39","A40","A41","A42","A43","A44","A45","A46","A47","A48","A49","A50","A51","A52","A56","A99","B01","B02","B03","B04","B05","B06","B07","B08","B09","B10","B11","B12","B13","B14","B15","B16","B17","B18","B19","B20","B21","B22","B23","B24","B25","B26","B27","B28","B29","B30","B31","B32","B33","B34","B35","B36","B99","C01","C02","C03","C04","C99","D01","D02","D03","D04","D99","E01","E02","E03","E04","E05","E06","E07","E08","E09","E10","E11","E99","F01","F02","F99","Z01","Z02","Z03","Z04","Z05","Z06","Z98","Z99"],"x-enum-descriptions":{"A01":"By (author)","A02":"With","A03":"Screenplay by","A04":"Libretto by","A05":"Lyrics by","A06":"By (composer)","A07":"By (artist)","A08":"By (photographer)","A09":"Created by","A10":"From an idea by","A11":"Designed by","A12":"Illustrated by","A13":"Photographs by","A14":"Text by","A15":"Preface by","A16":"Prologue by","A17":"Summary by","A18":"Supplement by","A19":"Afterword by","A20":"Notes by","A21":"Commentaries by","A22":"Epilogue by","A23":"Foreword by","A24":"Introduction by","A25":"Footnotes by","A26":"Memoir by","A27":"Experiments by","A28":"Interpreted through","A29":"Introduction and notes by","A30":"Software written by","A31":"Book and lyrics by","A32":"Contributions by","A33":"Appendix by","A34":"Index by","A35":"Drawings by","A36":"Cover design or artwork by","A37":"Preliminary work by","A38":"Original author","A39":"Maps by","A40":"Inked or colored by","A41":"Paper engineering by","A42":"Continued by","A43":"Interviewer","A44":"Interviewee","A45":"Comic script by","A46":"Inker","A47":"Colorist","A48":"Letterer","A49":"Cover inker","A50":"Cover colorist","A51":"Research by","A52":"Original character design","A56":"Cover graphic design by","A99":"Other primary creator","B01":"Edited by","B02":"Revised by","B03":"Retold by","B04":"Abridged by","B05":"Adapted by","B06":"Translated by","B07":"As told by","B08":"Translated with commentary by","B09":"Series edited by","B10":"Edited and translated by","B11":"Editor-in-chief","B12":"Guest editor","B13":"Volume editor","B14":"Editorial board member","B15":"Editorial coordination by","B16":"Managing editor","B17":"Founded by","B18":"Prepared for publication by","B19":"Associate editor","B20":"Consultant editor","B21":"General editor","B22":"Dramatized by","B23":"General rapporteur","B24":"Literary editor","B25":"Arranged by (music)","B26":"Technical editor","B27":"Thesis advisor or supervisor","B28":"Thesis examiner","B29":"Scientific editor","B30":"Historical advisor","B31":"Original editor","B32":"Translation revised by","B33":"Transcribed by","B34":"Sensitivity reader / editor","B35":"Image descriptions by","B36":"Text modernized or updated by","B99":"Other adaptation by","C01":"Compiled by","C02":"Selected by","C03":"Non-text material selected by","C04":"Curated by","C99":"Other compilation by","D01":"Producer","D02":"Director","D03":"Conductor","D04":"Choreographer","D99":"Other direction by","E01":"Actor","E02":"Dancer","E03":"Narrator","E04":"Commentator","E05":"Vocal soloist","E06":"Instrumental soloist","E07":"Read by","E08":"Performed by (orchestra, band, ensemble)","E09":"Speaker","E10":"Presenter","E11":"Introduction read by","E99":"Performed by","F01":"Filmed / photographed by","F02":"Editor (film or video)","F99":"Other recording by","Z01":"Assisted by","Z02":"Honored / dedicated to","Z03":"Enacting jurisdiction","Z04":"Peer reviewed","Z05":"Posthumously completed by","Z06":"In association with","Z98":"(Various roles)","Z99":"Other"}}},"required":["id","name","role"]},"year":{"oneOf":[{"type":"integer"},{"type":"null"}]},"grant_support":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Grant support identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"grant":{"type":"string","description":"Ledger Grant identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"grant_name":{"type":"string"},"round":{"oneOf":[{"type":"string"},{"type":"null"}]},"year":{"oneOf":[{"type":"integer"},{"type":"null"}]},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["id","grant","grant_name","round","year","source","publication_state"]}},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["id","work","language","translator","year","grant_support","source","publication_state"]},"PressMention":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Press mention identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"work":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"outlet":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"}},"required":["id","name"]},"title":{"type":"string"},"url":{"oneOf":[{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},{"type":"null"}]},"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"published_on":{"type":"string"},"quote":{"oneOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["id","work","outlet","title","url","language","published_on","quote","source","publication_state"]},"Organization":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Organization identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"slug":{"type":"string","description":"URL slug. Lowercase alphanumeric and hyphens, max 255 characters.","example":"meu-produto-exemplo"},"short_name":{"oneOf":[{"type":"string"},{"type":"null"}]},"country":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},{"type":"null"}]},"profiles":{"type":"array","items":{"type":"string","description":"Profile kind: pk_publisher, pk_agency, pk_prize_body, pk_fair_organizer, pk_press_outlet, pk_bookstore or pk_distributor."}},"bookstore_profiles":{"type":"array","items":{"type":"string","description":"Bookstore kind: bk_independent, bk_chain or bk_online."}},"imprints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Imprint identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"image":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]},{"type":"null"}]},"edition_count":{"type":"integer","description":"The published Editions /v1/imprints/{id}/editions lists."},"series_count":{"type":"integer","description":"The published Series of the Imprint."}},"required":["id","name","image","edition_count","series_count"]}},"identifiers":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string","enum":["is_isni","is_viaf","is_orcid","is_wikidata","is_cnpj","is_gln","is_san","is_isbn"],"description":"An external id scheme. is_isbn is read from the Edition only."},"value":{"type":"string"}},"required":["scheme","value"]}},"social":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","description":"Social platform: sp_website, sp_instagram, sp_x, sp_facebook, sp_youtube, sp_tiktok, sp_linkedin, sp_bluesky, sp_threads, sp_mastodon or sp_other."},"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"}},"required":["platform","url"]},"description":"The public links, ordered by platform."},"edition_count":{"type":"integer"},"series_count":{"type":"integer","description":"The published Series /v1/organizations/{id}/series lists."},"copublished_count":{"type":"integer","description":"The published Editions /v1/organizations/{id}/editions?role=copublisher lists."},"image":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]},{"type":"null"}],"description":"The logo."},"images":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]},"description":"The gallery: every published picture at position 1 or later, in position order. The logo is image."},"description":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"body":{"type":"string","description":"Portable Text JSON, as a string"}},"required":["language","body"]},"description":"One Portable Text body per language."},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["id","name","slug","short_name","country","profiles","bookstore_profiles","imprints","identifiers","social","edition_count","series_count","copublished_count","image","images","description","source","publication_state"]},"OrganizationMerge":{"type":"object","properties":{"retired":{"type":"string","description":"The retired Organization id, or the folded Imprint id.","format":"uuid"},"survivor":{"type":"string","description":"The id the retired one redirects to, always one step.","format":"uuid"},"kind":{"type":"string","enum":["omk_organization","omk_imprint"]},"merged_at":{"type":"string","description":"When the merge ran, as the Ledger prints a timestamp."}},"required":["retired","survivor","kind","merged_at"],"description":"A retired Organization or folded Imprint and the id it redirects to."},"Series":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Collection identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"subtitle":{"oneOf":[{"type":"string"},{"type":"null"}]},"slug":{"type":"string","description":"URL slug. Lowercase alphanumeric and hyphens, max 255 characters.","example":"meu-produto-exemplo"},"imprint":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}],"description":"The Imprint, while it is published."},"issn":{"oneOf":[{"type":"string","description":"ISSN: seven digits and their ISO 3297 check character, a digit or X, no hyphen.","example":"03178471"},{"type":"null"}]},"edition_count":{"type":"integer","description":"The published Editions in the Serie."}},"required":["id","name","subtitle","slug","imprint","issn","edition_count"]},"Imprint":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Imprint identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"image":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]},{"type":"null"}],"description":"The logo."},"publisher":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"description":"The Organization that owns the Imprint."},"edition_count":{"type":"integer","description":"The published Editions /v1/imprints/{id}/editions lists."},"series_count":{"type":"integer","description":"The published Series of the Imprint."}},"required":["id","name","image","publisher","edition_count","series_count"]},"Translator":{"type":"object","properties":{"person":{"type":"string","description":"Ledger Person identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"languages":{"type":"array","items":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"}},"edition_count":{"type":"integer"}},"required":["person","name","languages","edition_count"]},"Lookup":{"type":"object","properties":{"kind":{"type":"string","enum":["person","organization","edition"]},"id":{"type":"string"}},"required":["kind","id"]},"Event":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Event identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"organizer":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"editions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Event edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"event":{"type":"string","description":"Ledger Event identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"year":{"type":"integer"},"city":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Ledger City identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},"province":{"oneOf":[{"type":"string","description":"Brazilian state code (UF). 2 uppercase letters.","example":"SP"},{"type":"null"}]}},"required":["id","name","country","province"]},{"type":"null"}]},"country":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},{"type":"null"}]},"activities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Activity identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"event_edition":{"type":"string","description":"Ledger Event edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"title":{"type":"string"},"kind":{"type":"string","enum":["ak_panel","ak_reading","ak_lecture","ak_signing","ak_roundtable","ak_workshop","ak_launch","ak_other"],"description":"What kind of session an Activity is."},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["id","event_edition","title","kind","source","publication_state"]}},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."},"name":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The edition's own name when it has one, as Bienal do Livro 2026."},"number":{"oneOf":[{"type":"integer"},{"type":"null"}],"description":"The ordinal: 72 for the 72nd edition."},"starts_on":{"oneOf":[{"type":"string","description":"Date in YYYY-MM-DD format (ISO 8601).","example":"2026-01-15","format":"date"},{"type":"null"}]},"ends_on":{"oneOf":[{"type":"string","description":"Date in YYYY-MM-DD format (ISO 8601).","example":"2026-01-15","format":"date"},{"type":"null"}]},"venue":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The name of the place it ran at."},"description":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"body":{"type":"string","description":"Portable Text JSON, as a string"}},"required":["language","body"]},"description":"One Portable Text body per language."},"images":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]}}},"required":["id","event","year","city","country","activities","source","publication_state","name","number","starts_on","ends_on","venue","description","images"]}},"images":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]}},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."},"kind":{"type":"string","enum":["ek_fair","ek_festival","ek_conference","ek_meetup","ek_launch","ek_other"],"description":"What kind of Event it is: a fair, festival, conference, meetup, launch or other."},"description":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"body":{"type":"string","description":"Portable Text JSON, as a string"}},"required":["language","body"]},"description":"One Portable Text body per language."}},"required":["id","name","organizer","editions","images","source","publication_state","kind","description"]},"EventMerge":{"type":"object","properties":{"retired":{"type":"string","description":"The retired Event id.","example":"550e8400-e29b-71d4-a716-446655440000"},"survivor":{"type":"string","description":"The id the retired one redirects to, always one step.","example":"550e8400-e29b-71d4-a716-446655440000"},"merged_at":{"type":"string","description":"When the merge ran, as the Ledger prints a timestamp."}},"required":["retired","survivor","merged_at"],"description":"A retired Event and the id it redirects to."},"Prize":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Prize identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"prize_body":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"editions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Prize edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"prize":{"type":"string","description":"Ledger Prize identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"year":{"type":"integer"},"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Prize category identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"prize_edition":{"type":"string","description":"Ledger Prize edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Prize result identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"prize_category":{"type":"string","description":"Ledger Prize category identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["prk_winner","prk_shortlist","prk_longlist","prk_honourable_mention","prk_nominated","prk_placed","prk_honorary"],"description":"Where a Prize result placed in its Category."},"target":{"type":"object","properties":{"work":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"edition":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"work":{"oneOf":[{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},{"type":"null"}],"description":"The published Work of the Edition."}},"required":["id","name","work"]},{"type":"null"}]},"person":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]}},"required":["work","edition","person"],"description":"Exactly one of work, edition or person the result attaches to."},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."},"position":{"oneOf":[{"type":"integer"},{"type":"null"}],"description":"The place of a pzk_placed result, from 1; null for the others."},"note":{"oneOf":[{"type":"string"},{"type":"null"}]}},"required":["id","prize_category","kind","target","source","publication_state","position","note"]}},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."},"position":{"type":"integer","description":"The order of the Category in its edition."},"description":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"body":{"type":"string","description":"Portable Text JSON, as a string"}},"required":["language","body"]}}},"required":["id","prize_edition","name","results","source","publication_state","position","description"]}},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."},"name":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The edition's own name, such as an ordinal; null when it has none."},"status":{"type":"string","enum":["pes_announced","pes_open","pes_extended","pes_closed","pes_cancelled"],"description":"Where the Prize edition stands; a past edition is pes_closed."},"opens_on":{"oneOf":[{"type":"string","description":"Date in YYYY-MM-DD format (ISO 8601).","example":"2026-01-15","format":"date"},{"type":"null"}]},"deadline_on":{"oneOf":[{"type":"string","description":"Date in YYYY-MM-DD format (ISO 8601).","example":"2026-01-15","format":"date"},{"type":"null"}]},"announced_on":{"oneOf":[{"type":"string","description":"Date in YYYY-MM-DD format (ISO 8601).","example":"2026-01-15","format":"date"},{"type":"null"}]},"description":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"body":{"type":"string","description":"Portable Text JSON, as a string"}},"required":["language","body"]}}},"required":["id","prize","year","categories","source","publication_state","name","status","opens_on","deadline_on","announced_on","description"]}},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."},"kind":{"type":"string","enum":["pzk_award","pzk_medal","pzk_seal","pzk_academy_seat","pzk_residency","pzk_fellowship","pzk_honorary_title"],"description":"What the Prize is: pzk_award, pzk_medal (a medal or an order), pzk_seal, pzk_academy_seat, pzk_residency, pzk_fellowship or pzk_honorary_title."},"promoters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"description":"The published Organizations that promote the Prize beside its body."},"countries":{"type":"array","items":{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},"description":"The countries the Prize admits; empty when none is known."},"languages":{"type":"array","items":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"description":"The languages the Prize admits; empty when none is known."},"genres":{"type":"array","items":{"type":"string","enum":["novel","short_stories","poetry","essay","childrens","comics","nonfiction"],"description":"The curated Genre label a Work carries."},"description":"The Genres the Prize admits; empty when none is known."},"description":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"body":{"type":"string","description":"Portable Text JSON, as a string"}},"required":["language","body"]}},"images":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]}}},"required":["id","name","prize_body","editions","source","publication_state","kind","promoters","countries","languages","genres","description","images"]},"PrizeMerge":{"type":"object","properties":{"retired":{"type":"string","description":"The retired Prize id.","example":"550e8400-e29b-71d4-a716-446655440000"},"survivor":{"type":"string","description":"The id the retired one redirects to, always one step.","example":"550e8400-e29b-71d4-a716-446655440000"},"merged_at":{"type":"string","description":"When the merge ran, as the Ledger prints a timestamp."}},"required":["retired","survivor","merged_at"],"description":"A retired Prize and the id it redirects to."},"Grant":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Grant identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"funder":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["id","name","funder","source","publication_state"]},"Person":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Person identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"reduced_name":{"oneOf":[{"type":"string"},{"type":"null"}]},"slug":{"type":"string","description":"URL slug. Lowercase alphanumeric and hyphens, max 255 characters.","example":"meu-produto-exemplo"},"birth":{"oneOf":[{"type":"object","properties":{"date":{"type":"string","description":"ISO day; padded to the precision"},"precision":{"type":"string","enum":["dp_day","dp_month","dp_year"],"description":"How much of the day is known."}},"required":["date","precision"]},{"type":"null"}]},"death":{"oneOf":[{"type":"object","properties":{"date":{"type":"string","description":"ISO day; padded to the precision"},"precision":{"type":"string","enum":["dp_day","dp_month","dp_year"],"description":"How much of the day is known."}},"required":["date","precision"]},{"type":"null"}]},"birth_place":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Ledger City identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},"province":{"oneOf":[{"type":"string","description":"Brazilian state code (UF). 2 uppercase letters.","example":"SP"},{"type":"null"}]}},"required":["id","name","country","province"]},{"type":"null"}]},"death_place":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Ledger City identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},"province":{"oneOf":[{"type":"string","description":"Brazilian state code (UF). 2 uppercase letters.","example":"SP"},{"type":"null"}]}},"required":["id","name","country","province"]},{"type":"null"}]},"nationalities":{"type":"array","items":{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"}},"languages":{"type":"array","items":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"}},"biography":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string","description":"ISO 639-2/B language code (ONIX Codelist 74), e.g. \"por\", \"eng\", \"spa\"","example":"por"},"body":{"type":"string","description":"Portable Text JSON, as a string"}},"required":["language","body"]}},"credits":{"type":"array","items":{"type":"object","properties":{"work":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"title":{"type":"string"},"slug":{"type":"string","description":"URL slug. Lowercase alphanumeric and hyphens, max 255 characters.","example":"meu-produto-exemplo"},"role":{"type":"string","enum":["A01","A02","A03","A04","A05","A06","A07","A08","A09","A10","A11","A12","A13","A14","A15","A16","A17","A18","A19","A20","A21","A22","A23","A24","A25","A26","A27","A28","A29","A30","A31","A32","A33","A34","A35","A36","A37","A38","A39","A40","A41","A42","A43","A44","A45","A46","A47","A48","A49","A50","A51","A52","A56","A99","B01","B02","B03","B04","B05","B06","B07","B08","B09","B10","B11","B12","B13","B14","B15","B16","B17","B18","B19","B20","B21","B22","B23","B24","B25","B26","B27","B28","B29","B30","B31","B32","B33","B34","B35","B36","B99","C01","C02","C03","C04","C99","D01","D02","D03","D04","D99","E01","E02","E03","E04","E05","E06","E07","E08","E09","E10","E11","E99","F01","F02","F99","Z01","Z02","Z03","Z04","Z05","Z06","Z98","Z99"],"x-enum-descriptions":{"A01":"By (author)","A02":"With","A03":"Screenplay by","A04":"Libretto by","A05":"Lyrics by","A06":"By (composer)","A07":"By (artist)","A08":"By (photographer)","A09":"Created by","A10":"From an idea by","A11":"Designed by","A12":"Illustrated by","A13":"Photographs by","A14":"Text by","A15":"Preface by","A16":"Prologue by","A17":"Summary by","A18":"Supplement by","A19":"Afterword by","A20":"Notes by","A21":"Commentaries by","A22":"Epilogue by","A23":"Foreword by","A24":"Introduction by","A25":"Footnotes by","A26":"Memoir by","A27":"Experiments by","A28":"Interpreted through","A29":"Introduction and notes by","A30":"Software written by","A31":"Book and lyrics by","A32":"Contributions by","A33":"Appendix by","A34":"Index by","A35":"Drawings by","A36":"Cover design or artwork by","A37":"Preliminary work by","A38":"Original author","A39":"Maps by","A40":"Inked or colored by","A41":"Paper engineering by","A42":"Continued by","A43":"Interviewer","A44":"Interviewee","A45":"Comic script by","A46":"Inker","A47":"Colorist","A48":"Letterer","A49":"Cover inker","A50":"Cover colorist","A51":"Research by","A52":"Original character design","A56":"Cover graphic design by","A99":"Other primary creator","B01":"Edited by","B02":"Revised by","B03":"Retold by","B04":"Abridged by","B05":"Adapted by","B06":"Translated by","B07":"As told by","B08":"Translated with commentary by","B09":"Series edited by","B10":"Edited and translated by","B11":"Editor-in-chief","B12":"Guest editor","B13":"Volume editor","B14":"Editorial board member","B15":"Editorial coordination by","B16":"Managing editor","B17":"Founded by","B18":"Prepared for publication by","B19":"Associate editor","B20":"Consultant editor","B21":"General editor","B22":"Dramatized by","B23":"General rapporteur","B24":"Literary editor","B25":"Arranged by (music)","B26":"Technical editor","B27":"Thesis advisor or supervisor","B28":"Thesis examiner","B29":"Scientific editor","B30":"Historical advisor","B31":"Original editor","B32":"Translation revised by","B33":"Transcribed by","B34":"Sensitivity reader / editor","B35":"Image descriptions by","B36":"Text modernized or updated by","B99":"Other adaptation by","C01":"Compiled by","C02":"Selected by","C03":"Non-text material selected by","C04":"Curated by","C99":"Other compilation by","D01":"Producer","D02":"Director","D03":"Conductor","D04":"Choreographer","D99":"Other direction by","E01":"Actor","E02":"Dancer","E03":"Narrator","E04":"Commentator","E05":"Vocal soloist","E06":"Instrumental soloist","E07":"Read by","E08":"Performed by (orchestra, band, ensemble)","E09":"Speaker","E10":"Presenter","E11":"Introduction read by","E99":"Performed by","F01":"Filmed / photographed by","F02":"Editor (film or video)","F99":"Other recording by","Z01":"Assisted by","Z02":"Honored / dedicated to","Z03":"Enacting jurisdiction","Z04":"Peer reviewed","Z05":"Posthumously completed by","Z06":"In association with","Z98":"(Various roles)","Z99":"Other"}},"sequence":{"type":"integer"},"cover":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]},{"type":"null"}]}},"required":["work","title","slug","role","sequence","cover"]}},"credit_counts":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["A01","A02","A03","A04","A05","A06","A07","A08","A09","A10","A11","A12","A13","A14","A15","A16","A17","A18","A19","A20","A21","A22","A23","A24","A25","A26","A27","A28","A29","A30","A31","A32","A33","A34","A35","A36","A37","A38","A39","A40","A41","A42","A43","A44","A45","A46","A47","A48","A49","A50","A51","A52","A56","A99","B01","B02","B03","B04","B05","B06","B07","B08","B09","B10","B11","B12","B13","B14","B15","B16","B17","B18","B19","B20","B21","B22","B23","B24","B25","B26","B27","B28","B29","B30","B31","B32","B33","B34","B35","B36","B99","C01","C02","C03","C04","C99","D01","D02","D03","D04","D99","E01","E02","E03","E04","E05","E06","E07","E08","E09","E10","E11","E99","F01","F02","F99","Z01","Z02","Z03","Z04","Z05","Z06","Z98","Z99"],"x-enum-descriptions":{"A01":"By (author)","A02":"With","A03":"Screenplay by","A04":"Libretto by","A05":"Lyrics by","A06":"By (composer)","A07":"By (artist)","A08":"By (photographer)","A09":"Created by","A10":"From an idea by","A11":"Designed by","A12":"Illustrated by","A13":"Photographs by","A14":"Text by","A15":"Preface by","A16":"Prologue by","A17":"Summary by","A18":"Supplement by","A19":"Afterword by","A20":"Notes by","A21":"Commentaries by","A22":"Epilogue by","A23":"Foreword by","A24":"Introduction by","A25":"Footnotes by","A26":"Memoir by","A27":"Experiments by","A28":"Interpreted through","A29":"Introduction and notes by","A30":"Software written by","A31":"Book and lyrics by","A32":"Contributions by","A33":"Appendix by","A34":"Index by","A35":"Drawings by","A36":"Cover design or artwork by","A37":"Preliminary work by","A38":"Original author","A39":"Maps by","A40":"Inked or colored by","A41":"Paper engineering by","A42":"Continued by","A43":"Interviewer","A44":"Interviewee","A45":"Comic script by","A46":"Inker","A47":"Colorist","A48":"Letterer","A49":"Cover inker","A50":"Cover colorist","A51":"Research by","A52":"Original character design","A56":"Cover graphic design by","A99":"Other primary creator","B01":"Edited by","B02":"Revised by","B03":"Retold by","B04":"Abridged by","B05":"Adapted by","B06":"Translated by","B07":"As told by","B08":"Translated with commentary by","B09":"Series edited by","B10":"Edited and translated by","B11":"Editor-in-chief","B12":"Guest editor","B13":"Volume editor","B14":"Editorial board member","B15":"Editorial coordination by","B16":"Managing editor","B17":"Founded by","B18":"Prepared for publication by","B19":"Associate editor","B20":"Consultant editor","B21":"General editor","B22":"Dramatized by","B23":"General rapporteur","B24":"Literary editor","B25":"Arranged by (music)","B26":"Technical editor","B27":"Thesis advisor or supervisor","B28":"Thesis examiner","B29":"Scientific editor","B30":"Historical advisor","B31":"Original editor","B32":"Translation revised by","B33":"Transcribed by","B34":"Sensitivity reader / editor","B35":"Image descriptions by","B36":"Text modernized or updated by","B99":"Other adaptation by","C01":"Compiled by","C02":"Selected by","C03":"Non-text material selected by","C04":"Curated by","C99":"Other compilation by","D01":"Producer","D02":"Director","D03":"Conductor","D04":"Choreographer","D99":"Other direction by","E01":"Actor","E02":"Dancer","E03":"Narrator","E04":"Commentator","E05":"Vocal soloist","E06":"Instrumental soloist","E07":"Read by","E08":"Performed by (orchestra, band, ensemble)","E09":"Speaker","E10":"Presenter","E11":"Introduction read by","E99":"Performed by","F01":"Filmed / photographed by","F02":"Editor (film or video)","F99":"Other recording by","Z01":"Assisted by","Z02":"Honored / dedicated to","Z03":"Enacting jurisdiction","Z04":"Peer reviewed","Z05":"Posthumously completed by","Z06":"In association with","Z98":"(Various roles)","Z99":"Other"}},"count":{"type":"integer","description":"Published Works credited in this role."}},"required":["role","count"]}},{"type":"null"}],"description":"Published Works per role, the most credited role first. The Ledger always sends it; null reads as not sent."},"identifiers":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string","enum":["is_isni","is_viaf","is_orcid","is_wikidata","is_cnpj","is_gln","is_san","is_isbn"],"description":"An external id scheme. is_isbn is read from the Edition only."},"value":{"type":"string"}},"required":["scheme","value"]}},"images":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]}},"socials":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","description":"Social platform: sp_website, sp_instagram, sp_x, sp_facebook, sp_youtube, sp_tiktok, sp_linkedin, sp_bluesky, sp_threads, sp_mastodon or sp_other."},"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"}},"required":["platform","url"]},"description":"The public links, ordered by platform."},"brazilian_basis":{"type":"array","items":{"type":"string","enum":["bb_nationality","bb_birthplace"],"x-enum-descriptions":{"bb_nationality":"A Brazilian nationality","bb_birthplace":"A birth City in Brazil"}},"description":"Why the Person is Brazilian, derived from the nationalities and the birthplace; empty when the Person is not."},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["id","name","reduced_name","slug","birth","death","birth_place","death_place","nationalities","languages","biography","credits","credit_counts","identifiers","images","socials","brazilian_basis","source","publication_state"]},"PersonCredit":{"type":"object","properties":{"role":{"type":"string","enum":["A01","A02","A03","A04","A05","A06","A07","A08","A09","A10","A11","A12","A13","A14","A15","A16","A17","A18","A19","A20","A21","A22","A23","A24","A25","A26","A27","A28","A29","A30","A31","A32","A33","A34","A35","A36","A37","A38","A39","A40","A41","A42","A43","A44","A45","A46","A47","A48","A49","A50","A51","A52","A56","A99","B01","B02","B03","B04","B05","B06","B07","B08","B09","B10","B11","B12","B13","B14","B15","B16","B17","B18","B19","B20","B21","B22","B23","B24","B25","B26","B27","B28","B29","B30","B31","B32","B33","B34","B35","B36","B99","C01","C02","C03","C04","C99","D01","D02","D03","D04","D99","E01","E02","E03","E04","E05","E06","E07","E08","E09","E10","E11","E99","F01","F02","F99","Z01","Z02","Z03","Z04","Z05","Z06","Z98","Z99"],"x-enum-descriptions":{"A01":"By (author)","A02":"With","A03":"Screenplay by","A04":"Libretto by","A05":"Lyrics by","A06":"By (composer)","A07":"By (artist)","A08":"By (photographer)","A09":"Created by","A10":"From an idea by","A11":"Designed by","A12":"Illustrated by","A13":"Photographs by","A14":"Text by","A15":"Preface by","A16":"Prologue by","A17":"Summary by","A18":"Supplement by","A19":"Afterword by","A20":"Notes by","A21":"Commentaries by","A22":"Epilogue by","A23":"Foreword by","A24":"Introduction by","A25":"Footnotes by","A26":"Memoir by","A27":"Experiments by","A28":"Interpreted through","A29":"Introduction and notes by","A30":"Software written by","A31":"Book and lyrics by","A32":"Contributions by","A33":"Appendix by","A34":"Index by","A35":"Drawings by","A36":"Cover design or artwork by","A37":"Preliminary work by","A38":"Original author","A39":"Maps by","A40":"Inked or colored by","A41":"Paper engineering by","A42":"Continued by","A43":"Interviewer","A44":"Interviewee","A45":"Comic script by","A46":"Inker","A47":"Colorist","A48":"Letterer","A49":"Cover inker","A50":"Cover colorist","A51":"Research by","A52":"Original character design","A56":"Cover graphic design by","A99":"Other primary creator","B01":"Edited by","B02":"Revised by","B03":"Retold by","B04":"Abridged by","B05":"Adapted by","B06":"Translated by","B07":"As told by","B08":"Translated with commentary by","B09":"Series edited by","B10":"Edited and translated by","B11":"Editor-in-chief","B12":"Guest editor","B13":"Volume editor","B14":"Editorial board member","B15":"Editorial coordination by","B16":"Managing editor","B17":"Founded by","B18":"Prepared for publication by","B19":"Associate editor","B20":"Consultant editor","B21":"General editor","B22":"Dramatized by","B23":"General rapporteur","B24":"Literary editor","B25":"Arranged by (music)","B26":"Technical editor","B27":"Thesis advisor or supervisor","B28":"Thesis examiner","B29":"Scientific editor","B30":"Historical advisor","B31":"Original editor","B32":"Translation revised by","B33":"Transcribed by","B34":"Sensitivity reader / editor","B35":"Image descriptions by","B36":"Text modernized or updated by","B99":"Other adaptation by","C01":"Compiled by","C02":"Selected by","C03":"Non-text material selected by","C04":"Curated by","C99":"Other compilation by","D01":"Producer","D02":"Director","D03":"Conductor","D04":"Choreographer","D99":"Other direction by","E01":"Actor","E02":"Dancer","E03":"Narrator","E04":"Commentator","E05":"Vocal soloist","E06":"Instrumental soloist","E07":"Read by","E08":"Performed by (orchestra, band, ensemble)","E09":"Speaker","E10":"Presenter","E11":"Introduction read by","E99":"Performed by","F01":"Filmed / photographed by","F02":"Editor (film or video)","F99":"Other recording by","Z01":"Assisted by","Z02":"Honored / dedicated to","Z03":"Enacting jurisdiction","Z04":"Peer reviewed","Z05":"Posthumously completed by","Z06":"In association with","Z98":"(Various roles)","Z99":"Other"}},"sequence":{"type":"integer","description":"The place of the Person among the credits."},"work":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Work identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"title":{"type":"string"},"slug":{"type":"string","description":"URL slug. Lowercase alphanumeric and hyphens, max 255 characters.","example":"meu-produto-exemplo"},"cover":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]},{"type":"null"}],"description":"The Work's cover, else the picture of its newest Edition with one."}},"required":["id","title","slug","cover"]},"level":{"type":"string","enum":["work","edition"],"description":"work: the Person is credited on the Work. edition: on one of its Editions."},"edition":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Ledger Edition identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"isbn":{"oneOf":[{"type":"string","description":"ISBN (International Standard Book Number). 10 or 13 digits, normalized to ISBN-13.","example":"978-0-306-40615-7"},{"type":"null"}]},"title":{"type":"string"},"cover":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"URL with scheme and host. Must include protocol (e.g. https://).","example":"https://example.com","format":"uri"},"alt":{"oneOf":[{"type":"string"},{"type":"null"}]},"credits":{"oneOf":[{"type":"string"},{"type":"null"}]},"width":{"oneOf":[{"type":"integer"},{"type":"null"}]},"height":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["url","alt","credits","width","height"]},{"type":"null"}],"description":"The Edition's picture or front cover, else the Work's cover."},"year":{"oneOf":[{"type":"integer"},{"type":"null"}]}},"required":["id","isbn","title","cover","year"]},{"type":"null"}],"description":"For an Edition credit, the published Edition that holds it. For a Work credit, the Work's newest published Edition. Null when the Work has no published Edition."},"year":{"oneOf":[{"type":"integer"},{"type":"null"}],"description":"The year of the Edition that holds the credit, else the Work's first year, else the year of its oldest published Edition. The list orders by it, newest first."},"publishers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"description":"For a Work credit, the Organizations that publish the Work's published Editions, directly or through an Imprint they own, the earliest Edition's first, at most 5. For an Edition credit, the Organization that publishes that Edition."},"imprints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"description":"For a Work credit, the published Imprints of the Work's published Editions, the earliest Edition's first, at most 5. For an Edition credit, that Edition's Imprint."},"edition_count":{"type":"integer","description":"The Work's published Editions."}},"required":["role","sequence","work","level","edition","year","publishers","imprints","edition_count"]},"PersonFacets":{"type":"object","properties":{"basis":{"type":"object","properties":{"kind":{"type":"string","enum":["exact","at_least"],"description":"exact: n rows matched. at_least: n or more matched; the list stops at the window of 10000 rows."},"n":{"type":"integer"}},"required":["kind","n"],"description":"The set the counts were taken over. Under at_least each count is a lower bound."},"birth_states":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","description":"Brazilian state code (UF). 2 uppercase letters.","example":"SP"},"ibge_code":{"type":"string","description":"The 2-digit IBGE code of the state."},"count":{"type":"integer"}},"required":["state","ibge_code","count"]}},"birth_countries":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},"count":{"type":"integer"}},"required":["country","count"]}},"genres":{"type":"array","items":{"type":"object","properties":{"genre":{"type":"string","enum":["novel","short_stories","poetry","essay","childrens","comics","nonfiction"],"description":"The curated Genre label a Work carries."},"count":{"type":"integer"}},"required":["genre","count"]}}},"required":["basis","birth_states","birth_countries","genres"]},"PersonMerge":{"type":"object","properties":{"retired":{"type":"string","description":"The retired Person id.","example":"550e8400-e29b-71d4-a716-446655440000"},"survivor":{"type":"string","description":"The id the retired one redirects to, always one step.","example":"550e8400-e29b-71d4-a716-446655440000"},"merged_at":{"type":"string","description":"When the merge ran, as the Ledger prints a timestamp."}},"required":["retired","survivor","merged_at"],"description":"A retired Person and the id it redirects to."},"Participation":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Participation identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"activity":{"type":"string","description":"Ledger Activity identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"activity_title":{"type":"string"},"event_name":{"type":"string"},"event_edition_year":{"type":"integer"},"participant":{"type":"object","properties":{"person":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"organization":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]}},"required":["person","organization"],"description":"Exactly one of person or organization at the Activity."},"role":{"type":"string","enum":["pr_author","pr_speaker","pr_moderator","pr_panelist","pr_exhibitor","pr_participant"],"description":"The billing of a party at an Activity."},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["id","activity","activity_title","event_name","event_edition_year","participant","role","source","publication_state"]},"Relation":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Relation identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["rk_influenced_by","rk_corresponded_with","rk_partner_of"],"description":"What a Relation means. translated by is derived, never a kind."},"direction":{"type":"string","enum":["rd_outward","rd_mutual"]},"other":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Person identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"}},"required":["id","name"]},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."},"publication_state":{"type":"string","enum":["ps_draft","ps_published","ps_withdrawn"],"description":"Visibility of a Ledger row; the public API serves ps_published only."}},"required":["id","kind","direction","other","source","publication_state"]},"CityEntry":{"type":"object","properties":{"id":{"type":"string","description":"Ledger City identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"name":{"type":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},"province":{"oneOf":[{"type":"string","description":"Brazilian state code (UF). 2 uppercase letters.","example":"SP"},{"type":"null"}]},"ibge_code":{"oneOf":[{"type":"string","description":"IBGE municipality code. 7 digits.","example":"3550308"},{"type":"null"}]}},"required":["id","name","country","province","ibge_code"]},"CityEntries":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/CityEntry"}}},"required":["results"]},"MarketPrices":{"type":"object","properties":{"bands":{"type":"array","items":{"type":"object","properties":{"segment":{"type":"string","enum":["mks_prose","mks_poetry","mks_children","mks_nonfiction"],"x-enum-descriptions":{"mks_prose":"Prose: main subject F*, DD* or DB*.","mks_poetry":"Poetry: main subject DC*.","mks_children":"Children: any 5A* or Y* Thema code.","mks_nonfiction":"Nonfiction: any other main subject."}},"format":{"oneOf":[{"type":"string","enum":["mkf_paperback","mkf_hardback"],"x-enum-descriptions":{"mkf_paperback":"Paperback: ONIX List 150 BC.","mkf_hardback":"Hardback: ONIX List 150 BB."}},{"type":"null"}],"description":"Null for both formats together."},"first_page":{"type":"integer","minimum":1,"description":"The first page count of the band."},"last_page":{"oneOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"The last page count of the band; null for the last band."},"editions":{"type":"integer","minimum":1,"description":"The market Editions of the band."},"editions_by_basis":{"type":"array","items":{"type":"object","properties":{"basis":{"type":"string","enum":["mpb_announced","mpb_retailer_list"],"x-enum-descriptions":{"mpb_announced":"Announced: the List 58 type 02 BRL price of the ONIX body, else type 42.","mpb_retailer_list":"Retailer list: a retailer's BRL list price, for an Edition whose body has no price."}},"editions":{"type":"integer","minimum":1}},"required":["basis","editions"]},"description":"The market Editions of the band by the basis of their price, each basis that has one."},"lower_quartile_price":{"type":"integer","description":"The BRL cover price at the 25th percentile.","example":125000},"median_price":{"type":"integer","description":"The median BRL cover price: the lower of the two middle prices when the count is even.","example":125000},"upper_quartile_price":{"type":"integer","description":"The BRL cover price at the 75th percentile.","example":125000}},"required":["segment","format","first_page","last_page","editions","editions_by_basis","lower_quartile_price","median_price","upper_quartile_price"]},"description":"Each segment and page band with a market Edition, first for both formats (format null), then for each format; a format filter keeps the bands of that format only."},"points":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"publisher":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The name of the published publisher Organization, of the Edition or of its Imprint."},"pages":{"type":"integer","minimum":1},"price":{"type":"integer","description":"The BRL cover price: the announced price, else a retailer's list price, as basis says.","example":125000},"segment":{"type":"string","enum":["mks_prose","mks_poetry","mks_children","mks_nonfiction"],"x-enum-descriptions":{"mks_prose":"Prose: main subject F*, DD* or DB*.","mks_poetry":"Poetry: main subject DC*.","mks_children":"Children: any 5A* or Y* Thema code.","mks_nonfiction":"Nonfiction: any other main subject."}},"format":{"type":"string","enum":["mkf_paperback","mkf_hardback"],"x-enum-descriptions":{"mkf_paperback":"Paperback: ONIX List 150 BC.","mkf_hardback":"Hardback: ONIX List 150 BB."}},"basis":{"type":"string","enum":["mpb_announced","mpb_retailer_list"],"x-enum-descriptions":{"mpb_announced":"Announced: the List 58 type 02 BRL price of the ONIX body, else type 42.","mpb_retailer_list":"Retailer list: a retailer's BRL list price, for an Edition whose body has no price."}}},"required":["title","publisher","pages","price","segment","format","basis"]},"description":"At most 150 market Editions per segment and format, spread evenly over their page counts."}},"required":["bands","points"]},"MarketSeries":{"type":"object","properties":{"series":{"type":"array","items":{"type":"object","properties":{"segment":{"type":"string","enum":["mks_prose","mks_poetry","mks_children","mks_nonfiction"],"x-enum-descriptions":{"mks_prose":"Prose: main subject F*, DD* or DB*.","mks_poetry":"Poetry: main subject DC*.","mks_children":"Children: any 5A* or Y* Thema code.","mks_nonfiction":"Nonfiction: any other main subject."}},"format":{"oneOf":[{"type":"string","enum":["mkf_paperback","mkf_hardback"],"x-enum-descriptions":{"mkf_paperback":"Paperback: ONIX List 150 BC.","mkf_hardback":"Hardback: ONIX List 150 BB."}},{"type":"null"}],"description":"Null for both formats together."},"first_page":{"type":"integer","minimum":1,"description":"The first page count of the band."},"last_page":{"oneOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"The last page count of the band; null for the last band."},"quarters":{"type":"array","items":{"type":"object","properties":{"quarter_start":{"type":"string","description":"The first day of the quarter. The prices are the ones held at its close, or at the last refresh for the current quarter.","example":"2026-01-15","format":"date"},"editions":{"type":"integer","minimum":1,"description":"The market Editions of the band that held a price at the close."},"editions_by_basis":{"type":"array","items":{"type":"object","properties":{"basis":{"type":"string","enum":["mpb_announced","mpb_retailer_list"],"x-enum-descriptions":{"mpb_announced":"Announced: the List 58 type 02 BRL price of the ONIX body, else type 42.","mpb_retailer_list":"Retailer list: a retailer's BRL list price, for an Edition whose body has no price."}},"editions":{"type":"integer","minimum":1}},"required":["basis","editions"]},"description":"The Editions by the basis of the price they held, each basis that has one."},"lower_quartile_price":{"type":"integer","description":"The BRL cover price at the 25th percentile.","example":125000},"median_price":{"type":"integer","description":"The median BRL cover price: the lower of the two middle prices when the count is even.","example":125000},"upper_quartile_price":{"type":"integer","description":"The BRL cover price at the 75th percentile.","example":125000}},"required":["quarter_start","editions","editions_by_basis","lower_quartile_price","median_price","upper_quartile_price"]},"description":"Each quarter in which an Edition of the band held a price, the oldest first."}},"required":["segment","format","first_page","last_page","quarters"]},"description":"Each segment and page band with a market Edition in some quarter, first for both formats (format null), then for each format; a format filter keeps the series of that format only."}},"required":["series"]},"PriceFact":{"type":"object","properties":{"id":{"type":"string","description":"Ledger price fact identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"price_type":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","11","12","13","14","15","17","21","22","23","24","25","27","31","32","33","34","35","36","37","41","42"],"x-enum-descriptions":{"01":"RRP excluding tax","02":"RRP including tax","03":"FRP excluding tax","04":"FRP including tax","05":"Supplier's Net price excluding tax","06":"Supplier's Net price excluding tax: rental goods","07":"Supplier's Net price including tax","08":"Supplier's alternative Net price excluding tax","09":"Supplier's alternative net price including tax","11":"Special sale RRP excluding tax","12":"Special sale RRP including tax","13":"Special sale fixed retail price excluding tax","14":"Special sale fixed retail price including tax","15":"Supplier's net price for special sale excluding tax","17":"Supplier's net price for special sale including tax","21":"Pre-publication RRP excluding tax","22":"Pre-publication RRP including tax","23":"Pre-publication fixed retail price excluding tax","24":"Pre-publication fixed retail price including tax","25":"Supplier's pre-publication net price excluding tax","27":"Supplier's pre-publication net price including tax","31":"Freight-pass-through RRP excluding tax","32":"Freight-pass-through billing price excluding tax","33":"Importer's Fixed retail price excluding tax","34":"Importer's Fixed retail price including tax","35":"Nominal gratis copy value for customs purposes, excluding tax","36":"Nominal value for claims purposes, excluding tax","37":"Nominal value for customs purposes, excluding tax","41":"Publishers retail price excluding tax","42":"Publishers retail price including tax"}},"basis":{"type":"string","enum":["mpb_announced","mpb_retailer_list"],"description":"mpb_announced, the publisher's announced price, or mpb_retailer_list, a retailer's list price."},"amount":{"type":"integer","description":"At the kernel money scale."},"currency":{"type":"string","description":"ISO 4217 currency code (ONIX List 96).","example":"BRL"},"territory":{"oneOf":[{"type":"object","properties":{"region":{"oneOf":[{"type":"string","description":"ONIX List 49 region code.","example":"WORLD"},{"type":"null"}]},"country":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code (ONIX List 91).","example":"BR"},{"type":"null"}]}},"required":["region","country"],"description":"Exactly one of region (ONIX List 49) or country."},{"type":"null"}]},"valid_from":{"type":"string","description":"When the price took effect or was seen. The series is in this order.","format":"date-time"},"valid_until":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When a write dropped the price; null while it holds."},"recorded_at":{"type":"string","description":"When the Ledger stored the fact.","format":"date-time"},"revision":{"oneOf":[{"type":"integer"},{"type":"null"}],"description":"The Edition revision that wrote the price."},"end_revision":{"oneOf":[{"type":"integer"},{"type":"null"}],"description":"The Edition revision that dropped it."},"source":{"type":"object","properties":{"id":{"type":"string","description":"Ledger Source identifier (UUID).","example":"550e8400-e29b-71d4-a716-446655440000"},"kind":{"type":"string","enum":["sk_submission","sk_import","sk_admin","sk_partner_zero","sk_registry","sk_retailer"]},"reference":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The writer's reference. A provider import or a registry import reads as its provider alone, provider:metabooks or provider:cbl, and a retailer's Source (sk_retailer) as null. A registry grant, a registry CNPJ claim, a Delegation, an Organization merge or edit, an Edition edit, a Work or Person merge, an owner's credit split, an Admin's credit edit, a Partner's price fact and a Desk write read as their namespace alone: publisher-registry, publisher-registry-cnpj, delegation, organization-merge, organization-edit, edition-edit, work-merge, person-merge, credit-split, credit-edit, price-fact or desk. A Submission reads as submission. A Ledger fixture reads as written, in the ledger namespace: ledger:self-publish. None carries the provider's id or a Desk id."}},"required":["id","kind","reference"],"description":"Provenance of a row. The actor behind it stays in the Desk."}},"required":["id","price_type","basis","amount","currency","territory","valid_from","valid_until","recorded_at","revision","end_revision","source"],"description":"One price of an Edition and the time it held. A dropped price keeps its row with an end. A retailer's list price names neither the retailer nor its Source reference."},"WorkPriceRange":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"price_type":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","11","12","13","14","15","17","21","22","23","24","25","27","31","32","33","34","35","36","37","41","42"],"x-enum-descriptions":{"01":"RRP excluding tax","02":"RRP including tax","03":"FRP excluding tax","04":"FRP including tax","05":"Supplier's Net price excluding tax","06":"Supplier's Net price excluding tax: rental goods","07":"Supplier's Net price including tax","08":"Supplier's alternative Net price excluding tax","09":"Supplier's alternative net price including tax","11":"Special sale RRP excluding tax","12":"Special sale RRP including tax","13":"Special sale fixed retail price excluding tax","14":"Special sale fixed retail price including tax","15":"Supplier's net price for special sale excluding tax","17":"Supplier's net price for special sale including tax","21":"Pre-publication RRP excluding tax","22":"Pre-publication RRP including tax","23":"Pre-publication fixed retail price excluding tax","24":"Pre-publication fixed retail price including tax","25":"Supplier's pre-publication net price excluding tax","27":"Supplier's pre-publication net price including tax","31":"Freight-pass-through RRP excluding tax","32":"Freight-pass-through billing price excluding tax","33":"Importer's Fixed retail price excluding tax","34":"Importer's Fixed retail price including tax","35":"Nominal gratis copy value for customs purposes, excluding tax","36":"Nominal value for claims purposes, excluding tax","37":"Nominal value for customs purposes, excluding tax","41":"Publishers retail price excluding tax","42":"Publishers retail price including tax"}},"currency":{"type":"string","description":"ISO 4217 currency code (ONIX List 96).","example":"BRL"},"starts_at":{"type":"string","format":"date-time"},"low":{"oneOf":[{"type":"integer"},{"type":"null"}],"description":"The lowest price an Edition holds, at the kernel money scale; null when none holds one."},"high":{"oneOf":[{"type":"integer"},{"type":"null"}],"description":"The highest price an Edition holds."},"editions":{"type":"integer","description":"The Editions that hold a price."}},"required":["price_type","currency","starts_at","low","high","editions"],"description":"The range of one price type and currency over the Work's Editions, from starts_at until the next step."},"description":"The steps, the newest starts_at first."}},"required":["results"]}},"securitySchemes":{"modesto_token":{"type":"http","scheme":"bearer","bearerFormat":"mdst_ token"}}},"tags":[{"name":"Obras","description":"Uma obra é o texto, em qualquer idioma ou edição. Busque no catálogo, conte os filtros, leia uma obra e siga as junções de obras."},{"name":"Edições","description":"Uma edição é um livro publicado, com o ISBN e o registro ONIX 3.1. Leia uma edição, o histórico de versões e as edições de uma obra ou de uma editora."},{"name":"Preços","description":"Os preços de uma edição ao longo do tempo e a faixa de preços das edições de uma obra."},{"name":"Direitos","description":"Os registros de direitos de uma obra: quem tem cada direito e a situação dele."},{"name":"Amostras de tradução","description":"Amostras de tradução de uma obra, com o tradutor e o apoio que as financiou."},{"name":"Imprensa","description":"O que a imprensa escreveu sobre uma obra, como foi publicado."},{"name":"Pessoas","description":"Autores, tradutores e outros colaboradores: busque, conte os filtros, leia uma pessoa, as relações e as participações em eventos, e siga as junções de pessoas."},{"name":"Tradutores","description":"As pessoas com crédito de tradução numa tradução publicada."},{"name":"Organizações","description":"Editoras, livrarias e outras organizações, com os selos, as séries e o número de edições, e as junções de organizações."},{"name":"Prêmios","description":"Prêmios literários, com as edições, as categorias e os resultados."},{"name":"Apoios","description":"Apoios à tradução e à publicação, com quem os financia. Filtre obras e edições pelo apoio para ver o que ele pagou."},{"name":"Eventos","description":"Feiras, festas literárias e outros eventos, com as edições e as atividades."},{"name":"Preços do mercado","description":"Os preços de capa do mercado brasileiro por faixa de páginas, segmento e formato, hoje e no fim de cada trimestre."},{"name":"Identificadores","description":"Ache o registro de um ISBN, um CNPJ, um ISNI, um VIAF, um ORCID ou um id do Wikidata."},{"name":"Cidades","description":"As cidades do cadastro de lugares, buscadas pelo nome."},{"name":"Listas de códigos","description":"As listas de códigos que os registros usam: idiomas, países, papéis de colaborador e territórios."},{"name":"Sobre a API","description":"A saúde da API, este documento OpenAPI e esta página."}],"x-tagGroups":[{"name":"Catálogo","tags":["Obras","Edições","Preços","Direitos","Amostras de tradução","Imprensa"]},{"name":"Pessoas e organizações","tags":["Pessoas","Tradutores","Organizações"]},{"name":"Prêmios, apoios e eventos","tags":["Prêmios","Apoios","Eventos"]},{"name":"Mercado","tags":["Preços do mercado"]},{"name":"Referência","tags":["Identificadores","Cidades","Listas de códigos"]},{"name":"Sobre","tags":["Sobre a API"]}]}