{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/analytics:googleapis-libraryagent/libraryagent-shelves-books-get":{"get":{"operationId":"analytics_googleapis_libraryagent_libraryagent_shelves_books_get","summary":"Gets a book. Returns NOT_FOUND if the book does not exist.","description":"GET /v1/{+name}","tags":["analytics"],"parameters":[{"name":"name","in":"query","required":true,"description":"Required. The name of the book to retrieve.","schema":{"type":"string","description":"Required. The name of the book to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-libraryagent/libraryagent-shelves-list":{"get":{"operationId":"analytics_googleapis_libraryagent_libraryagent_shelves_list","summary":"Lists shelves. The order is unspecified but deterministic. Newly created shelves will not necessarily be…","description":"GET /v1/shelves","tags":["analytics"],"parameters":[{"name":"pageSize","in":"query","required":false,"description":"Requested page size. Server may return fewer shelves than requested. If unspecified, server will pick an appropriate default.","schema":{"type":"integer","description":"Requested page size. Server may return fewer shelves than requested. If unspecified, server will pick an appropriate default."}},{"name":"pageToken","in":"query","required":false,"description":"A token identifying a page of results the server should return. Typically, this is the value of ListShelvesResponse.next_page_token…","schema":{"type":"string","description":"A token identifying a page of results the server should return. Typically, this is the value of ListShelvesResponse.next_page_token…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-libraryagent/libraryagent-shelves-books-borrow":{"post":{"operationId":"analytics_googleapis_libraryagent_libraryagent_shelves_books_borrow","summary":"Borrow a book from the library. Returns the book if it is borrowed successfully. Returns NOT_FOUND if the…","description":"POST /v1/{+name}:borrow","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Required. The name of the book to borrow."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-libraryagent/libraryagent-shelves-books-list":{"get":{"operationId":"analytics_googleapis_libraryagent_libraryagent_shelves_books_list","summary":"Lists books in a shelf. The order is unspecified but deterministic. Newly created books will not necessarily…","description":"GET /v1/{+parent}/books","tags":["analytics"],"parameters":[{"name":"pageSize","in":"query","required":false,"description":"Requested page size. Server may return fewer books than requested. If unspecified, server will pick an appropriate default.","schema":{"type":"integer","description":"Requested page size. Server may return fewer books than requested. If unspecified, server will pick an appropriate default."}},{"name":"pageToken","in":"query","required":false,"description":"A token identifying a page of results the server should return. Typically, this is the value of ListBooksResponse.next_page_token.…","schema":{"type":"string","description":"A token identifying a page of results the server should return. Typically, this is the value of ListBooksResponse.next_page_token.…"}},{"name":"parent","in":"query","required":true,"description":"Required. The name of the shelf whose books we'd like to list.","schema":{"type":"string","description":"Required. The name of the shelf whose books we'd like to list."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-libraryagent/libraryagent-shelves-books-return":{"post":{"operationId":"analytics_googleapis_libraryagent_libraryagent_shelves_books_return","summary":"Return a book to the library. Returns the book if it is returned to the library successfully. Returns error…","description":"POST /v1/{+name}:return","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Required. The name of the book to return."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}