@payloadcms/figma 0.0.1-alpha.34 → 0.0.1-alpha.36
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/auth/oauth-flow.d.ts.map +1 -1
- package/dist/auth/oauth-flow.js +6 -5
- package/dist/auth/oauth-flow.js.map +1 -1
- package/dist/auth/refresh.d.ts.map +1 -1
- package/dist/auth/refresh.js +14 -9
- package/dist/auth/refresh.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +19 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/build-lambda-zip.d.ts +5 -0
- package/dist/commands/build-lambda-zip.d.ts.map +1 -0
- package/dist/commands/build-lambda-zip.js +19 -0
- package/dist/commands/build-lambda-zip.js.map +1 -0
- package/dist/commands/deploy.js +3 -3
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/init.js +2 -2
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/list-tokens.d.ts.map +1 -1
- package/dist/commands/list-tokens.js +3 -1
- package/dist/commands/list-tokens.js.map +1 -1
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +8 -5
- package/dist/commands/login.js.map +1 -1
- package/dist/config/oauth.d.ts +3 -17
- package/dist/config/oauth.d.ts.map +1 -1
- package/dist/config/oauth.js +18 -34
- package/dist/config/oauth.js.map +1 -1
- package/dist/constants.d.ts +23 -12
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +31 -12
- package/dist/constants.js.map +1 -1
- package/dist/db-content-api/README.md +0 -10
- package/dist/db-content-api/generated/content-api-types.d.ts +171 -25
- 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 +7 -8
- package/dist/db-content-api/index.js.map +1 -1
- package/dist/db-content-api/temp-utilities/sorting.d.ts +2 -6
- package/dist/db-content-api/temp-utilities/sorting.d.ts.map +1 -1
- package/dist/db-content-api/temp-utilities/sorting.js +2 -41
- package/dist/db-content-api/temp-utilities/sorting.js.map +1 -1
- package/dist/db-content-api/utilities/data/index.d.ts +2 -0
- package/dist/db-content-api/utilities/data/index.d.ts.map +1 -1
- package/dist/db-content-api/utilities/data/index.js +7 -0
- package/dist/db-content-api/utilities/data/index.js.map +1 -1
- package/dist/db-content-api/utilities/data/removeVirtualFields.d.ts +12 -0
- package/dist/db-content-api/utilities/data/removeVirtualFields.d.ts.map +1 -0
- package/dist/db-content-api/utilities/data/removeVirtualFields.js +54 -0
- package/dist/db-content-api/utilities/data/removeVirtualFields.js.map +1 -0
- package/dist/db-content-api/utilities/joins.d.ts +4 -4
- package/dist/db-content-api/utilities/joins.d.ts.map +1 -1
- package/dist/db-content-api/utilities/joins.js +12 -6
- package/dist/db-content-api/utilities/joins.js.map +1 -1
- package/dist/oauth/endpoints/getLoginEndpoint.d.ts.map +1 -1
- package/dist/oauth/endpoints/getLoginEndpoint.js +0 -3
- package/dist/oauth/endpoints/getLoginEndpoint.js.map +1 -1
- package/dist/oauth/index.d.ts.map +1 -1
- package/dist/oauth/index.js +0 -1
- package/dist/oauth/index.js.map +1 -1
- package/dist/oauth/strategy/index.d.ts +0 -2
- package/dist/oauth/strategy/index.d.ts.map +1 -1
- package/dist/oauth/strategy/index.js +33 -14
- package/dist/oauth/strategy/index.js.map +1 -1
- package/dist/plugin/build-config.d.ts.map +1 -1
- package/dist/plugin/build-config.js +12 -5
- package/dist/plugin/build-config.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/asset-collection.d.ts +3 -6
- package/dist/utils/asset-collection.d.ts.map +1 -1
- package/dist/utils/asset-collection.js +10 -34
- package/dist/utils/asset-collection.js.map +1 -1
- package/dist/utils/build-lambda-zip.d.ts +14 -0
- package/dist/utils/build-lambda-zip.d.ts.map +1 -0
- package/dist/utils/build-lambda-zip.js +81 -0
- package/dist/utils/build-lambda-zip.js.map +1 -0
- package/dist/utils/config.js +1 -1
- package/dist/utils/config.js.map +1 -1
- package/dist/utils/env-management.js +2 -2
- package/dist/utils/env-management.js.map +1 -1
- package/dist/utils/formatter.d.ts.map +1 -1
- package/dist/utils/formatter.js +7 -3
- package/dist/utils/formatter.js.map +1 -1
- package/dist/utils/lambda-config.d.ts +3 -1
- package/dist/utils/lambda-config.d.ts.map +1 -1
- package/dist/utils/lambda-config.js +13 -22
- package/dist/utils/lambda-config.js.map +1 -1
- package/dist/utils/messages.d.ts.map +1 -1
- package/dist/utils/messages.js +2 -0
- package/dist/utils/messages.js.map +1 -1
- package/dist/utils/payload-config-modifier.d.ts.map +1 -1
- package/dist/utils/payload-config-modifier.js +7 -4
- package/dist/utils/payload-config-modifier.js.map +1 -1
- package/dist/utils/payload-package-check.d.ts +7 -1
- package/dist/utils/payload-package-check.d.ts.map +1 -1
- package/dist/utils/payload-package-check.js +29 -15
- package/dist/utils/payload-package-check.js.map +1 -1
- package/dist/utils/project.d.ts.map +1 -1
- package/dist/utils/project.js +4 -3
- package/dist/utils/project.js.map +1 -1
- package/dist/utils/typescript-validator.d.ts.map +1 -1
- package/dist/utils/typescript-validator.js +7 -4
- package/dist/utils/typescript-validator.js.map +1 -1
- package/package.json +6 -2
|
@@ -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 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}\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 /**\n * @example [\n * {\n * \"path\": \"createdAt\",\n * \"direction\": \"desc\"\n * }\n * ]\n */\n SortClause: {\n path: string\n /** @enum {string} */\n direction: 'asc' | 'desc'\n }[]\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 }\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;AAwqHjE,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 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 +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;AAoiBvB,eAAO,MAAM,iBAAiB,SAAU,iBAAiB,KAAG,kBAuD1D,CAAA"}
|
|
@@ -3,7 +3,7 @@ import { createDatabaseAdapter } from 'payload';
|
|
|
3
3
|
import { v4 as uuid } from 'uuid';
|
|
4
4
|
import { getPaginationData } from './temp-utilities/pagination.js';
|
|
5
5
|
import { getGlobalSlug } from './temp-utilities/slug.js';
|
|
6
|
-
import { addFallbackSort
|
|
6
|
+
import { addFallbackSort } from './temp-utilities/sorting.js';
|
|
7
7
|
import { unwrapDocument } from './temp-utilities/unwrapDocument.js';
|
|
8
8
|
import { createAuthMiddleware, createErrorMiddleware } from './utilities/auth.js';
|
|
9
9
|
import { dataToContentAPI } from './utilities/data/index.js';
|
|
@@ -91,16 +91,14 @@ async function createCollection(collectionId) {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
async function findMany({ collection, joins, limit, page, pagination, sort, where }) {
|
|
94
|
-
const collectionConfig = this.payload.config.collections.find((c)=>c.slug === collection);
|
|
95
|
-
const sortWithFallback = addFallbackSort(sort, collectionConfig);
|
|
96
94
|
const { data: response, error } = await this.client.POST('/api/v0/documents:find', {
|
|
97
95
|
body: {
|
|
98
96
|
collectionId: collection,
|
|
99
97
|
contentSystemId: this.contentSystemId,
|
|
100
|
-
join:
|
|
98
|
+
join: convertPayloadJoinsToContentAPI(this.payload, collection, joins),
|
|
101
99
|
limit,
|
|
102
100
|
page: page ?? 1,
|
|
103
|
-
sort:
|
|
101
|
+
sort: addFallbackSort(sort, this.payload, collection),
|
|
104
102
|
where: convertPayloadWhereToContentAPI(where ?? {})
|
|
105
103
|
}
|
|
106
104
|
});
|
|
@@ -129,6 +127,7 @@ async function find(args) {
|
|
|
129
127
|
}
|
|
130
128
|
// TODO: remove Omit when this PR is released: https://github.com/payloadcms/payload/pull/15183
|
|
131
129
|
async function findVersions(args) {
|
|
130
|
+
const sortWithFallback = addFallbackSort(args.sort || '-updatedAt', this.payload, args.collection);
|
|
132
131
|
const whereClause = convertPayloadWhereToContentAPI(args.where ?? {}, {
|
|
133
132
|
parentToDocumentId: true
|
|
134
133
|
});
|
|
@@ -138,7 +137,7 @@ async function findVersions(args) {
|
|
|
138
137
|
contentSystemId: this.contentSystemId,
|
|
139
138
|
limit: args.limit ?? 0,
|
|
140
139
|
page: args.page ?? 1,
|
|
141
|
-
sort:
|
|
140
|
+
sort: sortWithFallback,
|
|
142
141
|
where: whereClause
|
|
143
142
|
}
|
|
144
143
|
});
|
|
@@ -515,7 +514,7 @@ function countGlobalVersions(args) {
|
|
|
515
514
|
});
|
|
516
515
|
}
|
|
517
516
|
export const contentAPIAdapter = (opts)=>({
|
|
518
|
-
name: '
|
|
517
|
+
name: 'content-api',
|
|
519
518
|
defaultIDType: 'text',
|
|
520
519
|
init: ({ payload })=>{
|
|
521
520
|
const client = createClient({
|
|
@@ -530,7 +529,7 @@ export const contentAPIAdapter = (opts)=>({
|
|
|
530
529
|
client.use(createAuthMiddleware(middlewareOpts));
|
|
531
530
|
client.use(createErrorMiddleware(middlewareOpts));
|
|
532
531
|
return createDatabaseAdapter({
|
|
533
|
-
name: '
|
|
532
|
+
name: 'content-api',
|
|
534
533
|
auth: opts.auth,
|
|
535
534
|
beginTransaction: ()=>Promise.resolve('no-op-transaction'),
|
|
536
535
|
client,
|