@payloadcms/figma 0.0.1-alpha.3 → 0.0.1-alpha.31

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 (229) hide show
  1. package/dist/api/control-plane.d.ts +22 -1
  2. package/dist/api/control-plane.d.ts.map +1 -1
  3. package/dist/api/control-plane.js +54 -15
  4. package/dist/api/control-plane.js.map +1 -1
  5. package/dist/api/figma-api.d.ts.map +1 -1
  6. package/dist/api/figma-api.js +42 -12
  7. package/dist/api/figma-api.js.map +1 -1
  8. package/dist/auth/callback-server.d.ts.map +1 -1
  9. package/dist/auth/callback-server.js +2 -1
  10. package/dist/auth/callback-server.js.map +1 -1
  11. package/dist/auth/crypto-utils.d.ts.map +1 -1
  12. package/dist/auth/crypto-utils.js +5 -5
  13. package/dist/auth/crypto-utils.js.map +1 -1
  14. package/dist/auth/oauth-flow.d.ts +1 -1
  15. package/dist/auth/oauth-flow.d.ts.map +1 -1
  16. package/dist/auth/oauth-flow.js +5 -5
  17. package/dist/auth/oauth-flow.js.map +1 -1
  18. package/dist/auth/project-token.d.ts.map +1 -1
  19. package/dist/auth/project-token.js +9 -4
  20. package/dist/auth/project-token.js.map +1 -1
  21. package/dist/auth/token-store.d.ts +10 -0
  22. package/dist/auth/token-store.d.ts.map +1 -1
  23. package/dist/auth/token-store.js +20 -0
  24. package/dist/auth/token-store.js.map +1 -1
  25. package/dist/cli.js +3 -0
  26. package/dist/cli.js.map +1 -1
  27. package/dist/commands/deploy.d.ts +4 -0
  28. package/dist/commands/deploy.d.ts.map +1 -1
  29. package/dist/commands/deploy.js +68 -126
  30. package/dist/commands/deploy.js.map +1 -1
  31. package/dist/commands/init.d.ts +1 -5
  32. package/dist/commands/init.d.ts.map +1 -1
  33. package/dist/commands/init.js +90 -85
  34. package/dist/commands/init.js.map +1 -1
  35. package/dist/commands/list-tokens.js +2 -2
  36. package/dist/commands/list-tokens.js.map +1 -1
  37. package/dist/commands/login.d.ts +8 -1
  38. package/dist/commands/login.d.ts.map +1 -1
  39. package/dist/commands/login.js +12 -6
  40. package/dist/commands/login.js.map +1 -1
  41. package/dist/commands/logout.js +2 -2
  42. package/dist/commands/logout.js.map +1 -1
  43. package/dist/config/oauth.d.ts +5 -0
  44. package/dist/config/oauth.d.ts.map +1 -1
  45. package/dist/config/oauth.js +9 -4
  46. package/dist/config/oauth.js.map +1 -1
  47. package/dist/db-content-api/README.md +108 -0
  48. package/dist/db-content-api/generated/content-api-types.d.ts +3702 -0
  49. package/dist/db-content-api/generated/content-api-types.d.ts.map +1 -0
  50. package/dist/db-content-api/generated/content-api-types.js +7 -0
  51. package/dist/db-content-api/generated/content-api-types.js.map +1 -0
  52. package/dist/db-content-api/index.d.ts +18 -0
  53. package/dist/db-content-api/index.d.ts.map +1 -0
  54. package/dist/db-content-api/index.js +572 -0
  55. package/dist/db-content-api/index.js.map +1 -0
  56. package/dist/db-content-api/temp-utilities/pagination.d.ts +13 -0
  57. package/dist/db-content-api/temp-utilities/pagination.d.ts.map +1 -0
  58. package/dist/db-content-api/temp-utilities/pagination.js +45 -0
  59. package/dist/db-content-api/temp-utilities/pagination.js.map +1 -0
  60. package/dist/db-content-api/temp-utilities/slug.d.ts +2 -0
  61. package/dist/db-content-api/temp-utilities/slug.d.ts.map +1 -0
  62. package/dist/db-content-api/temp-utilities/slug.js +3 -0
  63. package/dist/db-content-api/temp-utilities/slug.js.map +1 -0
  64. package/dist/db-content-api/temp-utilities/sorting.d.ts +7 -0
  65. package/dist/db-content-api/temp-utilities/sorting.d.ts.map +1 -0
  66. package/dist/db-content-api/temp-utilities/sorting.js +71 -0
  67. package/dist/db-content-api/temp-utilities/sorting.js.map +1 -0
  68. package/dist/db-content-api/temp-utilities/unwrapDocument.d.ts +4 -0
  69. package/dist/db-content-api/temp-utilities/unwrapDocument.d.ts.map +1 -0
  70. package/dist/db-content-api/temp-utilities/unwrapDocument.js +53 -0
  71. package/dist/db-content-api/temp-utilities/unwrapDocument.js.map +1 -0
  72. package/dist/db-content-api/utilities/auth.d.ts +30 -0
  73. package/dist/db-content-api/utilities/auth.d.ts.map +1 -0
  74. package/dist/db-content-api/utilities/auth.js +81 -0
  75. package/dist/db-content-api/utilities/auth.js.map +1 -0
  76. package/dist/db-content-api/utilities/data/applyDefaults.d.ts +7 -0
  77. package/dist/db-content-api/utilities/data/applyDefaults.d.ts.map +1 -0
  78. package/dist/db-content-api/utilities/data/applyDefaults.js +59 -0
  79. package/dist/db-content-api/utilities/data/applyDefaults.js.map +1 -0
  80. package/dist/db-content-api/utilities/data/castFieldValue.d.ts +11 -0
  81. package/dist/db-content-api/utilities/data/castFieldValue.d.ts.map +1 -0
  82. package/dist/db-content-api/utilities/data/castFieldValue.js +66 -0
  83. package/dist/db-content-api/utilities/data/castFieldValue.js.map +1 -0
  84. package/dist/db-content-api/utilities/data/index.d.ts +28 -0
  85. package/dist/db-content-api/utilities/data/index.d.ts.map +1 -0
  86. package/dist/db-content-api/utilities/data/index.js +166 -0
  87. package/dist/db-content-api/utilities/data/index.js.map +1 -0
  88. package/dist/db-content-api/utilities/data/stripFields.d.ts +48 -0
  89. package/dist/db-content-api/utilities/data/stripFields.d.ts.map +1 -0
  90. package/dist/db-content-api/utilities/data/stripFields.js +195 -0
  91. package/dist/db-content-api/utilities/data/stripFields.js.map +1 -0
  92. package/dist/db-content-api/utilities/joins.d.ts +55 -0
  93. package/dist/db-content-api/utilities/joins.d.ts.map +1 -0
  94. package/dist/db-content-api/utilities/joins.js +130 -0
  95. package/dist/db-content-api/utilities/joins.js.map +1 -0
  96. package/dist/db-content-api/utilities/where.d.ts +12 -0
  97. package/dist/db-content-api/utilities/where.d.ts.map +1 -0
  98. package/dist/db-content-api/utilities/where.js +107 -0
  99. package/dist/db-content-api/utilities/where.js.map +1 -0
  100. package/dist/endpoints/health.d.ts +3 -0
  101. package/dist/endpoints/health.d.ts.map +1 -0
  102. package/dist/endpoints/health.js +11 -0
  103. package/dist/endpoints/health.js.map +1 -0
  104. package/dist/exports/client.d.ts +4 -0
  105. package/dist/exports/client.d.ts.map +1 -0
  106. package/dist/exports/client.js +5 -0
  107. package/dist/exports/client.js.map +1 -0
  108. package/dist/index.d.ts +2 -1
  109. package/dist/index.d.ts.map +1 -1
  110. package/dist/index.js +3 -1
  111. package/dist/index.js.map +1 -1
  112. package/dist/oauth/components/LoginButton/index.d.ts.map +1 -1
  113. package/dist/oauth/components/LoginButton/index.js +50 -6
  114. package/dist/oauth/components/LoginButton/index.js.map +1 -1
  115. package/dist/oauth/components/LoginButton/index.scss +50 -3
  116. package/dist/oauth/components/LogoutButton/index.d.ts.map +1 -1
  117. package/dist/oauth/components/LogoutButton/index.js +0 -1
  118. package/dist/oauth/components/LogoutButton/index.js.map +1 -1
  119. package/dist/oauth/defaults.d.ts.map +1 -1
  120. package/dist/oauth/defaults.js +29 -5
  121. package/dist/oauth/defaults.js.map +1 -1
  122. package/dist/oauth/endpoints/getLoginEndpoint.d.ts.map +1 -1
  123. package/dist/oauth/endpoints/getLoginEndpoint.js +1 -1
  124. package/dist/oauth/endpoints/getLoginEndpoint.js.map +1 -1
  125. package/dist/oauth/index.d.ts.map +1 -1
  126. package/dist/oauth/index.js +42 -6
  127. package/dist/oauth/index.js.map +1 -1
  128. package/dist/oauth/strategy/index.d.ts.map +1 -1
  129. package/dist/oauth/strategy/index.js +6 -2
  130. package/dist/oauth/strategy/index.js.map +1 -1
  131. package/dist/oauth/types.d.ts +6 -6
  132. package/dist/oauth/types.d.ts.map +1 -1
  133. package/dist/oauth/types.js.map +1 -1
  134. package/dist/oauth/utilities/createCookieOptions.d.ts.map +1 -1
  135. package/dist/oauth/utilities/createCookieOptions.js.map +1 -1
  136. package/dist/oauth/utilities/isDuplicateKeyError.d.ts +7 -0
  137. package/dist/oauth/utilities/isDuplicateKeyError.d.ts.map +1 -0
  138. package/dist/oauth/utilities/isDuplicateKeyError.js +14 -0
  139. package/dist/oauth/utilities/isDuplicateKeyError.js.map +1 -0
  140. package/dist/oauth/utilities/refreshTokens.d.ts.map +1 -1
  141. package/dist/oauth/utilities/refreshTokens.js +1 -1
  142. package/dist/oauth/utilities/refreshTokens.js.map +1 -1
  143. package/dist/plugin/build-config.d.ts +21 -4
  144. package/dist/plugin/build-config.d.ts.map +1 -1
  145. package/dist/plugin/build-config.js +103 -9
  146. package/dist/plugin/build-config.js.map +1 -1
  147. package/dist/storage-content-api/api-types.d.ts +161 -0
  148. package/dist/storage-content-api/api-types.d.ts.map +1 -0
  149. package/dist/storage-content-api/api-types.js +6 -0
  150. package/dist/storage-content-api/api-types.js.map +1 -0
  151. package/dist/storage-content-api/client-uploads/ClientUploadHandler.d.ts +9 -0
  152. package/dist/storage-content-api/client-uploads/ClientUploadHandler.d.ts.map +1 -0
  153. package/dist/storage-content-api/client-uploads/ClientUploadHandler.js +42 -0
  154. package/dist/storage-content-api/client-uploads/ClientUploadHandler.js.map +1 -0
  155. package/dist/storage-content-api/client-uploads/generateSignedURL.d.ts +13 -0
  156. package/dist/storage-content-api/client-uploads/generateSignedURL.d.ts.map +1 -0
  157. package/dist/storage-content-api/client-uploads/generateSignedURL.js +31 -0
  158. package/dist/storage-content-api/client-uploads/generateSignedURL.js.map +1 -0
  159. package/dist/storage-content-api/client.d.ts +6 -0
  160. package/dist/storage-content-api/client.d.ts.map +1 -0
  161. package/dist/storage-content-api/client.js +36 -0
  162. package/dist/storage-content-api/client.js.map +1 -0
  163. package/dist/storage-content-api/generateURL.d.ts +7 -0
  164. package/dist/storage-content-api/generateURL.d.ts.map +1 -0
  165. package/dist/storage-content-api/generateURL.js +7 -0
  166. package/dist/storage-content-api/generateURL.js.map +1 -0
  167. package/dist/storage-content-api/handleDelete.d.ts +8 -0
  168. package/dist/storage-content-api/handleDelete.d.ts.map +1 -0
  169. package/dist/storage-content-api/handleDelete.js +15 -0
  170. package/dist/storage-content-api/handleDelete.js.map +1 -0
  171. package/dist/storage-content-api/handleUpload.d.ts +11 -0
  172. package/dist/storage-content-api/handleUpload.d.ts.map +1 -0
  173. package/dist/storage-content-api/handleUpload.js +136 -0
  174. package/dist/storage-content-api/handleUpload.js.map +1 -0
  175. package/dist/storage-content-api/index.d.ts +5 -0
  176. package/dist/storage-content-api/index.d.ts.map +1 -0
  177. package/dist/storage-content-api/index.js +31 -0
  178. package/dist/storage-content-api/index.js.map +1 -0
  179. package/dist/storage-content-api/staticHandler.d.ts +10 -0
  180. package/dist/storage-content-api/staticHandler.d.ts.map +1 -0
  181. package/dist/storage-content-api/staticHandler.js +55 -0
  182. package/dist/storage-content-api/staticHandler.js.map +1 -0
  183. package/dist/storage-content-api/types.d.ts +10 -0
  184. package/dist/storage-content-api/types.d.ts.map +1 -0
  185. package/dist/storage-content-api/types.js +3 -0
  186. package/dist/storage-content-api/types.js.map +1 -0
  187. package/dist/templates/README.md +19 -0
  188. package/dist/utils/env-management.d.ts +9 -8
  189. package/dist/utils/env-management.d.ts.map +1 -1
  190. package/dist/utils/env-management.js +73 -74
  191. package/dist/utils/env-management.js.map +1 -1
  192. package/dist/utils/formatter.d.ts.map +1 -1
  193. package/dist/utils/formatter.js +1 -7
  194. package/dist/utils/formatter.js.map +1 -1
  195. package/dist/utils/lambda-config.d.ts.map +1 -1
  196. package/dist/utils/lambda-config.js +1 -0
  197. package/dist/utils/lambda-config.js.map +1 -1
  198. package/dist/utils/messages.d.ts.map +1 -1
  199. package/dist/utils/messages.js +5 -7
  200. package/dist/utils/messages.js.map +1 -1
  201. package/dist/utils/payload-config-ast.d.ts +22 -3
  202. package/dist/utils/payload-config-ast.d.ts.map +1 -1
  203. package/dist/utils/payload-config-ast.js +89 -31
  204. package/dist/utils/payload-config-ast.js.map +1 -1
  205. package/dist/utils/payload-config-finder.d.ts +2 -2
  206. package/dist/utils/payload-config-finder.d.ts.map +1 -1
  207. package/dist/utils/payload-config-finder.js +48 -9
  208. package/dist/utils/payload-config-finder.js.map +1 -1
  209. package/dist/utils/payload-config-modifier.d.ts.map +1 -1
  210. package/dist/utils/payload-config-modifier.js +33 -4
  211. package/dist/utils/payload-config-modifier.js.map +1 -1
  212. package/dist/utils/payload-package-check.d.ts +5 -0
  213. package/dist/utils/payload-package-check.d.ts.map +1 -1
  214. package/dist/utils/payload-package-check.js +48 -4
  215. package/dist/utils/payload-package-check.js.map +1 -1
  216. package/dist/utils/project.d.ts.map +1 -1
  217. package/dist/utils/project.js +8 -6
  218. package/dist/utils/project.js.map +1 -1
  219. package/dist/utils/s3-upload.d.ts +0 -1
  220. package/dist/utils/s3-upload.d.ts.map +1 -1
  221. package/dist/utils/s3-upload.js +10 -3
  222. package/dist/utils/s3-upload.js.map +1 -1
  223. package/dist/utils/token-display.d.ts.map +1 -1
  224. package/dist/utils/token-display.js +11 -5
  225. package/dist/utils/token-display.js.map +1 -1
  226. package/dist/utils/typescript-validator.d.ts.map +1 -1
  227. package/dist/utils/typescript-validator.js +1 -6
  228. package/dist/utils/typescript-validator.js.map +1 -1
  229. package/package.json +24 -7
