@payloadcms/figma 0.0.1-alpha.40 → 0.0.1-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/db-content-api/generated/content-api-types.d.ts +6 -0
- package/dist/db-content-api/generated/content-api-types.d.ts.map +1 -1
- package/dist/db-content-api/generated/content-api-types.js.map +1 -1
- package/dist/db-content-api/index.d.ts.map +1 -1
- package/dist/db-content-api/index.js +9 -2
- package/dist/db-content-api/index.js.map +1 -1
- package/dist/db-content-api/utilities/data/index.d.ts.map +1 -1
- package/dist/db-content-api/utilities/data/index.js +10 -1
- package/dist/db-content-api/utilities/data/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/db-content-api/generated/content-api-types.ts"],"sourcesContent":["/**\n * This file was auto-generated by openapi-typescript.\n * Do not make direct changes to the file.\n */\n\n/* eslint-disable */\n// @ts-nocheck - Recursive types from OpenAPI cause TS2502 errors\n\nexport type paths = {\n '/api/me': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Current authentication context */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['AuthContextResponse']\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n put?: never\n post?: never\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/health': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description OK */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['HealthResponse']\n }\n }\n }\n }\n put?: never\n post?: never\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/api_keys': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query: {\n contentSystemId: string\n }\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description API keys retrieved */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['ListApiKeysResponse']\n }\n }\n /** @description No content system scope found */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CreateApiKeyRequest']\n }\n }\n responses: {\n /** @description API key created */\n 201: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CreateApiKeyResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Failed to create API key */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/api_keys/{id}': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post?: never\n delete: {\n parameters: {\n query?: never\n header?: never\n path: {\n id: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description API key deleted successfully */\n 204: {\n headers: {\n [name: string]: unknown\n }\n content?: never\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/content_systems': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Content systems retrieved */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n data: components['schemas']['ContentSystem'][]\n total: number\n }\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CreateContentSystemRequest']\n }\n }\n responses: {\n /** @description Content system created */\n 201: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CreateContentSystemResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Conflict */\n 409: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unprocessable Entity */\n 422: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/content_systems/{id}': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: never\n header?: never\n path: {\n id: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Content system retrieved */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['RetrieveContentSystemResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n put: {\n parameters: {\n query?: never\n header?: never\n path: {\n id: string\n }\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['UpdateContentSystemRequest']\n }\n }\n responses: {\n /** @description Content system updated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['UpdateContentSystemResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Conflict */\n 409: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n post?: never\n delete: {\n parameters: {\n query?: never\n header?: never\n path: {\n id: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Content system deleted successfully */\n 204: {\n headers: {\n [name: string]: unknown\n }\n content?: never\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/content_systems/{contentSystemId}/collections': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: {\n id?: string\n }\n header?: never\n path: {\n contentSystemId: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Collections retrieved */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n data: components['schemas']['Collection'][]\n total: number\n }\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path: {\n contentSystemId: string\n }\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CreateCollectionRequest']\n }\n }\n responses: {\n /** @description Collection created */\n 201: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CreateCollectionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Conflict */\n 409: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unprocessable Entity */\n 422: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/content_systems/{contentSystemId}/collections/{id}': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: never\n header?: never\n path: {\n contentSystemId: string\n id: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Collection retrieved */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['RetrieveCollectionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n put: {\n parameters: {\n query?: never\n header?: never\n path: {\n contentSystemId: string\n id: string\n }\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['UpdateCollectionRequest']\n }\n }\n responses: {\n /** @description Collection updated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['UpdateCollectionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Conflict */\n 409: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n post?: never\n delete: {\n parameters: {\n query?: never\n header?: never\n path: {\n contentSystemId: string\n id: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Collection deleted successfully */\n 204: {\n headers: {\n [name: string]: unknown\n }\n content?: never\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/documents:count': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CountDocumentRequest']\n }\n }\n responses: {\n /** @description Document count */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CountDocumentResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/documents:create': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CreateDocumentRequest']\n }\n }\n responses: {\n /** @description Document created */\n 201: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CreateDocumentResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Conflict */\n 409: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/documents:find': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['FindDocumentsRequest']\n }\n }\n responses: {\n /** @description Documents found */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['FindDocumentsResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/documents:update': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['UpdateDocumentRequest']\n }\n }\n responses: {\n /** @description Documents updated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['UpdateDocumentResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Conflict */\n 409: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/documents:delete': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['DeleteDocumentRequest']\n }\n }\n responses: {\n /** @description Documents deleted */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['DeleteDocumentResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/document_versions:count': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CountDocumentVersionRequest']\n }\n }\n responses: {\n /** @description Document version count */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CountDocumentVersionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/document_versions:create': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CreateDocumentVersionRequest']\n }\n }\n responses: {\n /** @description Document version created */\n 201: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CreateDocumentVersionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/document_versions:find': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['FindDocumentVersionsRequest']\n }\n }\n responses: {\n /** @description Document versions found */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['FindDocumentVersionsResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/document_versions:update': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['UpdateDocumentVersionRequest']\n }\n }\n responses: {\n /** @description Document versions updated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['UpdateDocumentVersionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/document_versions:delete': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['DeleteDocumentVersionRequest']\n }\n }\n responses: {\n /** @description Document versions deleted */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['DeleteDocumentVersionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/sign': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['GeneratePresignedUploadUrlRequest']\n }\n }\n responses: {\n /** @description Presigned upload URL generated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['GeneratePresignedUploadUrlResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/download/sign': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['GeneratePresignedDownloadUrlRequest']\n }\n }\n responses: {\n /** @description Presigned download URL generated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['GeneratePresignedDownloadUrlResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/multipart/initiate': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['InitiateMultipartUploadRequest']\n }\n }\n responses: {\n /** @description Multipart upload initiated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['InitiateMultipartUploadResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/multipart/parts': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['GenerateUploadPartUrlsRequest']\n }\n }\n responses: {\n /** @description Upload part URLs generated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['GenerateUploadPartUrlsResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/multipart/complete': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CompleteMultipartUploadRequest']\n }\n }\n responses: {\n /** @description Multipart upload completed */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CompleteMultipartUploadResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/multipart/abort': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['AbortMultipartUploadRequest']\n }\n }\n responses: {\n /** @description Multipart upload aborted */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['AbortMultipartUploadResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/{filename}': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post?: never\n delete: {\n parameters: {\n query?: never\n header?: never\n path: {\n filename: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description File deleted successfully */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['DeleteFileResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/.well-known/jwks.json': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description JSON Web Key Set */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['JwksResponse']\n }\n }\n /** @description Internal Server Error - Key not found */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n message: string\n }\n }\n }\n }\n }\n put?: never\n post?: never\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/dev/jwt': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CreateJwtRequest']\n }\n }\n responses: {\n /** @description JWT created successfully */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CreateJwtResponse']\n }\n }\n /** @description Internal Server Error - Private key not found */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/dev/clear-db': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Database cleared successfully */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n message: string\n success: boolean\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n}\nexport type webhooks = Record<string, never>\nexport type components = {\n schemas: {\n AuthContextResponse: {\n /**\n * @description Type of authentication scope\n * @example project\n * @enum {string}\n */\n scopeType: 'super_user' | 'project'\n /**\n * @description Content system ID if scopeType is project, undefined for super_user\n * @example 4cfea8de-4f44-4efd-a8fc-7d539249e9f1\n */\n contentSystemScope?: string\n }\n HealthResponse: {\n /** @example ok */\n status: string\n /** @example connected */\n database: string\n /** @example available */\n s3: string\n /** @example 2026-01-01T00:00:00.000Z */\n timestamp: string\n }\n ApiKey: {\n /** @example 123abc */\n id: string\n /** @example My API Key */\n name: string\n /** @example 123def */\n contentSystemId: string\n /** @example BRTRKFsL */\n shortToken: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00.000Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00.000Z\n */\n updatedAt: string\n }\n ListApiKeysResponse: {\n data: components['schemas']['ApiKey'][]\n total: number\n }\n CreateApiKeyResponse: {\n /** @example 123abc */\n id: string\n /** @example 123def */\n contentSystemId: string\n /** @example BRTRKFsL */\n shortToken: string\n /**\n * @description Full API key - only returned on creation\n * @example figma_BRTRKFsL_51FwqftsmMDHHbJAMEXXHCgG\n */\n fullToken: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00.000Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00.000Z\n */\n updatedAt: string\n }\n CreateApiKeyRequest: {\n /** @example My API Key */\n name: string\n /** @example 123def */\n contentSystemId: string\n }\n ContentSystem: {\n /** @example cms-xxxxx-xxxxx */\n id: string\n /** @example demo-tenant */\n owningKey: string\n /** @example Demo CMS */\n name: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n CreateContentSystemResponse: {\n /** @example cms-xxxxx-xxxxx */\n id: string\n /** @example demo-tenant */\n owningKey: string\n /** @example Demo CMS */\n name: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n CreateContentSystemRequest: {\n /** @example demo-tenant */\n owningKey: string\n /** @example Demo CMS */\n name: string\n }\n RetrieveContentSystemResponse: {\n /** @example cms-xxxxx-xxxxx */\n id: string\n /** @example demo-tenant */\n owningKey: string\n /** @example Demo CMS */\n name: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n UpdateContentSystemResponse: {\n /** @example cms-xxxxx-xxxxx */\n id: string\n /** @example demo-tenant */\n owningKey: string\n /** @example Demo CMS */\n name: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n UpdateContentSystemRequest: {\n /** @example demo-tenant */\n owningKey?: string\n /** @example Demo CMS */\n name?: string\n }\n Collection: {\n /** @example posts */\n id: string\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n CreateCollectionResponse: {\n /** @example posts */\n id: string\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n CreateCollectionRequest: {\n /** @example posts */\n id: string\n }\n RetrieveCollectionResponse: {\n /** @example posts */\n id: string\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n UpdateCollectionResponse: {\n /** @example posts */\n id: string\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n UpdateCollectionRequest: {\n /** @example posts */\n id: string\n }\n CountDocumentResponse: {\n result: {\n /** @example 1 */\n count: number\n }\n }\n DataValue:\n | string\n | number\n | boolean\n | unknown\n | components['schemas']['DataValue'][]\n | {\n [key: string]: components['schemas']['DataValue']\n }\n | unknown\n /**\n * @example {\n * \"and\": [\n * {\n * \"path\": \"status\",\n * \"operator\": \"equals\",\n * \"value\": \"published\"\n * },\n * {\n * \"path\": \"createdAt\",\n * \"operator\": \"greater_than\",\n * \"value\": \"2025-01-01T00:00:00Z\"\n * }\n * ]\n * }\n */\n WhereClause:\n | {\n and: components['schemas']['WhereClause'][]\n }\n | {\n or: components['schemas']['WhereClause'][]\n }\n | {\n path: string\n operator:\n | 'equals'\n | 'not_equals'\n | 'in'\n | 'not_in'\n | 'greater_than'\n | 'greater_than_equal'\n | 'less_than'\n | 'less_than_equal'\n | 'like'\n | 'not_like'\n | 'all'\n | 'contains'\n | 'exists'\n | 'intersects'\n | 'near'\n | 'within'\n value: components['schemas']['DataValue']\n }\n CountDocumentRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n where?: components['schemas']['WhereClause']\n }\n /**\n * @example {\n * \"title\": \"Placeholder title\",\n * \"content\": \"This is placeholder content\"\n * }\n */\n DocumentData: {\n [key: string]: components['schemas']['DataValue']\n }\n Document: {\n /** @example doc-key */\n id: string\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n data: components['schemas']['DocumentData']\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n CreateDocumentResponse: {\n result:\n | {\n /** @example doc-xxxxx-xxxxx */\n id: string\n }\n | {\n data: components['schemas']['Document']\n }\n }\n /** @example createdAt */\n SortClause: string | string[]\n /**\n * @example [\n * {\n * \"collectionId\": \"books\",\n * \"on\": \"authorId\",\n * \"path\": \"books\",\n * \"count\": false,\n * \"where\": {\n * \"path\": \"status\",\n * \"operator\": \"equals\",\n * \"value\": \"published\"\n * },\n * \"limit\": 5,\n * \"offset\": 0,\n * \"sort\": [\n * {\n * \"path\": \"title\",\n * \"direction\": \"asc\"\n * }\n * ]\n * }\n * ]\n */\n JoinClause: {\n collectionId: string\n on: string\n path: string\n count: boolean\n where?: components['schemas']['WhereClause']\n limit?: number\n offset?: number\n sort?: components['schemas']['SortClause']\n }[]\n LocaleClause: {\n locale: string\n fallbackLocale: string\n paths: string[]\n }\n /**\n * @example {\n * \"mode\": \"include\",\n * \"paths\": [\n * \"title\",\n * \"author.name\",\n * \"tags\"\n * ]\n * }\n */\n SelectClause: {\n /** @enum {string} */\n mode: 'exclude' | 'include'\n paths: string[]\n }\n CreateDocumentRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n /** @example doc-key */\n id: string\n data: components['schemas']['DocumentData']\n returning?:\n | false\n | {\n join?: components['schemas']['JoinClause']\n locale?: components['schemas']['LocaleClause']\n select?: components['schemas']['SelectClause']\n }\n }\n /**\n * @example {\n * \"total\": 100,\n * \"current\": {\n * \"limit\": 10,\n * \"page\": 1\n * },\n * \"next\": {\n * \"limit\": 10,\n * \"page\": 2\n * }\n * }\n */\n Pagination: {\n total: number\n current: {\n limit: number\n page: number\n }\n next?: {\n limit: number\n page: number\n }\n prev?: {\n limit: number\n page: number\n }\n }\n FindDocumentsResponse: {\n result: {\n data: components['schemas']['Document'][]\n pagination: components['schemas']['Pagination']\n }\n }\n FindDocumentsRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n join?: components['schemas']['JoinClause']\n /** @example 10 */\n limit?: number\n locale?: components['schemas']['LocaleClause']\n /** @example 1 */\n page?: number\n select?: components['schemas']['SelectClause']\n sort?: components['schemas']['SortClause']\n where?: components['schemas']['WhereClause']\n }\n UpdateDocumentResponse: {\n result?:\n | {\n /** @example 1 */\n count: number\n }\n | {\n data: components['schemas']['Document'][]\n }\n }\n /**\n * @example {\n * \"title\": \"New Title\",\n * \"views\": {\n * \"$inc\": 1\n * },\n * \"status\": \"draft\"\n * }\n */\n DataWithOperations: {\n [key: string]: components['schemas']['DataValue']\n }\n UpdateDocumentRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n /** @example false */\n createOnMissing:\n | false\n | {\n id: string\n }\n data: components['schemas']['DataWithOperations']\n where: components['schemas']['WhereClause']\n returning?:\n | false\n | {\n join?: components['schemas']['JoinClause']\n locale?: components['schemas']['LocaleClause']\n select?: components['schemas']['SelectClause']\n }\n }\n DeleteDocumentResponse: {\n result?:\n | {\n /** @example 1 */\n count: number\n }\n | {\n data: components['schemas']['Document'][]\n }\n }\n DeleteDocumentRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n where: components['schemas']['WhereClause']\n returning?:\n | false\n | {\n join?: components['schemas']['JoinClause']\n locale?: components['schemas']['LocaleClause']\n select?: components['schemas']['SelectClause']\n }\n }\n CountDocumentVersionResponse: {\n result: {\n /** @example 1 */\n count: number\n }\n }\n CountDocumentVersionRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n where?: components['schemas']['WhereClause']\n }\n DocumentVersion: {\n /** @example ver-xxxxx-xxxxx */\n id: string\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example doc-key */\n documentId: string\n /** @example true */\n latest: boolean\n data: components['schemas']['DocumentData']\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n CreateDocumentVersionResponse: {\n result:\n | {\n /** @example ver-xxxxx-xxxxx */\n id: string\n }\n | {\n data: components['schemas']['DocumentVersion']\n }\n }\n CreateDocumentVersionRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n /** @example doc-key */\n documentId: string\n /** @example true */\n latest?: boolean\n data: components['schemas']['DocumentData']\n returning?:\n | false\n | {\n join?: components['schemas']['JoinClause']\n locale?: components['schemas']['LocaleClause']\n select?: components['schemas']['SelectClause']\n }\n }\n FindDocumentVersionsResponse: {\n result: {\n data: components['schemas']['DocumentVersion'][]\n pagination: components['schemas']['Pagination']\n }\n }\n FindDocumentVersionsRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n join?: components['schemas']['JoinClause']\n /** @example 10 */\n limit?: number\n locale?: components['schemas']['LocaleClause']\n /** @example 1 */\n page?: number\n select?: components['schemas']['SelectClause']\n sort?: components['schemas']['SortClause']\n where?: components['schemas']['WhereClause']\n }\n UpdateDocumentVersionResponse: {\n result?:\n | {\n /** @example 1 */\n count: number\n }\n | {\n data: components['schemas']['DocumentVersion'][]\n }\n }\n UpdateDocumentVersionRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n /** @example false */\n createOnMissing:\n | false\n | {\n documentId: string\n latest: boolean\n }\n data: components['schemas']['DataWithOperations']\n where: components['schemas']['WhereClause']\n returning?:\n | false\n | {\n join?: components['schemas']['JoinClause']\n locale?: components['schemas']['LocaleClause']\n select?: components['schemas']['SelectClause']\n }\n }\n DeleteDocumentVersionResponse: {\n result?:\n | {\n /** @example 1 */\n count: number\n }\n | {\n data: components['schemas']['DocumentVersion'][]\n }\n }\n DeleteDocumentVersionRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n where: components['schemas']['WhereClause']\n returning?:\n | false\n | {\n join?: components['schemas']['JoinClause']\n locale?: components['schemas']['LocaleClause']\n select?: components['schemas']['SelectClause']\n }\n }\n GeneratePresignedUploadUrlResponse: {\n /** @example https://s3.amazonaws.com/bucket/key?presigned-params */\n url: string\n }\n GeneratePresignedUploadUrlRequest: {\n /** @example document.pdf */\n filename: string\n /** @example application/pdf */\n contentType?: string\n /**\n * @default 3600\n * @example 3600\n */\n expiresIn: number\n }\n GeneratePresignedDownloadUrlResponse: {\n /** @example https://s3.amazonaws.com/bucket/key?presigned-params */\n url: string\n }\n GeneratePresignedDownloadUrlRequest: {\n /** @example document.pdf */\n filename: string\n /**\n * @default 3600\n * @example 3600\n */\n expiresIn: number\n }\n InitiateMultipartUploadResponse: {\n /** @example abc123xyz789 */\n uploadId: string\n }\n InitiateMultipartUploadRequest: {\n /** @example large-video.mp4 */\n filename: string\n /** @example video/mp4 */\n contentType: string\n }\n GenerateUploadPartUrlsResponse: {\n /**\n * @example [\n * {\n * \"partNumber\": 1,\n * \"url\": \"https://s3.amazonaws.com/...\"\n * }\n * ]\n */\n parts: {\n /** @example 1 */\n partNumber: number\n /** @example https://s3.amazonaws.com/bucket/key?presigned-params */\n url: string\n }[]\n }\n GenerateUploadPartUrlsRequest: {\n /** @example large-video.mp4 */\n filename: string\n /** @example abc123xyz789 */\n uploadId: string\n /**\n * @example [\n * 1,\n * 2,\n * 3\n * ]\n */\n partNumbers: number[]\n /**\n * @default 3600\n * @example 3600\n */\n expiresIn: number\n }\n CompleteMultipartUploadResponse: {\n /**\n * @example true\n * @enum {boolean}\n */\n success: true\n }\n CompleteMultipartUploadRequest: {\n /** @example large-video.mp4 */\n filename: string\n /** @example abc123xyz789 */\n uploadId: string\n /**\n * @example [\n * {\n * \"PartNumber\": 1,\n * \"ETag\": \"\\\"abc123\\\"\"\n * }\n * ]\n */\n parts: {\n /** @example 1 */\n PartNumber: number\n /** @example \"abc123\" */\n ETag: string\n }[]\n }\n AbortMultipartUploadResponse: {\n /**\n * @example true\n * @enum {boolean}\n */\n success: true\n }\n AbortMultipartUploadRequest: {\n /** @example large-video.mp4 */\n filename: string\n /** @example abc123xyz789 */\n uploadId: string\n }\n DeleteFileResponse: {\n /**\n * @example true\n * @enum {boolean}\n */\n success: true\n }\n JwksResponse: {\n keys: {\n /** @example RSA */\n kty: string\n /** @example sig */\n use: string\n /** @example dev-key-1 */\n kid: string\n /** @example RS256 */\n alg: string\n /** @example base64url-encoded-modulus */\n n: string\n /** @example AQAB */\n e: string\n }[]\n }\n CreateJwtResponse: {\n /**\n * @description Generated JWT token\n * @example eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...\n */\n token: string\n /**\n * @description Token expiration time in seconds\n * @example 604800\n */\n expires_in: number\n }\n CreateJwtRequest: {\n /**\n * @description Content system ID to include in the JWT aud field\n * @example 4cfea8de-4f44-4efd-a8fc-7d539249e9f1\n */\n content_system_id?: string\n }\n }\n responses: never\n parameters: never\n requestBodies: never\n headers: never\n pathItems: never\n}\nexport type $defs = Record<string, never>\nexport type operations = Record<string, never>\n"],"names":[],"mappings":"AAAA;;;CAGC,GAED,kBAAkB,GAClB,iEAAiE;AA0zHjE,WAA8C"}
|
|
1
|
+
{"version":3,"sources":["../../../src/db-content-api/generated/content-api-types.ts"],"sourcesContent":["/**\n * This file was auto-generated by openapi-typescript.\n * Do not make direct changes to the file.\n */\n\n/* eslint-disable */\n// @ts-nocheck - Recursive types from OpenAPI cause TS2502 errors\n\nexport type paths = {\n '/api/me': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Current authentication context */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['AuthContextResponse']\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n put?: never\n post?: never\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/health': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description OK */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['HealthResponse']\n }\n }\n }\n }\n put?: never\n post?: never\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/api_keys': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query: {\n contentSystemId: string\n }\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description API keys retrieved */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['ListApiKeysResponse']\n }\n }\n /** @description No content system scope found */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CreateApiKeyRequest']\n }\n }\n responses: {\n /** @description API key created */\n 201: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CreateApiKeyResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Failed to create API key */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/api_keys/{id}': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post?: never\n delete: {\n parameters: {\n query?: never\n header?: never\n path: {\n id: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description API key deleted successfully */\n 204: {\n headers: {\n [name: string]: unknown\n }\n content?: never\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/content_systems': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Content systems retrieved */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n data: components['schemas']['ContentSystem'][]\n total: number\n }\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CreateContentSystemRequest']\n }\n }\n responses: {\n /** @description Content system created */\n 201: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CreateContentSystemResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Conflict */\n 409: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unprocessable Entity */\n 422: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/content_systems/{id}': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: never\n header?: never\n path: {\n id: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Content system retrieved */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['RetrieveContentSystemResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n put: {\n parameters: {\n query?: never\n header?: never\n path: {\n id: string\n }\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['UpdateContentSystemRequest']\n }\n }\n responses: {\n /** @description Content system updated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['UpdateContentSystemResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Conflict */\n 409: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n post?: never\n delete: {\n parameters: {\n query?: never\n header?: never\n path: {\n id: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Content system deleted successfully */\n 204: {\n headers: {\n [name: string]: unknown\n }\n content?: never\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/content_systems/{contentSystemId}/collections': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: {\n id?: string\n }\n header?: never\n path: {\n contentSystemId: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Collections retrieved */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n data: components['schemas']['Collection'][]\n total: number\n }\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path: {\n contentSystemId: string\n }\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CreateCollectionRequest']\n }\n }\n responses: {\n /** @description Collection created */\n 201: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CreateCollectionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Conflict */\n 409: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unprocessable Entity */\n 422: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/content_systems/{contentSystemId}/collections/{id}': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: never\n header?: never\n path: {\n contentSystemId: string\n id: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Collection retrieved */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['RetrieveCollectionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n put: {\n parameters: {\n query?: never\n header?: never\n path: {\n contentSystemId: string\n id: string\n }\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['UpdateCollectionRequest']\n }\n }\n responses: {\n /** @description Collection updated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['UpdateCollectionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Conflict */\n 409: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n post?: never\n delete: {\n parameters: {\n query?: never\n header?: never\n path: {\n contentSystemId: string\n id: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Collection deleted successfully */\n 204: {\n headers: {\n [name: string]: unknown\n }\n content?: never\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/documents:count': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CountDocumentRequest']\n }\n }\n responses: {\n /** @description Document count */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CountDocumentResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/documents:create': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CreateDocumentRequest']\n }\n }\n responses: {\n /** @description Document created */\n 201: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CreateDocumentResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Conflict */\n 409: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/documents:find': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['FindDocumentsRequest']\n }\n }\n responses: {\n /** @description Documents found */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['FindDocumentsResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/documents:update': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['UpdateDocumentRequest']\n }\n }\n responses: {\n /** @description Documents updated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['UpdateDocumentResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Conflict */\n 409: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/documents:delete': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['DeleteDocumentRequest']\n }\n }\n responses: {\n /** @description Documents deleted */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['DeleteDocumentResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/document_versions:count': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CountDocumentVersionRequest']\n }\n }\n responses: {\n /** @description Document version count */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CountDocumentVersionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/document_versions:create': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CreateDocumentVersionRequest']\n }\n }\n responses: {\n /** @description Document version created */\n 201: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CreateDocumentVersionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/document_versions:find': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['FindDocumentVersionsRequest']\n }\n }\n responses: {\n /** @description Document versions found */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['FindDocumentVersionsResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/document_versions:update': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['UpdateDocumentVersionRequest']\n }\n }\n responses: {\n /** @description Document versions updated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['UpdateDocumentVersionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/document_versions:delete': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['DeleteDocumentVersionRequest']\n }\n }\n responses: {\n /** @description Document versions deleted */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['DeleteDocumentVersionResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Internal Server Error */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/sign': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['GeneratePresignedUploadUrlRequest']\n }\n }\n responses: {\n /** @description Presigned upload URL generated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['GeneratePresignedUploadUrlResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/download/sign': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['GeneratePresignedDownloadUrlRequest']\n }\n }\n responses: {\n /** @description Presigned download URL generated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['GeneratePresignedDownloadUrlResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/multipart/initiate': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['InitiateMultipartUploadRequest']\n }\n }\n responses: {\n /** @description Multipart upload initiated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['InitiateMultipartUploadResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/multipart/parts': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['GenerateUploadPartUrlsRequest']\n }\n }\n responses: {\n /** @description Upload part URLs generated */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['GenerateUploadPartUrlsResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/multipart/complete': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CompleteMultipartUploadRequest']\n }\n }\n responses: {\n /** @description Multipart upload completed */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CompleteMultipartUploadResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/multipart/abort': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['AbortMultipartUploadRequest']\n }\n }\n responses: {\n /** @description Multipart upload aborted */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['AbortMultipartUploadResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/api/v0/uploads/{filename}': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post?: never\n delete: {\n parameters: {\n query?: never\n header?: never\n path: {\n filename: string\n }\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description File deleted successfully */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['DeleteFileResponse']\n }\n }\n /** @description Bad Request */\n 400: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Unauthorized */\n 401: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Forbidden */\n 403: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Not Found */\n 404: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n /** @description Service Unavailable */\n 503: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n /** @example Error message describing the issue. */\n message: string\n }\n }\n }\n }\n }\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/.well-known/jwks.json': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description JSON Web Key Set */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['JwksResponse']\n }\n }\n /** @description Internal Server Error - Key not found */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n message: string\n }\n }\n }\n }\n }\n put?: never\n post?: never\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/dev/jwt': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: {\n content: {\n 'application/json': components['schemas']['CreateJwtRequest']\n }\n }\n responses: {\n /** @description JWT created successfully */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': components['schemas']['CreateJwtResponse']\n }\n }\n /** @description Internal Server Error - Private key not found */\n 500: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n message: string\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n '/dev/clear-db': {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n get?: never\n put?: never\n post: {\n parameters: {\n query?: never\n header?: never\n path?: never\n cookie?: never\n }\n requestBody?: never\n responses: {\n /** @description Database cleared successfully */\n 200: {\n headers: {\n [name: string]: unknown\n }\n content: {\n 'application/json': {\n message: string\n success: boolean\n }\n }\n }\n }\n }\n delete?: never\n options?: never\n head?: never\n patch?: never\n trace?: never\n }\n}\nexport type webhooks = Record<string, never>\nexport type components = {\n schemas: {\n AuthContextResponse: {\n /**\n * @description Type of authentication scope\n * @example project\n * @enum {string}\n */\n scopeType: 'super_user' | 'project'\n /**\n * @description Content system ID if scopeType is project, undefined for super_user\n * @example 4cfea8de-4f44-4efd-a8fc-7d539249e9f1\n */\n contentSystemScope?: string\n }\n HealthResponse: {\n /** @example ok */\n status: string\n /** @example connected */\n database: string\n /** @example available */\n s3: string\n /** @example 2026-01-01T00:00:00.000Z */\n timestamp: string\n }\n ApiKey: {\n /** @example 123abc */\n id: string\n /** @example My API Key */\n name: string\n /** @example 123def */\n contentSystemId: string\n /** @example BRTRKFsL */\n shortToken: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00.000Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00.000Z\n */\n updatedAt: string\n }\n ListApiKeysResponse: {\n data: components['schemas']['ApiKey'][]\n total: number\n }\n CreateApiKeyResponse: {\n /** @example 123abc */\n id: string\n /** @example 123def */\n contentSystemId: string\n /** @example BRTRKFsL */\n shortToken: string\n /**\n * @description Full API key - only returned on creation\n * @example figma_BRTRKFsL_51FwqftsmMDHHbJAMEXXHCgG\n */\n fullToken: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00.000Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00.000Z\n */\n updatedAt: string\n }\n CreateApiKeyRequest: {\n /** @example My API Key */\n name: string\n /** @example 123def */\n contentSystemId: string\n }\n ContentSystem: {\n /** @example cms-xxxxx-xxxxx */\n id: string\n /** @example demo-tenant */\n owningKey: string\n /** @example Demo CMS */\n name: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n CreateContentSystemResponse: {\n /** @example cms-xxxxx-xxxxx */\n id: string\n /** @example demo-tenant */\n owningKey: string\n /** @example Demo CMS */\n name: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n CreateContentSystemRequest: {\n /** @example demo-tenant */\n owningKey: string\n /** @example Demo CMS */\n name: string\n }\n RetrieveContentSystemResponse: {\n /** @example cms-xxxxx-xxxxx */\n id: string\n /** @example demo-tenant */\n owningKey: string\n /** @example Demo CMS */\n name: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n UpdateContentSystemResponse: {\n /** @example cms-xxxxx-xxxxx */\n id: string\n /** @example demo-tenant */\n owningKey: string\n /** @example Demo CMS */\n name: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n UpdateContentSystemRequest: {\n /** @example demo-tenant */\n owningKey?: string\n /** @example Demo CMS */\n name?: string\n }\n Collection: {\n /** @example posts */\n id: string\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n CreateCollectionResponse: {\n /** @example posts */\n id: string\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n CreateCollectionRequest: {\n /** @example posts */\n id: string\n }\n RetrieveCollectionResponse: {\n /** @example posts */\n id: string\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n UpdateCollectionResponse: {\n /** @example posts */\n id: string\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n UpdateCollectionRequest: {\n /** @example posts */\n id: string\n }\n CountDocumentResponse: {\n result: {\n /** @example 1 */\n count: number\n }\n }\n DataValue:\n | string\n | number\n | boolean\n | unknown\n | components['schemas']['DataValue'][]\n | {\n [key: string]: components['schemas']['DataValue']\n }\n | unknown\n /**\n * @example {\n * \"and\": [\n * {\n * \"path\": \"status\",\n * \"operator\": \"equals\",\n * \"value\": \"published\"\n * },\n * {\n * \"path\": \"createdAt\",\n * \"operator\": \"greater_than\",\n * \"value\": \"2025-01-01T00:00:00Z\"\n * }\n * ]\n * }\n */\n WhereClause:\n | {\n and: components['schemas']['WhereClause'][]\n }\n | {\n or: components['schemas']['WhereClause'][]\n }\n | {\n path: string\n operator:\n | 'equals'\n | 'not_equals'\n | 'in'\n | 'not_in'\n | 'greater_than'\n | 'greater_than_equal'\n | 'less_than'\n | 'less_than_equal'\n | 'like'\n | 'not_like'\n | 'all'\n | 'contains'\n | 'exists'\n | 'intersects'\n | 'near'\n | 'within'\n value: components['schemas']['DataValue']\n }\n CountDocumentRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n where?: components['schemas']['WhereClause']\n }\n /**\n * @example {\n * \"title\": \"Placeholder title\",\n * \"content\": \"This is placeholder content\"\n * }\n */\n DocumentData: {\n [key: string]: components['schemas']['DataValue']\n }\n Document: {\n /** @example doc-key */\n id: string\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n data: components['schemas']['DocumentData']\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n CreateDocumentResponse: {\n result:\n | {\n /** @example doc-xxxxx-xxxxx */\n id: string\n }\n | {\n data: components['schemas']['Document']\n }\n }\n /** @example createdAt */\n SortClause: string | string[]\n /**\n * @example [\n * {\n * \"collectionId\": \"books\",\n * \"on\": \"authorId\",\n * \"path\": \"books\",\n * \"count\": false,\n * \"where\": {\n * \"path\": \"status\",\n * \"operator\": \"equals\",\n * \"value\": \"published\"\n * },\n * \"limit\": 5,\n * \"offset\": 0,\n * \"sort\": [\n * {\n * \"path\": \"title\",\n * \"direction\": \"asc\"\n * }\n * ]\n * }\n * ]\n */\n JoinClause: {\n collectionId: string\n on: string\n path: string\n count: boolean\n where?: components['schemas']['WhereClause']\n limit?: number\n offset?: number\n sort?: components['schemas']['SortClause']\n }[]\n LocaleClause: {\n locale: string\n fallbackLocale: string\n paths: string[]\n }\n /**\n * @example {\n * \"mode\": \"include\",\n * \"paths\": [\n * \"title\",\n * \"author.name\",\n * \"tags\"\n * ]\n * }\n */\n SelectClause: {\n /** @enum {string} */\n mode: 'exclude' | 'include'\n paths: string[]\n }\n CreateDocumentRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n /** @example doc-key */\n id: string\n data: components['schemas']['DocumentData']\n returning?:\n | false\n | {\n join?: components['schemas']['JoinClause']\n locale?: components['schemas']['LocaleClause']\n select?: components['schemas']['SelectClause']\n }\n }\n /**\n * @example {\n * \"total\": 100,\n * \"current\": {\n * \"limit\": 10,\n * \"page\": 1\n * },\n * \"next\": {\n * \"limit\": 10,\n * \"page\": 2\n * }\n * }\n */\n Pagination: {\n total: number\n current: {\n limit: number\n page: number\n }\n next?: {\n limit: number\n page: number\n }\n prev?: {\n limit: number\n page: number\n }\n }\n FindDocumentsResponse: {\n result: {\n data: components['schemas']['Document'][]\n pagination: components['schemas']['Pagination']\n }\n }\n FindDocumentsRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n join?: components['schemas']['JoinClause']\n /** @example 10 */\n limit?: number\n locale?: components['schemas']['LocaleClause']\n /** @example 1 */\n page?: number\n select?: components['schemas']['SelectClause']\n sort?: components['schemas']['SortClause']\n where?: components['schemas']['WhereClause']\n }\n UpdateDocumentResponse: {\n result?:\n | {\n /** @example 1 */\n count: number\n }\n | {\n data: components['schemas']['Document'][]\n }\n }\n /**\n * @example {\n * \"title\": \"New Title\",\n * \"views\": {\n * \"$inc\": 1\n * },\n * \"status\": \"draft\"\n * }\n */\n DataWithOperations: {\n [key: string]: components['schemas']['DataValue']\n }\n UpdateDocumentRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n /** @example false */\n createOnMissing:\n | false\n | {\n id: string\n }\n data: components['schemas']['DataWithOperations']\n where: components['schemas']['WhereClause']\n /** @example 10 */\n limit?: number\n sort?: components['schemas']['SortClause']\n returning?:\n | false\n | {\n join?: components['schemas']['JoinClause']\n locale?: components['schemas']['LocaleClause']\n select?: components['schemas']['SelectClause']\n }\n }\n DeleteDocumentResponse: {\n result?:\n | {\n /** @example 1 */\n count: number\n }\n | {\n data: components['schemas']['Document'][]\n }\n }\n DeleteDocumentRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n where: components['schemas']['WhereClause']\n returning?:\n | false\n | {\n join?: components['schemas']['JoinClause']\n locale?: components['schemas']['LocaleClause']\n select?: components['schemas']['SelectClause']\n }\n }\n CountDocumentVersionResponse: {\n result: {\n /** @example 1 */\n count: number\n }\n }\n CountDocumentVersionRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n where?: components['schemas']['WhereClause']\n }\n DocumentVersion: {\n /** @example ver-xxxxx-xxxxx */\n id: string\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example doc-key */\n documentId: string\n /** @example true */\n latest: boolean\n data: components['schemas']['DocumentData']\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n createdAt: string\n /**\n * Format: date\n * @example 2024-01-01T00:00:00Z\n */\n updatedAt: string\n }\n CreateDocumentVersionResponse: {\n result:\n | {\n /** @example ver-xxxxx-xxxxx */\n id: string\n }\n | {\n data: components['schemas']['DocumentVersion']\n }\n }\n CreateDocumentVersionRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n /** @example doc-key */\n documentId: string\n /** @example true */\n latest?: boolean\n data: components['schemas']['DocumentData']\n returning?:\n | false\n | {\n join?: components['schemas']['JoinClause']\n locale?: components['schemas']['LocaleClause']\n select?: components['schemas']['SelectClause']\n }\n }\n FindDocumentVersionsResponse: {\n result: {\n data: components['schemas']['DocumentVersion'][]\n pagination: components['schemas']['Pagination']\n }\n }\n FindDocumentVersionsRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n join?: components['schemas']['JoinClause']\n /** @example 10 */\n limit?: number\n locale?: components['schemas']['LocaleClause']\n /** @example 1 */\n page?: number\n select?: components['schemas']['SelectClause']\n sort?: components['schemas']['SortClause']\n where?: components['schemas']['WhereClause']\n }\n UpdateDocumentVersionResponse: {\n result?:\n | {\n /** @example 1 */\n count: number\n }\n | {\n data: components['schemas']['DocumentVersion'][]\n }\n }\n UpdateDocumentVersionRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n /** @example false */\n createOnMissing:\n | false\n | {\n documentId: string\n latest: boolean\n }\n data: components['schemas']['DataWithOperations']\n where: components['schemas']['WhereClause']\n /** @example 10 */\n limit?: number\n sort?: components['schemas']['SortClause']\n returning?:\n | false\n | {\n join?: components['schemas']['JoinClause']\n locale?: components['schemas']['LocaleClause']\n select?: components['schemas']['SelectClause']\n }\n }\n DeleteDocumentVersionResponse: {\n result?:\n | {\n /** @example 1 */\n count: number\n }\n | {\n data: components['schemas']['DocumentVersion'][]\n }\n }\n DeleteDocumentVersionRequest: {\n /** @example cms-xxxxx-xxxxx */\n contentSystemId: string\n /** @example posts */\n collectionId: string\n where: components['schemas']['WhereClause']\n returning?:\n | false\n | {\n join?: components['schemas']['JoinClause']\n locale?: components['schemas']['LocaleClause']\n select?: components['schemas']['SelectClause']\n }\n }\n GeneratePresignedUploadUrlResponse: {\n /** @example https://s3.amazonaws.com/bucket/key?presigned-params */\n url: string\n }\n GeneratePresignedUploadUrlRequest: {\n /** @example document.pdf */\n filename: string\n /** @example application/pdf */\n contentType?: string\n /**\n * @default 3600\n * @example 3600\n */\n expiresIn: number\n }\n GeneratePresignedDownloadUrlResponse: {\n /** @example https://s3.amazonaws.com/bucket/key?presigned-params */\n url: string\n }\n GeneratePresignedDownloadUrlRequest: {\n /** @example document.pdf */\n filename: string\n /**\n * @default 3600\n * @example 3600\n */\n expiresIn: number\n }\n InitiateMultipartUploadResponse: {\n /** @example abc123xyz789 */\n uploadId: string\n }\n InitiateMultipartUploadRequest: {\n /** @example large-video.mp4 */\n filename: string\n /** @example video/mp4 */\n contentType: string\n }\n GenerateUploadPartUrlsResponse: {\n /**\n * @example [\n * {\n * \"partNumber\": 1,\n * \"url\": \"https://s3.amazonaws.com/...\"\n * }\n * ]\n */\n parts: {\n /** @example 1 */\n partNumber: number\n /** @example https://s3.amazonaws.com/bucket/key?presigned-params */\n url: string\n }[]\n }\n GenerateUploadPartUrlsRequest: {\n /** @example large-video.mp4 */\n filename: string\n /** @example abc123xyz789 */\n uploadId: string\n /**\n * @example [\n * 1,\n * 2,\n * 3\n * ]\n */\n partNumbers: number[]\n /**\n * @default 3600\n * @example 3600\n */\n expiresIn: number\n }\n CompleteMultipartUploadResponse: {\n /**\n * @example true\n * @enum {boolean}\n */\n success: true\n }\n CompleteMultipartUploadRequest: {\n /** @example large-video.mp4 */\n filename: string\n /** @example abc123xyz789 */\n uploadId: string\n /**\n * @example [\n * {\n * \"PartNumber\": 1,\n * \"ETag\": \"\\\"abc123\\\"\"\n * }\n * ]\n */\n parts: {\n /** @example 1 */\n PartNumber: number\n /** @example \"abc123\" */\n ETag: string\n }[]\n }\n AbortMultipartUploadResponse: {\n /**\n * @example true\n * @enum {boolean}\n */\n success: true\n }\n AbortMultipartUploadRequest: {\n /** @example large-video.mp4 */\n filename: string\n /** @example abc123xyz789 */\n uploadId: string\n }\n DeleteFileResponse: {\n /**\n * @example true\n * @enum {boolean}\n */\n success: true\n }\n JwksResponse: {\n keys: {\n /** @example RSA */\n kty: string\n /** @example sig */\n use: string\n /** @example dev-key-1 */\n kid: string\n /** @example RS256 */\n alg: string\n /** @example base64url-encoded-modulus */\n n: string\n /** @example AQAB */\n e: string\n }[]\n }\n CreateJwtResponse: {\n /**\n * @description Generated JWT token\n * @example eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...\n */\n token: string\n /**\n * @description Token expiration time in seconds\n * @example 604800\n */\n expires_in: number\n }\n CreateJwtRequest: {\n /**\n * @description Content system ID to include in the JWT aud field\n * @example 4cfea8de-4f44-4efd-a8fc-7d539249e9f1\n */\n content_system_id?: string\n }\n }\n responses: never\n parameters: never\n requestBodies: never\n headers: never\n pathItems: never\n}\nexport type $defs = Record<string, never>\nexport type operations = Record<string, never>\n"],"names":[],"mappings":"AAAA;;;CAGC,GAED,kBAAkB,GAClB,iEAAiE;AAg0HjE,WAA8C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/db-content-api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAcnB,kBAAkB,EA+BnB,MAAM,SAAS,CAAA;AAEhB,OAAO,YAAY,MAAM,eAAe,CAAA;AAIxC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAA;AAM7D,OAAO,EAAE,KAAK,QAAQ,EAA+C,MAAM,qBAAqB,CAAA;AAKhG,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,QAAQ,CAAA;IACd,eAAe,EAAE,MAAM,CAAA;IACvB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,QAAQ,CAAA;IACd,MAAM,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC,CAAA;IAC9C,eAAe,EAAE,MAAM,CAAA;IACvB,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/db-content-api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAcnB,kBAAkB,EA+BnB,MAAM,SAAS,CAAA;AAEhB,OAAO,YAAY,MAAM,eAAe,CAAA;AAIxC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAA;AAM7D,OAAO,EAAE,KAAK,QAAQ,EAA+C,MAAM,qBAAqB,CAAA;AAKhG,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,QAAQ,CAAA;IACd,eAAe,EAAE,MAAM,CAAA;IACvB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,QAAQ,CAAA;IACd,MAAM,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC,CAAA;IAC9C,eAAe,EAAE,MAAM,CAAA;IACvB,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,mBAAmB,CAAA;AA2iBvB,eAAO,MAAM,iBAAiB,SAAU,iBAAiB,KAAG,kBAuD1D,CAAA"}
|
|
@@ -118,7 +118,9 @@ async function find(args) {
|
|
|
118
118
|
return findMany.call(this, {
|
|
119
119
|
collection: args.collection,
|
|
120
120
|
joins: args.joins,
|
|
121
|
-
|
|
121
|
+
// TODO: FindArgs.limit should be 'number' not 'number | undefined'
|
|
122
|
+
// is sanitized by Payload Core before calling the adapter (defaults to 10 or 0 based on pagination)
|
|
123
|
+
limit: args.limit,
|
|
122
124
|
page: args.page ?? 1,
|
|
123
125
|
pagination: args.pagination,
|
|
124
126
|
sort: args.sort || collectionConfig?.defaultSort,
|
|
@@ -135,7 +137,9 @@ async function findVersions(args) {
|
|
|
135
137
|
body: {
|
|
136
138
|
collectionId: args.collection,
|
|
137
139
|
contentSystemId: this.contentSystemId,
|
|
138
|
-
|
|
140
|
+
// TODO: FindVersionsArgs.limit should be 'number' not 'number | undefined'
|
|
141
|
+
// is sanitized by Payload Core before calling the adapter (defaults to 10 or 0 based on pagination)
|
|
142
|
+
limit: args.limit,
|
|
139
143
|
page: args.page ?? 1,
|
|
140
144
|
sort: sortWithFallback,
|
|
141
145
|
where: whereClause
|
|
@@ -258,13 +262,16 @@ async function findOne(args) {
|
|
|
258
262
|
return docs[0] ?? null;
|
|
259
263
|
}
|
|
260
264
|
async function updateMany(args) {
|
|
265
|
+
const sortWithFallback = addFallbackSort(args.sort || '-updatedAt', this.payload, args.collection);
|
|
261
266
|
const { data: response, error } = await this.client.POST('/api/v0/documents:update', {
|
|
262
267
|
body: {
|
|
263
268
|
collectionId: args.collection,
|
|
264
269
|
contentSystemId: this.contentSystemId,
|
|
265
270
|
createOnMissing: false,
|
|
266
271
|
data: dataToContentAPI(this.payload, args.collection, args.data),
|
|
272
|
+
limit: args.limit,
|
|
267
273
|
returning: {},
|
|
274
|
+
sort: sortWithFallback,
|
|
268
275
|
where: convertPayloadWhereToContentAPI(args.where)
|
|
269
276
|
}
|
|
270
277
|
});
|