@payloadcms/figma 0.0.1-alpha.5 → 0.0.1-alpha.50

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.
Files changed (326) hide show
  1. package/dist/api/control-plane.d.ts +31 -1
  2. package/dist/api/control-plane.js +137 -67
  3. package/dist/api/figma-api.d.ts +20 -0
  4. package/dist/api/figma-api.js +77 -21
  5. package/dist/auth/callback-server.js +2 -1
  6. package/dist/auth/crypto-utils.js +5 -5
  7. package/dist/auth/jwt-validator.d.ts +2 -1
  8. package/dist/auth/jwt-validator.js +2 -2
  9. package/dist/auth/oauth-flow.d.ts +1 -1
  10. package/dist/auth/oauth-flow.js +15 -11
  11. package/dist/auth/project-token.js +11 -6
  12. package/dist/auth/refresh.d.ts +2 -1
  13. package/dist/auth/refresh.js +25 -12
  14. package/dist/auth/token-store.d.ts +40 -1
  15. package/dist/auth/token-store.js +65 -5
  16. package/dist/auth/types.d.ts +17 -4
  17. package/dist/cli.js +54 -6
  18. package/dist/commands/build-lambda-zip.d.ts +5 -0
  19. package/dist/commands/build-lambda-zip.js +19 -0
  20. package/dist/commands/debug.d.ts +8 -0
  21. package/dist/commands/debug.js +161 -0
  22. package/dist/commands/deploy.d.ts +6 -0
  23. package/dist/commands/deploy.js +94 -126
  24. package/dist/commands/env.d.ts +13 -0
  25. package/dist/commands/env.js +88 -0
  26. package/dist/commands/init.d.ts +3 -5
  27. package/dist/commands/init.js +118 -94
  28. package/dist/commands/list-tokens.d.ts +3 -3
  29. package/dist/commands/list-tokens.js +22 -7
  30. package/dist/commands/login.d.ts +8 -1
  31. package/dist/commands/login.js +30 -12
  32. package/dist/commands/logout.d.ts +5 -4
  33. package/dist/commands/logout.js +56 -13
  34. package/dist/config/oauth.d.ts +4 -14
  35. package/dist/config/oauth.js +18 -40
  36. package/dist/constants.d.ts +36 -19
  37. package/dist/constants.js +58 -20
  38. package/dist/db-content-api/README.md +98 -0
  39. package/dist/db-content-api/generated/content-api-types.d.ts +3746 -0
  40. package/dist/db-content-api/generated/content-api-types.js +7 -0
  41. package/dist/db-content-api/index.d.ts +20 -0
  42. package/dist/db-content-api/index.js +702 -0
  43. package/dist/db-content-api/temp-utilities/slug.d.ts +2 -0
  44. package/dist/db-content-api/temp-utilities/slug.js +3 -0
  45. package/dist/db-content-api/temp-utilities/sorting.d.ts +3 -0
  46. package/dist/db-content-api/temp-utilities/sorting.js +32 -0
  47. package/dist/db-content-api/temp-utilities/types.d.ts +22 -0
  48. package/dist/db-content-api/temp-utilities/types.js +15 -0
  49. package/dist/db-content-api/temp-utilities/unwrapDocument.d.ts +34 -0
  50. package/dist/db-content-api/temp-utilities/unwrapDocument.js +53 -0
  51. package/dist/db-content-api/utilities/auth.d.ts +30 -0
  52. package/dist/db-content-api/utilities/auth.js +81 -0
  53. package/dist/db-content-api/utilities/data/applyDefaults.d.ts +7 -0
  54. package/dist/db-content-api/utilities/data/applyDefaults.js +59 -0
  55. package/dist/db-content-api/utilities/data/castFieldValue.d.ts +11 -0
  56. package/dist/db-content-api/utilities/data/castFieldValue.js +69 -0
  57. package/dist/db-content-api/utilities/data/index.d.ts +42 -0
  58. package/dist/db-content-api/utilities/data/index.js +211 -0
  59. package/dist/db-content-api/utilities/data/removeVirtualFields.d.ts +12 -0
  60. package/dist/db-content-api/utilities/data/removeVirtualFields.js +54 -0
  61. package/dist/db-content-api/utilities/data/stripFields.d.ts +48 -0
  62. package/dist/db-content-api/utilities/data/stripFields.js +195 -0
  63. package/dist/db-content-api/utilities/data/transformPublishedLocale.d.ts +23 -0
  64. package/dist/db-content-api/utilities/data/transformPublishedLocale.js +42 -0
  65. package/dist/db-content-api/utilities/joins.d.ts +55 -0
  66. package/dist/db-content-api/utilities/joins.js +136 -0
  67. package/dist/db-content-api/utilities/locale/index.d.ts +10 -0
  68. package/dist/db-content-api/utilities/locale/index.js +21 -0
  69. package/dist/db-content-api/utilities/meta/buildLocalizedPaths.d.ts +11 -0
  70. package/dist/db-content-api/utilities/meta/buildLocalizedPaths.js +66 -0
  71. package/dist/db-content-api/utilities/meta/buildMeta.d.ts +37 -0
  72. package/dist/db-content-api/utilities/meta/buildMeta.js +33 -0
  73. package/dist/db-content-api/utilities/meta/buildPathTypes.d.ts +13 -0
  74. package/dist/db-content-api/utilities/meta/buildPathTypes.js +181 -0
  75. package/dist/db-content-api/utilities/where.d.ts +20 -0
  76. package/dist/db-content-api/utilities/where.js +127 -0
  77. package/dist/endpoints/health.d.ts +3 -0
  78. package/dist/endpoints/health.js +11 -0
  79. package/dist/endpoints/schema.d.ts +3 -0
  80. package/dist/endpoints/schema.js +29 -0
  81. package/dist/exports/client.d.ts +3 -0
  82. package/dist/exports/client.js +3 -0
  83. package/dist/index.d.ts +2 -1
  84. package/dist/index.js +3 -1
  85. package/dist/oauth/components/FigmaAvatar/index.d.ts +4 -0
  86. package/dist/oauth/components/FigmaAvatar/index.js +27 -0
  87. package/dist/oauth/components/FigmaAvatar/index.scss +12 -0
  88. package/dist/oauth/components/FigmaAvatarCell/index.d.ts +5 -0
  89. package/dist/oauth/components/FigmaAvatarCell/index.js +25 -0
  90. package/dist/oauth/components/FigmaAvatarCell/index.scss +5 -0
  91. package/dist/oauth/components/FigmaAvatarPlaceholder/index.d.ts +9 -0
  92. package/dist/oauth/components/FigmaAvatarPlaceholder/index.js +37 -0
  93. package/dist/oauth/components/FigmaAvatarPlaceholder/index.scss +28 -0
  94. package/dist/oauth/components/LoginButton/index.js +50 -6
  95. package/dist/oauth/components/LoginButton/index.scss +50 -3
  96. package/dist/oauth/components/LogoutButton/index.js +5 -4
  97. package/dist/oauth/defaults.js +67 -10
  98. package/dist/oauth/endpoints/getLoginEndpoint.js +69 -24
  99. package/dist/oauth/endpoints/getLogoutEndpoint.js +7 -4
  100. package/dist/oauth/index.js +40 -5
  101. package/dist/oauth/strategy/index.d.ts +0 -2
  102. package/dist/oauth/strategy/index.js +40 -17
  103. package/dist/oauth/types.d.ts +6 -6
  104. package/dist/oauth/utilities/isDuplicateKeyError.d.ts +7 -0
  105. package/dist/oauth/utilities/isDuplicateKeyError.js +14 -0
  106. package/dist/oauth/utilities/refreshTokens.js +3 -3
  107. package/dist/plugin/build-config.d.ts +21 -14
  108. package/dist/plugin/build-config.js +208 -17
  109. package/dist/storage-content-api/api-types.d.ts +168 -0
  110. package/dist/storage-content-api/api-types.js +6 -0
  111. package/dist/storage-content-api/client-uploads/ClientUploadHandler.d.ts +9 -0
  112. package/dist/storage-content-api/client-uploads/ClientUploadHandler.js +42 -0
  113. package/dist/storage-content-api/client-uploads/generateSignedURL.d.ts +13 -0
  114. package/dist/storage-content-api/client-uploads/generateSignedURL.js +39 -0
  115. package/dist/storage-content-api/client.d.ts +6 -0
  116. package/dist/storage-content-api/client.js +36 -0
  117. package/dist/storage-content-api/generateURL.d.ts +7 -0
  118. package/dist/storage-content-api/generateURL.js +8 -0
  119. package/dist/storage-content-api/handleDelete.d.ts +8 -0
  120. package/dist/storage-content-api/handleDelete.js +17 -0
  121. package/dist/storage-content-api/handleUpload.d.ts +11 -0
  122. package/dist/storage-content-api/handleUpload.js +144 -0
  123. package/dist/storage-content-api/index.d.ts +5 -0
  124. package/dist/storage-content-api/index.js +31 -0
  125. package/dist/storage-content-api/staticHandler.d.ts +10 -0
  126. package/dist/storage-content-api/staticHandler.js +56 -0
  127. package/dist/storage-content-api/types.d.ts +10 -0
  128. package/dist/storage-content-api/types.js +3 -0
  129. package/dist/storage-content-api/utilities/getSafeFilename.d.ts +12 -0
  130. package/dist/storage-content-api/utilities/getSafeFilename.js +61 -0
  131. package/dist/storage-content-api/utilities/index.d.ts +2 -0
  132. package/dist/storage-content-api/utilities/index.js +3 -0
  133. package/dist/templates/.env.example +5 -0
  134. package/dist/templates/README.md +19 -0
  135. package/dist/types/config.d.ts +2 -1
  136. package/dist/types/config.js +0 -2
  137. package/dist/types.d.ts +3 -1
  138. package/dist/utils/asset-collection.d.ts +3 -6
  139. package/dist/utils/asset-collection.js +10 -34
  140. package/dist/utils/build-lambda-zip.d.ts +14 -0
  141. package/dist/utils/build-lambda-zip.js +81 -0
  142. package/dist/utils/cache-bootstrap.d.ts +8 -0
  143. package/dist/utils/cache-bootstrap.js +18 -0
  144. package/dist/utils/config.js +1 -1
  145. package/dist/utils/env-management.d.ts +16 -7
  146. package/dist/utils/env-management.js +85 -64
  147. package/dist/utils/format-env-suffix.d.ts +12 -0
  148. package/dist/utils/format-env-suffix.js +13 -0
  149. package/dist/utils/formatter.js +3 -5
  150. package/dist/utils/lambda-config.d.ts +3 -1
  151. package/dist/utils/lambda-config.js +38 -32
  152. package/dist/utils/messages.d.ts +1 -1
  153. package/dist/utils/messages.js +22 -8
  154. package/dist/utils/package-manager.d.ts +24 -0
  155. package/dist/utils/package-manager.js +53 -0
  156. package/dist/utils/payload-config-ast.d.ts +22 -3
  157. package/dist/utils/payload-config-ast.js +96 -31
  158. package/dist/utils/payload-config-finder.d.ts +2 -2
  159. package/dist/utils/payload-config-finder.js +48 -9
  160. package/dist/utils/payload-config-modifier.d.ts +1 -1
  161. package/dist/utils/payload-config-modifier.js +58 -9
  162. package/dist/utils/payload-package-check.d.ts +12 -1
  163. package/dist/utils/payload-package-check.js +63 -5
  164. package/dist/utils/project.d.ts +3 -2
  165. package/dist/utils/project.js +15 -7
  166. package/dist/utils/resolve-environment.d.ts +14 -0
  167. package/dist/utils/resolve-environment.js +28 -0
  168. package/dist/utils/s3-upload.d.ts +0 -1
  169. package/dist/utils/s3-upload.js +10 -3
  170. package/dist/utils/token-display.js +11 -5
  171. package/dist/utils/typescript-validator.js +4 -6
  172. package/dist/utils/version-check.d.ts +3 -0
  173. package/dist/utils/version-check.js +38 -0
  174. package/package.json +29 -10
  175. package/dist/api/control-plane.d.ts.map +0 -1
  176. package/dist/api/control-plane.js.map +0 -1
  177. package/dist/api/figma-api.d.ts.map +0 -1
  178. package/dist/api/figma-api.js.map +0 -1
  179. package/dist/auth/browser.d.ts.map +0 -1
  180. package/dist/auth/browser.js.map +0 -1
  181. package/dist/auth/callback-server.d.ts.map +0 -1
  182. package/dist/auth/callback-server.js.map +0 -1
  183. package/dist/auth/crypto-utils.d.ts.map +0 -1
  184. package/dist/auth/crypto-utils.js.map +0 -1
  185. package/dist/auth/jwt-validator.d.ts.map +0 -1
  186. package/dist/auth/jwt-validator.js.map +0 -1
  187. package/dist/auth/oauth-flow.d.ts.map +0 -1
  188. package/dist/auth/oauth-flow.js.map +0 -1
  189. package/dist/auth/pkce.d.ts.map +0 -1
  190. package/dist/auth/pkce.js.map +0 -1
  191. package/dist/auth/project-token.d.ts.map +0 -1
  192. package/dist/auth/project-token.js.map +0 -1
  193. package/dist/auth/refresh.d.ts.map +0 -1
  194. package/dist/auth/refresh.js.map +0 -1
  195. package/dist/auth/token-store.d.ts.map +0 -1
  196. package/dist/auth/token-store.js.map +0 -1
  197. package/dist/auth/types.d.ts.map +0 -1
  198. package/dist/auth/types.js.map +0 -1
  199. package/dist/cli.d.ts.map +0 -1
  200. package/dist/cli.js.map +0 -1
  201. package/dist/commands/deploy.d.ts.map +0 -1
  202. package/dist/commands/deploy.js.map +0 -1
  203. package/dist/commands/init.d.ts.map +0 -1
  204. package/dist/commands/init.js.map +0 -1
  205. package/dist/commands/list-tokens.d.ts.map +0 -1
  206. package/dist/commands/list-tokens.js.map +0 -1
  207. package/dist/commands/login.d.ts.map +0 -1
  208. package/dist/commands/login.js.map +0 -1
  209. package/dist/commands/logout.d.ts.map +0 -1
  210. package/dist/commands/logout.js.map +0 -1
  211. package/dist/config/oauth.d.ts.map +0 -1
  212. package/dist/config/oauth.js.map +0 -1
  213. package/dist/constants.d.ts.map +0 -1
  214. package/dist/constants.js.map +0 -1
  215. package/dist/exports/client.d.ts.map +0 -1
  216. package/dist/exports/client.js.map +0 -1
  217. package/dist/index.d.ts.map +0 -1
  218. package/dist/index.js.map +0 -1
  219. package/dist/oauth/components/LoginButton/index.d.ts.map +0 -1
  220. package/dist/oauth/components/LoginButton/index.js.map +0 -1
  221. package/dist/oauth/components/LogoutButton/index.d.ts.map +0 -1
  222. package/dist/oauth/components/LogoutButton/index.js.map +0 -1
  223. package/dist/oauth/defaults.d.ts.map +0 -1
  224. package/dist/oauth/defaults.js.map +0 -1
  225. package/dist/oauth/endpoints/getLoginEndpoint.d.ts.map +0 -1
  226. package/dist/oauth/endpoints/getLoginEndpoint.js.map +0 -1
  227. package/dist/oauth/endpoints/getLogoutEndpoint.d.ts.map +0 -1
  228. package/dist/oauth/endpoints/getLogoutEndpoint.js.map +0 -1
  229. package/dist/oauth/endpoints/getMetaEndpoint.d.ts.map +0 -1
  230. package/dist/oauth/endpoints/getMetaEndpoint.js.map +0 -1
  231. package/dist/oauth/endpoints/getRedirectToLoginEndpoint.d.ts.map +0 -1
  232. package/dist/oauth/endpoints/getRedirectToLoginEndpoint.js.map +0 -1
  233. package/dist/oauth/exports/client.d.ts.map +0 -1
  234. package/dist/oauth/exports/client.js.map +0 -1
  235. package/dist/oauth/hooks/afterLogout.d.ts.map +0 -1
  236. package/dist/oauth/hooks/afterLogout.js.map +0 -1
  237. package/dist/oauth/hooks/me.d.ts.map +0 -1
  238. package/dist/oauth/hooks/me.js.map +0 -1
  239. package/dist/oauth/hooks/refresh.d.ts.map +0 -1
  240. package/dist/oauth/hooks/refresh.js.map +0 -1
  241. package/dist/oauth/index.d.ts.map +0 -1
  242. package/dist/oauth/index.js.map +0 -1
  243. package/dist/oauth/strategy/index.d.ts.map +0 -1
  244. package/dist/oauth/strategy/index.js.map +0 -1
  245. package/dist/oauth/types.d.ts.map +0 -1
  246. package/dist/oauth/types.js.map +0 -1
  247. package/dist/oauth/utilities/clearCookie.d.ts.map +0 -1
  248. package/dist/oauth/utilities/clearCookie.js.map +0 -1
  249. package/dist/oauth/utilities/createCookieOptions.d.ts.map +0 -1
  250. package/dist/oauth/utilities/createCookieOptions.js.map +0 -1
  251. package/dist/oauth/utilities/createDebugLogger.d.ts.map +0 -1
  252. package/dist/oauth/utilities/createDebugLogger.js.map +0 -1
  253. package/dist/oauth/utilities/extractOrigin.d.ts.map +0 -1
  254. package/dist/oauth/utilities/extractOrigin.js.map +0 -1
  255. package/dist/oauth/utilities/getAdminCollectionSlug.d.ts.map +0 -1
  256. package/dist/oauth/utilities/getAdminCollectionSlug.js.map +0 -1
  257. package/dist/oauth/utilities/getAdminPath.d.ts +0 -8
  258. package/dist/oauth/utilities/getAdminPath.d.ts.map +0 -1
  259. package/dist/oauth/utilities/getAdminPath.js +0 -9
  260. package/dist/oauth/utilities/getAdminPath.js.map +0 -1
  261. package/dist/oauth/utilities/getAuthorizeURL.d.ts.map +0 -1
  262. package/dist/oauth/utilities/getAuthorizeURL.js.map +0 -1
  263. package/dist/oauth/utilities/getCookieExpiration.d.ts.map +0 -1
  264. package/dist/oauth/utilities/getCookieExpiration.js.map +0 -1
  265. package/dist/oauth/utilities/getSecondsFromTokenExp.d.ts.map +0 -1
  266. package/dist/oauth/utilities/getSecondsFromTokenExp.js.map +0 -1
  267. package/dist/oauth/utilities/getTokenExp.d.ts.map +0 -1
  268. package/dist/oauth/utilities/getTokenExp.js.map +0 -1
  269. package/dist/oauth/utilities/getUsernameField.d.ts.map +0 -1
  270. package/dist/oauth/utilities/getUsernameField.js.map +0 -1
  271. package/dist/oauth/utilities/hasUserTokenPropsChanged.d.ts.map +0 -1
  272. package/dist/oauth/utilities/hasUserTokenPropsChanged.js.map +0 -1
  273. package/dist/oauth/utilities/mergeHeaders.d.ts.map +0 -1
  274. package/dist/oauth/utilities/mergeHeaders.js.map +0 -1
  275. package/dist/oauth/utilities/refreshTokens.d.ts.map +0 -1
  276. package/dist/oauth/utilities/refreshTokens.js.map +0 -1
  277. package/dist/plugin/adapter.d.ts.map +0 -1
  278. package/dist/plugin/adapter.js.map +0 -1
  279. package/dist/plugin/build-config.d.ts.map +0 -1
  280. package/dist/plugin/build-config.js.map +0 -1
  281. package/dist/types/config.d.ts.map +0 -1
  282. package/dist/types/config.js.map +0 -1
  283. package/dist/types.d.ts.map +0 -1
  284. package/dist/types.js.map +0 -1
  285. package/dist/utils/asset-collection.d.ts.map +0 -1
  286. package/dist/utils/asset-collection.js.map +0 -1
  287. package/dist/utils/build-detection.d.ts.map +0 -1
  288. package/dist/utils/build-detection.js.map +0 -1
  289. package/dist/utils/config.d.ts.map +0 -1
  290. package/dist/utils/config.js.map +0 -1
  291. package/dist/utils/download-template.d.ts.map +0 -1
  292. package/dist/utils/download-template.js.map +0 -1
  293. package/dist/utils/env-management.d.ts.map +0 -1
  294. package/dist/utils/env-management.js.map +0 -1
  295. package/dist/utils/format.d.ts.map +0 -1
  296. package/dist/utils/format.js.map +0 -1
  297. package/dist/utils/formatter.d.ts.map +0 -1
  298. package/dist/utils/formatter.js.map +0 -1
  299. package/dist/utils/git.d.ts.map +0 -1
  300. package/dist/utils/git.js.map +0 -1
  301. package/dist/utils/is-debug.d.ts.map +0 -1
  302. package/dist/utils/is-debug.js.map +0 -1
  303. package/dist/utils/lambda-config.d.ts.map +0 -1
  304. package/dist/utils/lambda-config.js.map +0 -1
  305. package/dist/utils/log.d.ts.map +0 -1
  306. package/dist/utils/log.js.map +0 -1
  307. package/dist/utils/messages.d.ts.map +0 -1
  308. package/dist/utils/messages.js.map +0 -1
  309. package/dist/utils/package-manager.d.ts.map +0 -1
  310. package/dist/utils/package-manager.js.map +0 -1
  311. package/dist/utils/payload-config-ast.d.ts.map +0 -1
  312. package/dist/utils/payload-config-ast.js.map +0 -1
  313. package/dist/utils/payload-config-finder.d.ts.map +0 -1
  314. package/dist/utils/payload-config-finder.js.map +0 -1
  315. package/dist/utils/payload-config-modifier.d.ts.map +0 -1
  316. package/dist/utils/payload-config-modifier.js.map +0 -1
  317. package/dist/utils/payload-package-check.d.ts.map +0 -1
  318. package/dist/utils/payload-package-check.js.map +0 -1
  319. package/dist/utils/project.d.ts.map +0 -1
  320. package/dist/utils/project.js.map +0 -1
  321. package/dist/utils/s3-upload.d.ts.map +0 -1
  322. package/dist/utils/s3-upload.js.map +0 -1
  323. package/dist/utils/token-display.d.ts.map +0 -1
  324. package/dist/utils/token-display.js.map +0 -1
  325. package/dist/utils/typescript-validator.d.ts.map +0 -1
  326. package/dist/utils/typescript-validator.js.map +0 -1