@@ -0,0 +1,3702 @@
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 Unauthorized */
1021
+ 401: {
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 Forbidden */
1033
+ 403: {
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 Not Found */
1045
+ 404: {
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
+ /** @description Internal Server Error */
1057
+ 500: {
1058
+ headers: {
1059
+ [name: string]: unknown;
1060
+ };
1061
+ content: {
1062
+ 'application/json': {
1063
+ /** @example Error message describing the issue. */
1064
+ message: string;
1065
+ };
1066
+ };
1067
+ };
1068
+ };
1069
+ };
1070
+ put: {
1071
+ parameters: {
1072
+ query?: never;
1073
+ header?: never;
1074
+ path: {
1075
+ contentSystemId: string;
1076
+ id: string;
1077
+ };
1078
+ cookie?: never;
1079
+ };
1080
+ requestBody?: {
1081
+ content: {
1082
+ 'application/json': components['schemas']['UpdateCollectionRequest'];
1083
+ };
1084
+ };
1085
+ responses: {
1086
+ /** @description Collection updated */
1087
+ 200: {
1088
+ headers: {
1089
+ [name: string]: unknown;
1090
+ };
1091
+ content: {
1092
+ 'application/json': components['schemas']['UpdateCollectionResponse'];
1093
+ };
1094
+ };
1095
+ /** @description Bad Request */
1096
+ 400: {
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 Unauthorized */
1108
+ 401: {
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 Forbidden */
1120
+ 403: {
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 Not Found */
1132
+ 404: {
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 Conflict */
1144
+ 409: {
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
+ /** @description Internal Server Error */
1156
+ 500: {
1157
+ headers: {
1158
+ [name: string]: unknown;
1159
+ };
1160
+ content: {
1161
+ 'application/json': {
1162
+ /** @example Error message describing the issue. */
1163
+ message: string;
1164
+ };
1165
+ };
1166
+ };
1167
+ };
1168
+ };
1169
+ post?: never;
1170
+ delete: {
1171
+ parameters: {
1172
+ query?: never;
1173
+ header?: never;
1174
+ path: {
1175
+ contentSystemId: string;
1176
+ id: string;
1177
+ };
1178
+ cookie?: never;
1179
+ };
1180
+ requestBody?: never;
1181
+ responses: {
1182
+ /** @description Collection deleted successfully */
1183
+ 204: {
1184
+ headers: {
1185
+ [name: string]: unknown;
1186
+ };
1187
+ content?: never;
1188
+ };
1189
+ /** @description Bad Request */
1190
+ 400: {
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 Unauthorized */
1202
+ 401: {
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 Forbidden */
1214
+ 403: {
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 Not Found */
1226
+ 404: {
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
+ /** @description Internal Server Error */
1238
+ 500: {
1239
+ headers: {
1240
+ [name: string]: unknown;
1241
+ };
1242
+ content: {
1243
+ 'application/json': {
1244
+ /** @example Error message describing the issue. */
1245
+ message: string;
1246
+ };
1247
+ };
1248
+ };
1249
+ };
1250
+ };
1251
+ options?: never;
1252
+ head?: never;
1253
+ patch?: never;
1254
+ trace?: never;
1255
+ };
1256
+ '/api/v0/documents:count': {
1257
+ parameters: {
1258
+ query?: never;
1259
+ header?: never;
1260
+ path?: never;
1261
+ cookie?: never;
1262
+ };
1263
+ get?: never;
1264
+ put?: never;
1265
+ post: {
1266
+ parameters: {
1267
+ query?: never;
1268
+ header?: never;
1269
+ path?: never;
1270
+ cookie?: never;
1271
+ };
1272
+ requestBody?: {
1273
+ content: {
1274
+ 'application/json': components['schemas']['CountDocumentRequest'];
1275
+ };
1276
+ };
1277
+ responses: {
1278
+ /** @description Document count */
1279
+ 200: {
1280
+ headers: {
1281
+ [name: string]: unknown;
1282
+ };
1283
+ content: {
1284
+ 'application/json': components['schemas']['CountDocumentResponse'];
1285
+ };
1286
+ };
1287
+ /** @description Bad Request */
1288
+ 400: {
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 Unauthorized */
1300
+ 401: {
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 Forbidden */
1312
+ 403: {
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 Not Found */
1324
+ 404: {
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
+ /** @description Internal Server Error */
1336
+ 500: {
1337
+ headers: {
1338
+ [name: string]: unknown;
1339
+ };
1340
+ content: {
1341
+ 'application/json': {
1342
+ /** @example Error message describing the issue. */
1343
+ message: string;
1344
+ };
1345
+ };
1346
+ };
1347
+ };
1348
+ };
1349
+ delete?: never;
1350
+ options?: never;
1351
+ head?: never;
1352
+ patch?: never;
1353
+ trace?: never;
1354
+ };
1355
+ '/api/v0/documents:create': {
1356
+ parameters: {
1357
+ query?: never;
1358
+ header?: never;
1359
+ path?: never;
1360
+ cookie?: never;
1361
+ };
1362
+ get?: never;
1363
+ put?: never;
1364
+ post: {
1365
+ parameters: {
1366
+ query?: never;
1367
+ header?: never;
1368
+ path?: never;
1369
+ cookie?: never;
1370
+ };
1371
+ requestBody?: {
1372
+ content: {
1373
+ 'application/json': components['schemas']['CreateDocumentRequest'];
1374
+ };
1375
+ };
1376
+ responses: {
1377
+ /** @description Document created */
1378
+ 201: {
1379
+ headers: {
1380
+ [name: string]: unknown;
1381
+ };
1382
+ content: {
1383
+ 'application/json': components['schemas']['CreateDocumentResponse'];
1384
+ };
1385
+ };
1386
+ /** @description Bad Request */
1387
+ 400: {
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 Unauthorized */
1399
+ 401: {
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 Forbidden */
1411
+ 403: {
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 Not Found */
1423
+ 404: {
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 Conflict */
1435
+ 409: {
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
+ /** @description Internal Server Error */
1447
+ 500: {
1448
+ headers: {
1449
+ [name: string]: unknown;
1450
+ };
1451
+ content: {
1452
+ 'application/json': {
1453
+ /** @example Error message describing the issue. */
1454
+ message: string;
1455
+ };
1456
+ };
1457
+ };
1458
+ };
1459
+ };
1460
+ delete?: never;
1461
+ options?: never;
1462
+ head?: never;
1463
+ patch?: never;
1464
+ trace?: never;
1465
+ };
1466
+ '/api/v0/documents:find': {
1467
+ parameters: {
1468
+ query?: never;
1469
+ header?: never;
1470
+ path?: never;
1471
+ cookie?: never;
1472
+ };
1473
+ get?: never;
1474
+ put?: never;
1475
+ post: {
1476
+ parameters: {
1477
+ query?: never;
1478
+ header?: never;
1479
+ path?: never;
1480
+ cookie?: never;
1481
+ };
1482
+ requestBody?: {
1483
+ content: {
1484
+ 'application/json': components['schemas']['FindDocumentsRequest'];
1485
+ };
1486
+ };
1487
+ responses: {
1488
+ /** @description Documents found */
1489
+ 200: {
1490
+ headers: {
1491
+ [name: string]: unknown;
1492
+ };
1493
+ content: {
1494
+ 'application/json': components['schemas']['FindDocumentsResponse'];
1495
+ };
1496
+ };
1497
+ /** @description Bad Request */
1498
+ 400: {
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 Forbidden */
1510
+ 403: {
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 Not Found */
1522
+ 404: {
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
+ /** @description Internal Server Error */
1534
+ 500: {
1535
+ headers: {
1536
+ [name: string]: unknown;
1537
+ };
1538
+ content: {
1539
+ 'application/json': {
1540
+ /** @example Error message describing the issue. */
1541
+ message: string;
1542
+ };
1543
+ };
1544
+ };
1545
+ };
1546
+ };
1547
+ delete?: never;
1548
+ options?: never;
1549
+ head?: never;
1550
+ patch?: never;
1551
+ trace?: never;
1552
+ };
1553
+ '/api/v0/documents:update': {
1554
+ parameters: {
1555
+ query?: never;
1556
+ header?: never;
1557
+ path?: never;
1558
+ cookie?: never;
1559
+ };
1560
+ get?: never;
1561
+ put?: never;
1562
+ post: {
1563
+ parameters: {
1564
+ query?: never;
1565
+ header?: never;
1566
+ path?: never;
1567
+ cookie?: never;
1568
+ };
1569
+ requestBody?: {
1570
+ content: {
1571
+ 'application/json': components['schemas']['UpdateDocumentRequest'];
1572
+ };
1573
+ };
1574
+ responses: {
1575
+ /** @description Documents updated */
1576
+ 200: {
1577
+ headers: {
1578
+ [name: string]: unknown;
1579
+ };
1580
+ content: {
1581
+ 'application/json': components['schemas']['UpdateDocumentResponse'];
1582
+ };
1583
+ };
1584
+ /** @description Bad Request */
1585
+ 400: {
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 Unauthorized */
1597
+ 401: {
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 Forbidden */
1609
+ 403: {
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 Not Found */
1621
+ 404: {
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 Conflict */
1633
+ 409: {
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
+ /** @description Internal Server Error */
1645
+ 500: {
1646
+ headers: {
1647
+ [name: string]: unknown;
1648
+ };
1649
+ content: {
1650
+ 'application/json': {
1651
+ /** @example Error message describing the issue. */
1652
+ message: string;
1653
+ };
1654
+ };
1655
+ };
1656
+ };
1657
+ };
1658
+ delete?: never;
1659
+ options?: never;
1660
+ head?: never;
1661
+ patch?: never;
1662
+ trace?: never;
1663
+ };
1664
+ '/api/v0/documents:delete': {
1665
+ parameters: {
1666
+ query?: never;
1667
+ header?: never;
1668
+ path?: never;
1669
+ cookie?: never;
1670
+ };
1671
+ get?: never;
1672
+ put?: never;
1673
+ post: {
1674
+ parameters: {
1675
+ query?: never;
1676
+ header?: never;
1677
+ path?: never;
1678
+ cookie?: never;
1679
+ };
1680
+ requestBody?: {
1681
+ content: {
1682
+ 'application/json': components['schemas']['DeleteDocumentRequest'];
1683
+ };
1684
+ };
1685
+ responses: {
1686
+ /** @description Documents deleted */
1687
+ 200: {
1688
+ headers: {
1689
+ [name: string]: unknown;
1690
+ };
1691
+ content: {
1692
+ 'application/json': components['schemas']['DeleteDocumentResponse'];
1693
+ };
1694
+ };
1695
+ /** @description Bad Request */
1696
+ 400: {
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 Unauthorized */
1708
+ 401: {
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 Forbidden */
1720
+ 403: {
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 Not Found */
1732
+ 404: {
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
+ /** @description Internal Server Error */
1744
+ 500: {
1745
+ headers: {
1746
+ [name: string]: unknown;
1747
+ };
1748
+ content: {
1749
+ 'application/json': {
1750
+ /** @example Error message describing the issue. */
1751
+ message: string;
1752
+ };
1753
+ };
1754
+ };
1755
+ };
1756
+ };
1757
+ delete?: never;
1758
+ options?: never;
1759
+ head?: never;
1760
+ patch?: never;
1761
+ trace?: never;
1762
+ };
1763
+ '/api/v0/document_versions:count': {
1764
+ parameters: {
1765
+ query?: never;
1766
+ header?: never;
1767
+ path?: never;
1768
+ cookie?: never;
1769
+ };
1770
+ get?: never;
1771
+ put?: never;
1772
+ post: {
1773
+ parameters: {
1774
+ query?: never;
1775
+ header?: never;
1776
+ path?: never;
1777
+ cookie?: never;
1778
+ };
1779
+ requestBody?: {
1780
+ content: {
1781
+ 'application/json': components['schemas']['CountDocumentVersionRequest'];
1782
+ };
1783
+ };
1784
+ responses: {
1785
+ /** @description Document version count */
1786
+ 200: {
1787
+ headers: {
1788
+ [name: string]: unknown;
1789
+ };
1790
+ content: {
1791
+ 'application/json': components['schemas']['CountDocumentVersionResponse'];
1792
+ };
1793
+ };
1794
+ /** @description Bad Request */
1795
+ 400: {
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 Unauthorized */
1807
+ 401: {
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 Forbidden */
1819
+ 403: {
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 Not Found */
1831
+ 404: {
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
+ /** @description Internal Server Error */
1843
+ 500: {
1844
+ headers: {
1845
+ [name: string]: unknown;
1846
+ };
1847
+ content: {
1848
+ 'application/json': {
1849
+ /** @example Error message describing the issue. */
1850
+ message: string;
1851
+ };
1852
+ };
1853
+ };
1854
+ };
1855
+ };
1856
+ delete?: never;
1857
+ options?: never;
1858
+ head?: never;
1859
+ patch?: never;
1860
+ trace?: never;
1861
+ };
1862
+ '/api/v0/document_versions:create': {
1863
+ parameters: {
1864
+ query?: never;
1865
+ header?: never;
1866
+ path?: never;
1867
+ cookie?: never;
1868
+ };
1869
+ get?: never;
1870
+ put?: never;
1871
+ post: {
1872
+ parameters: {
1873
+ query?: never;
1874
+ header?: never;
1875
+ path?: never;
1876
+ cookie?: never;
1877
+ };
1878
+ requestBody?: {
1879
+ content: {
1880
+ 'application/json': components['schemas']['CreateDocumentVersionRequest'];
1881
+ };
1882
+ };
1883
+ responses: {
1884
+ /** @description Document version created */
1885
+ 201: {
1886
+ headers: {
1887
+ [name: string]: unknown;
1888
+ };
1889
+ content: {
1890
+ 'application/json': components['schemas']['CreateDocumentVersionResponse'];
1891
+ };
1892
+ };
1893
+ /** @description Bad Request */
1894
+ 400: {
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 Unauthorized */
1906
+ 401: {
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 Forbidden */
1918
+ 403: {
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 Not Found */
1930
+ 404: {
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
+ /** @description Internal Server Error */
1942
+ 500: {
1943
+ headers: {
1944
+ [name: string]: unknown;
1945
+ };
1946
+ content: {
1947
+ 'application/json': {
1948
+ /** @example Error message describing the issue. */
1949
+ message: string;
1950
+ };
1951
+ };
1952
+ };
1953
+ };
1954
+ };
1955
+ delete?: never;
1956
+ options?: never;
1957
+ head?: never;
1958
+ patch?: never;
1959
+ trace?: never;
1960
+ };
1961
+ '/api/v0/document_versions:find': {
1962
+ parameters: {
1963
+ query?: never;
1964
+ header?: never;
1965
+ path?: never;
1966
+ cookie?: never;
1967
+ };
1968
+ get?: never;
1969
+ put?: never;
1970
+ post: {
1971
+ parameters: {
1972
+ query?: never;
1973
+ header?: never;
1974
+ path?: never;
1975
+ cookie?: never;
1976
+ };
1977
+ requestBody?: {
1978
+ content: {
1979
+ 'application/json': components['schemas']['FindDocumentVersionsRequest'];
1980
+ };
1981
+ };
1982
+ responses: {
1983
+ /** @description Document versions found */
1984
+ 200: {
1985
+ headers: {
1986
+ [name: string]: unknown;
1987
+ };
1988
+ content: {
1989
+ 'application/json': components['schemas']['FindDocumentVersionsResponse'];
1990
+ };
1991
+ };
1992
+ /** @description Bad Request */
1993
+ 400: {
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 Unauthorized */
2005
+ 401: {
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 Forbidden */
2017
+ 403: {
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 Not Found */
2029
+ 404: {
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
+ /** @description Internal Server Error */
2041
+ 500: {
2042
+ headers: {
2043
+ [name: string]: unknown;
2044
+ };
2045
+ content: {
2046
+ 'application/json': {
2047
+ /** @example Error message describing the issue. */
2048
+ message: string;
2049
+ };
2050
+ };
2051
+ };
2052
+ };
2053
+ };
2054
+ delete?: never;
2055
+ options?: never;
2056
+ head?: never;
2057
+ patch?: never;
2058
+ trace?: never;
2059
+ };
2060
+ '/api/v0/document_versions:update': {
2061
+ parameters: {
2062
+ query?: never;
2063
+ header?: never;
2064
+ path?: never;
2065
+ cookie?: never;
2066
+ };
2067
+ get?: never;
2068
+ put?: never;
2069
+ post: {
2070
+ parameters: {
2071
+ query?: never;
2072
+ header?: never;
2073
+ path?: never;
2074
+ cookie?: never;
2075
+ };
2076
+ requestBody?: {
2077
+ content: {
2078
+ 'application/json': components['schemas']['UpdateDocumentVersionRequest'];
2079
+ };
2080
+ };
2081
+ responses: {
2082
+ /** @description Document versions updated */
2083
+ 200: {
2084
+ headers: {
2085
+ [name: string]: unknown;
2086
+ };
2087
+ content: {
2088
+ 'application/json': components['schemas']['UpdateDocumentVersionResponse'];
2089
+ };
2090
+ };
2091
+ /** @description Bad Request */
2092
+ 400: {
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 Unauthorized */
2104
+ 401: {
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 Forbidden */
2116
+ 403: {
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 Not Found */
2128
+ 404: {
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
+ /** @description Internal Server Error */
2140
+ 500: {
2141
+ headers: {
2142
+ [name: string]: unknown;
2143
+ };
2144
+ content: {
2145
+ 'application/json': {
2146
+ /** @example Error message describing the issue. */
2147
+ message: string;
2148
+ };
2149
+ };
2150
+ };
2151
+ };
2152
+ };
2153
+ delete?: never;
2154
+ options?: never;
2155
+ head?: never;
2156
+ patch?: never;
2157
+ trace?: never;
2158
+ };
2159
+ '/api/v0/document_versions:delete': {
2160
+ parameters: {
2161
+ query?: never;
2162
+ header?: never;
2163
+ path?: never;
2164
+ cookie?: never;
2165
+ };
2166
+ get?: never;
2167
+ put?: never;
2168
+ post: {
2169
+ parameters: {
2170
+ query?: never;
2171
+ header?: never;
2172
+ path?: never;
2173
+ cookie?: never;
2174
+ };
2175
+ requestBody?: {
2176
+ content: {
2177
+ 'application/json': components['schemas']['DeleteDocumentVersionRequest'];
2178
+ };
2179
+ };
2180
+ responses: {
2181
+ /** @description Document versions deleted */
2182
+ 200: {
2183
+ headers: {
2184
+ [name: string]: unknown;
2185
+ };
2186
+ content: {
2187
+ 'application/json': components['schemas']['DeleteDocumentVersionResponse'];
2188
+ };
2189
+ };
2190
+ /** @description Bad Request */
2191
+ 400: {
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 Unauthorized */
2203
+ 401: {
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 Forbidden */
2215
+ 403: {
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 Not Found */
2227
+ 404: {
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
+ /** @description Internal Server Error */
2239
+ 500: {
2240
+ headers: {
2241
+ [name: string]: unknown;
2242
+ };
2243
+ content: {
2244
+ 'application/json': {
2245
+ /** @example Error message describing the issue. */
2246
+ message: string;
2247
+ };
2248
+ };
2249
+ };
2250
+ };
2251
+ };
2252
+ delete?: never;
2253
+ options?: never;
2254
+ head?: never;
2255
+ patch?: never;
2256
+ trace?: never;
2257
+ };
2258
+ '/api/v0/uploads/sign': {
2259
+ parameters: {
2260
+ query?: never;
2261
+ header?: never;
2262
+ path?: never;
2263
+ cookie?: never;
2264
+ };
2265
+ get?: never;
2266
+ put?: never;
2267
+ post: {
2268
+ parameters: {
2269
+ query?: never;
2270
+ header?: never;
2271
+ path?: never;
2272
+ cookie?: never;
2273
+ };
2274
+ requestBody?: {
2275
+ content: {
2276
+ 'application/json': components['schemas']['GeneratePresignedUploadUrlRequest'];
2277
+ };
2278
+ };
2279
+ responses: {
2280
+ /** @description Presigned upload URL generated */
2281
+ 200: {
2282
+ headers: {
2283
+ [name: string]: unknown;
2284
+ };
2285
+ content: {
2286
+ 'application/json': components['schemas']['GeneratePresignedUploadUrlResponse'];
2287
+ };
2288
+ };
2289
+ /** @description Bad Request */
2290
+ 400: {
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 Unauthorized */
2302
+ 401: {
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 Forbidden */
2314
+ 403: {
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 Not Found */
2326
+ 404: {
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
+ /** @description Service Unavailable */
2338
+ 503: {
2339
+ headers: {
2340
+ [name: string]: unknown;
2341
+ };
2342
+ content: {
2343
+ 'application/json': {
2344
+ /** @example Error message describing the issue. */
2345
+ message: string;
2346
+ };
2347
+ };
2348
+ };
2349
+ };
2350
+ };
2351
+ delete?: never;
2352
+ options?: never;
2353
+ head?: never;
2354
+ patch?: never;
2355
+ trace?: never;
2356
+ };
2357
+ '/api/v0/uploads/download/sign': {
2358
+ parameters: {
2359
+ query?: never;
2360
+ header?: never;
2361
+ path?: never;
2362
+ cookie?: never;
2363
+ };
2364
+ get?: never;
2365
+ put?: never;
2366
+ post: {
2367
+ parameters: {
2368
+ query?: never;
2369
+ header?: never;
2370
+ path?: never;
2371
+ cookie?: never;
2372
+ };
2373
+ requestBody?: {
2374
+ content: {
2375
+ 'application/json': components['schemas']['GeneratePresignedDownloadUrlRequest'];
2376
+ };
2377
+ };
2378
+ responses: {
2379
+ /** @description Presigned download URL generated */
2380
+ 200: {
2381
+ headers: {
2382
+ [name: string]: unknown;
2383
+ };
2384
+ content: {
2385
+ 'application/json': components['schemas']['GeneratePresignedDownloadUrlResponse'];
2386
+ };
2387
+ };
2388
+ /** @description Bad Request */
2389
+ 400: {
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 Unauthorized */
2401
+ 401: {
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 Forbidden */
2413
+ 403: {
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 Not Found */
2425
+ 404: {
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
+ /** @description Service Unavailable */
2437
+ 503: {
2438
+ headers: {
2439
+ [name: string]: unknown;
2440
+ };
2441
+ content: {
2442
+ 'application/json': {
2443
+ /** @example Error message describing the issue. */
2444
+ message: string;
2445
+ };
2446
+ };
2447
+ };
2448
+ };
2449
+ };
2450
+ delete?: never;
2451
+ options?: never;
2452
+ head?: never;
2453
+ patch?: never;
2454
+ trace?: never;
2455
+ };
2456
+ '/api/v0/uploads/multipart/initiate': {
2457
+ parameters: {
2458
+ query?: never;
2459
+ header?: never;
2460
+ path?: never;
2461
+ cookie?: never;
2462
+ };
2463
+ get?: never;
2464
+ put?: never;
2465
+ post: {
2466
+ parameters: {
2467
+ query?: never;
2468
+ header?: never;
2469
+ path?: never;
2470
+ cookie?: never;
2471
+ };
2472
+ requestBody?: {
2473
+ content: {
2474
+ 'application/json': components['schemas']['InitiateMultipartUploadRequest'];
2475
+ };
2476
+ };
2477
+ responses: {
2478
+ /** @description Multipart upload initiated */
2479
+ 200: {
2480
+ headers: {
2481
+ [name: string]: unknown;
2482
+ };
2483
+ content: {
2484
+ 'application/json': components['schemas']['InitiateMultipartUploadResponse'];
2485
+ };
2486
+ };
2487
+ /** @description Bad Request */
2488
+ 400: {
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 Unauthorized */
2500
+ 401: {
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 Forbidden */
2512
+ 403: {
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 Not Found */
2524
+ 404: {
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
+ /** @description Service Unavailable */
2536
+ 503: {
2537
+ headers: {
2538
+ [name: string]: unknown;
2539
+ };
2540
+ content: {
2541
+ 'application/json': {
2542
+ /** @example Error message describing the issue. */
2543
+ message: string;
2544
+ };
2545
+ };
2546
+ };
2547
+ };
2548
+ };
2549
+ delete?: never;
2550
+ options?: never;
2551
+ head?: never;
2552
+ patch?: never;
2553
+ trace?: never;
2554
+ };
2555
+ '/api/v0/uploads/multipart/parts': {
2556
+ parameters: {
2557
+ query?: never;
2558
+ header?: never;
2559
+ path?: never;
2560
+ cookie?: never;
2561
+ };
2562
+ get?: never;
2563
+ put?: never;
2564
+ post: {
2565
+ parameters: {
2566
+ query?: never;
2567
+ header?: never;
2568
+ path?: never;
2569
+ cookie?: never;
2570
+ };
2571
+ requestBody?: {
2572
+ content: {
2573
+ 'application/json': components['schemas']['GenerateUploadPartUrlsRequest'];
2574
+ };
2575
+ };
2576
+ responses: {
2577
+ /** @description Upload part URLs generated */
2578
+ 200: {
2579
+ headers: {
2580
+ [name: string]: unknown;
2581
+ };
2582
+ content: {
2583
+ 'application/json': components['schemas']['GenerateUploadPartUrlsResponse'];
2584
+ };
2585
+ };
2586
+ /** @description Bad Request */
2587
+ 400: {
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 Unauthorized */
2599
+ 401: {
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 Forbidden */
2611
+ 403: {
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 Not Found */
2623
+ 404: {
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
+ /** @description Service Unavailable */
2635
+ 503: {
2636
+ headers: {
2637
+ [name: string]: unknown;
2638
+ };
2639
+ content: {
2640
+ 'application/json': {
2641
+ /** @example Error message describing the issue. */
2642
+ message: string;
2643
+ };
2644
+ };
2645
+ };
2646
+ };
2647
+ };
2648
+ delete?: never;
2649
+ options?: never;
2650
+ head?: never;
2651
+ patch?: never;
2652
+ trace?: never;
2653
+ };
2654
+ '/api/v0/uploads/multipart/complete': {
2655
+ parameters: {
2656
+ query?: never;
2657
+ header?: never;
2658
+ path?: never;
2659
+ cookie?: never;
2660
+ };
2661
+ get?: never;
2662
+ put?: never;
2663
+ post: {
2664
+ parameters: {
2665
+ query?: never;
2666
+ header?: never;
2667
+ path?: never;
2668
+ cookie?: never;
2669
+ };
2670
+ requestBody?: {
2671
+ content: {
2672
+ 'application/json': components['schemas']['CompleteMultipartUploadRequest'];
2673
+ };
2674
+ };
2675
+ responses: {
2676
+ /** @description Multipart upload completed */
2677
+ 200: {
2678
+ headers: {
2679
+ [name: string]: unknown;
2680
+ };
2681
+ content: {
2682
+ 'application/json': components['schemas']['CompleteMultipartUploadResponse'];
2683
+ };
2684
+ };
2685
+ /** @description Bad Request */
2686
+ 400: {
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 Unauthorized */
2698
+ 401: {
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 Forbidden */
2710
+ 403: {
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 Not Found */
2722
+ 404: {
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
+ /** @description Service Unavailable */
2734
+ 503: {
2735
+ headers: {
2736
+ [name: string]: unknown;
2737
+ };
2738
+ content: {
2739
+ 'application/json': {
2740
+ /** @example Error message describing the issue. */
2741
+ message: string;
2742
+ };
2743
+ };
2744
+ };
2745
+ };
2746
+ };
2747
+ delete?: never;
2748
+ options?: never;
2749
+ head?: never;
2750
+ patch?: never;
2751
+ trace?: never;
2752
+ };
2753
+ '/api/v0/uploads/multipart/abort': {
2754
+ parameters: {
2755
+ query?: never;
2756
+ header?: never;
2757
+ path?: never;
2758
+ cookie?: never;
2759
+ };
2760
+ get?: never;
2761
+ put?: never;
2762
+ post: {
2763
+ parameters: {
2764
+ query?: never;
2765
+ header?: never;
2766
+ path?: never;
2767
+ cookie?: never;
2768
+ };
2769
+ requestBody?: {
2770
+ content: {
2771
+ 'application/json': components['schemas']['AbortMultipartUploadRequest'];
2772
+ };
2773
+ };
2774
+ responses: {
2775
+ /** @description Multipart upload aborted */
2776
+ 200: {
2777
+ headers: {
2778
+ [name: string]: unknown;
2779
+ };
2780
+ content: {
2781
+ 'application/json': components['schemas']['AbortMultipartUploadResponse'];
2782
+ };
2783
+ };
2784
+ /** @description Bad Request */
2785
+ 400: {
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 Unauthorized */
2797
+ 401: {
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 Forbidden */
2809
+ 403: {
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 Not Found */
2821
+ 404: {
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
+ /** @description Service Unavailable */
2833
+ 503: {
2834
+ headers: {
2835
+ [name: string]: unknown;
2836
+ };
2837
+ content: {
2838
+ 'application/json': {
2839
+ /** @example Error message describing the issue. */
2840
+ message: string;
2841
+ };
2842
+ };
2843
+ };
2844
+ };
2845
+ };
2846
+ delete?: never;
2847
+ options?: never;
2848
+ head?: never;
2849
+ patch?: never;
2850
+ trace?: never;
2851
+ };
2852
+ '/api/v0/uploads/{filename}': {
2853
+ parameters: {
2854
+ query?: never;
2855
+ header?: never;
2856
+ path?: never;
2857
+ cookie?: never;
2858
+ };
2859
+ get?: never;
2860
+ put?: never;
2861
+ post?: never;
2862
+ delete: {
2863
+ parameters: {
2864
+ query?: never;
2865
+ header?: never;
2866
+ path: {
2867
+ filename: string;
2868
+ };
2869
+ cookie?: never;
2870
+ };
2871
+ requestBody?: never;
2872
+ responses: {
2873
+ /** @description File deleted successfully */
2874
+ 200: {
2875
+ headers: {
2876
+ [name: string]: unknown;
2877
+ };
2878
+ content: {
2879
+ 'application/json': components['schemas']['DeleteFileResponse'];
2880
+ };
2881
+ };
2882
+ /** @description Bad Request */
2883
+ 400: {
2884
+ headers: {
2885
+ [name: string]: unknown;
2886
+ };
2887
+ content: {
2888
+ 'application/json': {
2889
+ /** @example Error message describing the issue. */
2890
+ message: string;
2891
+ };
2892
+ };
2893
+ };
2894
+ /** @description Unauthorized */
2895
+ 401: {
2896
+ headers: {
2897
+ [name: string]: unknown;
2898
+ };
2899
+ content: {
2900
+ 'application/json': {
2901
+ /** @example Error message describing the issue. */
2902
+ message: string;
2903
+ };
2904
+ };
2905
+ };
2906
+ /** @description Forbidden */
2907
+ 403: {
2908
+ headers: {
2909
+ [name: string]: unknown;
2910
+ };
2911
+ content: {
2912
+ 'application/json': {
2913
+ /** @example Error message describing the issue. */
2914
+ message: string;
2915
+ };
2916
+ };
2917
+ };
2918
+ /** @description Not Found */
2919
+ 404: {
2920
+ headers: {
2921
+ [name: string]: unknown;
2922
+ };
2923
+ content: {
2924
+ 'application/json': {
2925
+ /** @example Error message describing the issue. */
2926
+ message: string;
2927
+ };
2928
+ };
2929
+ };
2930
+ /** @description Service Unavailable */
2931
+ 503: {
2932
+ headers: {
2933
+ [name: string]: unknown;
2934
+ };
2935
+ content: {
2936
+ 'application/json': {
2937
+ /** @example Error message describing the issue. */
2938
+ message: string;
2939
+ };
2940
+ };
2941
+ };
2942
+ };
2943
+ };
2944
+ options?: never;
2945
+ head?: never;
2946
+ patch?: never;
2947
+ trace?: never;
2948
+ };
2949
+ };
2950
+ export type webhooks = Record<string, never>;
2951
+ export type components = {
2952
+ schemas: {
2953
+ AuthContextResponse: {
2954
+ /**
2955
+ * @description Type of authentication scope
2956
+ * @example project
2957
+ * @enum {string}
2958
+ */
2959
+ scopeType: 'super_user' | 'project';
2960
+ /**
2961
+ * @description Content system ID if scopeType is project, undefined for super_user
2962
+ * @example 4cfea8de-4f44-4efd-a8fc-7d539249e9f1
2963
+ */
2964
+ contentSystemScope?: string;
2965
+ };
2966
+ HealthResponse: {
2967
+ /** @example ok */
2968
+ status: string;
2969
+ /** @example connected */
2970
+ database: string;
2971
+ /** @example available */
2972
+ s3: string;
2973
+ /** @example 2026-01-01T00:00:00.000Z */
2974
+ timestamp: string;
2975
+ };
2976
+ ApiKey: {
2977
+ /** @example 123abc */
2978
+ id: string;
2979
+ /** @example My API Key */
2980
+ name: string;
2981
+ /** @example 123def */
2982
+ contentSystemId: string;
2983
+ /** @example BRTRKFsL */
2984
+ shortToken: string;
2985
+ /**
2986
+ * Format: date
2987
+ * @example 2024-01-01T00:00:00.000Z
2988
+ */
2989
+ createdAt: string;
2990
+ /**
2991
+ * Format: date
2992
+ * @example 2024-01-01T00:00:00.000Z
2993
+ */
2994
+ updatedAt: string;
2995
+ };
2996
+ ListApiKeysResponse: {
2997
+ data: components['schemas']['ApiKey'][];
2998
+ total: number;
2999
+ };
3000
+ CreateApiKeyResponse: {
3001
+ /** @example 123abc */
3002
+ id: string;
3003
+ /** @example 123def */
3004
+ contentSystemId: string;
3005
+ /** @example BRTRKFsL */
3006
+ shortToken: string;
3007
+ /**
3008
+ * @description Full API key - only returned on creation
3009
+ * @example figma_BRTRKFsL_51FwqftsmMDHHbJAMEXXHCgG
3010
+ */
3011
+ fullToken: string;
3012
+ /**
3013
+ * Format: date
3014
+ * @example 2024-01-01T00:00:00.000Z
3015
+ */
3016
+ createdAt: string;
3017
+ /**
3018
+ * Format: date
3019
+ * @example 2024-01-01T00:00:00.000Z
3020
+ */
3021
+ updatedAt: string;
3022
+ };
3023
+ CreateApiKeyRequest: {
3024
+ /** @example My API Key */
3025
+ name: string;
3026
+ /** @example 123def */
3027
+ contentSystemId: string;
3028
+ };
3029
+ ContentSystem: {
3030
+ /** @example cms-xxxxx-xxxxx */
3031
+ id: string;
3032
+ /** @example demo-tenant */
3033
+ owningKey: string;
3034
+ /** @example Demo CMS */
3035
+ name: string;
3036
+ /**
3037
+ * Format: date
3038
+ * @example 2024-01-01T00:00:00Z
3039
+ */
3040
+ createdAt: string;
3041
+ /**
3042
+ * Format: date
3043
+ * @example 2024-01-01T00:00:00Z
3044
+ */
3045
+ updatedAt: string;
3046
+ };
3047
+ CreateContentSystemResponse: {
3048
+ /** @example cms-xxxxx-xxxxx */
3049
+ id: string;
3050
+ /** @example demo-tenant */
3051
+ owningKey: string;
3052
+ /** @example Demo CMS */
3053
+ name: string;
3054
+ /**
3055
+ * Format: date
3056
+ * @example 2024-01-01T00:00:00Z
3057
+ */
3058
+ createdAt: string;
3059
+ /**
3060
+ * Format: date
3061
+ * @example 2024-01-01T00:00:00Z
3062
+ */
3063
+ updatedAt: string;
3064
+ };
3065
+ CreateContentSystemRequest: {
3066
+ /** @example demo-tenant */
3067
+ owningKey: string;
3068
+ /** @example Demo CMS */
3069
+ name: string;
3070
+ };
3071
+ RetrieveContentSystemResponse: {
3072
+ /** @example cms-xxxxx-xxxxx */
3073
+ id: string;
3074
+ /** @example demo-tenant */
3075
+ owningKey: string;
3076
+ /** @example Demo CMS */
3077
+ name: string;
3078
+ /**
3079
+ * Format: date
3080
+ * @example 2024-01-01T00:00:00Z
3081
+ */
3082
+ createdAt: string;
3083
+ /**
3084
+ * Format: date
3085
+ * @example 2024-01-01T00:00:00Z
3086
+ */
3087
+ updatedAt: string;
3088
+ };
3089
+ UpdateContentSystemResponse: {
3090
+ /** @example cms-xxxxx-xxxxx */
3091
+ id: string;
3092
+ /** @example demo-tenant */
3093
+ owningKey: string;
3094
+ /** @example Demo CMS */
3095
+ name: string;
3096
+ /**
3097
+ * Format: date
3098
+ * @example 2024-01-01T00:00:00Z
3099
+ */
3100
+ createdAt: string;
3101
+ /**
3102
+ * Format: date
3103
+ * @example 2024-01-01T00:00:00Z
3104
+ */
3105
+ updatedAt: string;
3106
+ };
3107
+ UpdateContentSystemRequest: {
3108
+ /** @example demo-tenant */
3109
+ owningKey?: string;
3110
+ /** @example Demo CMS */
3111
+ name?: string;
3112
+ };
3113
+ Collection: {
3114
+ /** @example posts */
3115
+ id: string;
3116
+ /** @example cms-xxxxx-xxxxx */
3117
+ contentSystemId: string;
3118
+ /**
3119
+ * Format: date
3120
+ * @example 2024-01-01T00:00:00Z
3121
+ */
3122
+ createdAt: string;
3123
+ /**
3124
+ * Format: date
3125
+ * @example 2024-01-01T00:00:00Z
3126
+ */
3127
+ updatedAt: string;
3128
+ };
3129
+ CreateCollectionResponse: {
3130
+ /** @example posts */
3131
+ id: string;
3132
+ /** @example cms-xxxxx-xxxxx */
3133
+ contentSystemId: string;
3134
+ /**
3135
+ * Format: date
3136
+ * @example 2024-01-01T00:00:00Z
3137
+ */
3138
+ createdAt: string;
3139
+ /**
3140
+ * Format: date
3141
+ * @example 2024-01-01T00:00:00Z
3142
+ */
3143
+ updatedAt: string;
3144
+ };
3145
+ CreateCollectionRequest: {
3146
+ /** @example posts */
3147
+ id: string;
3148
+ };
3149
+ RetrieveCollectionResponse: {
3150
+ /** @example posts */
3151
+ id: string;
3152
+ /** @example cms-xxxxx-xxxxx */
3153
+ contentSystemId: string;
3154
+ /**
3155
+ * Format: date
3156
+ * @example 2024-01-01T00:00:00Z
3157
+ */
3158
+ createdAt: string;
3159
+ /**
3160
+ * Format: date
3161
+ * @example 2024-01-01T00:00:00Z
3162
+ */
3163
+ updatedAt: string;
3164
+ };
3165
+ UpdateCollectionResponse: {
3166
+ /** @example posts */
3167
+ id: string;
3168
+ /** @example cms-xxxxx-xxxxx */
3169
+ contentSystemId: string;
3170
+ /**
3171
+ * Format: date
3172
+ * @example 2024-01-01T00:00:00Z
3173
+ */
3174
+ createdAt: string;
3175
+ /**
3176
+ * Format: date
3177
+ * @example 2024-01-01T00:00:00Z
3178
+ */
3179
+ updatedAt: string;
3180
+ };
3181
+ UpdateCollectionRequest: {
3182
+ /** @example posts */
3183
+ id: string;
3184
+ };
3185
+ CountDocumentResponse: {
3186
+ result: {
3187
+ /** @example 1 */
3188
+ count: number;
3189
+ };
3190
+ };
3191
+ DataValue: string | number | boolean | unknown | components['schemas']['DataValue'][] | {
3192
+ [key: string]: components['schemas']['DataValue'];
3193
+ } | unknown;
3194
+ /**
3195
+ * @example {
3196
+ * "and": [
3197
+ * {
3198
+ * "path": "status",
3199
+ * "operator": "equals",
3200
+ * "value": "published"
3201
+ * },
3202
+ * {
3203
+ * "path": "createdAt",
3204
+ * "operator": "greater_than",
3205
+ * "value": "2025-01-01T00:00:00Z"
3206
+ * }
3207
+ * ]
3208
+ * }
3209
+ */
3210
+ WhereClause: {
3211
+ and: components['schemas']['WhereClause'][];
3212
+ } | {
3213
+ or: components['schemas']['WhereClause'][];
3214
+ } | {
3215
+ path: string;
3216
+ 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';
3217
+ value: components['schemas']['DataValue'];
3218
+ };
3219
+ CountDocumentRequest: {
3220
+ /** @example cms-xxxxx-xxxxx */
3221
+ contentSystemId: string;
3222
+ /** @example posts */
3223
+ collectionId: string;
3224
+ where?: components['schemas']['WhereClause'];
3225
+ };
3226
+ /**
3227
+ * @example {
3228
+ * "title": "Placeholder title",
3229
+ * "content": "This is placeholder content"
3230
+ * }
3231
+ */
3232
+ DocumentData: {
3233
+ [key: string]: components['schemas']['DataValue'];
3234
+ };
3235
+ Document: {
3236
+ /** @example doc-key */
3237
+ id: string;
3238
+ /** @example cms-xxxxx-xxxxx */
3239
+ contentSystemId: string;
3240
+ /** @example posts */
3241
+ collectionId: string;
3242
+ data: components['schemas']['DocumentData'];
3243
+ /**
3244
+ * Format: date
3245
+ * @example 2024-01-01T00:00:00Z
3246
+ */
3247
+ createdAt: string;
3248
+ /**
3249
+ * Format: date
3250
+ * @example 2024-01-01T00:00:00Z
3251
+ */
3252
+ updatedAt: string;
3253
+ };
3254
+ CreateDocumentResponse: {
3255
+ result: {
3256
+ /** @example doc-xxxxx-xxxxx */
3257
+ id: string;
3258
+ } | {
3259
+ data: components['schemas']['Document'];
3260
+ };
3261
+ };
3262
+ /**
3263
+ * @example [
3264
+ * {
3265
+ * "path": "createdAt",
3266
+ * "direction": "desc"
3267
+ * }
3268
+ * ]
3269
+ */
3270
+ SortClause: {
3271
+ path: string;
3272
+ /** @enum {string} */
3273
+ direction: 'asc' | 'desc';
3274
+ }[];
3275
+ /**
3276
+ * @example [
3277
+ * {
3278
+ * "collectionId": "books",
3279
+ * "on": "authorId",
3280
+ * "path": "books",
3281
+ * "count": false,
3282
+ * "where": {
3283
+ * "path": "status",
3284
+ * "operator": "equals",
3285
+ * "value": "published"
3286
+ * },
3287
+ * "limit": 5,
3288
+ * "offset": 0,
3289
+ * "sort": [
3290
+ * {
3291
+ * "path": "title",
3292
+ * "direction": "asc"
3293
+ * }
3294
+ * ]
3295
+ * }
3296
+ * ]
3297
+ */
3298
+ JoinClause: {
3299
+ collectionId: string;
3300
+ on: string;
3301
+ path: string;
3302
+ count: boolean;
3303
+ where?: components['schemas']['WhereClause'];
3304
+ limit?: number;
3305
+ offset?: number;
3306
+ sort?: components['schemas']['SortClause'];
3307
+ }[];
3308
+ LocaleClause: {
3309
+ locale: string;
3310
+ fallbackLocale: string;
3311
+ paths: string[];
3312
+ };
3313
+ /**
3314
+ * @example {
3315
+ * "mode": "include",
3316
+ * "paths": [
3317
+ * "title",
3318
+ * "author.name",
3319
+ * "tags"
3320
+ * ]
3321
+ * }
3322
+ */
3323
+ SelectClause: {
3324
+ /** @enum {string} */
3325
+ mode: 'exclude' | 'include';
3326
+ paths: string[];
3327
+ };
3328
+ CreateDocumentRequest: {
3329
+ /** @example cms-xxxxx-xxxxx */
3330
+ contentSystemId: string;
3331
+ /** @example posts */
3332
+ collectionId: string;
3333
+ /** @example doc-key */
3334
+ id: string;
3335
+ data: components['schemas']['DocumentData'];
3336
+ returning?: false | {
3337
+ join?: components['schemas']['JoinClause'];
3338
+ locale?: components['schemas']['LocaleClause'];
3339
+ select?: components['schemas']['SelectClause'];
3340
+ };
3341
+ };
3342
+ /**
3343
+ * @example {
3344
+ * "total": 100,
3345
+ * "current": {
3346
+ * "limit": 10,
3347
+ * "page": 1
3348
+ * },
3349
+ * "next": {
3350
+ * "limit": 10,
3351
+ * "page": 2
3352
+ * }
3353
+ * }
3354
+ */
3355
+ Pagination: {
3356
+ total: number;
3357
+ current: {
3358
+ limit: number;
3359
+ page: number;
3360
+ };
3361
+ next?: {
3362
+ limit: number;
3363
+ page: number;
3364
+ };
3365
+ prev?: {
3366
+ limit: number;
3367
+ page: number;
3368
+ };
3369
+ };
3370
+ FindDocumentsResponse: {
3371
+ result: {
3372
+ data: components['schemas']['Document'][];
3373
+ pagination: components['schemas']['Pagination'];
3374
+ };
3375
+ };
3376
+ FindDocumentsRequest: {
3377
+ /** @example cms-xxxxx-xxxxx */
3378
+ contentSystemId: string;
3379
+ /** @example posts */
3380
+ collectionId: string;
3381
+ join?: components['schemas']['JoinClause'];
3382
+ /** @example 10 */
3383
+ limit?: number;
3384
+ locale?: components['schemas']['LocaleClause'];
3385
+ /** @example 1 */
3386
+ page?: number;
3387
+ select?: components['schemas']['SelectClause'];
3388
+ sort?: components['schemas']['SortClause'];
3389
+ where?: components['schemas']['WhereClause'];
3390
+ };
3391
+ UpdateDocumentResponse: {
3392
+ result?: {
3393
+ /** @example 1 */
3394
+ count: number;
3395
+ } | {
3396
+ data: components['schemas']['Document'][];
3397
+ };
3398
+ };
3399
+ /**
3400
+ * @example {
3401
+ * "title": "New Title",
3402
+ * "views": {
3403
+ * "$inc": 1
3404
+ * },
3405
+ * "status": "draft"
3406
+ * }
3407
+ */
3408
+ DataWithOperations: {
3409
+ [key: string]: components['schemas']['DataValue'];
3410
+ };
3411
+ UpdateDocumentRequest: {
3412
+ /** @example cms-xxxxx-xxxxx */
3413
+ contentSystemId: string;
3414
+ /** @example posts */
3415
+ collectionId: string;
3416
+ /** @example false */
3417
+ createOnMissing: false | {
3418
+ id: string;
3419
+ };
3420
+ data: components['schemas']['DataWithOperations'];
3421
+ where: components['schemas']['WhereClause'];
3422
+ returning?: false | {
3423
+ join?: components['schemas']['JoinClause'];
3424
+ locale?: components['schemas']['LocaleClause'];
3425
+ select?: components['schemas']['SelectClause'];
3426
+ };
3427
+ };
3428
+ DeleteDocumentResponse: {
3429
+ result?: {
3430
+ /** @example 1 */
3431
+ count: number;
3432
+ } | {
3433
+ data: components['schemas']['Document'][];
3434
+ };
3435
+ };
3436
+ DeleteDocumentRequest: {
3437
+ /** @example cms-xxxxx-xxxxx */
3438
+ contentSystemId: string;
3439
+ /** @example posts */
3440
+ collectionId: string;
3441
+ where: components['schemas']['WhereClause'];
3442
+ returning?: false | {
3443
+ join?: components['schemas']['JoinClause'];
3444
+ locale?: components['schemas']['LocaleClause'];
3445
+ select?: components['schemas']['SelectClause'];
3446
+ };
3447
+ };
3448
+ CountDocumentVersionResponse: {
3449
+ result: {
3450
+ /** @example 1 */
3451
+ count: number;
3452
+ };
3453
+ };
3454
+ CountDocumentVersionRequest: {
3455
+ /** @example cms-xxxxx-xxxxx */
3456
+ contentSystemId: string;
3457
+ /** @example posts */
3458
+ collectionId: string;
3459
+ where?: components['schemas']['WhereClause'];
3460
+ };
3461
+ DocumentVersion: {
3462
+ /** @example ver-xxxxx-xxxxx */
3463
+ id: string;
3464
+ /** @example cms-xxxxx-xxxxx */
3465
+ contentSystemId: string;
3466
+ /** @example doc-key */
3467
+ documentId: string;
3468
+ /** @example true */
3469
+ latest: boolean;
3470
+ data: components['schemas']['DocumentData'];
3471
+ /**
3472
+ * Format: date
3473
+ * @example 2024-01-01T00:00:00Z
3474
+ */
3475
+ createdAt: string;
3476
+ /**
3477
+ * Format: date
3478
+ * @example 2024-01-01T00:00:00Z
3479
+ */
3480
+ updatedAt: string;
3481
+ };
3482
+ CreateDocumentVersionResponse: {
3483
+ result: {
3484
+ /** @example ver-xxxxx-xxxxx */
3485
+ id: string;
3486
+ } | {
3487
+ data: components['schemas']['DocumentVersion'];
3488
+ };
3489
+ };
3490
+ CreateDocumentVersionRequest: {
3491
+ /** @example cms-xxxxx-xxxxx */
3492
+ contentSystemId: string;
3493
+ /** @example posts */
3494
+ collectionId: string;
3495
+ /** @example doc-key */
3496
+ documentId: string;
3497
+ /** @example true */
3498
+ latest?: boolean;
3499
+ data: components['schemas']['DocumentData'];
3500
+ returning?: false | {
3501
+ join?: components['schemas']['JoinClause'];
3502
+ locale?: components['schemas']['LocaleClause'];
3503
+ select?: components['schemas']['SelectClause'];
3504
+ };
3505
+ };
3506
+ FindDocumentVersionsResponse: {
3507
+ result: {
3508
+ data: components['schemas']['DocumentVersion'][];
3509
+ pagination: components['schemas']['Pagination'];
3510
+ };
3511
+ };
3512
+ FindDocumentVersionsRequest: {
3513
+ /** @example cms-xxxxx-xxxxx */
3514
+ contentSystemId: string;
3515
+ /** @example posts */
3516
+ collectionId: string;
3517
+ join?: components['schemas']['JoinClause'];
3518
+ /** @example 10 */
3519
+ limit?: number;
3520
+ locale?: components['schemas']['LocaleClause'];
3521
+ /** @example 1 */
3522
+ page?: number;
3523
+ select?: components['schemas']['SelectClause'];
3524
+ sort?: components['schemas']['SortClause'];
3525
+ where?: components['schemas']['WhereClause'];
3526
+ };
3527
+ UpdateDocumentVersionResponse: {
3528
+ result?: {
3529
+ /** @example 1 */
3530
+ count: number;
3531
+ } | {
3532
+ data: components['schemas']['DocumentVersion'][];
3533
+ };
3534
+ };
3535
+ UpdateDocumentVersionRequest: {
3536
+ /** @example cms-xxxxx-xxxxx */
3537
+ contentSystemId: string;
3538
+ /** @example posts */
3539
+ collectionId: string;
3540
+ /** @example false */
3541
+ createOnMissing: false | {
3542
+ documentId: string;
3543
+ latest: boolean;
3544
+ };
3545
+ data: components['schemas']['DataWithOperations'];
3546
+ where: components['schemas']['WhereClause'];
3547
+ returning?: false | {
3548
+ join?: components['schemas']['JoinClause'];
3549
+ locale?: components['schemas']['LocaleClause'];
3550
+ select?: components['schemas']['SelectClause'];
3551
+ };
3552
+ };
3553
+ DeleteDocumentVersionResponse: {
3554
+ result?: {
3555
+ /** @example 1 */
3556
+ count: number;
3557
+ } | {
3558
+ data: components['schemas']['DocumentVersion'][];
3559
+ };
3560
+ };
3561
+ DeleteDocumentVersionRequest: {
3562
+ /** @example cms-xxxxx-xxxxx */
3563
+ contentSystemId: string;
3564
+ /** @example posts */
3565
+ collectionId: string;
3566
+ where: components['schemas']['WhereClause'];
3567
+ returning?: false | {
3568
+ join?: components['schemas']['JoinClause'];
3569
+ locale?: components['schemas']['LocaleClause'];
3570
+ select?: components['schemas']['SelectClause'];
3571
+ };
3572
+ };
3573
+ GeneratePresignedUploadUrlResponse: {
3574
+ /** @example https://s3.amazonaws.com/bucket/key?presigned-params */
3575
+ url: string;
3576
+ };
3577
+ GeneratePresignedUploadUrlRequest: {
3578
+ /** @example document.pdf */
3579
+ filename: string;
3580
+ /** @example application/pdf */
3581
+ contentType?: string;
3582
+ /**
3583
+ * @default 3600
3584
+ * @example 3600
3585
+ */
3586
+ expiresIn: number;
3587
+ };
3588
+ GeneratePresignedDownloadUrlResponse: {
3589
+ /** @example https://s3.amazonaws.com/bucket/key?presigned-params */
3590
+ url: string;
3591
+ };
3592
+ GeneratePresignedDownloadUrlRequest: {
3593
+ /** @example document.pdf */
3594
+ filename: string;
3595
+ /**
3596
+ * @default 3600
3597
+ * @example 3600
3598
+ */
3599
+ expiresIn: number;
3600
+ };
3601
+ InitiateMultipartUploadResponse: {
3602
+ /** @example abc123xyz789 */
3603
+ uploadId: string;
3604
+ };
3605
+ InitiateMultipartUploadRequest: {
3606
+ /** @example large-video.mp4 */
3607
+ filename: string;
3608
+ /** @example video/mp4 */
3609
+ contentType: string;
3610
+ };
3611
+ GenerateUploadPartUrlsResponse: {
3612
+ /**
3613
+ * @example [
3614
+ * {
3615
+ * "partNumber": 1,
3616
+ * "url": "https://s3.amazonaws.com/..."
3617
+ * }
3618
+ * ]
3619
+ */
3620
+ parts: {
3621
+ /** @example 1 */
3622
+ partNumber: number;
3623
+ /** @example https://s3.amazonaws.com/bucket/key?presigned-params */
3624
+ url: string;
3625
+ }[];
3626
+ };
3627
+ GenerateUploadPartUrlsRequest: {
3628
+ /** @example large-video.mp4 */
3629
+ filename: string;
3630
+ /** @example abc123xyz789 */
3631
+ uploadId: string;
3632
+ /**
3633
+ * @example [
3634
+ * 1,
3635
+ * 2,
3636
+ * 3
3637
+ * ]
3638
+ */
3639
+ partNumbers: number[];
3640
+ /**
3641
+ * @default 3600
3642
+ * @example 3600
3643
+ */
3644
+ expiresIn: number;
3645
+ };
3646
+ CompleteMultipartUploadResponse: {
3647
+ /**
3648
+ * @example true
3649
+ * @enum {boolean}
3650
+ */
3651
+ success: true;
3652
+ };
3653
+ CompleteMultipartUploadRequest: {
3654
+ /** @example large-video.mp4 */
3655
+ filename: string;
3656
+ /** @example abc123xyz789 */
3657
+ uploadId: string;
3658
+ /**
3659
+ * @example [
3660
+ * {
3661
+ * "PartNumber": 1,
3662
+ * "ETag": "\"abc123\""
3663
+ * }
3664
+ * ]
3665
+ */
3666
+ parts: {
3667
+ /** @example 1 */
3668
+ PartNumber: number;
3669
+ /** @example "abc123" */
3670
+ ETag: string;
3671
+ }[];
3672
+ };
3673
+ AbortMultipartUploadResponse: {
3674
+ /**
3675
+ * @example true
3676
+ * @enum {boolean}
3677
+ */
3678
+ success: true;
3679
+ };
3680
+ AbortMultipartUploadRequest: {
3681
+ /** @example large-video.mp4 */
3682
+ filename: string;
3683
+ /** @example abc123xyz789 */
3684
+ uploadId: string;
3685
+ };
3686
+ DeleteFileResponse: {
3687
+ /**
3688
+ * @example true
3689
+ * @enum {boolean}
3690
+ */
3691
+ success: true;
3692
+ };
3693
+ };
3694
+ responses: never;
3695
+ parameters: never;
3696
+ requestBodies: never;
3697
+ headers: never;
3698
+ pathItems: never;
3699
+ };
3700
+ export type $defs = Record<string, never>;
3701
+ export type operations = Record<string, never>;
3702
+ //# sourceMappingURL=content-api-types.d.ts.map