@@ -0,0 +1,3746 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export type paths = {
6
+ '/api/me': {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ get: {
14
+ parameters: {
15
+ query?: never;
16
+ header?: never;
17
+ path?: never;
18
+ cookie?: never;
19
+ };
20
+ requestBody?: never;
21
+ responses: {
22
+ /** @description Current authentication context */
23
+ 200: {
24
+ headers: {
25
+ [name: string]: unknown;
26
+ };
27
+ content: {
28
+ 'application/json': components['schemas']['AuthContextResponse'];
29
+ };
30
+ };
31
+ /** @description Unauthorized */
32
+ 401: {
33
+ headers: {
34
+ [name: string]: unknown;
35
+ };
36
+ content: {
37
+ 'application/json': {
38
+ /** @example Error message describing the issue. */
39
+ message: string;
40
+ };
41
+ };
42
+ };
43
+ };
44
+ };
45
+ put?: never;
46
+ post?: never;
47
+ delete?: never;
48
+ options?: never;
49
+ head?: never;
50
+ patch?: never;
51
+ trace?: never;
52
+ };
53
+ '/health': {
54
+ parameters: {
55
+ query?: never;
56
+ header?: never;
57
+ path?: never;
58
+ cookie?: never;
59
+ };
60
+ get: {
61
+ parameters: {
62
+ query?: never;
63
+ header?: never;
64
+ path?: never;
65
+ cookie?: never;
66
+ };
67
+ requestBody?: never;
68
+ responses: {
69
+ /** @description OK */
70
+ 200: {
71
+ headers: {
72
+ [name: string]: unknown;
73
+ };
74
+ content: {
75
+ 'application/json': components['schemas']['HealthResponse'];
76
+ };
77
+ };
78
+ };
79
+ };
80
+ put?: never;
81
+ post?: never;
82
+ delete?: never;
83
+ options?: never;
84
+ head?: never;
85
+ patch?: never;
86
+ trace?: never;
87
+ };
88
+ '/api/v0/api_keys': {
89
+ parameters: {
90
+ query?: never;
91
+ header?: never;
92
+ path?: never;
93
+ cookie?: never;
94
+ };
95
+ get: {
96
+ parameters: {
97
+ query: {
98
+ contentSystemId: string;
99
+ };
100
+ header?: never;
101
+ path?: never;
102
+ cookie?: never;
103
+ };
104
+ requestBody?: never;
105
+ responses: {
106
+ /** @description API keys retrieved */
107
+ 200: {
108
+ headers: {
109
+ [name: string]: unknown;
110
+ };
111
+ content: {
112
+ 'application/json': components['schemas']['ListApiKeysResponse'];
113
+ };
114
+ };
115
+ /** @description No content system scope found */
116
+ 400: {
117
+ headers: {
118
+ [name: string]: unknown;
119
+ };
120
+ content: {
121
+ 'application/json': {
122
+ /** @example Error message describing the issue. */
123
+ message: string;
124
+ };
125
+ };
126
+ };
127
+ /** @description Unauthorized */
128
+ 401: {
129
+ headers: {
130
+ [name: string]: unknown;
131
+ };
132
+ content: {
133
+ 'application/json': {
134
+ /** @example Error message describing the issue. */
135
+ message: string;
136
+ };
137
+ };
138
+ };
139
+ /** @description Forbidden */
140
+ 403: {
141
+ headers: {
142
+ [name: string]: unknown;
143
+ };
144
+ content: {
145
+ 'application/json': {
146
+ /** @example Error message describing the issue. */
147
+ message: string;
148
+ };
149
+ };
150
+ };
151
+ };
152
+ };
153
+ put?: never;
154
+ post: {
155
+ parameters: {
156
+ query?: never;
157
+ header?: never;
158
+ path?: never;
159
+ cookie?: never;
160
+ };
161
+ requestBody?: {
162
+ content: {
163
+ 'application/json': components['schemas']['CreateApiKeyRequest'];
164
+ };
165
+ };
166
+ responses: {
167
+ /** @description API key created */
168
+ 201: {
169
+ headers: {
170
+ [name: string]: unknown;
171
+ };
172
+ content: {
173
+ 'application/json': components['schemas']['CreateApiKeyResponse'];
174
+ };
175
+ };
176
+ /** @description Bad Request */
177
+ 400: {
178
+ headers: {
179
+ [name: string]: unknown;
180
+ };
181
+ content: {
182
+ 'application/json': {
183
+ /** @example Error message describing the issue. */
184
+ message: string;
185
+ };
186
+ };
187
+ };
188
+ /** @description Unauthorized */
189
+ 401: {
190
+ headers: {
191
+ [name: string]: unknown;
192
+ };
193
+ content: {
194
+ 'application/json': {
195
+ /** @example Error message describing the issue. */
196
+ message: string;
197
+ };
198
+ };
199
+ };
200
+ /** @description Forbidden */
201
+ 403: {
202
+ headers: {
203
+ [name: string]: unknown;
204
+ };
205
+ content: {
206
+ 'application/json': {
207
+ /** @example Error message describing the issue. */
208
+ message: string;
209
+ };
210
+ };
211
+ };
212
+ /** @description Failed to create API key */
213
+ 500: {
214
+ headers: {
215
+ [name: string]: unknown;
216
+ };
217
+ content: {
218
+ 'application/json': {
219
+ /** @example Error message describing the issue. */
220
+ message: string;
221
+ };
222
+ };
223
+ };
224
+ };
225
+ };
226
+ delete?: never;
227
+ options?: never;
228
+ head?: never;
229
+ patch?: never;
230
+ trace?: never;
231
+ };
232
+ '/api/v0/api_keys/{id}': {
233
+ parameters: {
234
+ query?: never;
235
+ header?: never;
236
+ path?: never;
237
+ cookie?: never;
238
+ };
239
+ get?: never;
240
+ put?: never;
241
+ post?: never;
242
+ delete: {
243
+ parameters: {
244
+ query?: never;
245
+ header?: never;
246
+ path: {
247
+ id: string;
248
+ };
249
+ cookie?: never;
250
+ };
251
+ requestBody?: never;
252
+ responses: {
253
+ /** @description API key deleted successfully */
254
+ 204: {
255
+ headers: {
256
+ [name: string]: unknown;
257
+ };
258
+ content?: never;
259
+ };
260
+ /** @description Bad Request */
261
+ 400: {
262
+ headers: {
263
+ [name: string]: unknown;
264
+ };
265
+ content: {
266
+ 'application/json': {
267
+ /** @example Error message describing the issue. */
268
+ message: string;
269
+ };
270
+ };
271
+ };
272
+ /** @description Unauthorized */
273
+ 401: {
274
+ headers: {
275
+ [name: string]: unknown;
276
+ };
277
+ content: {
278
+ 'application/json': {
279
+ /** @example Error message describing the issue. */
280
+ message: string;
281
+ };
282
+ };
283
+ };
284
+ /** @description Forbidden */
285
+ 403: {
286
+ headers: {
287
+ [name: string]: unknown;
288
+ };
289
+ content: {
290
+ 'application/json': {
291
+ /** @example Error message describing the issue. */
292
+ message: string;
293
+ };
294
+ };
295
+ };
296
+ /** @description Not Found */
297
+ 404: {
298
+ headers: {
299
+ [name: string]: unknown;
300
+ };
301
+ content: {
302
+ 'application/json': {
303
+ /** @example Error message describing the issue. */
304
+ message: string;
305
+ };
306
+ };
307
+ };
308
+ /** @description Internal Server Error */
309
+ 500: {
310
+ headers: {
311
+ [name: string]: unknown;
312
+ };
313
+ content: {
314
+ 'application/json': {
315
+ /** @example Error message describing the issue. */
316
+ message: string;
317
+ };
318
+ };
319
+ };
320
+ };
321
+ };
322
+ options?: never;
323
+ head?: never;
324
+ patch?: never;
325
+ trace?: never;
326
+ };
327
+ '/api/v0/content_systems': {
328
+ parameters: {
329
+ query?: never;
330
+ header?: never;
331
+ path?: never;
332
+ cookie?: never;
333
+ };
334
+ get: {
335
+ parameters: {
336
+ query?: never;
337
+ header?: never;
338
+ path?: never;
339
+ cookie?: never;
340
+ };
341
+ requestBody?: never;
342
+ responses: {
343
+ /** @description Content systems retrieved */
344
+ 200: {
345
+ headers: {
346
+ [name: string]: unknown;
347
+ };
348
+ content: {
349
+ 'application/json': {
350
+ data: components['schemas']['ContentSystem'][];
351
+ total: number;
352
+ };
353
+ };
354
+ };
355
+ /** @description Bad Request */
356
+ 400: {
357
+ headers: {
358
+ [name: string]: unknown;
359
+ };
360
+ content: {
361
+ 'application/json': {
362
+ /** @example Error message describing the issue. */
363
+ message: string;
364
+ };
365
+ };
366
+ };
367
+ /** @description Unauthorized */
368
+ 401: {
369
+ headers: {
370
+ [name: string]: unknown;
371
+ };
372
+ content: {
373
+ 'application/json': {
374
+ /** @example Error message describing the issue. */
375
+ message: string;
376
+ };
377
+ };
378
+ };
379
+ /** @description Forbidden */
380
+ 403: {
381
+ headers: {
382
+ [name: string]: unknown;
383
+ };
384
+ content: {
385
+ 'application/json': {
386
+ /** @example Error message describing the issue. */
387
+ message: string;
388
+ };
389
+ };
390
+ };
391
+ /** @description Internal Server Error */
392
+ 500: {
393
+ headers: {
394
+ [name: string]: unknown;
395
+ };
396
+ content: {
397
+ 'application/json': {
398
+ /** @example Error message describing the issue. */
399
+ message: string;
400
+ };
401
+ };
402
+ };
403
+ };
404
+ };
405
+ put?: never;
406
+ post: {
407
+ parameters: {
408
+ query?: never;
409
+ header?: never;
410
+ path?: never;
411
+ cookie?: never;
412
+ };
413
+ requestBody?: {
414
+ content: {
415
+ 'application/json': components['schemas']['CreateContentSystemRequest'];
416
+ };
417
+ };
418
+ responses: {
419
+ /** @description Content system created */
420
+ 201: {
421
+ headers: {
422
+ [name: string]: unknown;
423
+ };
424
+ content: {
425
+ 'application/json': components['schemas']['CreateContentSystemResponse'];
426
+ };
427
+ };
428
+ /** @description Bad Request */
429
+ 400: {
430
+ headers: {
431
+ [name: string]: unknown;
432
+ };
433
+ content: {
434
+ 'application/json': {
435
+ /** @example Error message describing the issue. */
436
+ message: string;
437
+ };
438
+ };
439
+ };
440
+ /** @description Unauthorized */
441
+ 401: {
442
+ headers: {
443
+ [name: string]: unknown;
444
+ };
445
+ content: {
446
+ 'application/json': {
447
+ /** @example Error message describing the issue. */
448
+ message: string;
449
+ };
450
+ };
451
+ };
452
+ /** @description Forbidden */
453
+ 403: {
454
+ headers: {
455
+ [name: string]: unknown;
456
+ };
457
+ content: {
458
+ 'application/json': {
459
+ /** @example Error message describing the issue. */
460
+ message: string;
461
+ };
462
+ };
463
+ };
464
+ /** @description Conflict */
465
+ 409: {
466
+ headers: {
467
+ [name: string]: unknown;
468
+ };
469
+ content: {
470
+ 'application/json': {
471
+ /** @example Error message describing the issue. */
472
+ message: string;
473
+ };
474
+ };
475
+ };
476
+ /** @description Unprocessable Entity */
477
+ 422: {
478
+ headers: {
479
+ [name: string]: unknown;
480
+ };
481
+ content: {
482
+ 'application/json': {
483
+ /** @example Error message describing the issue. */
484
+ message: string;
485
+ };
486
+ };
487
+ };
488
+ /** @description Internal Server Error */
489
+ 500: {
490
+ headers: {
491
+ [name: string]: unknown;
492
+ };
493
+ content: {
494
+ 'application/json': {
495
+ /** @example Error message describing the issue. */
496
+ message: string;
497
+ };
498
+ };
499
+ };
500
+ };
501
+ };
502
+ delete?: never;
503
+ options?: never;
504
+ head?: never;
505
+ patch?: never;
506
+ trace?: never;
507
+ };
508
+ '/api/v0/content_systems/{id}': {
509
+ parameters: {
510
+ query?: never;
511
+ header?: never;
512
+ path?: never;
513
+ cookie?: never;
514
+ };
515
+ get: {
516
+ parameters: {
517
+ query?: never;
518
+ header?: never;
519
+ path: {
520
+ id: string;
521
+ };
522
+ cookie?: never;
523
+ };
524
+ requestBody?: never;
525
+ responses: {
526
+ /** @description Content system retrieved */
527
+ 200: {
528
+ headers: {
529
+ [name: string]: unknown;
530
+ };
531
+ content: {
532
+ 'application/json': components['schemas']['RetrieveContentSystemResponse'];
533
+ };
534
+ };
535
+ /** @description Bad Request */
536
+ 400: {
537
+ headers: {
538
+ [name: string]: unknown;
539
+ };
540
+ content: {
541
+ 'application/json': {
542
+ /** @example Error message describing the issue. */
543
+ message: string;
544
+ };
545
+ };
546
+ };
547
+ /** @description Unauthorized */
548
+ 401: {
549
+ headers: {
550
+ [name: string]: unknown;
551
+ };
552
+ content: {
553
+ 'application/json': {
554
+ /** @example Error message describing the issue. */
555
+ message: string;
556
+ };
557
+ };
558
+ };
559
+ /** @description Forbidden */
560
+ 403: {
561
+ headers: {
562
+ [name: string]: unknown;
563
+ };
564
+ content: {
565
+ 'application/json': {
566
+ /** @example Error message describing the issue. */
567
+ message: string;
568
+ };
569
+ };
570
+ };
571
+ /** @description Not Found */
572
+ 404: {
573
+ headers: {
574
+ [name: string]: unknown;
575
+ };
576
+ content: {
577
+ 'application/json': {
578
+ /** @example Error message describing the issue. */
579
+ message: string;
580
+ };
581
+ };
582
+ };
583
+ /** @description Internal Server Error */
584
+ 500: {
585
+ headers: {
586
+ [name: string]: unknown;
587
+ };
588
+ content: {
589
+ 'application/json': {
590
+ /** @example Error message describing the issue. */
591
+ message: string;
592
+ };
593
+ };
594
+ };
595
+ };
596
+ };
597
+ put: {
598
+ parameters: {
599
+ query?: never;
600
+ header?: never;
601
+ path: {
602
+ id: string;
603
+ };
604
+ cookie?: never;
605
+ };
606
+ requestBody?: {
607
+ content: {
608
+ 'application/json': components['schemas']['UpdateContentSystemRequest'];
609
+ };
610
+ };
611
+ responses: {
612
+ /** @description Content system updated */
613
+ 200: {
614
+ headers: {
615
+ [name: string]: unknown;
616
+ };
617
+ content: {
618
+ 'application/json': components['schemas']['UpdateContentSystemResponse'];
619
+ };
620
+ };
621
+ /** @description Bad Request */
622
+ 400: {
623
+ headers: {
624
+ [name: string]: unknown;
625
+ };
626
+ content: {
627
+ 'application/json': {
628
+ /** @example Error message describing the issue. */
629
+ message: string;
630
+ };
631
+ };
632
+ };
633
+ /** @description Unauthorized */
634
+ 401: {
635
+ headers: {
636
+ [name: string]: unknown;
637
+ };
638
+ content: {
639
+ 'application/json': {
640
+ /** @example Error message describing the issue. */
641
+ message: string;
642
+ };
643
+ };
644
+ };
645
+ /** @description Forbidden */
646
+ 403: {
647
+ headers: {
648
+ [name: string]: unknown;
649
+ };
650
+ content: {
651
+ 'application/json': {
652
+ /** @example Error message describing the issue. */
653
+ message: string;
654
+ };
655
+ };
656
+ };
657
+ /** @description Not Found */
658
+ 404: {
659
+ headers: {
660
+ [name: string]: unknown;
661
+ };
662
+ content: {
663
+ 'application/json': {
664
+ /** @example Error message describing the issue. */
665
+ message: string;
666
+ };
667
+ };
668
+ };
669
+ /** @description Conflict */
670
+ 409: {
671
+ headers: {
672
+ [name: string]: unknown;
673
+ };
674
+ content: {
675
+ 'application/json': {
676
+ /** @example Error message describing the issue. */
677
+ message: string;
678
+ };
679
+ };
680
+ };
681
+ /** @description Internal Server Error */
682
+ 500: {
683
+ headers: {
684
+ [name: string]: unknown;
685
+ };
686
+ content: {
687
+ 'application/json': {
688
+ /** @example Error message describing the issue. */
689
+ message: string;
690
+ };
691
+ };
692
+ };
693
+ };
694
+ };
695
+ post?: never;
696
+ delete: {
697
+ parameters: {
698
+ query?: never;
699
+ header?: never;
700
+ path: {
701
+ id: string;
702
+ };
703
+ cookie?: never;
704
+ };
705
+ requestBody?: never;
706
+ responses: {
707
+ /** @description Content system deleted successfully */
708
+ 204: {
709
+ headers: {
710
+ [name: string]: unknown;
711
+ };
712
+ content?: never;
713
+ };
714
+ /** @description Unauthorized */
715
+ 401: {
716
+ headers: {
717
+ [name: string]: unknown;
718
+ };
719
+ content: {
720
+ 'application/json': {
721
+ /** @example Error message describing the issue. */
722
+ message: string;
723
+ };
724
+ };
725
+ };
726
+ /** @description Forbidden */
727
+ 403: {
728
+ headers: {
729
+ [name: string]: unknown;
730
+ };
731
+ content: {
732
+ 'application/json': {
733
+ /** @example Error message describing the issue. */
734
+ message: string;
735
+ };
736
+ };
737
+ };
738
+ /** @description Not Found */
739
+ 404: {
740
+ headers: {
741
+ [name: string]: unknown;
742
+ };
743
+ content: {
744
+ 'application/json': {
745
+ /** @example Error message describing the issue. */
746
+ message: string;
747
+ };
748
+ };
749
+ };
750
+ /** @description Internal Server Error */
751
+ 500: {
752
+ headers: {
753
+ [name: string]: unknown;
754
+ };
755
+ content: {
756
+ 'application/json': {
757
+ /** @example Error message describing the issue. */
758
+ message: string;
759
+ };
760
+ };
761
+ };
762
+ };
763
+ };
764
+ options?: never;
765
+ head?: never;
766
+ patch?: never;
767
+ trace?: never;
768
+ };
769
+ '/api/v0/content_systems/{contentSystemId}/collections': {
770
+ parameters: {
771
+ query?: never;
772
+ header?: never;
773
+ path?: never;
774
+ cookie?: never;
775
+ };
776
+ get: {
777
+ parameters: {
778
+ query?: {
779
+ id?: string;
780
+ };
781
+ header?: never;
782
+ path: {
783
+ contentSystemId: string;
784
+ };
785
+ cookie?: never;
786
+ };
787
+ requestBody?: never;
788
+ responses: {
789
+ /** @description Collections retrieved */
790
+ 200: {
791
+ headers: {
792
+ [name: string]: unknown;
793
+ };
794
+ content: {
795
+ 'application/json': {
796
+ data: components['schemas']['Collection'][];
797
+ total: number;
798
+ };
799
+ };
800
+ };
801
+ /** @description Bad Request */
802
+ 400: {
803
+ headers: {
804
+ [name: string]: unknown;
805
+ };
806
+ content: {
807
+ 'application/json': {
808
+ /** @example Error message describing the issue. */
809
+ message: string;
810
+ };
811
+ };
812
+ };
813
+ /** @description Unauthorized */
814
+ 401: {
815
+ headers: {
816
+ [name: string]: unknown;
817
+ };
818
+ content: {
819
+ 'application/json': {
820
+ /** @example Error message describing the issue. */
821
+ message: string;
822
+ };
823
+ };
824
+ };
825
+ /** @description Forbidden */
826
+ 403: {
827
+ headers: {
828
+ [name: string]: unknown;
829
+ };
830
+ content: {
831
+ 'application/json': {
832
+ /** @example Error message describing the issue. */
833
+ message: string;
834
+ };
835
+ };
836
+ };
837
+ /** @description Internal Server Error */
838
+ 500: {
839
+ headers: {
840
+ [name: string]: unknown;
841
+ };
842
+ content: {
843
+ 'application/json': {
844
+ /** @example Error message describing the issue. */
845
+ message: string;
846
+ };
847
+ };
848
+ };
849
+ };
850
+ };
851
+ put?: never;
852
+ post: {
853
+ parameters: {
854
+ query?: never;
855
+ header?: never;
856
+ path: {
857
+ contentSystemId: string;
858
+ };
859
+ cookie?: never;
860
+ };
861
+ requestBody?: {
862
+ content: {
863
+ 'application/json': components['schemas']['CreateCollectionRequest'];
864
+ };
865
+ };
866
+ responses: {
867
+ /** @description Collection created */
868
+ 201: {
869
+ headers: {
870
+ [name: string]: unknown;
871
+ };
872
+ content: {
873
+ 'application/json': components['schemas']['CreateCollectionResponse'];
874
+ };
875
+ };
876
+ /** @description Bad Request */
877
+ 400: {
878
+ headers: {
879
+ [name: string]: unknown;
880
+ };
881
+ content: {
882
+ 'application/json': {
883
+ /** @example Error message describing the issue. */
884
+ message: string;
885
+ };
886
+ };
887
+ };
888
+ /** @description Unauthorized */
889
+ 401: {
890
+ headers: {
891
+ [name: string]: unknown;
892
+ };
893
+ content: {
894
+ 'application/json': {
895
+ /** @example Error message describing the issue. */
896
+ message: string;
897
+ };
898
+ };
899
+ };
900
+ /** @description Forbidden */
901
+ 403: {
902
+ headers: {
903
+ [name: string]: unknown;
904
+ };
905
+ content: {
906
+ 'application/json': {
907
+ /** @example Error message describing the issue. */
908
+ message: string;
909
+ };
910
+ };
911
+ };
912
+ /** @description Not Found */
913
+ 404: {
914
+ headers: {
915
+ [name: string]: unknown;
916
+ };
917
+ content: {
918
+ 'application/json': {
919
+ /** @example Error message describing the issue. */
920
+ message: string;
921
+ };
922
+ };
923
+ };
924
+ /** @description Conflict */
925
+ 409: {
926
+ headers: {
927
+ [name: string]: unknown;
928
+ };
929
+ content: {
930
+ 'application/json': {
931
+ /** @example Error message describing the issue. */
932
+ message: string;
933
+ };
934
+ };
935
+ };
936
+ /** @description Unprocessable Entity */
937
+ 422: {
938
+ headers: {
939
+ [name: string]: unknown;
940
+ };
941
+ content: {
942
+ 'application/json': {
943
+ /** @example Error message describing the issue. */
944
+ message: string;
945
+ };
946
+ };
947
+ };
948
+ /** @description Internal Server Error */
949
+ 500: {
950
+ headers: {
951
+ [name: string]: unknown;
952
+ };
953
+ content: {
954
+ 'application/json': {
955
+ /** @example Error message describing the issue. */
956
+ message: string;
957
+ };
958
+ };
959
+ };
960
+ };
961
+ };
962
+ delete?: never;
963
+ options?: never;
964
+ head?: never;
965
+ patch?: never;
966
+ trace?: never;
967
+ };
968
+ '/api/v0/content_systems/{contentSystemId}/collections/{id}': {
969
+ parameters: {
970
+ query?: never;
971
+ header?: never;
972
+ path?: never;
973
+ cookie?: never;
974
+ };
975
+ get: {
976
+ parameters: {
977
+ query?: never;
978
+ header?: never;
979
+ path: {
980
+ contentSystemId: string;
981
+ id: string;
982
+ };
983
+ cookie?: never;
984
+ };
985
+ requestBody?: never;
986
+ responses: {
987
+ /** @description Collection retrieved */
988
+ 200: {
989
+ headers: {
990
+ [name: string]: unknown;
991
+ };
992
+ content: {
993
+ 'application/json': components['schemas']['RetrieveCollectionResponse'];
994
+ };
995
+ };
996
+ /** @description Bad Request */
997
+ 400: {
998
+ headers: {
999
+ [name: string]: unknown;
1000
+ };
1001
+ content: {
1002
+ 'application/json': {
1003
+ /** @example Error message describing the issue. */
1004
+ message: string;
1005
+ };
1006
+ };
1007
+ };
1008
+ /** @description Unauthorized */
1009
+ 401: {
1010
+ headers: {
1011
+ [name: string]: unknown;
1012
+ };
1013
+ content: {
1014
+ 'application/json': {
1015
+ /** @example Error message describing the issue. */
1016
+ message: string;
1017
+ };
1018
+ };
1019
+ };
1020
+ /** @description Forbidden */
1021
+ 403: {
1022
+ headers: {
1023
+ [name: string]: unknown;
1024
+ };
1025
+ content: {
1026
+ 'application/json': {
1027
+ /** @example Error message describing the issue. */
1028
+ message: string;
1029
+ };
1030
+ };
1031
+ };
1032
+ /** @description Not Found */
1033
+ 404: {
1034
+ headers: {
1035
+ [name: string]: unknown;
1036
+ };
1037
+ content: {
1038
+ 'application/json': {
1039
+ /** @example Error message describing the issue. */
1040
+ message: string;
1041
+ };
1042
+ };
1043
+ };
1044
+ /** @description Internal Server Error */
1045
+ 500: {
1046
+ headers: {
1047
+ [name: string]: unknown;
1048
+ };
1049
+ content: {
1050
+ 'application/json': {
1051
+ /** @example Error message describing the issue. */
1052
+ message: string;
1053
+ };
1054
+ };
1055
+ };
1056
+ };
1057
+ };
1058
+ put: {
1059
+ parameters: {
1060
+ query?: never;
1061
+ header?: never;
1062
+ path: {
1063
+ contentSystemId: string;
1064
+ id: string;
1065
+ };
1066
+ cookie?: never;
1067
+ };
1068
+ requestBody?: {
1069
+ content: {
1070
+ 'application/json': components['schemas']['UpdateCollectionRequest'];
1071
+ };
1072
+ };
1073
+ responses: {
1074
+ /** @description Collection updated */
1075
+ 200: {
1076
+ headers: {
1077
+ [name: string]: unknown;
1078
+ };
1079
+ content: {
1080
+ 'application/json': components['schemas']['UpdateCollectionResponse'];
1081
+ };
1082
+ };
1083
+ /** @description Bad Request */
1084
+ 400: {
1085
+ headers: {
1086
+ [name: string]: unknown;
1087
+ };
1088
+ content: {
1089
+ 'application/json': {
1090
+ /** @example Error message describing the issue. */
1091
+ message: string;
1092
+ };
1093
+ };
1094
+ };
1095
+ /** @description Unauthorized */
1096
+ 401: {
1097
+ headers: {
1098
+ [name: string]: unknown;
1099
+ };
1100
+ content: {
1101
+ 'application/json': {
1102
+ /** @example Error message describing the issue. */
1103
+ message: string;
1104
+ };
1105
+ };
1106
+ };
1107
+ /** @description Forbidden */
1108
+ 403: {
1109
+ headers: {
1110
+ [name: string]: unknown;
1111
+ };
1112
+ content: {
1113
+ 'application/json': {
1114
+ /** @example Error message describing the issue. */
1115
+ message: string;
1116
+ };
1117
+ };
1118
+ };
1119
+ /** @description Not Found */
1120
+ 404: {
1121
+ headers: {
1122
+ [name: string]: unknown;
1123
+ };
1124
+ content: {
1125
+ 'application/json': {
1126
+ /** @example Error message describing the issue. */
1127
+ message: string;
1128
+ };
1129
+ };
1130
+ };
1131
+ /** @description Conflict */
1132
+ 409: {
1133
+ headers: {
1134
+ [name: string]: unknown;
1135
+ };
1136
+ content: {
1137
+ 'application/json': {
1138
+ /** @example Error message describing the issue. */
1139
+ message: string;
1140
+ };
1141
+ };
1142
+ };
1143
+ /** @description Internal Server Error */
1144
+ 500: {
1145
+ headers: {
1146
+ [name: string]: unknown;
1147
+ };
1148
+ content: {
1149
+ 'application/json': {
1150
+ /** @example Error message describing the issue. */
1151
+ message: string;
1152
+ };
1153
+ };
1154
+ };
1155
+ };
1156
+ };
1157
+ post?: never;
1158
+ delete: {
1159
+ parameters: {
1160
+ query?: never;
1161
+ header?: never;
1162
+ path: {
1163
+ contentSystemId: string;
1164
+ id: string;
1165
+ };
1166
+ cookie?: never;
1167
+ };
1168
+ requestBody?: never;
1169
+ responses: {
1170
+ /** @description Collection deleted successfully */
1171
+ 204: {
1172
+ headers: {
1173
+ [name: string]: unknown;
1174
+ };
1175
+ content?: never;
1176
+ };
1177
+ /** @description Bad Request */
1178
+ 400: {
1179
+ headers: {
1180
+ [name: string]: unknown;
1181
+ };
1182
+ content: {
1183
+ 'application/json': {
1184
+ /** @example Error message describing the issue. */
1185
+ message: string;
1186
+ };
1187
+ };
1188
+ };
1189
+ /** @description Unauthorized */
1190
+ 401: {
1191
+ headers: {
1192
+ [name: string]: unknown;
1193
+ };
1194
+ content: {
1195
+ 'application/json': {
1196
+ /** @example Error message describing the issue. */
1197
+ message: string;
1198
+ };
1199
+ };
1200
+ };
1201
+ /** @description Forbidden */
1202
+ 403: {
1203
+ headers: {
1204
+ [name: string]: unknown;
1205
+ };
1206
+ content: {
1207
+ 'application/json': {
1208
+ /** @example Error message describing the issue. */
1209
+ message: string;
1210
+ };
1211
+ };
1212
+ };
1213
+ /** @description Not Found */
1214
+ 404: {
1215
+ headers: {
1216
+ [name: string]: unknown;
1217
+ };
1218
+ content: {
1219
+ 'application/json': {
1220
+ /** @example Error message describing the issue. */
1221
+ message: string;
1222
+ };
1223
+ };
1224
+ };
1225
+ /** @description Internal Server Error */
1226
+ 500: {
1227
+ headers: {
1228
+ [name: string]: unknown;
1229
+ };
1230
+ content: {
1231
+ 'application/json': {
1232
+ /** @example Error message describing the issue. */
1233
+ message: string;
1234
+ };
1235
+ };
1236
+ };
1237
+ };
1238
+ };
1239
+ options?: never;
1240
+ head?: never;
1241
+ patch?: never;
1242
+ trace?: never;
1243
+ };
1244
+ '/api/v0/documents:count': {
1245
+ parameters: {
1246
+ query?: never;
1247
+ header?: never;
1248
+ path?: never;
1249
+ cookie?: never;
1250
+ };
1251
+ get?: never;
1252
+ put?: never;
1253
+ post: {
1254
+ parameters: {
1255
+ query?: never;
1256
+ header?: never;
1257
+ path?: never;
1258
+ cookie?: never;
1259
+ };
1260
+ requestBody?: {
1261
+ content: {
1262
+ 'application/json': components['schemas']['CountDocumentRequest'];
1263
+ };
1264
+ };
1265
+ responses: {
1266
+ /** @description Document count */
1267
+ 200: {
1268
+ headers: {
1269
+ [name: string]: unknown;
1270
+ };
1271
+ content: {
1272
+ 'application/json': components['schemas']['CountDocumentResponse'];
1273
+ };
1274
+ };
1275
+ /** @description Bad Request */
1276
+ 400: {
1277
+ headers: {
1278
+ [name: string]: unknown;
1279
+ };
1280
+ content: {
1281
+ 'application/json': {
1282
+ /** @example Error message describing the issue. */
1283
+ message: string;
1284
+ };
1285
+ };
1286
+ };
1287
+ /** @description Unauthorized */
1288
+ 401: {
1289
+ headers: {
1290
+ [name: string]: unknown;
1291
+ };
1292
+ content: {
1293
+ 'application/json': {
1294
+ /** @example Error message describing the issue. */
1295
+ message: string;
1296
+ };
1297
+ };
1298
+ };
1299
+ /** @description Forbidden */
1300
+ 403: {
1301
+ headers: {
1302
+ [name: string]: unknown;
1303
+ };
1304
+ content: {
1305
+ 'application/json': {
1306
+ /** @example Error message describing the issue. */
1307
+ message: string;
1308
+ };
1309
+ };
1310
+ };
1311
+ /** @description Not Found */
1312
+ 404: {
1313
+ headers: {
1314
+ [name: string]: unknown;
1315
+ };
1316
+ content: {
1317
+ 'application/json': {
1318
+ /** @example Error message describing the issue. */
1319
+ message: string;
1320
+ };
1321
+ };
1322
+ };
1323
+ /** @description Internal Server Error */
1324
+ 500: {
1325
+ headers: {
1326
+ [name: string]: unknown;
1327
+ };
1328
+ content: {
1329
+ 'application/json': {
1330
+ /** @example Error message describing the issue. */
1331
+ message: string;
1332
+ };
1333
+ };
1334
+ };
1335
+ };
1336
+ };
1337
+ delete?: never;
1338
+ options?: never;
1339
+ head?: never;
1340
+ patch?: never;
1341
+ trace?: never;
1342
+ };
1343
+ '/api/v0/documents:create': {
1344
+ parameters: {
1345
+ query?: never;
1346
+ header?: never;
1347
+ path?: never;
1348
+ cookie?: never;
1349
+ };
1350
+ get?: never;
1351
+ put?: never;
1352
+ post: {
1353
+ parameters: {
1354
+ query?: never;
1355
+ header?: never;
1356
+ path?: never;
1357
+ cookie?: never;
1358
+ };
1359
+ requestBody?: {
1360
+ content: {
1361
+ 'application/json': components['schemas']['CreateDocumentRequest'];
1362
+ };
1363
+ };
1364
+ responses: {
1365
+ /** @description Document created */
1366
+ 201: {
1367
+ headers: {
1368
+ [name: string]: unknown;
1369
+ };
1370
+ content: {
1371
+ 'application/json': components['schemas']['CreateDocumentResponse'];
1372
+ };
1373
+ };
1374
+ /** @description Bad Request */
1375
+ 400: {
1376
+ headers: {
1377
+ [name: string]: unknown;
1378
+ };
1379
+ content: {
1380
+ 'application/json': {
1381
+ /** @example Error message describing the issue. */
1382
+ message: string;
1383
+ };
1384
+ };
1385
+ };
1386
+ /** @description Unauthorized */
1387
+ 401: {
1388
+ headers: {
1389
+ [name: string]: unknown;
1390
+ };
1391
+ content: {
1392
+ 'application/json': {
1393
+ /** @example Error message describing the issue. */
1394
+ message: string;
1395
+ };
1396
+ };
1397
+ };
1398
+ /** @description Forbidden */
1399
+ 403: {
1400
+ headers: {
1401
+ [name: string]: unknown;
1402
+ };
1403
+ content: {
1404
+ 'application/json': {
1405
+ /** @example Error message describing the issue. */
1406
+ message: string;
1407
+ };
1408
+ };
1409
+ };
1410
+ /** @description Not Found */
1411
+ 404: {
1412
+ headers: {
1413
+ [name: string]: unknown;
1414
+ };
1415
+ content: {
1416
+ 'application/json': {
1417
+ /** @example Error message describing the issue. */
1418
+ message: string;
1419
+ };
1420
+ };
1421
+ };
1422
+ /** @description Conflict */
1423
+ 409: {
1424
+ headers: {
1425
+ [name: string]: unknown;
1426
+ };
1427
+ content: {
1428
+ 'application/json': {
1429
+ /** @example Error message describing the issue. */
1430
+ message: string;
1431
+ };
1432
+ };
1433
+ };
1434
+ /** @description Internal Server Error */
1435
+ 500: {
1436
+ headers: {
1437
+ [name: string]: unknown;
1438
+ };
1439
+ content: {
1440
+ 'application/json': {
1441
+ /** @example Error message describing the issue. */
1442
+ message: string;
1443
+ };
1444
+ };
1445
+ };
1446
+ };
1447
+ };
1448
+ delete?: never;
1449
+ options?: never;
1450
+ head?: never;
1451
+ patch?: never;
1452
+ trace?: never;
1453
+ };
1454
+ '/api/v0/documents:find': {
1455
+ parameters: {
1456
+ query?: never;
1457
+ header?: never;
1458
+ path?: never;
1459
+ cookie?: never;
1460
+ };
1461
+ get?: never;
1462
+ put?: never;
1463
+ post: {
1464
+ parameters: {
1465
+ query?: never;
1466
+ header?: never;
1467
+ path?: never;
1468
+ cookie?: never;
1469
+ };
1470
+ requestBody?: {
1471
+ content: {
1472
+ 'application/json': components['schemas']['FindDocumentsRequest'];
1473
+ };
1474
+ };
1475
+ responses: {
1476
+ /** @description Documents found */
1477
+ 200: {
1478
+ headers: {
1479
+ [name: string]: unknown;
1480
+ };
1481
+ content: {
1482
+ 'application/json': components['schemas']['FindDocumentsResponse'];
1483
+ };
1484
+ };
1485
+ /** @description Bad Request */
1486
+ 400: {
1487
+ headers: {
1488
+ [name: string]: unknown;
1489
+ };
1490
+ content: {
1491
+ 'application/json': {
1492
+ /** @example Error message describing the issue. */
1493
+ message: string;
1494
+ };
1495
+ };
1496
+ };
1497
+ /** @description Forbidden */
1498
+ 403: {
1499
+ headers: {
1500
+ [name: string]: unknown;
1501
+ };
1502
+ content: {
1503
+ 'application/json': {
1504
+ /** @example Error message describing the issue. */
1505
+ message: string;
1506
+ };
1507
+ };
1508
+ };
1509
+ /** @description Not Found */
1510
+ 404: {
1511
+ headers: {
1512
+ [name: string]: unknown;
1513
+ };
1514
+ content: {
1515
+ 'application/json': {
1516
+ /** @example Error message describing the issue. */
1517
+ message: string;
1518
+ };
1519
+ };
1520
+ };
1521
+ /** @description Internal Server Error */
1522
+ 500: {
1523
+ headers: {
1524
+ [name: string]: unknown;
1525
+ };
1526
+ content: {
1527
+ 'application/json': {
1528
+ /** @example Error message describing the issue. */
1529
+ message: string;
1530
+ };
1531
+ };
1532
+ };
1533
+ };
1534
+ };
1535
+ delete?: never;
1536
+ options?: never;
1537
+ head?: never;
1538
+ patch?: never;
1539
+ trace?: never;
1540
+ };
1541
+ '/api/v0/documents:update': {
1542
+ parameters: {
1543
+ query?: never;
1544
+ header?: never;
1545
+ path?: never;
1546
+ cookie?: never;
1547
+ };
1548
+ get?: never;
1549
+ put?: never;
1550
+ post: {
1551
+ parameters: {
1552
+ query?: never;
1553
+ header?: never;
1554
+ path?: never;
1555
+ cookie?: never;
1556
+ };
1557
+ requestBody?: {
1558
+ content: {
1559
+ 'application/json': components['schemas']['UpdateDocumentRequest'];
1560
+ };
1561
+ };
1562
+ responses: {
1563
+ /** @description Documents updated */
1564
+ 200: {
1565
+ headers: {
1566
+ [name: string]: unknown;
1567
+ };
1568
+ content: {
1569
+ 'application/json': components['schemas']['UpdateDocumentResponse'];
1570
+ };
1571
+ };
1572
+ /** @description Bad Request */
1573
+ 400: {
1574
+ headers: {
1575
+ [name: string]: unknown;
1576
+ };
1577
+ content: {
1578
+ 'application/json': {
1579
+ /** @example Error message describing the issue. */
1580
+ message: string;
1581
+ };
1582
+ };
1583
+ };
1584
+ /** @description Unauthorized */
1585
+ 401: {
1586
+ headers: {
1587
+ [name: string]: unknown;
1588
+ };
1589
+ content: {
1590
+ 'application/json': {
1591
+ /** @example Error message describing the issue. */
1592
+ message: string;
1593
+ };
1594
+ };
1595
+ };
1596
+ /** @description Forbidden */
1597
+ 403: {
1598
+ headers: {
1599
+ [name: string]: unknown;
1600
+ };
1601
+ content: {
1602
+ 'application/json': {
1603
+ /** @example Error message describing the issue. */
1604
+ message: string;
1605
+ };
1606
+ };
1607
+ };
1608
+ /** @description Not Found */
1609
+ 404: {
1610
+ headers: {
1611
+ [name: string]: unknown;
1612
+ };
1613
+ content: {
1614
+ 'application/json': {
1615
+ /** @example Error message describing the issue. */
1616
+ message: string;
1617
+ };
1618
+ };
1619
+ };
1620
+ /** @description Conflict */
1621
+ 409: {
1622
+ headers: {
1623
+ [name: string]: unknown;
1624
+ };
1625
+ content: {
1626
+ 'application/json': {
1627
+ /** @example Error message describing the issue. */
1628
+ message: string;
1629
+ };
1630
+ };
1631
+ };
1632
+ /** @description Internal Server Error */
1633
+ 500: {
1634
+ headers: {
1635
+ [name: string]: unknown;
1636
+ };
1637
+ content: {
1638
+ 'application/json': {
1639
+ /** @example Error message describing the issue. */
1640
+ message: string;
1641
+ };
1642
+ };
1643
+ };
1644
+ };
1645
+ };
1646
+ delete?: never;
1647
+ options?: never;
1648
+ head?: never;
1649
+ patch?: never;
1650
+ trace?: never;
1651
+ };
1652
+ '/api/v0/documents:delete': {
1653
+ parameters: {
1654
+ query?: never;
1655
+ header?: never;
1656
+ path?: never;
1657
+ cookie?: never;
1658
+ };
1659
+ get?: never;
1660
+ put?: never;
1661
+ post: {
1662
+ parameters: {
1663
+ query?: never;
1664
+ header?: never;
1665
+ path?: never;
1666
+ cookie?: never;
1667
+ };
1668
+ requestBody?: {
1669
+ content: {
1670
+ 'application/json': components['schemas']['DeleteDocumentRequest'];
1671
+ };
1672
+ };
1673
+ responses: {
1674
+ /** @description Documents deleted */
1675
+ 200: {
1676
+ headers: {
1677
+ [name: string]: unknown;
1678
+ };
1679
+ content: {
1680
+ 'application/json': components['schemas']['DeleteDocumentResponse'];
1681
+ };
1682
+ };
1683
+ /** @description Bad Request */
1684
+ 400: {
1685
+ headers: {
1686
+ [name: string]: unknown;
1687
+ };
1688
+ content: {
1689
+ 'application/json': {
1690
+ /** @example Error message describing the issue. */
1691
+ message: string;
1692
+ };
1693
+ };
1694
+ };
1695
+ /** @description Unauthorized */
1696
+ 401: {
1697
+ headers: {
1698
+ [name: string]: unknown;
1699
+ };
1700
+ content: {
1701
+ 'application/json': {
1702
+ /** @example Error message describing the issue. */
1703
+ message: string;
1704
+ };
1705
+ };
1706
+ };
1707
+ /** @description Forbidden */
1708
+ 403: {
1709
+ headers: {
1710
+ [name: string]: unknown;
1711
+ };
1712
+ content: {
1713
+ 'application/json': {
1714
+ /** @example Error message describing the issue. */
1715
+ message: string;
1716
+ };
1717
+ };
1718
+ };
1719
+ /** @description Not Found */
1720
+ 404: {
1721
+ headers: {
1722
+ [name: string]: unknown;
1723
+ };
1724
+ content: {
1725
+ 'application/json': {
1726
+ /** @example Error message describing the issue. */
1727
+ message: string;
1728
+ };
1729
+ };
1730
+ };
1731
+ /** @description Internal Server Error */
1732
+ 500: {
1733
+ headers: {
1734
+ [name: string]: unknown;
1735
+ };
1736
+ content: {
1737
+ 'application/json': {
1738
+ /** @example Error message describing the issue. */
1739
+ message: string;
1740
+ };
1741
+ };
1742
+ };
1743
+ };
1744
+ };
1745
+ delete?: never;
1746
+ options?: never;
1747
+ head?: never;
1748
+ patch?: never;
1749
+ trace?: never;
1750
+ };
1751
+ '/api/v0/document_versions:count': {
1752
+ parameters: {
1753
+ query?: never;
1754
+ header?: never;
1755
+ path?: never;
1756
+ cookie?: never;
1757
+ };
1758
+ get?: never;
1759
+ put?: never;
1760
+ post: {
1761
+ parameters: {
1762
+ query?: never;
1763
+ header?: never;
1764
+ path?: never;
1765
+ cookie?: never;
1766
+ };
1767
+ requestBody?: {
1768
+ content: {
1769
+ 'application/json': components['schemas']['CountDocumentVersionRequest'];
1770
+ };
1771
+ };
1772
+ responses: {
1773
+ /** @description Document version count */
1774
+ 200: {
1775
+ headers: {
1776
+ [name: string]: unknown;
1777
+ };
1778
+ content: {
1779
+ 'application/json': components['schemas']['CountDocumentVersionResponse'];
1780
+ };
1781
+ };
1782
+ /** @description Bad Request */
1783
+ 400: {
1784
+ headers: {
1785
+ [name: string]: unknown;
1786
+ };
1787
+ content: {
1788
+ 'application/json': {
1789
+ /** @example Error message describing the issue. */
1790
+ message: string;
1791
+ };
1792
+ };
1793
+ };
1794
+ /** @description Unauthorized */
1795
+ 401: {
1796
+ headers: {
1797
+ [name: string]: unknown;
1798
+ };
1799
+ content: {
1800
+ 'application/json': {
1801
+ /** @example Error message describing the issue. */
1802
+ message: string;
1803
+ };
1804
+ };
1805
+ };
1806
+ /** @description Forbidden */
1807
+ 403: {
1808
+ headers: {
1809
+ [name: string]: unknown;
1810
+ };
1811
+ content: {
1812
+ 'application/json': {
1813
+ /** @example Error message describing the issue. */
1814
+ message: string;
1815
+ };
1816
+ };
1817
+ };
1818
+ /** @description Not Found */
1819
+ 404: {
1820
+ headers: {
1821
+ [name: string]: unknown;
1822
+ };
1823
+ content: {
1824
+ 'application/json': {
1825
+ /** @example Error message describing the issue. */
1826
+ message: string;
1827
+ };
1828
+ };
1829
+ };
1830
+ /** @description Internal Server Error */
1831
+ 500: {
1832
+ headers: {
1833
+ [name: string]: unknown;
1834
+ };
1835
+ content: {
1836
+ 'application/json': {
1837
+ /** @example Error message describing the issue. */
1838
+ message: string;
1839
+ };
1840
+ };
1841
+ };
1842
+ };
1843
+ };
1844
+ delete?: never;
1845
+ options?: never;
1846
+ head?: never;
1847
+ patch?: never;
1848
+ trace?: never;
1849
+ };
1850
+ '/api/v0/document_versions:create': {
1851
+ parameters: {
1852
+ query?: never;
1853
+ header?: never;
1854
+ path?: never;
1855
+ cookie?: never;
1856
+ };
1857
+ get?: never;
1858
+ put?: never;
1859
+ post: {
1860
+ parameters: {
1861
+ query?: never;
1862
+ header?: never;
1863
+ path?: never;
1864
+ cookie?: never;
1865
+ };
1866
+ requestBody?: {
1867
+ content: {
1868
+ 'application/json': components['schemas']['CreateDocumentVersionRequest'];
1869
+ };
1870
+ };
1871
+ responses: {
1872
+ /** @description Document version created */
1873
+ 201: {
1874
+ headers: {
1875
+ [name: string]: unknown;
1876
+ };
1877
+ content: {
1878
+ 'application/json': components['schemas']['CreateDocumentVersionResponse'];
1879
+ };
1880
+ };
1881
+ /** @description Bad Request */
1882
+ 400: {
1883
+ headers: {
1884
+ [name: string]: unknown;
1885
+ };
1886
+ content: {
1887
+ 'application/json': {
1888
+ /** @example Error message describing the issue. */
1889
+ message: string;
1890
+ };
1891
+ };
1892
+ };
1893
+ /** @description Unauthorized */
1894
+ 401: {
1895
+ headers: {
1896
+ [name: string]: unknown;
1897
+ };
1898
+ content: {
1899
+ 'application/json': {
1900
+ /** @example Error message describing the issue. */
1901
+ message: string;
1902
+ };
1903
+ };
1904
+ };
1905
+ /** @description Forbidden */
1906
+ 403: {
1907
+ headers: {
1908
+ [name: string]: unknown;
1909
+ };
1910
+ content: {
1911
+ 'application/json': {
1912
+ /** @example Error message describing the issue. */
1913
+ message: string;
1914
+ };
1915
+ };
1916
+ };
1917
+ /** @description Not Found */
1918
+ 404: {
1919
+ headers: {
1920
+ [name: string]: unknown;
1921
+ };
1922
+ content: {
1923
+ 'application/json': {
1924
+ /** @example Error message describing the issue. */
1925
+ message: string;
1926
+ };
1927
+ };
1928
+ };
1929
+ /** @description Internal Server Error */
1930
+ 500: {
1931
+ headers: {
1932
+ [name: string]: unknown;
1933
+ };
1934
+ content: {
1935
+ 'application/json': {
1936
+ /** @example Error message describing the issue. */
1937
+ message: string;
1938
+ };
1939
+ };
1940
+ };
1941
+ };
1942
+ };
1943
+ delete?: never;
1944
+ options?: never;
1945
+ head?: never;
1946
+ patch?: never;
1947
+ trace?: never;
1948
+ };
1949
+ '/api/v0/document_versions:find': {
1950
+ parameters: {
1951
+ query?: never;
1952
+ header?: never;
1953
+ path?: never;
1954
+ cookie?: never;
1955
+ };
1956
+ get?: never;
1957
+ put?: never;
1958
+ post: {
1959
+ parameters: {
1960
+ query?: never;
1961
+ header?: never;
1962
+ path?: never;
1963
+ cookie?: never;
1964
+ };
1965
+ requestBody?: {
1966
+ content: {
1967
+ 'application/json': components['schemas']['FindDocumentVersionsRequest'];
1968
+ };
1969
+ };
1970
+ responses: {
1971
+ /** @description Document versions found */
1972
+ 200: {
1973
+ headers: {
1974
+ [name: string]: unknown;
1975
+ };
1976
+ content: {
1977
+ 'application/json': components['schemas']['FindDocumentVersionsResponse'];
1978
+ };
1979
+ };
1980
+ /** @description Bad Request */
1981
+ 400: {
1982
+ headers: {
1983
+ [name: string]: unknown;
1984
+ };
1985
+ content: {
1986
+ 'application/json': {
1987
+ /** @example Error message describing the issue. */
1988
+ message: string;
1989
+ };
1990
+ };
1991
+ };
1992
+ /** @description Unauthorized */
1993
+ 401: {
1994
+ headers: {
1995
+ [name: string]: unknown;
1996
+ };
1997
+ content: {
1998
+ 'application/json': {
1999
+ /** @example Error message describing the issue. */
2000
+ message: string;
2001
+ };
2002
+ };
2003
+ };
2004
+ /** @description Forbidden */
2005
+ 403: {
2006
+ headers: {
2007
+ [name: string]: unknown;
2008
+ };
2009
+ content: {
2010
+ 'application/json': {
2011
+ /** @example Error message describing the issue. */
2012
+ message: string;
2013
+ };
2014
+ };
2015
+ };
2016
+ /** @description Not Found */
2017
+ 404: {
2018
+ headers: {
2019
+ [name: string]: unknown;
2020
+ };
2021
+ content: {
2022
+ 'application/json': {
2023
+ /** @example Error message describing the issue. */
2024
+ message: string;
2025
+ };
2026
+ };
2027
+ };
2028
+ /** @description Internal Server Error */
2029
+ 500: {
2030
+ headers: {
2031
+ [name: string]: unknown;
2032
+ };
2033
+ content: {
2034
+ 'application/json': {
2035
+ /** @example Error message describing the issue. */
2036
+ message: string;
2037
+ };
2038
+ };
2039
+ };
2040
+ };
2041
+ };
2042
+ delete?: never;
2043
+ options?: never;
2044
+ head?: never;
2045
+ patch?: never;
2046
+ trace?: never;
2047
+ };
2048
+ '/api/v0/document_versions:update': {
2049
+ parameters: {
2050
+ query?: never;
2051
+ header?: never;
2052
+ path?: never;
2053
+ cookie?: never;
2054
+ };
2055
+ get?: never;
2056
+ put?: never;
2057
+ post: {
2058
+ parameters: {
2059
+ query?: never;
2060
+ header?: never;
2061
+ path?: never;
2062
+ cookie?: never;
2063
+ };
2064
+ requestBody?: {
2065
+ content: {
2066
+ 'application/json': components['schemas']['UpdateDocumentVersionRequest'];
2067
+ };
2068
+ };
2069
+ responses: {
2070
+ /** @description Document versions updated */
2071
+ 200: {
2072
+ headers: {
2073
+ [name: string]: unknown;
2074
+ };
2075
+ content: {
2076
+ 'application/json': components['schemas']['UpdateDocumentVersionResponse'];
2077
+ };
2078
+ };
2079
+ /** @description Bad Request */
2080
+ 400: {
2081
+ headers: {
2082
+ [name: string]: unknown;
2083
+ };
2084
+ content: {
2085
+ 'application/json': {
2086
+ /** @example Error message describing the issue. */
2087
+ message: string;
2088
+ };
2089
+ };
2090
+ };
2091
+ /** @description Unauthorized */
2092
+ 401: {
2093
+ headers: {
2094
+ [name: string]: unknown;
2095
+ };
2096
+ content: {
2097
+ 'application/json': {
2098
+ /** @example Error message describing the issue. */
2099
+ message: string;
2100
+ };
2101
+ };
2102
+ };
2103
+ /** @description Forbidden */
2104
+ 403: {
2105
+ headers: {
2106
+ [name: string]: unknown;
2107
+ };
2108
+ content: {
2109
+ 'application/json': {
2110
+ /** @example Error message describing the issue. */
2111
+ message: string;
2112
+ };
2113
+ };
2114
+ };
2115
+ /** @description Not Found */
2116
+ 404: {
2117
+ headers: {
2118
+ [name: string]: unknown;
2119
+ };
2120
+ content: {
2121
+ 'application/json': {
2122
+ /** @example Error message describing the issue. */
2123
+ message: string;
2124
+ };
2125
+ };
2126
+ };
2127
+ /** @description Internal Server Error */
2128
+ 500: {
2129
+ headers: {
2130
+ [name: string]: unknown;
2131
+ };
2132
+ content: {
2133
+ 'application/json': {
2134
+ /** @example Error message describing the issue. */
2135
+ message: string;
2136
+ };
2137
+ };
2138
+ };
2139
+ };
2140
+ };
2141
+ delete?: never;
2142
+ options?: never;
2143
+ head?: never;
2144
+ patch?: never;
2145
+ trace?: never;
2146
+ };
2147
+ '/api/v0/document_versions:delete': {
2148
+ parameters: {
2149
+ query?: never;
2150
+ header?: never;
2151
+ path?: never;
2152
+ cookie?: never;
2153
+ };
2154
+ get?: never;
2155
+ put?: never;
2156
+ post: {
2157
+ parameters: {
2158
+ query?: never;
2159
+ header?: never;
2160
+ path?: never;
2161
+ cookie?: never;
2162
+ };
2163
+ requestBody?: {
2164
+ content: {
2165
+ 'application/json': components['schemas']['DeleteDocumentVersionRequest'];
2166
+ };
2167
+ };
2168
+ responses: {
2169
+ /** @description Document versions deleted */
2170
+ 200: {
2171
+ headers: {
2172
+ [name: string]: unknown;
2173
+ };
2174
+ content: {
2175
+ 'application/json': components['schemas']['DeleteDocumentVersionResponse'];
2176
+ };
2177
+ };
2178
+ /** @description Bad Request */
2179
+ 400: {
2180
+ headers: {
2181
+ [name: string]: unknown;
2182
+ };
2183
+ content: {
2184
+ 'application/json': {
2185
+ /** @example Error message describing the issue. */
2186
+ message: string;
2187
+ };
2188
+ };
2189
+ };
2190
+ /** @description Unauthorized */
2191
+ 401: {
2192
+ headers: {
2193
+ [name: string]: unknown;
2194
+ };
2195
+ content: {
2196
+ 'application/json': {
2197
+ /** @example Error message describing the issue. */
2198
+ message: string;
2199
+ };
2200
+ };
2201
+ };
2202
+ /** @description Forbidden */
2203
+ 403: {
2204
+ headers: {
2205
+ [name: string]: unknown;
2206
+ };
2207
+ content: {
2208
+ 'application/json': {
2209
+ /** @example Error message describing the issue. */
2210
+ message: string;
2211
+ };
2212
+ };
2213
+ };
2214
+ /** @description Not Found */
2215
+ 404: {
2216
+ headers: {
2217
+ [name: string]: unknown;
2218
+ };
2219
+ content: {
2220
+ 'application/json': {
2221
+ /** @example Error message describing the issue. */
2222
+ message: string;
2223
+ };
2224
+ };
2225
+ };
2226
+ /** @description Internal Server Error */
2227
+ 500: {
2228
+ headers: {
2229
+ [name: string]: unknown;
2230
+ };
2231
+ content: {
2232
+ 'application/json': {
2233
+ /** @example Error message describing the issue. */
2234
+ message: string;
2235
+ };
2236
+ };
2237
+ };
2238
+ };
2239
+ };
2240
+ delete?: never;
2241
+ options?: never;
2242
+ head?: never;
2243
+ patch?: never;
2244
+ trace?: never;
2245
+ };
2246
+ '/api/v0/uploads/sign': {
2247
+ parameters: {
2248
+ query?: never;
2249
+ header?: never;
2250
+ path?: never;
2251
+ cookie?: never;
2252
+ };
2253
+ get?: never;
2254
+ put?: never;
2255
+ post: {
2256
+ parameters: {
2257
+ query?: never;
2258
+ header?: never;
2259
+ path?: never;
2260
+ cookie?: never;
2261
+ };
2262
+ requestBody?: {
2263
+ content: {
2264
+ 'application/json': components['schemas']['GeneratePresignedUploadUrlRequest'];
2265
+ };
2266
+ };
2267
+ responses: {
2268
+ /** @description Presigned upload URL generated */
2269
+ 200: {
2270
+ headers: {
2271
+ [name: string]: unknown;
2272
+ };
2273
+ content: {
2274
+ 'application/json': components['schemas']['GeneratePresignedUploadUrlResponse'];
2275
+ };
2276
+ };
2277
+ /** @description Bad Request */
2278
+ 400: {
2279
+ headers: {
2280
+ [name: string]: unknown;
2281
+ };
2282
+ content: {
2283
+ 'application/json': {
2284
+ /** @example Error message describing the issue. */
2285
+ message: string;
2286
+ };
2287
+ };
2288
+ };
2289
+ /** @description Unauthorized */
2290
+ 401: {
2291
+ headers: {
2292
+ [name: string]: unknown;
2293
+ };
2294
+ content: {
2295
+ 'application/json': {
2296
+ /** @example Error message describing the issue. */
2297
+ message: string;
2298
+ };
2299
+ };
2300
+ };
2301
+ /** @description Forbidden */
2302
+ 403: {
2303
+ headers: {
2304
+ [name: string]: unknown;
2305
+ };
2306
+ content: {
2307
+ 'application/json': {
2308
+ /** @example Error message describing the issue. */
2309
+ message: string;
2310
+ };
2311
+ };
2312
+ };
2313
+ /** @description Not Found */
2314
+ 404: {
2315
+ headers: {
2316
+ [name: string]: unknown;
2317
+ };
2318
+ content: {
2319
+ 'application/json': {
2320
+ /** @example Error message describing the issue. */
2321
+ message: string;
2322
+ };
2323
+ };
2324
+ };
2325
+ /** @description Service Unavailable */
2326
+ 503: {
2327
+ headers: {
2328
+ [name: string]: unknown;
2329
+ };
2330
+ content: {
2331
+ 'application/json': {
2332
+ /** @example Error message describing the issue. */
2333
+ message: string;
2334
+ };
2335
+ };
2336
+ };
2337
+ };
2338
+ };
2339
+ delete?: never;
2340
+ options?: never;
2341
+ head?: never;
2342
+ patch?: never;
2343
+ trace?: never;
2344
+ };
2345
+ '/api/v0/uploads/download/sign': {
2346
+ parameters: {
2347
+ query?: never;
2348
+ header?: never;
2349
+ path?: never;
2350
+ cookie?: never;
2351
+ };
2352
+ get?: never;
2353
+ put?: never;
2354
+ post: {
2355
+ parameters: {
2356
+ query?: never;
2357
+ header?: never;
2358
+ path?: never;
2359
+ cookie?: never;
2360
+ };
2361
+ requestBody?: {
2362
+ content: {
2363
+ 'application/json': components['schemas']['GeneratePresignedDownloadUrlRequest'];
2364
+ };
2365
+ };
2366
+ responses: {
2367
+ /** @description Presigned download URL generated */
2368
+ 200: {
2369
+ headers: {
2370
+ [name: string]: unknown;
2371
+ };
2372
+ content: {
2373
+ 'application/json': components['schemas']['GeneratePresignedDownloadUrlResponse'];
2374
+ };
2375
+ };
2376
+ /** @description Bad Request */
2377
+ 400: {
2378
+ headers: {
2379
+ [name: string]: unknown;
2380
+ };
2381
+ content: {
2382
+ 'application/json': {
2383
+ /** @example Error message describing the issue. */
2384
+ message: string;
2385
+ };
2386
+ };
2387
+ };
2388
+ /** @description Unauthorized */
2389
+ 401: {
2390
+ headers: {
2391
+ [name: string]: unknown;
2392
+ };
2393
+ content: {
2394
+ 'application/json': {
2395
+ /** @example Error message describing the issue. */
2396
+ message: string;
2397
+ };
2398
+ };
2399
+ };
2400
+ /** @description Forbidden */
2401
+ 403: {
2402
+ headers: {
2403
+ [name: string]: unknown;
2404
+ };
2405
+ content: {
2406
+ 'application/json': {
2407
+ /** @example Error message describing the issue. */
2408
+ message: string;
2409
+ };
2410
+ };
2411
+ };
2412
+ /** @description Not Found */
2413
+ 404: {
2414
+ headers: {
2415
+ [name: string]: unknown;
2416
+ };
2417
+ content: {
2418
+ 'application/json': {
2419
+ /** @example Error message describing the issue. */
2420
+ message: string;
2421
+ };
2422
+ };
2423
+ };
2424
+ /** @description Service Unavailable */
2425
+ 503: {
2426
+ headers: {
2427
+ [name: string]: unknown;
2428
+ };
2429
+ content: {
2430
+ 'application/json': {
2431
+ /** @example Error message describing the issue. */
2432
+ message: string;
2433
+ };
2434
+ };
2435
+ };
2436
+ };
2437
+ };
2438
+ delete?: never;
2439
+ options?: never;
2440
+ head?: never;
2441
+ patch?: never;
2442
+ trace?: never;
2443
+ };
2444
+ '/api/v0/uploads/multipart/initiate': {
2445
+ parameters: {
2446
+ query?: never;
2447
+ header?: never;
2448
+ path?: never;
2449
+ cookie?: never;
2450
+ };
2451
+ get?: never;
2452
+ put?: never;
2453
+ post: {
2454
+ parameters: {
2455
+ query?: never;
2456
+ header?: never;
2457
+ path?: never;
2458
+ cookie?: never;
2459
+ };
2460
+ requestBody?: {
2461
+ content: {
2462
+ 'application/json': components['schemas']['InitiateMultipartUploadRequest'];
2463
+ };
2464
+ };
2465
+ responses: {
2466
+ /** @description Multipart upload initiated */
2467
+ 200: {
2468
+ headers: {
2469
+ [name: string]: unknown;
2470
+ };
2471
+ content: {
2472
+ 'application/json': components['schemas']['InitiateMultipartUploadResponse'];
2473
+ };
2474
+ };
2475
+ /** @description Bad Request */
2476
+ 400: {
2477
+ headers: {
2478
+ [name: string]: unknown;
2479
+ };
2480
+ content: {
2481
+ 'application/json': {
2482
+ /** @example Error message describing the issue. */
2483
+ message: string;
2484
+ };
2485
+ };
2486
+ };
2487
+ /** @description Unauthorized */
2488
+ 401: {
2489
+ headers: {
2490
+ [name: string]: unknown;
2491
+ };
2492
+ content: {
2493
+ 'application/json': {
2494
+ /** @example Error message describing the issue. */
2495
+ message: string;
2496
+ };
2497
+ };
2498
+ };
2499
+ /** @description Forbidden */
2500
+ 403: {
2501
+ headers: {
2502
+ [name: string]: unknown;
2503
+ };
2504
+ content: {
2505
+ 'application/json': {
2506
+ /** @example Error message describing the issue. */
2507
+ message: string;
2508
+ };
2509
+ };
2510
+ };
2511
+ /** @description Not Found */
2512
+ 404: {
2513
+ headers: {
2514
+ [name: string]: unknown;
2515
+ };
2516
+ content: {
2517
+ 'application/json': {
2518
+ /** @example Error message describing the issue. */
2519
+ message: string;
2520
+ };
2521
+ };
2522
+ };
2523
+ /** @description Service Unavailable */
2524
+ 503: {
2525
+ headers: {
2526
+ [name: string]: unknown;
2527
+ };
2528
+ content: {
2529
+ 'application/json': {
2530
+ /** @example Error message describing the issue. */
2531
+ message: string;
2532
+ };
2533
+ };
2534
+ };
2535
+ };
2536
+ };
2537
+ delete?: never;
2538
+ options?: never;
2539
+ head?: never;
2540
+ patch?: never;
2541
+ trace?: never;
2542
+ };
2543
+ '/api/v0/uploads/multipart/parts': {
2544
+ parameters: {
2545
+ query?: never;
2546
+ header?: never;
2547
+ path?: never;
2548
+ cookie?: never;
2549
+ };
2550
+ get?: never;
2551
+ put?: never;
2552
+ post: {
2553
+ parameters: {
2554
+ query?: never;
2555
+ header?: never;
2556
+ path?: never;
2557
+ cookie?: never;
2558
+ };
2559
+ requestBody?: {
2560
+ content: {
2561
+ 'application/json': components['schemas']['GenerateUploadPartUrlsRequest'];
2562
+ };
2563
+ };
2564
+ responses: {
2565
+ /** @description Upload part URLs generated */
2566
+ 200: {
2567
+ headers: {
2568
+ [name: string]: unknown;
2569
+ };
2570
+ content: {
2571
+ 'application/json': components['schemas']['GenerateUploadPartUrlsResponse'];
2572
+ };
2573
+ };
2574
+ /** @description Bad Request */
2575
+ 400: {
2576
+ headers: {
2577
+ [name: string]: unknown;
2578
+ };
2579
+ content: {
2580
+ 'application/json': {
2581
+ /** @example Error message describing the issue. */
2582
+ message: string;
2583
+ };
2584
+ };
2585
+ };
2586
+ /** @description Unauthorized */
2587
+ 401: {
2588
+ headers: {
2589
+ [name: string]: unknown;
2590
+ };
2591
+ content: {
2592
+ 'application/json': {
2593
+ /** @example Error message describing the issue. */
2594
+ message: string;
2595
+ };
2596
+ };
2597
+ };
2598
+ /** @description Forbidden */
2599
+ 403: {
2600
+ headers: {
2601
+ [name: string]: unknown;
2602
+ };
2603
+ content: {
2604
+ 'application/json': {
2605
+ /** @example Error message describing the issue. */
2606
+ message: string;
2607
+ };
2608
+ };
2609
+ };
2610
+ /** @description Not Found */
2611
+ 404: {
2612
+ headers: {
2613
+ [name: string]: unknown;
2614
+ };
2615
+ content: {
2616
+ 'application/json': {
2617
+ /** @example Error message describing the issue. */
2618
+ message: string;
2619
+ };
2620
+ };
2621
+ };
2622
+ /** @description Service Unavailable */
2623
+ 503: {
2624
+ headers: {
2625
+ [name: string]: unknown;
2626
+ };
2627
+ content: {
2628
+ 'application/json': {
2629
+ /** @example Error message describing the issue. */
2630
+ message: string;
2631
+ };
2632
+ };
2633
+ };
2634
+ };
2635
+ };
2636
+ delete?: never;
2637
+ options?: never;
2638
+ head?: never;
2639
+ patch?: never;
2640
+ trace?: never;
2641
+ };
2642
+ '/api/v0/uploads/multipart/complete': {
2643
+ parameters: {
2644
+ query?: never;
2645
+ header?: never;
2646
+ path?: never;
2647
+ cookie?: never;
2648
+ };
2649
+ get?: never;
2650
+ put?: never;
2651
+ post: {
2652
+ parameters: {
2653
+ query?: never;
2654
+ header?: never;
2655
+ path?: never;
2656
+ cookie?: never;
2657
+ };
2658
+ requestBody?: {
2659
+ content: {
2660
+ 'application/json': components['schemas']['CompleteMultipartUploadRequest'];
2661
+ };
2662
+ };
2663
+ responses: {
2664
+ /** @description Multipart upload completed */
2665
+ 200: {
2666
+ headers: {
2667
+ [name: string]: unknown;
2668
+ };
2669
+ content: {
2670
+ 'application/json': components['schemas']['CompleteMultipartUploadResponse'];
2671
+ };
2672
+ };
2673
+ /** @description Bad Request */
2674
+ 400: {
2675
+ headers: {
2676
+ [name: string]: unknown;
2677
+ };
2678
+ content: {
2679
+ 'application/json': {
2680
+ /** @example Error message describing the issue. */
2681
+ message: string;
2682
+ };
2683
+ };
2684
+ };
2685
+ /** @description Unauthorized */
2686
+ 401: {
2687
+ headers: {
2688
+ [name: string]: unknown;
2689
+ };
2690
+ content: {
2691
+ 'application/json': {
2692
+ /** @example Error message describing the issue. */
2693
+ message: string;
2694
+ };
2695
+ };
2696
+ };
2697
+ /** @description Forbidden */
2698
+ 403: {
2699
+ headers: {
2700
+ [name: string]: unknown;
2701
+ };
2702
+ content: {
2703
+ 'application/json': {
2704
+ /** @example Error message describing the issue. */
2705
+ message: string;
2706
+ };
2707
+ };
2708
+ };
2709
+ /** @description Not Found */
2710
+ 404: {
2711
+ headers: {
2712
+ [name: string]: unknown;
2713
+ };
2714
+ content: {
2715
+ 'application/json': {
2716
+ /** @example Error message describing the issue. */
2717
+ message: string;
2718
+ };
2719
+ };
2720
+ };
2721
+ /** @description Service Unavailable */
2722
+ 503: {
2723
+ headers: {
2724
+ [name: string]: unknown;
2725
+ };
2726
+ content: {
2727
+ 'application/json': {
2728
+ /** @example Error message describing the issue. */
2729
+ message: string;
2730
+ };
2731
+ };
2732
+ };
2733
+ };
2734
+ };
2735
+ delete?: never;
2736
+ options?: never;
2737
+ head?: never;
2738
+ patch?: never;
2739
+ trace?: never;
2740
+ };
2741
+ '/api/v0/uploads/multipart/abort': {
2742
+ parameters: {
2743
+ query?: never;
2744
+ header?: never;
2745
+ path?: never;
2746
+ cookie?: never;
2747
+ };
2748
+ get?: never;
2749
+ put?: never;
2750
+ post: {
2751
+ parameters: {
2752
+ query?: never;
2753
+ header?: never;
2754
+ path?: never;
2755
+ cookie?: never;
2756
+ };
2757
+ requestBody?: {
2758
+ content: {
2759
+ 'application/json': components['schemas']['AbortMultipartUploadRequest'];
2760
+ };
2761
+ };
2762
+ responses: {
2763
+ /** @description Multipart upload aborted */
2764
+ 200: {
2765
+ headers: {
2766
+ [name: string]: unknown;
2767
+ };
2768
+ content: {
2769
+ 'application/json': components['schemas']['AbortMultipartUploadResponse'];
2770
+ };
2771
+ };
2772
+ /** @description Bad Request */
2773
+ 400: {
2774
+ headers: {
2775
+ [name: string]: unknown;
2776
+ };
2777
+ content: {
2778
+ 'application/json': {
2779
+ /** @example Error message describing the issue. */
2780
+ message: string;
2781
+ };
2782
+ };
2783
+ };
2784
+ /** @description Unauthorized */
2785
+ 401: {
2786
+ headers: {
2787
+ [name: string]: unknown;
2788
+ };
2789
+ content: {
2790
+ 'application/json': {
2791
+ /** @example Error message describing the issue. */
2792
+ message: string;
2793
+ };
2794
+ };
2795
+ };
2796
+ /** @description Forbidden */
2797
+ 403: {
2798
+ headers: {
2799
+ [name: string]: unknown;
2800
+ };
2801
+ content: {
2802
+ 'application/json': {
2803
+ /** @example Error message describing the issue. */
2804
+ message: string;
2805
+ };
2806
+ };
2807
+ };
2808
+ /** @description Not Found */
2809
+ 404: {
2810
+ headers: {
2811
+ [name: string]: unknown;
2812
+ };
2813
+ content: {
2814
+ 'application/json': {
2815
+ /** @example Error message describing the issue. */
2816
+ message: string;
2817
+ };
2818
+ };
2819
+ };
2820
+ /** @description Service Unavailable */
2821
+ 503: {
2822
+ headers: {
2823
+ [name: string]: unknown;
2824
+ };
2825
+ content: {
2826
+ 'application/json': {
2827
+ /** @example Error message describing the issue. */
2828
+ message: string;
2829
+ };
2830
+ };
2831
+ };
2832
+ };
2833
+ };
2834
+ delete?: never;
2835
+ options?: never;
2836
+ head?: never;
2837
+ patch?: never;
2838
+ trace?: never;
2839
+ };
2840
+ '/api/v0/uploads/{collectionId}/{filename}': {
2841
+ parameters: {
2842
+ query?: never;
2843
+ header?: never;
2844
+ path?: never;
2845
+ cookie?: never;
2846
+ };
2847
+ get?: never;
2848
+ put?: never;
2849
+ post?: never;
2850
+ delete: {
2851
+ parameters: {
2852
+ query?: never;
2853
+ header?: never;
2854
+ path: {
2855
+ collectionId: string;
2856
+ filename: string;
2857
+ };
2858
+ cookie?: never;
2859
+ };
2860
+ requestBody?: never;
2861
+ responses: {
2862
+ /** @description File deleted successfully */
2863
+ 200: {
2864
+ headers: {
2865
+ [name: string]: unknown;
2866
+ };
2867
+ content: {
2868
+ 'application/json': components['schemas']['DeleteFileResponse'];
2869
+ };
2870
+ };
2871
+ /** @description Bad Request */
2872
+ 400: {
2873
+ headers: {
2874
+ [name: string]: unknown;
2875
+ };
2876
+ content: {
2877
+ 'application/json': {
2878
+ /** @example Error message describing the issue. */
2879
+ message: string;
2880
+ };
2881
+ };
2882
+ };
2883
+ /** @description Unauthorized */
2884
+ 401: {
2885
+ headers: {
2886
+ [name: string]: unknown;
2887
+ };
2888
+ content: {
2889
+ 'application/json': {
2890
+ /** @example Error message describing the issue. */
2891
+ message: string;
2892
+ };
2893
+ };
2894
+ };
2895
+ /** @description Forbidden */
2896
+ 403: {
2897
+ headers: {
2898
+ [name: string]: unknown;
2899
+ };
2900
+ content: {
2901
+ 'application/json': {
2902
+ /** @example Error message describing the issue. */
2903
+ message: string;
2904
+ };
2905
+ };
2906
+ };
2907
+ /** @description Not Found */
2908
+ 404: {
2909
+ headers: {
2910
+ [name: string]: unknown;
2911
+ };
2912
+ content: {
2913
+ 'application/json': {
2914
+ /** @example Error message describing the issue. */
2915
+ message: string;
2916
+ };
2917
+ };
2918
+ };
2919
+ /** @description Service Unavailable */
2920
+ 503: {
2921
+ headers: {
2922
+ [name: string]: unknown;
2923
+ };
2924
+ content: {
2925
+ 'application/json': {
2926
+ /** @example Error message describing the issue. */
2927
+ message: string;
2928
+ };
2929
+ };
2930
+ };
2931
+ };
2932
+ };
2933
+ options?: never;
2934
+ head?: never;
2935
+ patch?: never;
2936
+ trace?: never;
2937
+ };
2938
+ };
2939
+ export type webhooks = Record<string, never>;
2940
+ export type components = {
2941
+ schemas: {
2942
+ AuthContextResponse: {
2943
+ /**
2944
+ * @description Type of authentication scope
2945
+ * @example project
2946
+ * @enum {string}
2947
+ */
2948
+ scopeType: 'super_user' | 'project';
2949
+ /**
2950
+ * @description Content system ID if scopeType is project, undefined for super_user
2951
+ * @example 4cfea8de-4f44-4efd-a8fc-7d539249e9f1
2952
+ */
2953
+ contentSystemScope?: string;
2954
+ };
2955
+ HealthResponse: {
2956
+ /** @example ok */
2957
+ status: string;
2958
+ /** @example connected */
2959
+ database: string;
2960
+ /** @example available */
2961
+ s3: string;
2962
+ /** @example 2026-01-01T00:00:00.000Z */
2963
+ timestamp: string;
2964
+ };
2965
+ ApiKey: {
2966
+ /** @example 123abc */
2967
+ id: string;
2968
+ /** @example My API Key */
2969
+ name: string;
2970
+ /** @example 123def */
2971
+ contentSystemId: string;
2972
+ /** @example BRTRKFsL */
2973
+ shortToken: string;
2974
+ /**
2975
+ * Format: date
2976
+ * @example 2024-01-01T00:00:00.000Z
2977
+ */
2978
+ createdAt: string;
2979
+ /**
2980
+ * Format: date
2981
+ * @example 2024-01-01T00:00:00.000Z
2982
+ */
2983
+ updatedAt: string;
2984
+ };
2985
+ ListApiKeysResponse: {
2986
+ data: components['schemas']['ApiKey'][];
2987
+ total: number;
2988
+ };
2989
+ CreateApiKeyResponse: {
2990
+ /** @example 123abc */
2991
+ id: string;
2992
+ /** @example 123def */
2993
+ contentSystemId: string;
2994
+ /** @example BRTRKFsL */
2995
+ shortToken: string;
2996
+ /**
2997
+ * @description Full API key - only returned on creation
2998
+ * @example figma_BRTRKFsL_51FwqftsmMDHHbJAMEXXHCgG
2999
+ */
3000
+ fullToken: string;
3001
+ /**
3002
+ * Format: date
3003
+ * @example 2024-01-01T00:00:00.000Z
3004
+ */
3005
+ createdAt: string;
3006
+ /**
3007
+ * Format: date
3008
+ * @example 2024-01-01T00:00:00.000Z
3009
+ */
3010
+ updatedAt: string;
3011
+ };
3012
+ CreateApiKeyRequest: {
3013
+ /** @example My API Key */
3014
+ name: string;
3015
+ /** @example 123def */
3016
+ contentSystemId: string;
3017
+ };
3018
+ ContentSystem: {
3019
+ /** @example cms-xxxxx-xxxxx */
3020
+ id: string;
3021
+ /** @example demo-tenant */
3022
+ owningKey: string;
3023
+ /** @example Demo CMS */
3024
+ name: string;
3025
+ /**
3026
+ * Format: date
3027
+ * @example 2024-01-01T00:00:00Z
3028
+ */
3029
+ createdAt: string;
3030
+ /**
3031
+ * Format: date
3032
+ * @example 2024-01-01T00:00:00Z
3033
+ */
3034
+ updatedAt: string;
3035
+ };
3036
+ CreateContentSystemResponse: {
3037
+ /** @example cms-xxxxx-xxxxx */
3038
+ id: string;
3039
+ /** @example demo-tenant */
3040
+ owningKey: string;
3041
+ /** @example Demo CMS */
3042
+ name: string;
3043
+ /**
3044
+ * Format: date
3045
+ * @example 2024-01-01T00:00:00Z
3046
+ */
3047
+ createdAt: string;
3048
+ /**
3049
+ * Format: date
3050
+ * @example 2024-01-01T00:00:00Z
3051
+ */
3052
+ updatedAt: string;
3053
+ };
3054
+ CreateContentSystemRequest: {
3055
+ /** @example demo-tenant */
3056
+ owningKey: string;
3057
+ /** @example Demo CMS */
3058
+ name: string;
3059
+ };
3060
+ RetrieveContentSystemResponse: {
3061
+ /** @example cms-xxxxx-xxxxx */
3062
+ id: string;
3063
+ /** @example demo-tenant */
3064
+ owningKey: string;
3065
+ /** @example Demo CMS */
3066
+ name: string;
3067
+ /**
3068
+ * Format: date
3069
+ * @example 2024-01-01T00:00:00Z
3070
+ */
3071
+ createdAt: string;
3072
+ /**
3073
+ * Format: date
3074
+ * @example 2024-01-01T00:00:00Z
3075
+ */
3076
+ updatedAt: string;
3077
+ };
3078
+ UpdateContentSystemResponse: {
3079
+ /** @example cms-xxxxx-xxxxx */
3080
+ id: string;
3081
+ /** @example demo-tenant */
3082
+ owningKey: string;
3083
+ /** @example Demo CMS */
3084
+ name: string;
3085
+ /**
3086
+ * Format: date
3087
+ * @example 2024-01-01T00:00:00Z
3088
+ */
3089
+ createdAt: string;
3090
+ /**
3091
+ * Format: date
3092
+ * @example 2024-01-01T00:00:00Z
3093
+ */
3094
+ updatedAt: string;
3095
+ };
3096
+ UpdateContentSystemRequest: {
3097
+ /** @example demo-tenant */
3098
+ owningKey?: string;
3099
+ /** @example Demo CMS */
3100
+ name?: string;
3101
+ };
3102
+ Collection: {
3103
+ /** @example posts */
3104
+ id: string;
3105
+ /** @example cms-xxxxx-xxxxx */
3106
+ contentSystemId: string;
3107
+ /**
3108
+ * Format: date
3109
+ * @example 2024-01-01T00:00:00Z
3110
+ */
3111
+ createdAt: string;
3112
+ /**
3113
+ * Format: date
3114
+ * @example 2024-01-01T00:00:00Z
3115
+ */
3116
+ updatedAt: string;
3117
+ };
3118
+ CreateCollectionResponse: {
3119
+ /** @example posts */
3120
+ id: string;
3121
+ /** @example cms-xxxxx-xxxxx */
3122
+ contentSystemId: string;
3123
+ /**
3124
+ * Format: date
3125
+ * @example 2024-01-01T00:00:00Z
3126
+ */
3127
+ createdAt: string;
3128
+ /**
3129
+ * Format: date
3130
+ * @example 2024-01-01T00:00:00Z
3131
+ */
3132
+ updatedAt: string;
3133
+ };
3134
+ CreateCollectionRequest: {
3135
+ /** @example posts */
3136
+ id: string;
3137
+ };
3138
+ RetrieveCollectionResponse: {
3139
+ /** @example posts */
3140
+ id: string;
3141
+ /** @example cms-xxxxx-xxxxx */
3142
+ contentSystemId: string;
3143
+ /**
3144
+ * Format: date
3145
+ * @example 2024-01-01T00:00:00Z
3146
+ */
3147
+ createdAt: string;
3148
+ /**
3149
+ * Format: date
3150
+ * @example 2024-01-01T00:00:00Z
3151
+ */
3152
+ updatedAt: string;
3153
+ };
3154
+ UpdateCollectionResponse: {
3155
+ /** @example posts */
3156
+ id: string;
3157
+ /** @example cms-xxxxx-xxxxx */
3158
+ contentSystemId: string;
3159
+ /**
3160
+ * Format: date
3161
+ * @example 2024-01-01T00:00:00Z
3162
+ */
3163
+ createdAt: string;
3164
+ /**
3165
+ * Format: date
3166
+ * @example 2024-01-01T00:00:00Z
3167
+ */
3168
+ updatedAt: string;
3169
+ };
3170
+ UpdateCollectionRequest: {
3171
+ /** @example posts */
3172
+ id: string;
3173
+ };
3174
+ CountDocumentResponse: {
3175
+ result: {
3176
+ /** @example 1 */
3177
+ count: number;
3178
+ };
3179
+ };
3180
+ /**
3181
+ * @example array
3182
+ * @enum {string}
3183
+ */
3184
+ PathType: 'array';
3185
+ /**
3186
+ * @example {
3187
+ * "author.tagIds": "array"
3188
+ * }
3189
+ */
3190
+ PathTypesMeta: {
3191
+ [key: string]: components['schemas']['PathType'];
3192
+ };
3193
+ RequestMeta: {
3194
+ localizedPaths?: string[];
3195
+ pathTypes?: components['schemas']['PathTypesMeta'];
3196
+ };
3197
+ DataValue: string | number | boolean | unknown | components['schemas']['DataValue'][] | {
3198
+ [key: string]: components['schemas']['DataValue'];
3199
+ } | unknown;
3200
+ /**
3201
+ * @example {
3202
+ * "and": [
3203
+ * {
3204
+ * "path": "status",
3205
+ * "operator": "equals",
3206
+ * "value": "published"
3207
+ * },
3208
+ * {
3209
+ * "path": "createdAt",
3210
+ * "operator": "greater_than",
3211
+ * "value": "2025-01-01T00:00:00Z"
3212
+ * }
3213
+ * ]
3214
+ * }
3215
+ */
3216
+ WhereClause: {
3217
+ and: components['schemas']['WhereClause'][];
3218
+ } | {
3219
+ or: components['schemas']['WhereClause'][];
3220
+ } | {
3221
+ path: string;
3222
+ operator: 'equals' | 'not_equals' | 'in' | 'not_in' | 'greater_than' | 'greater_than_equal' | 'less_than' | 'less_than_equal' | 'like' | 'not_like' | 'all' | 'contains' | 'exists' | 'intersects' | 'near' | 'within';
3223
+ value: components['schemas']['DataValue'];
3224
+ };
3225
+ CountDocumentRequest: {
3226
+ /** @example cms-xxxxx-xxxxx */
3227
+ contentSystemId: string;
3228
+ /** @example posts */
3229
+ collection: string;
3230
+ meta?: components['schemas']['RequestMeta'];
3231
+ where?: components['schemas']['WhereClause'];
3232
+ };
3233
+ /**
3234
+ * @example {
3235
+ * "id": "doc-key",
3236
+ * "title": "Placeholder title",
3237
+ * "content": "This is placeholder content",
3238
+ * "createdAt": "2024-01-01T00:00:00Z",
3239
+ * "updatedAt": "2024-01-02T00:00:00Z",
3240
+ * "deletedAt": "2024-01-05T00:00:00Z"
3241
+ * }
3242
+ */
3243
+ DocumentData: {
3244
+ [key: string]: components['schemas']['DataValue'];
3245
+ };
3246
+ Document: {
3247
+ /** @example cms-xxxxx-xxxxx */
3248
+ contentSystemId: string;
3249
+ /** @example posts */
3250
+ collection: string;
3251
+ doc: components['schemas']['DocumentData'];
3252
+ };
3253
+ CreateDocumentResponse: {
3254
+ result: components['schemas']['Document'] & {
3255
+ /** @example doc-key */
3256
+ id: string;
3257
+ };
3258
+ };
3259
+ /** @example createdAt */
3260
+ SortClause: string | string[];
3261
+ /**
3262
+ * @example [
3263
+ * {
3264
+ * "collectionId": "books",
3265
+ * "on": "authorId",
3266
+ * "path": "books",
3267
+ * "count": false,
3268
+ * "where": {
3269
+ * "path": "status",
3270
+ * "operator": "equals",
3271
+ * "value": "published"
3272
+ * },
3273
+ * "limit": 5,
3274
+ * "page": 1,
3275
+ * "sort": [
3276
+ * {
3277
+ * "path": "title",
3278
+ * "direction": "asc"
3279
+ * }
3280
+ * ]
3281
+ * }
3282
+ * ]
3283
+ */
3284
+ JoinClause: {
3285
+ collectionId: string;
3286
+ on: string;
3287
+ path: string;
3288
+ count: boolean;
3289
+ where?: components['schemas']['WhereClause'];
3290
+ limit?: number;
3291
+ page?: number;
3292
+ sort?: components['schemas']['SortClause'];
3293
+ }[];
3294
+ /** @example es */
3295
+ LocaleClause: string;
3296
+ /**
3297
+ * @example {
3298
+ * "mode": "include",
3299
+ * "paths": [
3300
+ * "title",
3301
+ * "author.name",
3302
+ * "tags"
3303
+ * ]
3304
+ * }
3305
+ */
3306
+ SelectClause: {
3307
+ /** @enum {string} */
3308
+ mode: 'exclude' | 'include';
3309
+ paths: string[];
3310
+ };
3311
+ CreateDocumentRequest: {
3312
+ /** @example cms-xxxxx-xxxxx */
3313
+ contentSystemId: string;
3314
+ /** @example posts */
3315
+ collection: string;
3316
+ doc: components['schemas']['DocumentData'];
3317
+ returning?: false | {
3318
+ join?: components['schemas']['JoinClause'];
3319
+ locale?: components['schemas']['LocaleClause'];
3320
+ select?: components['schemas']['SelectClause'];
3321
+ };
3322
+ };
3323
+ FindDocumentsResponse: {
3324
+ result: {
3325
+ data: (components['schemas']['Document'] & {
3326
+ /** @example doc-key */
3327
+ id: string;
3328
+ })[];
3329
+ totalDocs: number;
3330
+ limit: number;
3331
+ page: number;
3332
+ totalPages: number;
3333
+ pagingCounter: number;
3334
+ hasPrevPage: boolean;
3335
+ hasNextPage: boolean;
3336
+ prevPage: number | null;
3337
+ nextPage: number | null;
3338
+ };
3339
+ };
3340
+ FindDocumentsRequest: {
3341
+ /** @example cms-xxxxx-xxxxx */
3342
+ contentSystemId: string;
3343
+ /** @example posts */
3344
+ collection: string;
3345
+ join?: components['schemas']['JoinClause'];
3346
+ /** @example 10 */
3347
+ limit?: number;
3348
+ locale?: components['schemas']['LocaleClause'];
3349
+ /** @example 1 */
3350
+ page?: number;
3351
+ meta?: components['schemas']['RequestMeta'];
3352
+ select?: components['schemas']['SelectClause'];
3353
+ sort?: components['schemas']['SortClause'];
3354
+ where?: components['schemas']['WhereClause'];
3355
+ };
3356
+ UpdateDocumentResponse: {
3357
+ result?: {
3358
+ /** @example 1 */
3359
+ count: number;
3360
+ } | {
3361
+ data: (components['schemas']['Document'] & {
3362
+ /** @example doc-key */
3363
+ id: string;
3364
+ })[];
3365
+ };
3366
+ };
3367
+ /**
3368
+ * @example {
3369
+ * "title": "New Title",
3370
+ * "views": {
3371
+ * "$inc": 1
3372
+ * },
3373
+ * "status": "draft"
3374
+ * }
3375
+ */
3376
+ DataWithOperations: {
3377
+ [key: string]: components['schemas']['DataValue'];
3378
+ };
3379
+ UpdateDocumentRequest: {
3380
+ /** @example cms-xxxxx-xxxxx */
3381
+ contentSystemId: string;
3382
+ /** @example posts */
3383
+ collection: string;
3384
+ /** @example false */
3385
+ createOnMissing: false | {
3386
+ id: string;
3387
+ };
3388
+ doc: components['schemas']['DataWithOperations'];
3389
+ /** @example 10 */
3390
+ limit?: number;
3391
+ meta?: components['schemas']['RequestMeta'];
3392
+ returning?: false | {
3393
+ join?: components['schemas']['JoinClause'];
3394
+ locale?: components['schemas']['LocaleClause'];
3395
+ select?: components['schemas']['SelectClause'];
3396
+ };
3397
+ sort?: components['schemas']['SortClause'];
3398
+ where: components['schemas']['WhereClause'];
3399
+ locale?: components['schemas']['LocaleClause'];
3400
+ };
3401
+ DeleteDocumentResponse: {
3402
+ result?: {
3403
+ /** @example 1 */
3404
+ count: number;
3405
+ } | {
3406
+ data: (components['schemas']['Document'] & {
3407
+ /** @example doc-key */
3408
+ id: string;
3409
+ })[];
3410
+ };
3411
+ };
3412
+ DeleteDocumentRequest: {
3413
+ /** @example cms-xxxxx-xxxxx */
3414
+ contentSystemId: string;
3415
+ /** @example posts */
3416
+ collection: string;
3417
+ meta?: components['schemas']['RequestMeta'];
3418
+ returning?: false | {
3419
+ join?: components['schemas']['JoinClause'];
3420
+ locale?: components['schemas']['LocaleClause'];
3421
+ select?: components['schemas']['SelectClause'];
3422
+ };
3423
+ where: components['schemas']['WhereClause'];
3424
+ locale?: components['schemas']['LocaleClause'];
3425
+ };
3426
+ CountDocumentVersionResponse: {
3427
+ result: {
3428
+ /** @example 1 */
3429
+ count: number;
3430
+ };
3431
+ };
3432
+ CountDocumentVersionRequest: {
3433
+ /** @example cms-xxxxx-xxxxx */
3434
+ contentSystemId: string;
3435
+ /** @example posts */
3436
+ collection: string;
3437
+ meta?: components['schemas']['RequestMeta'];
3438
+ where?: components['schemas']['WhereClause'];
3439
+ };
3440
+ DocumentVersion: {
3441
+ /** @example cms-xxxxx-xxxxx */
3442
+ contentSystemId: string;
3443
+ /** @example posts */
3444
+ collection: string;
3445
+ versionDoc: {
3446
+ /** @example 2024-01-01T00:00:00Z */
3447
+ createdAt?: string | null;
3448
+ /** @example 2024-01-01T00:00:00Z */
3449
+ updatedAt?: string | null;
3450
+ /** @example true */
3451
+ latest?: boolean;
3452
+ /** @example doc-key */
3453
+ parent?: string | number;
3454
+ version: components['schemas']['DocumentData'] & unknown;
3455
+ /** @example ver-xxxxx-xxxxx */
3456
+ id: string;
3457
+ };
3458
+ };
3459
+ CreateDocumentVersionResponse: {
3460
+ result: components['schemas']['DocumentVersion'] & {
3461
+ /** @example ver-xxxxx-xxxxx */
3462
+ id: string;
3463
+ };
3464
+ };
3465
+ /**
3466
+ * @example {
3467
+ * "contentSystemId": "cms-xxxxx-xxxxx",
3468
+ * "collection": "posts",
3469
+ * "versionDoc": {
3470
+ * "createdAt": "2024-01-01T00:00:00Z",
3471
+ * "updatedAt": "2024-01-01T00:00:00Z",
3472
+ * "latest": true,
3473
+ * "parent": "doc-key",
3474
+ * "version": {
3475
+ * "title": "Placeholder title",
3476
+ * "content": "This is placeholder content"
3477
+ * }
3478
+ * },
3479
+ * "returning": false
3480
+ * }
3481
+ */
3482
+ CreateDocumentVersionRequest: {
3483
+ /** @example cms-xxxxx-xxxxx */
3484
+ contentSystemId: string;
3485
+ /** @example posts */
3486
+ collection: string;
3487
+ versionDoc: {
3488
+ /** @example 2024-01-01T00:00:00Z */
3489
+ createdAt?: string | null;
3490
+ /** @example 2024-01-01T00:00:00Z */
3491
+ updatedAt?: string | null;
3492
+ /** @example true */
3493
+ latest?: boolean;
3494
+ /** @example doc-key */
3495
+ parent?: string | number;
3496
+ version: components['schemas']['DocumentData'] & unknown;
3497
+ };
3498
+ returning?: false | {
3499
+ join?: components['schemas']['JoinClause'];
3500
+ locale?: components['schemas']['LocaleClause'];
3501
+ select?: components['schemas']['SelectClause'];
3502
+ };
3503
+ };
3504
+ FindDocumentVersionsResponse: {
3505
+ result: {
3506
+ data: (components['schemas']['DocumentVersion'] & {
3507
+ /** @example ver-xxxxx-xxxxx */
3508
+ id: string;
3509
+ })[];
3510
+ totalDocs: number;
3511
+ limit: number;
3512
+ page: number;
3513
+ totalPages: number;
3514
+ pagingCounter: number;
3515
+ hasPrevPage: boolean;
3516
+ hasNextPage: boolean;
3517
+ prevPage: number | null;
3518
+ nextPage: number | null;
3519
+ };
3520
+ };
3521
+ FindDocumentVersionsRequest: {
3522
+ /** @example cms-xxxxx-xxxxx */
3523
+ contentSystemId: string;
3524
+ /** @example posts */
3525
+ collection: string;
3526
+ join?: components['schemas']['JoinClause'];
3527
+ /** @example 10 */
3528
+ limit?: number;
3529
+ locale?: components['schemas']['LocaleClause'];
3530
+ /** @example 1 */
3531
+ page?: number;
3532
+ meta?: components['schemas']['RequestMeta'];
3533
+ select?: components['schemas']['SelectClause'];
3534
+ sort?: components['schemas']['SortClause'];
3535
+ where?: components['schemas']['WhereClause'];
3536
+ };
3537
+ UpdateDocumentVersionResponse: {
3538
+ result?: {
3539
+ /** @example 1 */
3540
+ count: number;
3541
+ } | {
3542
+ data: (components['schemas']['DocumentVersion'] & {
3543
+ /** @example ver-xxxxx-xxxxx */
3544
+ id: string;
3545
+ })[];
3546
+ };
3547
+ };
3548
+ UpdateDocumentVersionRequest: {
3549
+ /** @example cms-xxxxx-xxxxx */
3550
+ contentSystemId: string;
3551
+ /** @example posts */
3552
+ collection: string;
3553
+ /** @example false */
3554
+ createOnMissing: false | {
3555
+ parent: string;
3556
+ latest: boolean;
3557
+ };
3558
+ versionDoc: {
3559
+ /** @example 2024-01-01T00:00:00Z */
3560
+ createdAt?: string | null;
3561
+ /** @example 2024-01-01T00:00:00Z */
3562
+ updatedAt?: string | null;
3563
+ /** @example true */
3564
+ latest?: boolean;
3565
+ /** @example doc-key */
3566
+ parent?: string | number;
3567
+ version: components['schemas']['DocumentData'] & unknown;
3568
+ };
3569
+ where: components['schemas']['WhereClause'];
3570
+ /** @example 10 */
3571
+ limit?: number;
3572
+ meta?: components['schemas']['RequestMeta'];
3573
+ sort?: components['schemas']['SortClause'];
3574
+ locale?: components['schemas']['LocaleClause'];
3575
+ returning?: false | {
3576
+ join?: components['schemas']['JoinClause'];
3577
+ locale?: components['schemas']['LocaleClause'];
3578
+ select?: components['schemas']['SelectClause'];
3579
+ };
3580
+ };
3581
+ DeleteDocumentVersionResponse: {
3582
+ result?: {
3583
+ /** @example 1 */
3584
+ count: number;
3585
+ } | {
3586
+ data: (components['schemas']['DocumentVersion'] & {
3587
+ /** @example ver-xxxxx-xxxxx */
3588
+ id: string;
3589
+ })[];
3590
+ };
3591
+ };
3592
+ DeleteDocumentVersionRequest: {
3593
+ /** @example cms-xxxxx-xxxxx */
3594
+ contentSystemId: string;
3595
+ /** @example posts */
3596
+ collection: string;
3597
+ meta?: components['schemas']['RequestMeta'];
3598
+ returning?: false | {
3599
+ join?: components['schemas']['JoinClause'];
3600
+ locale?: components['schemas']['LocaleClause'];
3601
+ select?: components['schemas']['SelectClause'];
3602
+ };
3603
+ where: components['schemas']['WhereClause'];
3604
+ };
3605
+ GeneratePresignedUploadUrlResponse: {
3606
+ /** @example https://s3.amazonaws.com/bucket/key?presigned-params */
3607
+ url: string;
3608
+ };
3609
+ GeneratePresignedUploadUrlRequest: {
3610
+ /** @example document.pdf */
3611
+ filename: string;
3612
+ /** @example application/pdf */
3613
+ contentType?: string;
3614
+ /**
3615
+ * @default 3600
3616
+ * @example 3600
3617
+ */
3618
+ expiresIn: number;
3619
+ /** @example media */
3620
+ collectionId: string;
3621
+ };
3622
+ GeneratePresignedDownloadUrlResponse: {
3623
+ /** @example https://s3.amazonaws.com/bucket/key?presigned-params */
3624
+ url: string;
3625
+ };
3626
+ GeneratePresignedDownloadUrlRequest: {
3627
+ /** @example document.pdf */
3628
+ filename: string;
3629
+ /**
3630
+ * @default 3600
3631
+ * @example 3600
3632
+ */
3633
+ expiresIn: number;
3634
+ /** @example media */
3635
+ collectionId: string;
3636
+ };
3637
+ InitiateMultipartUploadResponse: {
3638
+ /** @example abc123xyz789 */
3639
+ uploadId: string;
3640
+ };
3641
+ InitiateMultipartUploadRequest: {
3642
+ /** @example large-video.mp4 */
3643
+ filename: string;
3644
+ /** @example video/mp4 */
3645
+ contentType: string;
3646
+ /** @example media */
3647
+ collectionId: string;
3648
+ };
3649
+ GenerateUploadPartUrlsResponse: {
3650
+ /**
3651
+ * @example [
3652
+ * {
3653
+ * "partNumber": 1,
3654
+ * "url": "https://s3.amazonaws.com/..."
3655
+ * }
3656
+ * ]
3657
+ */
3658
+ parts: {
3659
+ /** @example 1 */
3660
+ partNumber: number;
3661
+ /** @example https://s3.amazonaws.com/bucket/key?presigned-params */
3662
+ url: string;
3663
+ }[];
3664
+ };
3665
+ GenerateUploadPartUrlsRequest: {
3666
+ /** @example large-video.mp4 */
3667
+ filename: string;
3668
+ /** @example abc123xyz789 */
3669
+ uploadId: string;
3670
+ /**
3671
+ * @example [
3672
+ * 1,
3673
+ * 2,
3674
+ * 3
3675
+ * ]
3676
+ */
3677
+ partNumbers: number[];
3678
+ /**
3679
+ * @default 3600
3680
+ * @example 3600
3681
+ */
3682
+ expiresIn: number;
3683
+ /** @example media */
3684
+ collectionId: string;
3685
+ };
3686
+ CompleteMultipartUploadResponse: {
3687
+ /**
3688
+ * @example true
3689
+ * @enum {boolean}
3690
+ */
3691
+ success: true;
3692
+ };
3693
+ CompleteMultipartUploadRequest: {
3694
+ /** @example large-video.mp4 */
3695
+ filename: string;
3696
+ /** @example abc123xyz789 */
3697
+ uploadId: string;
3698
+ /**
3699
+ * @example [
3700
+ * {
3701
+ * "PartNumber": 1,
3702
+ * "ETag": "\"abc123\""
3703
+ * }
3704
+ * ]
3705
+ */
3706
+ parts: {
3707
+ /** @example 1 */
3708
+ PartNumber: number;
3709
+ /** @example "abc123" */
3710
+ ETag: string;
3711
+ }[];
3712
+ /** @example media */
3713
+ collectionId: string;
3714
+ };
3715
+ AbortMultipartUploadResponse: {
3716
+ /**
3717
+ * @example true
3718
+ * @enum {boolean}
3719
+ */
3720
+ success: true;
3721
+ };
3722
+ AbortMultipartUploadRequest: {
3723
+ /** @example large-video.mp4 */
3724
+ filename: string;
3725
+ /** @example abc123xyz789 */
3726
+ uploadId: string;
3727
+ /** @example media */
3728
+ collectionId: string;
3729
+ };
3730
+ DeleteFileResponse: {
3731
+ /**
3732
+ * @example true
3733
+ * @enum {boolean}
3734
+ */
3735
+ success: true;
3736
+ };
3737
+ };
3738
+ responses: never;
3739
+ parameters: never;
3740
+ requestBodies: never;
3741
+ headers: never;
3742
+ pathItems: never;
3743
+ };
3744
+ export type $defs = Record<string, never>;
3745
+ export type operations = Record<string, never>;
3746
+ //# sourceMappingURL=content-api-types.d.ts.map