@dakkitor/api-contracts 1.1.131 → 1.1.133

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 (63) hide show
  1. package/dist/abilities/abilities.contract.d.ts +19 -13
  2. package/dist/abilities/abilities.contract.js +33 -18
  3. package/dist/abilities/first-agent.abilities.json +68 -56
  4. package/dist/abilities/second-agent.abilities.json +3 -3
  5. package/dist/abilities/team-leads.json +3 -6
  6. package/dist/actives/actives.contract.d.ts +6313 -6313
  7. package/dist/actives/actives.contract.js +92 -92
  8. package/dist/agent-client-links/agent-client-links.contract.d.ts +511 -511
  9. package/dist/auth/auth.contract.d.ts +16 -16
  10. package/dist/bookings/bookings.contract.d.ts +23378 -23378
  11. package/dist/call-history/call-history.contract.d.ts +366 -366
  12. package/dist/call-history/call-history.contract.js +67 -67
  13. package/dist/client-contacts/client-contacts.contract.d.ts +159 -159
  14. package/dist/clients/clients.contract.d.ts +72 -72
  15. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1330 -1330
  16. package/dist/collaborations/collaborations.contract.d.ts +1198 -1198
  17. package/dist/common/call-rating.schema.d.ts +12 -12
  18. package/dist/common/call-rating.schema.js +48 -40
  19. package/dist/common/common-schemas.d.ts +4 -4
  20. package/dist/common/common-schemas.d.ts.map +1 -1
  21. package/dist/common/common-schemas.js +1 -2
  22. package/dist/common/error-schemas.d.ts +11 -5
  23. package/dist/common/error-schemas.js +11 -8
  24. package/dist/common/openapi-metadata.d.ts +54 -44
  25. package/dist/common/openapi-metadata.js +135 -129
  26. package/dist/common/pagination-query.schema.d.ts +11 -5
  27. package/dist/common/pagination-query.schema.js +11 -8
  28. package/dist/companies/companies.contract.d.ts +40 -40
  29. package/dist/cron-executions/cron-executions.contract.d.ts +14 -14
  30. package/dist/curated-workers/curated-workers.contract.d.ts +211 -211
  31. package/dist/dashboards/agent-daily-metrics.contract.d.ts +798 -616
  32. package/dist/dashboards/agent-daily-metrics.contract.js +100 -89
  33. package/dist/dashboards/dashboard-widgets.contract.d.ts +75 -75
  34. package/dist/dashboards/dashboard-widgets.contract.js +89 -89
  35. package/dist/dashboards/dashboard.contract.d.ts +305 -215
  36. package/dist/files/files.contract.d.ts +1544 -1177
  37. package/dist/files/files.contract.js +177 -162
  38. package/dist/health/health.contract.d.ts +191 -144
  39. package/dist/health/health.contract.js +53 -40
  40. package/dist/index.d.ts +67 -67
  41. package/dist/jobs/jobs.contract.d.ts +2553 -2553
  42. package/dist/jobs/jobs.contract.js +150 -150
  43. package/dist/lead-assignments/lead-assignments.contract.d.ts +587 -587
  44. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +239 -239
  45. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +25 -25
  46. package/dist/leads/leads.contract.d.ts +108 -108
  47. package/dist/leads/leads.contract.js +119 -119
  48. package/dist/locations/locations.contract.d.ts +7 -7
  49. package/dist/monitoring/monitoring.contract.d.ts +13 -13
  50. package/dist/monitoring/monitoring.contract.js +37 -37
  51. package/dist/own-research/own-research.contract.d.ts +535 -134
  52. package/dist/own-research/own-research.contract.d.ts.map +1 -1
  53. package/dist/own-research/own-research.contract.js +88 -56
  54. package/dist/postcodes/postcodes.contract.d.ts +24 -24
  55. package/dist/qualifications/qualifications.contract.d.ts +1898 -1387
  56. package/dist/qualifications/qualifications.contract.js +193 -171
  57. package/dist/trades/trades.contract.d.ts +991 -763
  58. package/dist/trades/trades.contract.js +111 -89
  59. package/dist/users/users.contract.d.ts +202 -202
  60. package/dist/users/users.contract.js +121 -121
  61. package/dist/workers/workers.contract.d.ts +710 -710
  62. package/dist/workers/workers.contract.js +150 -150
  63. package/package.json +1 -1
@@ -1,28 +1,41 @@
1
1
  import { z } from 'zod';
2
- export declare const GenerateUploadUrlSchema: z.ZodObject<{
2
+ export declare const GenerateUploadUrlSchema: z.ZodObject<
3
+ {
3
4
  fileName: z.ZodString;
4
5
  contentType: z.ZodString;
5
6
  size: z.ZodNumber;
6
- }, "strip", z.ZodTypeAny, {
7
+ },
8
+ 'strip',
9
+ z.ZodTypeAny,
10
+ {
7
11
  contentType: string;
8
12
  fileName: string;
9
13
  size: number;
10
- }, {
14
+ },
15
+ {
11
16
  contentType: string;
12
17
  fileName: string;
13
18
  size: number;
14
- }>;
15
- export declare const GenerateUploadUrlResponseSchema: z.ZodObject<{
19
+ }
20
+ >;
21
+ export declare const GenerateUploadUrlResponseSchema: z.ZodObject<
22
+ {
16
23
  uploadUrl: z.ZodString;
17
24
  fileId: z.ZodString;
18
- }, "strip", z.ZodTypeAny, {
25
+ },
26
+ 'strip',
27
+ z.ZodTypeAny,
28
+ {
19
29
  uploadUrl: string;
20
30
  fileId: string;
21
- }, {
31
+ },
32
+ {
22
33
  uploadUrl: string;
23
34
  fileId: string;
24
- }>;
25
- export declare const FileResponseSchema: z.ZodObject<{
35
+ }
36
+ >;
37
+ export declare const FileResponseSchema: z.ZodObject<
38
+ {
26
39
  id: z.ZodString;
27
40
  originalName: z.ZodString;
28
41
  storageKey: z.ZodString;
@@ -34,9 +47,20 @@ export declare const FileResponseSchema: z.ZodObject<{
34
47
  entityType: z.ZodNullable<z.ZodString>;
35
48
  entityId: z.ZodNullable<z.ZodString>;
36
49
  userId: z.ZodString;
37
- createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
38
- updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
39
- }, "strip", z.ZodTypeAny, {
50
+ createdAt: z.ZodEffects<
51
+ z.ZodUnion<[z.ZodString, z.ZodDate]>,
52
+ string,
53
+ string | Date
54
+ >;
55
+ updatedAt: z.ZodEffects<
56
+ z.ZodUnion<[z.ZodString, z.ZodDate]>,
57
+ string,
58
+ string | Date
59
+ >;
60
+ },
61
+ 'strip',
62
+ z.ZodTypeAny,
63
+ {
40
64
  id: string;
41
65
  description: string | null;
42
66
  createdAt: string;
@@ -50,7 +74,8 @@ export declare const FileResponseSchema: z.ZodObject<{
50
74
  entityType: string | null;
51
75
  entityId: string | null;
52
76
  userId: string;
53
- }, {
77
+ },
78
+ {
54
79
  id: string;
55
80
  description: string | null;
56
81
  createdAt: string | Date;
@@ -64,1195 +89,1537 @@ export declare const FileResponseSchema: z.ZodObject<{
64
89
  entityType: string | null;
65
90
  entityId: string | null;
66
91
  userId: string;
67
- }>;
68
- export declare const FileDownloadUrlResponseSchema: z.ZodObject<{
92
+ }
93
+ >;
94
+ export declare const FileDownloadUrlResponseSchema: z.ZodObject<
95
+ {
69
96
  url: z.ZodString;
70
97
  mimeType: z.ZodString;
71
- }, "strip", z.ZodTypeAny, {
98
+ },
99
+ 'strip',
100
+ z.ZodTypeAny,
101
+ {
72
102
  mimeType: string;
73
103
  url: string;
74
- }, {
104
+ },
105
+ {
75
106
  mimeType: string;
76
107
  url: string;
77
- }>;
78
- export declare const UpdateFileSchema: z.ZodObject<{
108
+ }
109
+ >;
110
+ export declare const UpdateFileSchema: z.ZodObject<
111
+ {
79
112
  description: z.ZodOptional<z.ZodString>;
80
- }, "strip", z.ZodTypeAny, {
113
+ },
114
+ 'strip',
115
+ z.ZodTypeAny,
116
+ {
81
117
  description?: string | undefined;
82
- }, {
118
+ },
119
+ {
83
120
  description?: string | undefined;
84
- }>;
85
- export declare const FileResponseArraySchema: z.ZodArray<z.ZodObject<{
86
- id: z.ZodString;
87
- originalName: z.ZodString;
88
- storageKey: z.ZodString;
89
- mimeType: z.ZodString;
90
- size: z.ZodNumber;
91
- location: z.ZodString;
92
- storageProvider: z.ZodString;
93
- description: z.ZodNullable<z.ZodString>;
94
- entityType: z.ZodNullable<z.ZodString>;
95
- entityId: z.ZodNullable<z.ZodString>;
96
- userId: z.ZodString;
97
- createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
98
- updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
99
- }, "strip", z.ZodTypeAny, {
100
- id: string;
101
- description: string | null;
102
- createdAt: string;
103
- updatedAt: string;
104
- size: number;
105
- originalName: string;
106
- storageKey: string;
107
- mimeType: string;
108
- location: string;
109
- storageProvider: string;
110
- entityType: string | null;
111
- entityId: string | null;
112
- userId: string;
113
- }, {
114
- id: string;
115
- description: string | null;
116
- createdAt: string | Date;
117
- updatedAt: string | Date;
118
- size: number;
119
- originalName: string;
120
- storageKey: string;
121
- mimeType: string;
122
- location: string;
123
- storageProvider: string;
124
- entityType: string | null;
125
- entityId: string | null;
126
- userId: string;
127
- }>, "many">;
121
+ }
122
+ >;
123
+ export declare const FileResponseArraySchema: z.ZodArray<
124
+ z.ZodObject<
125
+ {
126
+ id: z.ZodString;
127
+ originalName: z.ZodString;
128
+ storageKey: z.ZodString;
129
+ mimeType: z.ZodString;
130
+ size: z.ZodNumber;
131
+ location: z.ZodString;
132
+ storageProvider: z.ZodString;
133
+ description: z.ZodNullable<z.ZodString>;
134
+ entityType: z.ZodNullable<z.ZodString>;
135
+ entityId: z.ZodNullable<z.ZodString>;
136
+ userId: z.ZodString;
137
+ createdAt: z.ZodEffects<
138
+ z.ZodUnion<[z.ZodString, z.ZodDate]>,
139
+ string,
140
+ string | Date
141
+ >;
142
+ updatedAt: z.ZodEffects<
143
+ z.ZodUnion<[z.ZodString, z.ZodDate]>,
144
+ string,
145
+ string | Date
146
+ >;
147
+ },
148
+ 'strip',
149
+ z.ZodTypeAny,
150
+ {
151
+ id: string;
152
+ description: string | null;
153
+ createdAt: string;
154
+ updatedAt: string;
155
+ size: number;
156
+ originalName: string;
157
+ storageKey: string;
158
+ mimeType: string;
159
+ location: string;
160
+ storageProvider: string;
161
+ entityType: string | null;
162
+ entityId: string | null;
163
+ userId: string;
164
+ },
165
+ {
166
+ id: string;
167
+ description: string | null;
168
+ createdAt: string | Date;
169
+ updatedAt: string | Date;
170
+ size: number;
171
+ originalName: string;
172
+ storageKey: string;
173
+ mimeType: string;
174
+ location: string;
175
+ storageProvider: string;
176
+ entityType: string | null;
177
+ entityId: string | null;
178
+ userId: string;
179
+ }
180
+ >,
181
+ 'many'
182
+ >;
128
183
  export type GenerateUploadUrl = z.infer<typeof GenerateUploadUrlSchema>;
129
- export type GenerateUploadUrlResponse = z.infer<typeof GenerateUploadUrlResponseSchema>;
184
+ export type GenerateUploadUrlResponse = z.infer<
185
+ typeof GenerateUploadUrlResponseSchema
186
+ >;
130
187
  export type FileResponse = z.infer<typeof FileResponseSchema>;
131
- export type FileDownloadUrlResponse = z.infer<typeof FileDownloadUrlResponseSchema>;
188
+ export type FileDownloadUrlResponse = z.infer<
189
+ typeof FileDownloadUrlResponseSchema
190
+ >;
132
191
  export type UpdateFile = z.infer<typeof UpdateFileSchema>;
133
192
  export type FileResponseArray = z.infer<typeof FileResponseArraySchema>;
134
193
  export declare const filesContract: {
135
- generateUploadUrl: {
136
- metadata: {
137
- tags: string[];
138
- };
139
- summary: "Generate a pre-signed URL for file upload";
140
- method: "POST";
141
- body: z.ZodObject<{
142
- fileName: z.ZodString;
143
- contentType: z.ZodString;
144
- size: z.ZodNumber;
145
- }, "strip", z.ZodTypeAny, {
146
- contentType: string;
147
- fileName: string;
148
- size: number;
149
- }, {
150
- contentType: string;
151
- fileName: string;
152
- size: number;
153
- }>;
154
- path: "/v2/files/generate-upload-url";
155
- responses: {
156
- 400: z.ZodObject<{
157
- statusCode: z.ZodNumber;
158
- message: z.ZodString;
159
- code: z.ZodString;
160
- details: z.ZodOptional<z.ZodUnknown>;
161
- timestamp: z.ZodString;
162
- path: z.ZodString;
163
- correlationId: z.ZodOptional<z.ZodString>;
164
- }, "strip", z.ZodTypeAny, {
165
- code: string;
166
- path: string;
167
- message: string;
168
- statusCode: number;
169
- timestamp: string;
170
- details?: unknown;
171
- correlationId?: string | undefined;
172
- }, {
173
- code: string;
174
- path: string;
175
- message: string;
176
- statusCode: number;
177
- timestamp: string;
178
- details?: unknown;
179
- correlationId?: string | undefined;
180
- }>;
181
- 401: z.ZodObject<{
182
- statusCode: z.ZodNumber;
183
- message: z.ZodString;
184
- code: z.ZodString;
185
- details: z.ZodOptional<z.ZodUnknown>;
186
- timestamp: z.ZodString;
187
- path: z.ZodString;
188
- correlationId: z.ZodOptional<z.ZodString>;
189
- }, "strip", z.ZodTypeAny, {
190
- code: string;
191
- path: string;
192
- message: string;
193
- statusCode: number;
194
- timestamp: string;
195
- details?: unknown;
196
- correlationId?: string | undefined;
197
- }, {
198
- code: string;
199
- path: string;
200
- message: string;
201
- statusCode: number;
202
- timestamp: string;
203
- details?: unknown;
204
- correlationId?: string | undefined;
205
- }>;
206
- 500: z.ZodObject<{
207
- statusCode: z.ZodNumber;
208
- message: z.ZodString;
209
- code: z.ZodString;
210
- details: z.ZodOptional<z.ZodUnknown>;
211
- timestamp: z.ZodString;
212
- path: z.ZodString;
213
- correlationId: z.ZodOptional<z.ZodString>;
214
- }, "strip", z.ZodTypeAny, {
215
- code: string;
216
- path: string;
217
- message: string;
218
- statusCode: number;
219
- timestamp: string;
220
- details?: unknown;
221
- correlationId?: string | undefined;
222
- }, {
223
- code: string;
224
- path: string;
225
- message: string;
226
- statusCode: number;
227
- timestamp: string;
228
- details?: unknown;
229
- correlationId?: string | undefined;
230
- }>;
231
- 201: z.ZodObject<{
232
- uploadUrl: z.ZodString;
233
- fileId: z.ZodString;
234
- }, "strip", z.ZodTypeAny, {
235
- uploadUrl: string;
236
- fileId: string;
237
- }, {
238
- uploadUrl: string;
239
- fileId: string;
240
- }>;
241
- 403: z.ZodObject<{
242
- statusCode: z.ZodNumber;
243
- message: z.ZodString;
244
- code: z.ZodString;
245
- details: z.ZodOptional<z.ZodUnknown>;
246
- timestamp: z.ZodString;
247
- path: z.ZodString;
248
- correlationId: z.ZodOptional<z.ZodString>;
249
- }, "strip", z.ZodTypeAny, {
250
- code: string;
251
- path: string;
252
- message: string;
253
- statusCode: number;
254
- timestamp: string;
255
- details?: unknown;
256
- correlationId?: string | undefined;
257
- }, {
258
- code: string;
259
- path: string;
260
- message: string;
261
- statusCode: number;
262
- timestamp: string;
263
- details?: unknown;
264
- correlationId?: string | undefined;
265
- }>;
266
- };
194
+ generateUploadUrl: {
195
+ metadata: {
196
+ tags: string[];
267
197
  };
268
- findAll: {
269
- metadata: {
270
- tags: string[];
271
- };
272
- summary: "Get all files";
273
- method: "GET";
274
- path: "/v2/files";
275
- responses: {
276
- 400: z.ZodObject<{
277
- statusCode: z.ZodNumber;
278
- message: z.ZodString;
279
- code: z.ZodString;
280
- details: z.ZodOptional<z.ZodUnknown>;
281
- timestamp: z.ZodString;
282
- path: z.ZodString;
283
- correlationId: z.ZodOptional<z.ZodString>;
284
- }, "strip", z.ZodTypeAny, {
285
- code: string;
286
- path: string;
287
- message: string;
288
- statusCode: number;
289
- timestamp: string;
290
- details?: unknown;
291
- correlationId?: string | undefined;
292
- }, {
293
- code: string;
294
- path: string;
295
- message: string;
296
- statusCode: number;
297
- timestamp: string;
298
- details?: unknown;
299
- correlationId?: string | undefined;
300
- }>;
301
- 401: z.ZodObject<{
302
- statusCode: z.ZodNumber;
303
- message: z.ZodString;
304
- code: z.ZodString;
305
- details: z.ZodOptional<z.ZodUnknown>;
306
- timestamp: z.ZodString;
307
- path: z.ZodString;
308
- correlationId: z.ZodOptional<z.ZodString>;
309
- }, "strip", z.ZodTypeAny, {
310
- code: string;
311
- path: string;
312
- message: string;
313
- statusCode: number;
314
- timestamp: string;
315
- details?: unknown;
316
- correlationId?: string | undefined;
317
- }, {
318
- code: string;
319
- path: string;
320
- message: string;
321
- statusCode: number;
322
- timestamp: string;
323
- details?: unknown;
324
- correlationId?: string | undefined;
325
- }>;
326
- 500: z.ZodObject<{
327
- statusCode: z.ZodNumber;
328
- message: z.ZodString;
329
- code: z.ZodString;
330
- details: z.ZodOptional<z.ZodUnknown>;
331
- timestamp: z.ZodString;
332
- path: z.ZodString;
333
- correlationId: z.ZodOptional<z.ZodString>;
334
- }, "strip", z.ZodTypeAny, {
335
- code: string;
336
- path: string;
337
- message: string;
338
- statusCode: number;
339
- timestamp: string;
340
- details?: unknown;
341
- correlationId?: string | undefined;
342
- }, {
343
- code: string;
344
- path: string;
345
- message: string;
346
- statusCode: number;
347
- timestamp: string;
348
- details?: unknown;
349
- correlationId?: string | undefined;
350
- }>;
351
- 200: z.ZodArray<z.ZodObject<{
352
- id: z.ZodString;
353
- originalName: z.ZodString;
354
- storageKey: z.ZodString;
355
- mimeType: z.ZodString;
356
- size: z.ZodNumber;
357
- location: z.ZodString;
358
- storageProvider: z.ZodString;
359
- description: z.ZodNullable<z.ZodString>;
360
- entityType: z.ZodNullable<z.ZodString>;
361
- entityId: z.ZodNullable<z.ZodString>;
362
- userId: z.ZodString;
363
- createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
364
- updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
365
- }, "strip", z.ZodTypeAny, {
366
- id: string;
367
- description: string | null;
368
- createdAt: string;
369
- updatedAt: string;
370
- size: number;
371
- originalName: string;
372
- storageKey: string;
373
- mimeType: string;
374
- location: string;
375
- storageProvider: string;
376
- entityType: string | null;
377
- entityId: string | null;
378
- userId: string;
379
- }, {
380
- id: string;
381
- description: string | null;
382
- createdAt: string | Date;
383
- updatedAt: string | Date;
384
- size: number;
385
- originalName: string;
386
- storageKey: string;
387
- mimeType: string;
388
- location: string;
389
- storageProvider: string;
390
- entityType: string | null;
391
- entityId: string | null;
392
- userId: string;
393
- }>, "many">;
394
- 403: z.ZodObject<{
395
- statusCode: z.ZodNumber;
396
- message: z.ZodString;
397
- code: z.ZodString;
398
- details: z.ZodOptional<z.ZodUnknown>;
399
- timestamp: z.ZodString;
400
- path: z.ZodString;
401
- correlationId: z.ZodOptional<z.ZodString>;
402
- }, "strip", z.ZodTypeAny, {
403
- code: string;
404
- path: string;
405
- message: string;
406
- statusCode: number;
407
- timestamp: string;
408
- details?: unknown;
409
- correlationId?: string | undefined;
410
- }, {
411
- code: string;
412
- path: string;
413
- message: string;
414
- statusCode: number;
415
- timestamp: string;
416
- details?: unknown;
417
- correlationId?: string | undefined;
418
- }>;
419
- };
198
+ summary: 'Generate a pre-signed URL for file upload';
199
+ method: 'POST';
200
+ body: z.ZodObject<
201
+ {
202
+ fileName: z.ZodString;
203
+ contentType: z.ZodString;
204
+ size: z.ZodNumber;
205
+ },
206
+ 'strip',
207
+ z.ZodTypeAny,
208
+ {
209
+ contentType: string;
210
+ fileName: string;
211
+ size: number;
212
+ },
213
+ {
214
+ contentType: string;
215
+ fileName: string;
216
+ size: number;
217
+ }
218
+ >;
219
+ path: '/v2/files/generate-upload-url';
220
+ responses: {
221
+ 400: z.ZodObject<
222
+ {
223
+ statusCode: z.ZodNumber;
224
+ message: z.ZodString;
225
+ code: z.ZodString;
226
+ details: z.ZodOptional<z.ZodUnknown>;
227
+ timestamp: z.ZodString;
228
+ path: z.ZodString;
229
+ correlationId: z.ZodOptional<z.ZodString>;
230
+ },
231
+ 'strip',
232
+ z.ZodTypeAny,
233
+ {
234
+ code: string;
235
+ path: string;
236
+ message: string;
237
+ statusCode: number;
238
+ timestamp: string;
239
+ details?: unknown;
240
+ correlationId?: string | undefined;
241
+ },
242
+ {
243
+ code: string;
244
+ path: string;
245
+ message: string;
246
+ statusCode: number;
247
+ timestamp: string;
248
+ details?: unknown;
249
+ correlationId?: string | undefined;
250
+ }
251
+ >;
252
+ 401: z.ZodObject<
253
+ {
254
+ statusCode: z.ZodNumber;
255
+ message: z.ZodString;
256
+ code: z.ZodString;
257
+ details: z.ZodOptional<z.ZodUnknown>;
258
+ timestamp: z.ZodString;
259
+ path: z.ZodString;
260
+ correlationId: z.ZodOptional<z.ZodString>;
261
+ },
262
+ 'strip',
263
+ z.ZodTypeAny,
264
+ {
265
+ code: string;
266
+ path: string;
267
+ message: string;
268
+ statusCode: number;
269
+ timestamp: string;
270
+ details?: unknown;
271
+ correlationId?: string | undefined;
272
+ },
273
+ {
274
+ code: string;
275
+ path: string;
276
+ message: string;
277
+ statusCode: number;
278
+ timestamp: string;
279
+ details?: unknown;
280
+ correlationId?: string | undefined;
281
+ }
282
+ >;
283
+ 500: z.ZodObject<
284
+ {
285
+ statusCode: z.ZodNumber;
286
+ message: z.ZodString;
287
+ code: z.ZodString;
288
+ details: z.ZodOptional<z.ZodUnknown>;
289
+ timestamp: z.ZodString;
290
+ path: z.ZodString;
291
+ correlationId: z.ZodOptional<z.ZodString>;
292
+ },
293
+ 'strip',
294
+ z.ZodTypeAny,
295
+ {
296
+ code: string;
297
+ path: string;
298
+ message: string;
299
+ statusCode: number;
300
+ timestamp: string;
301
+ details?: unknown;
302
+ correlationId?: string | undefined;
303
+ },
304
+ {
305
+ code: string;
306
+ path: string;
307
+ message: string;
308
+ statusCode: number;
309
+ timestamp: string;
310
+ details?: unknown;
311
+ correlationId?: string | undefined;
312
+ }
313
+ >;
314
+ 201: z.ZodObject<
315
+ {
316
+ uploadUrl: z.ZodString;
317
+ fileId: z.ZodString;
318
+ },
319
+ 'strip',
320
+ z.ZodTypeAny,
321
+ {
322
+ uploadUrl: string;
323
+ fileId: string;
324
+ },
325
+ {
326
+ uploadUrl: string;
327
+ fileId: string;
328
+ }
329
+ >;
330
+ 403: z.ZodObject<
331
+ {
332
+ statusCode: z.ZodNumber;
333
+ message: z.ZodString;
334
+ code: z.ZodString;
335
+ details: z.ZodOptional<z.ZodUnknown>;
336
+ timestamp: z.ZodString;
337
+ path: z.ZodString;
338
+ correlationId: z.ZodOptional<z.ZodString>;
339
+ },
340
+ 'strip',
341
+ z.ZodTypeAny,
342
+ {
343
+ code: string;
344
+ path: string;
345
+ message: string;
346
+ statusCode: number;
347
+ timestamp: string;
348
+ details?: unknown;
349
+ correlationId?: string | undefined;
350
+ },
351
+ {
352
+ code: string;
353
+ path: string;
354
+ message: string;
355
+ statusCode: number;
356
+ timestamp: string;
357
+ details?: unknown;
358
+ correlationId?: string | undefined;
359
+ }
360
+ >;
420
361
  };
421
- findByEntity: {
422
- metadata: {
423
- tags: string[];
424
- };
425
- pathParams: z.ZodObject<{
426
- entityType: z.ZodString;
427
- entityId: z.ZodString;
428
- }, "strip", z.ZodTypeAny, {
429
- entityType: string;
430
- entityId: string;
431
- }, {
432
- entityType: string;
433
- entityId: string;
434
- }>;
435
- summary: "Get all files for a specific entity";
436
- method: "GET";
437
- path: "/v2/files/entity/:entityType/:entityId";
438
- responses: {
439
- 400: z.ZodObject<{
440
- statusCode: z.ZodNumber;
441
- message: z.ZodString;
442
- code: z.ZodString;
443
- details: z.ZodOptional<z.ZodUnknown>;
444
- timestamp: z.ZodString;
445
- path: z.ZodString;
446
- correlationId: z.ZodOptional<z.ZodString>;
447
- }, "strip", z.ZodTypeAny, {
448
- code: string;
449
- path: string;
450
- message: string;
451
- statusCode: number;
452
- timestamp: string;
453
- details?: unknown;
454
- correlationId?: string | undefined;
455
- }, {
456
- code: string;
457
- path: string;
458
- message: string;
459
- statusCode: number;
460
- timestamp: string;
461
- details?: unknown;
462
- correlationId?: string | undefined;
463
- }>;
464
- 401: z.ZodObject<{
465
- statusCode: z.ZodNumber;
466
- message: z.ZodString;
467
- code: z.ZodString;
468
- details: z.ZodOptional<z.ZodUnknown>;
469
- timestamp: z.ZodString;
470
- path: z.ZodString;
471
- correlationId: z.ZodOptional<z.ZodString>;
472
- }, "strip", z.ZodTypeAny, {
473
- code: string;
474
- path: string;
475
- message: string;
476
- statusCode: number;
477
- timestamp: string;
478
- details?: unknown;
479
- correlationId?: string | undefined;
480
- }, {
481
- code: string;
482
- path: string;
483
- message: string;
484
- statusCode: number;
485
- timestamp: string;
486
- details?: unknown;
487
- correlationId?: string | undefined;
488
- }>;
489
- 500: z.ZodObject<{
490
- statusCode: z.ZodNumber;
491
- message: z.ZodString;
492
- code: z.ZodString;
493
- details: z.ZodOptional<z.ZodUnknown>;
494
- timestamp: z.ZodString;
495
- path: z.ZodString;
496
- correlationId: z.ZodOptional<z.ZodString>;
497
- }, "strip", z.ZodTypeAny, {
498
- code: string;
499
- path: string;
500
- message: string;
501
- statusCode: number;
502
- timestamp: string;
503
- details?: unknown;
504
- correlationId?: string | undefined;
505
- }, {
506
- code: string;
507
- path: string;
508
- message: string;
509
- statusCode: number;
510
- timestamp: string;
511
- details?: unknown;
512
- correlationId?: string | undefined;
513
- }>;
514
- 200: z.ZodArray<z.ZodObject<{
515
- id: z.ZodString;
516
- originalName: z.ZodString;
517
- storageKey: z.ZodString;
518
- mimeType: z.ZodString;
519
- size: z.ZodNumber;
520
- location: z.ZodString;
521
- storageProvider: z.ZodString;
522
- description: z.ZodNullable<z.ZodString>;
523
- entityType: z.ZodNullable<z.ZodString>;
524
- entityId: z.ZodNullable<z.ZodString>;
525
- userId: z.ZodString;
526
- createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
527
- updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
528
- }, "strip", z.ZodTypeAny, {
529
- id: string;
530
- description: string | null;
531
- createdAt: string;
532
- updatedAt: string;
533
- size: number;
534
- originalName: string;
535
- storageKey: string;
536
- mimeType: string;
537
- location: string;
538
- storageProvider: string;
539
- entityType: string | null;
540
- entityId: string | null;
541
- userId: string;
542
- }, {
543
- id: string;
544
- description: string | null;
545
- createdAt: string | Date;
546
- updatedAt: string | Date;
547
- size: number;
548
- originalName: string;
549
- storageKey: string;
550
- mimeType: string;
551
- location: string;
552
- storageProvider: string;
553
- entityType: string | null;
554
- entityId: string | null;
555
- userId: string;
556
- }>, "many">;
557
- 403: z.ZodObject<{
558
- statusCode: z.ZodNumber;
559
- message: z.ZodString;
560
- code: z.ZodString;
561
- details: z.ZodOptional<z.ZodUnknown>;
562
- timestamp: z.ZodString;
563
- path: z.ZodString;
564
- correlationId: z.ZodOptional<z.ZodString>;
565
- }, "strip", z.ZodTypeAny, {
566
- code: string;
567
- path: string;
568
- message: string;
569
- statusCode: number;
570
- timestamp: string;
571
- details?: unknown;
572
- correlationId?: string | undefined;
573
- }, {
574
- code: string;
575
- path: string;
576
- message: string;
577
- statusCode: number;
578
- timestamp: string;
579
- details?: unknown;
580
- correlationId?: string | undefined;
581
- }>;
582
- };
362
+ };
363
+ findAll: {
364
+ metadata: {
365
+ tags: string[];
583
366
  };
584
- findOne: {
585
- metadata: {
586
- tags: string[];
587
- };
588
- pathParams: z.ZodObject<{
367
+ summary: 'Get all files';
368
+ method: 'GET';
369
+ path: '/v2/files';
370
+ responses: {
371
+ 400: z.ZodObject<
372
+ {
373
+ statusCode: z.ZodNumber;
374
+ message: z.ZodString;
375
+ code: z.ZodString;
376
+ details: z.ZodOptional<z.ZodUnknown>;
377
+ timestamp: z.ZodString;
378
+ path: z.ZodString;
379
+ correlationId: z.ZodOptional<z.ZodString>;
380
+ },
381
+ 'strip',
382
+ z.ZodTypeAny,
383
+ {
384
+ code: string;
385
+ path: string;
386
+ message: string;
387
+ statusCode: number;
388
+ timestamp: string;
389
+ details?: unknown;
390
+ correlationId?: string | undefined;
391
+ },
392
+ {
393
+ code: string;
394
+ path: string;
395
+ message: string;
396
+ statusCode: number;
397
+ timestamp: string;
398
+ details?: unknown;
399
+ correlationId?: string | undefined;
400
+ }
401
+ >;
402
+ 401: z.ZodObject<
403
+ {
404
+ statusCode: z.ZodNumber;
405
+ message: z.ZodString;
406
+ code: z.ZodString;
407
+ details: z.ZodOptional<z.ZodUnknown>;
408
+ timestamp: z.ZodString;
409
+ path: z.ZodString;
410
+ correlationId: z.ZodOptional<z.ZodString>;
411
+ },
412
+ 'strip',
413
+ z.ZodTypeAny,
414
+ {
415
+ code: string;
416
+ path: string;
417
+ message: string;
418
+ statusCode: number;
419
+ timestamp: string;
420
+ details?: unknown;
421
+ correlationId?: string | undefined;
422
+ },
423
+ {
424
+ code: string;
425
+ path: string;
426
+ message: string;
427
+ statusCode: number;
428
+ timestamp: string;
429
+ details?: unknown;
430
+ correlationId?: string | undefined;
431
+ }
432
+ >;
433
+ 500: z.ZodObject<
434
+ {
435
+ statusCode: z.ZodNumber;
436
+ message: z.ZodString;
437
+ code: z.ZodString;
438
+ details: z.ZodOptional<z.ZodUnknown>;
439
+ timestamp: z.ZodString;
440
+ path: z.ZodString;
441
+ correlationId: z.ZodOptional<z.ZodString>;
442
+ },
443
+ 'strip',
444
+ z.ZodTypeAny,
445
+ {
446
+ code: string;
447
+ path: string;
448
+ message: string;
449
+ statusCode: number;
450
+ timestamp: string;
451
+ details?: unknown;
452
+ correlationId?: string | undefined;
453
+ },
454
+ {
455
+ code: string;
456
+ path: string;
457
+ message: string;
458
+ statusCode: number;
459
+ timestamp: string;
460
+ details?: unknown;
461
+ correlationId?: string | undefined;
462
+ }
463
+ >;
464
+ 200: z.ZodArray<
465
+ z.ZodObject<
466
+ {
589
467
  id: z.ZodString;
590
- }, "strip", z.ZodTypeAny, {
468
+ originalName: z.ZodString;
469
+ storageKey: z.ZodString;
470
+ mimeType: z.ZodString;
471
+ size: z.ZodNumber;
472
+ location: z.ZodString;
473
+ storageProvider: z.ZodString;
474
+ description: z.ZodNullable<z.ZodString>;
475
+ entityType: z.ZodNullable<z.ZodString>;
476
+ entityId: z.ZodNullable<z.ZodString>;
477
+ userId: z.ZodString;
478
+ createdAt: z.ZodEffects<
479
+ z.ZodUnion<[z.ZodString, z.ZodDate]>,
480
+ string,
481
+ string | Date
482
+ >;
483
+ updatedAt: z.ZodEffects<
484
+ z.ZodUnion<[z.ZodString, z.ZodDate]>,
485
+ string,
486
+ string | Date
487
+ >;
488
+ },
489
+ 'strip',
490
+ z.ZodTypeAny,
491
+ {
591
492
  id: string;
592
- }, {
493
+ description: string | null;
494
+ createdAt: string;
495
+ updatedAt: string;
496
+ size: number;
497
+ originalName: string;
498
+ storageKey: string;
499
+ mimeType: string;
500
+ location: string;
501
+ storageProvider: string;
502
+ entityType: string | null;
503
+ entityId: string | null;
504
+ userId: string;
505
+ },
506
+ {
593
507
  id: string;
594
- }>;
595
- summary: "Get a file metadata by ID";
596
- method: "GET";
597
- path: "/v2/files/:id";
598
- responses: {
599
- 400: z.ZodObject<{
600
- statusCode: z.ZodNumber;
601
- message: z.ZodString;
602
- code: z.ZodString;
603
- details: z.ZodOptional<z.ZodUnknown>;
604
- timestamp: z.ZodString;
605
- path: z.ZodString;
606
- correlationId: z.ZodOptional<z.ZodString>;
607
- }, "strip", z.ZodTypeAny, {
608
- code: string;
609
- path: string;
610
- message: string;
611
- statusCode: number;
612
- timestamp: string;
613
- details?: unknown;
614
- correlationId?: string | undefined;
615
- }, {
616
- code: string;
617
- path: string;
618
- message: string;
619
- statusCode: number;
620
- timestamp: string;
621
- details?: unknown;
622
- correlationId?: string | undefined;
623
- }>;
624
- 401: z.ZodObject<{
625
- statusCode: z.ZodNumber;
626
- message: z.ZodString;
627
- code: z.ZodString;
628
- details: z.ZodOptional<z.ZodUnknown>;
629
- timestamp: z.ZodString;
630
- path: z.ZodString;
631
- correlationId: z.ZodOptional<z.ZodString>;
632
- }, "strip", z.ZodTypeAny, {
633
- code: string;
634
- path: string;
635
- message: string;
636
- statusCode: number;
637
- timestamp: string;
638
- details?: unknown;
639
- correlationId?: string | undefined;
640
- }, {
641
- code: string;
642
- path: string;
643
- message: string;
644
- statusCode: number;
645
- timestamp: string;
646
- details?: unknown;
647
- correlationId?: string | undefined;
648
- }>;
649
- 500: z.ZodObject<{
650
- statusCode: z.ZodNumber;
651
- message: z.ZodString;
652
- code: z.ZodString;
653
- details: z.ZodOptional<z.ZodUnknown>;
654
- timestamp: z.ZodString;
655
- path: z.ZodString;
656
- correlationId: z.ZodOptional<z.ZodString>;
657
- }, "strip", z.ZodTypeAny, {
658
- code: string;
659
- path: string;
660
- message: string;
661
- statusCode: number;
662
- timestamp: string;
663
- details?: unknown;
664
- correlationId?: string | undefined;
665
- }, {
666
- code: string;
667
- path: string;
668
- message: string;
669
- statusCode: number;
670
- timestamp: string;
671
- details?: unknown;
672
- correlationId?: string | undefined;
673
- }>;
674
- 200: z.ZodObject<{
675
- id: z.ZodString;
676
- originalName: z.ZodString;
677
- storageKey: z.ZodString;
678
- mimeType: z.ZodString;
679
- size: z.ZodNumber;
680
- location: z.ZodString;
681
- storageProvider: z.ZodString;
682
- description: z.ZodNullable<z.ZodString>;
683
- entityType: z.ZodNullable<z.ZodString>;
684
- entityId: z.ZodNullable<z.ZodString>;
685
- userId: z.ZodString;
686
- createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
687
- updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
688
- }, "strip", z.ZodTypeAny, {
689
- id: string;
690
- description: string | null;
691
- createdAt: string;
692
- updatedAt: string;
693
- size: number;
694
- originalName: string;
695
- storageKey: string;
696
- mimeType: string;
697
- location: string;
698
- storageProvider: string;
699
- entityType: string | null;
700
- entityId: string | null;
701
- userId: string;
702
- }, {
703
- id: string;
704
- description: string | null;
705
- createdAt: string | Date;
706
- updatedAt: string | Date;
707
- size: number;
708
- originalName: string;
709
- storageKey: string;
710
- mimeType: string;
711
- location: string;
712
- storageProvider: string;
713
- entityType: string | null;
714
- entityId: string | null;
715
- userId: string;
716
- }>;
717
- 404: z.ZodObject<{
718
- statusCode: z.ZodNumber;
719
- message: z.ZodString;
720
- code: z.ZodString;
721
- details: z.ZodOptional<z.ZodUnknown>;
722
- timestamp: z.ZodString;
723
- path: z.ZodString;
724
- correlationId: z.ZodOptional<z.ZodString>;
725
- }, "strip", z.ZodTypeAny, {
726
- code: string;
727
- path: string;
728
- message: string;
729
- statusCode: number;
730
- timestamp: string;
731
- details?: unknown;
732
- correlationId?: string | undefined;
733
- }, {
734
- code: string;
735
- path: string;
736
- message: string;
737
- statusCode: number;
738
- timestamp: string;
739
- details?: unknown;
740
- correlationId?: string | undefined;
741
- }>;
742
- 403: z.ZodObject<{
743
- statusCode: z.ZodNumber;
744
- message: z.ZodString;
745
- code: z.ZodString;
746
- details: z.ZodOptional<z.ZodUnknown>;
747
- timestamp: z.ZodString;
748
- path: z.ZodString;
749
- correlationId: z.ZodOptional<z.ZodString>;
750
- }, "strip", z.ZodTypeAny, {
751
- code: string;
752
- path: string;
753
- message: string;
754
- statusCode: number;
755
- timestamp: string;
756
- details?: unknown;
757
- correlationId?: string | undefined;
758
- }, {
759
- code: string;
760
- path: string;
761
- message: string;
762
- statusCode: number;
763
- timestamp: string;
764
- details?: unknown;
765
- correlationId?: string | undefined;
766
- }>;
767
- };
508
+ description: string | null;
509
+ createdAt: string | Date;
510
+ updatedAt: string | Date;
511
+ size: number;
512
+ originalName: string;
513
+ storageKey: string;
514
+ mimeType: string;
515
+ location: string;
516
+ storageProvider: string;
517
+ entityType: string | null;
518
+ entityId: string | null;
519
+ userId: string;
520
+ }
521
+ >,
522
+ 'many'
523
+ >;
524
+ 403: z.ZodObject<
525
+ {
526
+ statusCode: z.ZodNumber;
527
+ message: z.ZodString;
528
+ code: z.ZodString;
529
+ details: z.ZodOptional<z.ZodUnknown>;
530
+ timestamp: z.ZodString;
531
+ path: z.ZodString;
532
+ correlationId: z.ZodOptional<z.ZodString>;
533
+ },
534
+ 'strip',
535
+ z.ZodTypeAny,
536
+ {
537
+ code: string;
538
+ path: string;
539
+ message: string;
540
+ statusCode: number;
541
+ timestamp: string;
542
+ details?: unknown;
543
+ correlationId?: string | undefined;
544
+ },
545
+ {
546
+ code: string;
547
+ path: string;
548
+ message: string;
549
+ statusCode: number;
550
+ timestamp: string;
551
+ details?: unknown;
552
+ correlationId?: string | undefined;
553
+ }
554
+ >;
768
555
  };
769
- getDownloadUrl: {
770
- metadata: {
771
- tags: string[];
772
- };
773
- pathParams: z.ZodObject<{
774
- id: z.ZodString;
775
- }, "strip", z.ZodTypeAny, {
776
- id: string;
777
- }, {
778
- id: string;
779
- }>;
780
- summary: "Get a pre-signed URL to download a file";
781
- method: "GET";
782
- path: "/v2/files/:id/download";
783
- responses: {
784
- 400: z.ZodObject<{
785
- statusCode: z.ZodNumber;
786
- message: z.ZodString;
787
- code: z.ZodString;
788
- details: z.ZodOptional<z.ZodUnknown>;
789
- timestamp: z.ZodString;
790
- path: z.ZodString;
791
- correlationId: z.ZodOptional<z.ZodString>;
792
- }, "strip", z.ZodTypeAny, {
793
- code: string;
794
- path: string;
795
- message: string;
796
- statusCode: number;
797
- timestamp: string;
798
- details?: unknown;
799
- correlationId?: string | undefined;
800
- }, {
801
- code: string;
802
- path: string;
803
- message: string;
804
- statusCode: number;
805
- timestamp: string;
806
- details?: unknown;
807
- correlationId?: string | undefined;
808
- }>;
809
- 401: z.ZodObject<{
810
- statusCode: z.ZodNumber;
811
- message: z.ZodString;
812
- code: z.ZodString;
813
- details: z.ZodOptional<z.ZodUnknown>;
814
- timestamp: z.ZodString;
815
- path: z.ZodString;
816
- correlationId: z.ZodOptional<z.ZodString>;
817
- }, "strip", z.ZodTypeAny, {
818
- code: string;
819
- path: string;
820
- message: string;
821
- statusCode: number;
822
- timestamp: string;
823
- details?: unknown;
824
- correlationId?: string | undefined;
825
- }, {
826
- code: string;
827
- path: string;
828
- message: string;
829
- statusCode: number;
830
- timestamp: string;
831
- details?: unknown;
832
- correlationId?: string | undefined;
833
- }>;
834
- 500: z.ZodObject<{
835
- statusCode: z.ZodNumber;
836
- message: z.ZodString;
837
- code: z.ZodString;
838
- details: z.ZodOptional<z.ZodUnknown>;
839
- timestamp: z.ZodString;
840
- path: z.ZodString;
841
- correlationId: z.ZodOptional<z.ZodString>;
842
- }, "strip", z.ZodTypeAny, {
843
- code: string;
844
- path: string;
845
- message: string;
846
- statusCode: number;
847
- timestamp: string;
848
- details?: unknown;
849
- correlationId?: string | undefined;
850
- }, {
851
- code: string;
852
- path: string;
853
- message: string;
854
- statusCode: number;
855
- timestamp: string;
856
- details?: unknown;
857
- correlationId?: string | undefined;
858
- }>;
859
- 200: z.ZodObject<{
860
- url: z.ZodString;
861
- mimeType: z.ZodString;
862
- }, "strip", z.ZodTypeAny, {
863
- mimeType: string;
864
- url: string;
865
- }, {
866
- mimeType: string;
867
- url: string;
868
- }>;
869
- 404: z.ZodObject<{
870
- statusCode: z.ZodNumber;
871
- message: z.ZodString;
872
- code: z.ZodString;
873
- details: z.ZodOptional<z.ZodUnknown>;
874
- timestamp: z.ZodString;
875
- path: z.ZodString;
876
- correlationId: z.ZodOptional<z.ZodString>;
877
- }, "strip", z.ZodTypeAny, {
878
- code: string;
879
- path: string;
880
- message: string;
881
- statusCode: number;
882
- timestamp: string;
883
- details?: unknown;
884
- correlationId?: string | undefined;
885
- }, {
886
- code: string;
887
- path: string;
888
- message: string;
889
- statusCode: number;
890
- timestamp: string;
891
- details?: unknown;
892
- correlationId?: string | undefined;
893
- }>;
894
- 403: z.ZodObject<{
895
- statusCode: z.ZodNumber;
896
- message: z.ZodString;
897
- code: z.ZodString;
898
- details: z.ZodOptional<z.ZodUnknown>;
899
- timestamp: z.ZodString;
900
- path: z.ZodString;
901
- correlationId: z.ZodOptional<z.ZodString>;
902
- }, "strip", z.ZodTypeAny, {
903
- code: string;
904
- path: string;
905
- message: string;
906
- statusCode: number;
907
- timestamp: string;
908
- details?: unknown;
909
- correlationId?: string | undefined;
910
- }, {
911
- code: string;
912
- path: string;
913
- message: string;
914
- statusCode: number;
915
- timestamp: string;
916
- details?: unknown;
917
- correlationId?: string | undefined;
918
- }>;
919
- };
556
+ };
557
+ findByEntity: {
558
+ metadata: {
559
+ tags: string[];
920
560
  };
921
- update: {
922
- metadata: {
923
- tags: string[];
924
- };
925
- pathParams: z.ZodObject<{
561
+ pathParams: z.ZodObject<
562
+ {
563
+ entityType: z.ZodString;
564
+ entityId: z.ZodString;
565
+ },
566
+ 'strip',
567
+ z.ZodTypeAny,
568
+ {
569
+ entityType: string;
570
+ entityId: string;
571
+ },
572
+ {
573
+ entityType: string;
574
+ entityId: string;
575
+ }
576
+ >;
577
+ summary: 'Get all files for a specific entity';
578
+ method: 'GET';
579
+ path: '/v2/files/entity/:entityType/:entityId';
580
+ responses: {
581
+ 400: z.ZodObject<
582
+ {
583
+ statusCode: z.ZodNumber;
584
+ message: z.ZodString;
585
+ code: z.ZodString;
586
+ details: z.ZodOptional<z.ZodUnknown>;
587
+ timestamp: z.ZodString;
588
+ path: z.ZodString;
589
+ correlationId: z.ZodOptional<z.ZodString>;
590
+ },
591
+ 'strip',
592
+ z.ZodTypeAny,
593
+ {
594
+ code: string;
595
+ path: string;
596
+ message: string;
597
+ statusCode: number;
598
+ timestamp: string;
599
+ details?: unknown;
600
+ correlationId?: string | undefined;
601
+ },
602
+ {
603
+ code: string;
604
+ path: string;
605
+ message: string;
606
+ statusCode: number;
607
+ timestamp: string;
608
+ details?: unknown;
609
+ correlationId?: string | undefined;
610
+ }
611
+ >;
612
+ 401: z.ZodObject<
613
+ {
614
+ statusCode: z.ZodNumber;
615
+ message: z.ZodString;
616
+ code: z.ZodString;
617
+ details: z.ZodOptional<z.ZodUnknown>;
618
+ timestamp: z.ZodString;
619
+ path: z.ZodString;
620
+ correlationId: z.ZodOptional<z.ZodString>;
621
+ },
622
+ 'strip',
623
+ z.ZodTypeAny,
624
+ {
625
+ code: string;
626
+ path: string;
627
+ message: string;
628
+ statusCode: number;
629
+ timestamp: string;
630
+ details?: unknown;
631
+ correlationId?: string | undefined;
632
+ },
633
+ {
634
+ code: string;
635
+ path: string;
636
+ message: string;
637
+ statusCode: number;
638
+ timestamp: string;
639
+ details?: unknown;
640
+ correlationId?: string | undefined;
641
+ }
642
+ >;
643
+ 500: z.ZodObject<
644
+ {
645
+ statusCode: z.ZodNumber;
646
+ message: z.ZodString;
647
+ code: z.ZodString;
648
+ details: z.ZodOptional<z.ZodUnknown>;
649
+ timestamp: z.ZodString;
650
+ path: z.ZodString;
651
+ correlationId: z.ZodOptional<z.ZodString>;
652
+ },
653
+ 'strip',
654
+ z.ZodTypeAny,
655
+ {
656
+ code: string;
657
+ path: string;
658
+ message: string;
659
+ statusCode: number;
660
+ timestamp: string;
661
+ details?: unknown;
662
+ correlationId?: string | undefined;
663
+ },
664
+ {
665
+ code: string;
666
+ path: string;
667
+ message: string;
668
+ statusCode: number;
669
+ timestamp: string;
670
+ details?: unknown;
671
+ correlationId?: string | undefined;
672
+ }
673
+ >;
674
+ 200: z.ZodArray<
675
+ z.ZodObject<
676
+ {
926
677
  id: z.ZodString;
927
- }, "strip", z.ZodTypeAny, {
678
+ originalName: z.ZodString;
679
+ storageKey: z.ZodString;
680
+ mimeType: z.ZodString;
681
+ size: z.ZodNumber;
682
+ location: z.ZodString;
683
+ storageProvider: z.ZodString;
684
+ description: z.ZodNullable<z.ZodString>;
685
+ entityType: z.ZodNullable<z.ZodString>;
686
+ entityId: z.ZodNullable<z.ZodString>;
687
+ userId: z.ZodString;
688
+ createdAt: z.ZodEffects<
689
+ z.ZodUnion<[z.ZodString, z.ZodDate]>,
690
+ string,
691
+ string | Date
692
+ >;
693
+ updatedAt: z.ZodEffects<
694
+ z.ZodUnion<[z.ZodString, z.ZodDate]>,
695
+ string,
696
+ string | Date
697
+ >;
698
+ },
699
+ 'strip',
700
+ z.ZodTypeAny,
701
+ {
928
702
  id: string;
929
- }, {
703
+ description: string | null;
704
+ createdAt: string;
705
+ updatedAt: string;
706
+ size: number;
707
+ originalName: string;
708
+ storageKey: string;
709
+ mimeType: string;
710
+ location: string;
711
+ storageProvider: string;
712
+ entityType: string | null;
713
+ entityId: string | null;
714
+ userId: string;
715
+ },
716
+ {
930
717
  id: string;
931
- }>;
932
- summary: "Update a file metadata";
933
- method: "PATCH";
934
- body: z.ZodObject<{
935
- description: z.ZodOptional<z.ZodString>;
936
- }, "strip", z.ZodTypeAny, {
937
- description?: string | undefined;
938
- }, {
939
- description?: string | undefined;
940
- }>;
941
- path: "/v2/files/:id";
942
- responses: {
943
- 400: z.ZodObject<{
944
- statusCode: z.ZodNumber;
945
- message: z.ZodString;
946
- code: z.ZodString;
947
- details: z.ZodOptional<z.ZodUnknown>;
948
- timestamp: z.ZodString;
949
- path: z.ZodString;
950
- correlationId: z.ZodOptional<z.ZodString>;
951
- }, "strip", z.ZodTypeAny, {
952
- code: string;
953
- path: string;
954
- message: string;
955
- statusCode: number;
956
- timestamp: string;
957
- details?: unknown;
958
- correlationId?: string | undefined;
959
- }, {
960
- code: string;
961
- path: string;
962
- message: string;
963
- statusCode: number;
964
- timestamp: string;
965
- details?: unknown;
966
- correlationId?: string | undefined;
967
- }>;
968
- 401: z.ZodObject<{
969
- statusCode: z.ZodNumber;
970
- message: z.ZodString;
971
- code: z.ZodString;
972
- details: z.ZodOptional<z.ZodUnknown>;
973
- timestamp: z.ZodString;
974
- path: z.ZodString;
975
- correlationId: z.ZodOptional<z.ZodString>;
976
- }, "strip", z.ZodTypeAny, {
977
- code: string;
978
- path: string;
979
- message: string;
980
- statusCode: number;
981
- timestamp: string;
982
- details?: unknown;
983
- correlationId?: string | undefined;
984
- }, {
985
- code: string;
986
- path: string;
987
- message: string;
988
- statusCode: number;
989
- timestamp: string;
990
- details?: unknown;
991
- correlationId?: string | undefined;
992
- }>;
993
- 500: z.ZodObject<{
994
- statusCode: z.ZodNumber;
995
- message: z.ZodString;
996
- code: z.ZodString;
997
- details: z.ZodOptional<z.ZodUnknown>;
998
- timestamp: z.ZodString;
999
- path: z.ZodString;
1000
- correlationId: z.ZodOptional<z.ZodString>;
1001
- }, "strip", z.ZodTypeAny, {
1002
- code: string;
1003
- path: string;
1004
- message: string;
1005
- statusCode: number;
1006
- timestamp: string;
1007
- details?: unknown;
1008
- correlationId?: string | undefined;
1009
- }, {
1010
- code: string;
1011
- path: string;
1012
- message: string;
1013
- statusCode: number;
1014
- timestamp: string;
1015
- details?: unknown;
1016
- correlationId?: string | undefined;
1017
- }>;
1018
- 200: z.ZodObject<{
1019
- id: z.ZodString;
1020
- originalName: z.ZodString;
1021
- storageKey: z.ZodString;
1022
- mimeType: z.ZodString;
1023
- size: z.ZodNumber;
1024
- location: z.ZodString;
1025
- storageProvider: z.ZodString;
1026
- description: z.ZodNullable<z.ZodString>;
1027
- entityType: z.ZodNullable<z.ZodString>;
1028
- entityId: z.ZodNullable<z.ZodString>;
1029
- userId: z.ZodString;
1030
- createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1031
- updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1032
- }, "strip", z.ZodTypeAny, {
1033
- id: string;
1034
- description: string | null;
1035
- createdAt: string;
1036
- updatedAt: string;
1037
- size: number;
1038
- originalName: string;
1039
- storageKey: string;
1040
- mimeType: string;
1041
- location: string;
1042
- storageProvider: string;
1043
- entityType: string | null;
1044
- entityId: string | null;
1045
- userId: string;
1046
- }, {
1047
- id: string;
1048
- description: string | null;
1049
- createdAt: string | Date;
1050
- updatedAt: string | Date;
1051
- size: number;
1052
- originalName: string;
1053
- storageKey: string;
1054
- mimeType: string;
1055
- location: string;
1056
- storageProvider: string;
1057
- entityType: string | null;
1058
- entityId: string | null;
1059
- userId: string;
1060
- }>;
1061
- 404: z.ZodObject<{
1062
- statusCode: z.ZodNumber;
1063
- message: z.ZodString;
1064
- code: z.ZodString;
1065
- details: z.ZodOptional<z.ZodUnknown>;
1066
- timestamp: z.ZodString;
1067
- path: z.ZodString;
1068
- correlationId: z.ZodOptional<z.ZodString>;
1069
- }, "strip", z.ZodTypeAny, {
1070
- code: string;
1071
- path: string;
1072
- message: string;
1073
- statusCode: number;
1074
- timestamp: string;
1075
- details?: unknown;
1076
- correlationId?: string | undefined;
1077
- }, {
1078
- code: string;
1079
- path: string;
1080
- message: string;
1081
- statusCode: number;
1082
- timestamp: string;
1083
- details?: unknown;
1084
- correlationId?: string | undefined;
1085
- }>;
1086
- 403: z.ZodObject<{
1087
- statusCode: z.ZodNumber;
1088
- message: z.ZodString;
1089
- code: z.ZodString;
1090
- details: z.ZodOptional<z.ZodUnknown>;
1091
- timestamp: z.ZodString;
1092
- path: z.ZodString;
1093
- correlationId: z.ZodOptional<z.ZodString>;
1094
- }, "strip", z.ZodTypeAny, {
1095
- code: string;
1096
- path: string;
1097
- message: string;
1098
- statusCode: number;
1099
- timestamp: string;
1100
- details?: unknown;
1101
- correlationId?: string | undefined;
1102
- }, {
1103
- code: string;
1104
- path: string;
1105
- message: string;
1106
- statusCode: number;
1107
- timestamp: string;
1108
- details?: unknown;
1109
- correlationId?: string | undefined;
1110
- }>;
1111
- };
718
+ description: string | null;
719
+ createdAt: string | Date;
720
+ updatedAt: string | Date;
721
+ size: number;
722
+ originalName: string;
723
+ storageKey: string;
724
+ mimeType: string;
725
+ location: string;
726
+ storageProvider: string;
727
+ entityType: string | null;
728
+ entityId: string | null;
729
+ userId: string;
730
+ }
731
+ >,
732
+ 'many'
733
+ >;
734
+ 403: z.ZodObject<
735
+ {
736
+ statusCode: z.ZodNumber;
737
+ message: z.ZodString;
738
+ code: z.ZodString;
739
+ details: z.ZodOptional<z.ZodUnknown>;
740
+ timestamp: z.ZodString;
741
+ path: z.ZodString;
742
+ correlationId: z.ZodOptional<z.ZodString>;
743
+ },
744
+ 'strip',
745
+ z.ZodTypeAny,
746
+ {
747
+ code: string;
748
+ path: string;
749
+ message: string;
750
+ statusCode: number;
751
+ timestamp: string;
752
+ details?: unknown;
753
+ correlationId?: string | undefined;
754
+ },
755
+ {
756
+ code: string;
757
+ path: string;
758
+ message: string;
759
+ statusCode: number;
760
+ timestamp: string;
761
+ details?: unknown;
762
+ correlationId?: string | undefined;
763
+ }
764
+ >;
1112
765
  };
1113
- remove: {
1114
- metadata: {
1115
- tags: string[];
1116
- };
1117
- pathParams: z.ZodObject<{
1118
- id: z.ZodString;
1119
- }, "strip", z.ZodTypeAny, {
1120
- id: string;
1121
- }, {
1122
- id: string;
1123
- }>;
1124
- summary: "Delete a file";
1125
- method: "DELETE";
1126
- body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1127
- path: "/v2/files/:id";
1128
- responses: {
1129
- 400: z.ZodObject<{
1130
- statusCode: z.ZodNumber;
1131
- message: z.ZodString;
1132
- code: z.ZodString;
1133
- details: z.ZodOptional<z.ZodUnknown>;
1134
- timestamp: z.ZodString;
1135
- path: z.ZodString;
1136
- correlationId: z.ZodOptional<z.ZodString>;
1137
- }, "strip", z.ZodTypeAny, {
1138
- code: string;
1139
- path: string;
1140
- message: string;
1141
- statusCode: number;
1142
- timestamp: string;
1143
- details?: unknown;
1144
- correlationId?: string | undefined;
1145
- }, {
1146
- code: string;
1147
- path: string;
1148
- message: string;
1149
- statusCode: number;
1150
- timestamp: string;
1151
- details?: unknown;
1152
- correlationId?: string | undefined;
1153
- }>;
1154
- 401: z.ZodObject<{
1155
- statusCode: z.ZodNumber;
1156
- message: z.ZodString;
1157
- code: z.ZodString;
1158
- details: z.ZodOptional<z.ZodUnknown>;
1159
- timestamp: z.ZodString;
1160
- path: z.ZodString;
1161
- correlationId: z.ZodOptional<z.ZodString>;
1162
- }, "strip", z.ZodTypeAny, {
1163
- code: string;
1164
- path: string;
1165
- message: string;
1166
- statusCode: number;
1167
- timestamp: string;
1168
- details?: unknown;
1169
- correlationId?: string | undefined;
1170
- }, {
1171
- code: string;
1172
- path: string;
1173
- message: string;
1174
- statusCode: number;
1175
- timestamp: string;
1176
- details?: unknown;
1177
- correlationId?: string | undefined;
1178
- }>;
1179
- 500: z.ZodObject<{
1180
- statusCode: z.ZodNumber;
1181
- message: z.ZodString;
1182
- code: z.ZodString;
1183
- details: z.ZodOptional<z.ZodUnknown>;
1184
- timestamp: z.ZodString;
1185
- path: z.ZodString;
1186
- correlationId: z.ZodOptional<z.ZodString>;
1187
- }, "strip", z.ZodTypeAny, {
1188
- code: string;
1189
- path: string;
1190
- message: string;
1191
- statusCode: number;
1192
- timestamp: string;
1193
- details?: unknown;
1194
- correlationId?: string | undefined;
1195
- }, {
1196
- code: string;
1197
- path: string;
1198
- message: string;
1199
- statusCode: number;
1200
- timestamp: string;
1201
- details?: unknown;
1202
- correlationId?: string | undefined;
1203
- }>;
1204
- 204: z.ZodUndefined;
1205
- 404: z.ZodObject<{
1206
- statusCode: z.ZodNumber;
1207
- message: z.ZodString;
1208
- code: z.ZodString;
1209
- details: z.ZodOptional<z.ZodUnknown>;
1210
- timestamp: z.ZodString;
1211
- path: z.ZodString;
1212
- correlationId: z.ZodOptional<z.ZodString>;
1213
- }, "strip", z.ZodTypeAny, {
1214
- code: string;
1215
- path: string;
1216
- message: string;
1217
- statusCode: number;
1218
- timestamp: string;
1219
- details?: unknown;
1220
- correlationId?: string | undefined;
1221
- }, {
1222
- code: string;
1223
- path: string;
1224
- message: string;
1225
- statusCode: number;
1226
- timestamp: string;
1227
- details?: unknown;
1228
- correlationId?: string | undefined;
1229
- }>;
1230
- 403: z.ZodObject<{
1231
- statusCode: z.ZodNumber;
1232
- message: z.ZodString;
1233
- code: z.ZodString;
1234
- details: z.ZodOptional<z.ZodUnknown>;
1235
- timestamp: z.ZodString;
1236
- path: z.ZodString;
1237
- correlationId: z.ZodOptional<z.ZodString>;
1238
- }, "strip", z.ZodTypeAny, {
1239
- code: string;
1240
- path: string;
1241
- message: string;
1242
- statusCode: number;
1243
- timestamp: string;
1244
- details?: unknown;
1245
- correlationId?: string | undefined;
1246
- }, {
1247
- code: string;
1248
- path: string;
1249
- message: string;
1250
- statusCode: number;
1251
- timestamp: string;
1252
- details?: unknown;
1253
- correlationId?: string | undefined;
1254
- }>;
1255
- };
766
+ };
767
+ findOne: {
768
+ metadata: {
769
+ tags: string[];
770
+ };
771
+ pathParams: z.ZodObject<
772
+ {
773
+ id: z.ZodString;
774
+ },
775
+ 'strip',
776
+ z.ZodTypeAny,
777
+ {
778
+ id: string;
779
+ },
780
+ {
781
+ id: string;
782
+ }
783
+ >;
784
+ summary: 'Get a file metadata by ID';
785
+ method: 'GET';
786
+ path: '/v2/files/:id';
787
+ responses: {
788
+ 400: z.ZodObject<
789
+ {
790
+ statusCode: z.ZodNumber;
791
+ message: z.ZodString;
792
+ code: z.ZodString;
793
+ details: z.ZodOptional<z.ZodUnknown>;
794
+ timestamp: z.ZodString;
795
+ path: z.ZodString;
796
+ correlationId: z.ZodOptional<z.ZodString>;
797
+ },
798
+ 'strip',
799
+ z.ZodTypeAny,
800
+ {
801
+ code: string;
802
+ path: string;
803
+ message: string;
804
+ statusCode: number;
805
+ timestamp: string;
806
+ details?: unknown;
807
+ correlationId?: string | undefined;
808
+ },
809
+ {
810
+ code: string;
811
+ path: string;
812
+ message: string;
813
+ statusCode: number;
814
+ timestamp: string;
815
+ details?: unknown;
816
+ correlationId?: string | undefined;
817
+ }
818
+ >;
819
+ 401: z.ZodObject<
820
+ {
821
+ statusCode: z.ZodNumber;
822
+ message: z.ZodString;
823
+ code: z.ZodString;
824
+ details: z.ZodOptional<z.ZodUnknown>;
825
+ timestamp: z.ZodString;
826
+ path: z.ZodString;
827
+ correlationId: z.ZodOptional<z.ZodString>;
828
+ },
829
+ 'strip',
830
+ z.ZodTypeAny,
831
+ {
832
+ code: string;
833
+ path: string;
834
+ message: string;
835
+ statusCode: number;
836
+ timestamp: string;
837
+ details?: unknown;
838
+ correlationId?: string | undefined;
839
+ },
840
+ {
841
+ code: string;
842
+ path: string;
843
+ message: string;
844
+ statusCode: number;
845
+ timestamp: string;
846
+ details?: unknown;
847
+ correlationId?: string | undefined;
848
+ }
849
+ >;
850
+ 500: z.ZodObject<
851
+ {
852
+ statusCode: z.ZodNumber;
853
+ message: z.ZodString;
854
+ code: z.ZodString;
855
+ details: z.ZodOptional<z.ZodUnknown>;
856
+ timestamp: z.ZodString;
857
+ path: z.ZodString;
858
+ correlationId: z.ZodOptional<z.ZodString>;
859
+ },
860
+ 'strip',
861
+ z.ZodTypeAny,
862
+ {
863
+ code: string;
864
+ path: string;
865
+ message: string;
866
+ statusCode: number;
867
+ timestamp: string;
868
+ details?: unknown;
869
+ correlationId?: string | undefined;
870
+ },
871
+ {
872
+ code: string;
873
+ path: string;
874
+ message: string;
875
+ statusCode: number;
876
+ timestamp: string;
877
+ details?: unknown;
878
+ correlationId?: string | undefined;
879
+ }
880
+ >;
881
+ 200: z.ZodObject<
882
+ {
883
+ id: z.ZodString;
884
+ originalName: z.ZodString;
885
+ storageKey: z.ZodString;
886
+ mimeType: z.ZodString;
887
+ size: z.ZodNumber;
888
+ location: z.ZodString;
889
+ storageProvider: z.ZodString;
890
+ description: z.ZodNullable<z.ZodString>;
891
+ entityType: z.ZodNullable<z.ZodString>;
892
+ entityId: z.ZodNullable<z.ZodString>;
893
+ userId: z.ZodString;
894
+ createdAt: z.ZodEffects<
895
+ z.ZodUnion<[z.ZodString, z.ZodDate]>,
896
+ string,
897
+ string | Date
898
+ >;
899
+ updatedAt: z.ZodEffects<
900
+ z.ZodUnion<[z.ZodString, z.ZodDate]>,
901
+ string,
902
+ string | Date
903
+ >;
904
+ },
905
+ 'strip',
906
+ z.ZodTypeAny,
907
+ {
908
+ id: string;
909
+ description: string | null;
910
+ createdAt: string;
911
+ updatedAt: string;
912
+ size: number;
913
+ originalName: string;
914
+ storageKey: string;
915
+ mimeType: string;
916
+ location: string;
917
+ storageProvider: string;
918
+ entityType: string | null;
919
+ entityId: string | null;
920
+ userId: string;
921
+ },
922
+ {
923
+ id: string;
924
+ description: string | null;
925
+ createdAt: string | Date;
926
+ updatedAt: string | Date;
927
+ size: number;
928
+ originalName: string;
929
+ storageKey: string;
930
+ mimeType: string;
931
+ location: string;
932
+ storageProvider: string;
933
+ entityType: string | null;
934
+ entityId: string | null;
935
+ userId: string;
936
+ }
937
+ >;
938
+ 404: z.ZodObject<
939
+ {
940
+ statusCode: z.ZodNumber;
941
+ message: z.ZodString;
942
+ code: z.ZodString;
943
+ details: z.ZodOptional<z.ZodUnknown>;
944
+ timestamp: z.ZodString;
945
+ path: z.ZodString;
946
+ correlationId: z.ZodOptional<z.ZodString>;
947
+ },
948
+ 'strip',
949
+ z.ZodTypeAny,
950
+ {
951
+ code: string;
952
+ path: string;
953
+ message: string;
954
+ statusCode: number;
955
+ timestamp: string;
956
+ details?: unknown;
957
+ correlationId?: string | undefined;
958
+ },
959
+ {
960
+ code: string;
961
+ path: string;
962
+ message: string;
963
+ statusCode: number;
964
+ timestamp: string;
965
+ details?: unknown;
966
+ correlationId?: string | undefined;
967
+ }
968
+ >;
969
+ 403: z.ZodObject<
970
+ {
971
+ statusCode: z.ZodNumber;
972
+ message: z.ZodString;
973
+ code: z.ZodString;
974
+ details: z.ZodOptional<z.ZodUnknown>;
975
+ timestamp: z.ZodString;
976
+ path: z.ZodString;
977
+ correlationId: z.ZodOptional<z.ZodString>;
978
+ },
979
+ 'strip',
980
+ z.ZodTypeAny,
981
+ {
982
+ code: string;
983
+ path: string;
984
+ message: string;
985
+ statusCode: number;
986
+ timestamp: string;
987
+ details?: unknown;
988
+ correlationId?: string | undefined;
989
+ },
990
+ {
991
+ code: string;
992
+ path: string;
993
+ message: string;
994
+ statusCode: number;
995
+ timestamp: string;
996
+ details?: unknown;
997
+ correlationId?: string | undefined;
998
+ }
999
+ >;
1000
+ };
1001
+ };
1002
+ getDownloadUrl: {
1003
+ metadata: {
1004
+ tags: string[];
1005
+ };
1006
+ pathParams: z.ZodObject<
1007
+ {
1008
+ id: z.ZodString;
1009
+ },
1010
+ 'strip',
1011
+ z.ZodTypeAny,
1012
+ {
1013
+ id: string;
1014
+ },
1015
+ {
1016
+ id: string;
1017
+ }
1018
+ >;
1019
+ summary: 'Get a pre-signed URL to download a file';
1020
+ method: 'GET';
1021
+ path: '/v2/files/:id/download';
1022
+ responses: {
1023
+ 400: z.ZodObject<
1024
+ {
1025
+ statusCode: z.ZodNumber;
1026
+ message: z.ZodString;
1027
+ code: z.ZodString;
1028
+ details: z.ZodOptional<z.ZodUnknown>;
1029
+ timestamp: z.ZodString;
1030
+ path: z.ZodString;
1031
+ correlationId: z.ZodOptional<z.ZodString>;
1032
+ },
1033
+ 'strip',
1034
+ z.ZodTypeAny,
1035
+ {
1036
+ code: string;
1037
+ path: string;
1038
+ message: string;
1039
+ statusCode: number;
1040
+ timestamp: string;
1041
+ details?: unknown;
1042
+ correlationId?: string | undefined;
1043
+ },
1044
+ {
1045
+ code: string;
1046
+ path: string;
1047
+ message: string;
1048
+ statusCode: number;
1049
+ timestamp: string;
1050
+ details?: unknown;
1051
+ correlationId?: string | undefined;
1052
+ }
1053
+ >;
1054
+ 401: z.ZodObject<
1055
+ {
1056
+ statusCode: z.ZodNumber;
1057
+ message: z.ZodString;
1058
+ code: z.ZodString;
1059
+ details: z.ZodOptional<z.ZodUnknown>;
1060
+ timestamp: z.ZodString;
1061
+ path: z.ZodString;
1062
+ correlationId: z.ZodOptional<z.ZodString>;
1063
+ },
1064
+ 'strip',
1065
+ z.ZodTypeAny,
1066
+ {
1067
+ code: string;
1068
+ path: string;
1069
+ message: string;
1070
+ statusCode: number;
1071
+ timestamp: string;
1072
+ details?: unknown;
1073
+ correlationId?: string | undefined;
1074
+ },
1075
+ {
1076
+ code: string;
1077
+ path: string;
1078
+ message: string;
1079
+ statusCode: number;
1080
+ timestamp: string;
1081
+ details?: unknown;
1082
+ correlationId?: string | undefined;
1083
+ }
1084
+ >;
1085
+ 500: z.ZodObject<
1086
+ {
1087
+ statusCode: z.ZodNumber;
1088
+ message: z.ZodString;
1089
+ code: z.ZodString;
1090
+ details: z.ZodOptional<z.ZodUnknown>;
1091
+ timestamp: z.ZodString;
1092
+ path: z.ZodString;
1093
+ correlationId: z.ZodOptional<z.ZodString>;
1094
+ },
1095
+ 'strip',
1096
+ z.ZodTypeAny,
1097
+ {
1098
+ code: string;
1099
+ path: string;
1100
+ message: string;
1101
+ statusCode: number;
1102
+ timestamp: string;
1103
+ details?: unknown;
1104
+ correlationId?: string | undefined;
1105
+ },
1106
+ {
1107
+ code: string;
1108
+ path: string;
1109
+ message: string;
1110
+ statusCode: number;
1111
+ timestamp: string;
1112
+ details?: unknown;
1113
+ correlationId?: string | undefined;
1114
+ }
1115
+ >;
1116
+ 200: z.ZodObject<
1117
+ {
1118
+ url: z.ZodString;
1119
+ mimeType: z.ZodString;
1120
+ },
1121
+ 'strip',
1122
+ z.ZodTypeAny,
1123
+ {
1124
+ mimeType: string;
1125
+ url: string;
1126
+ },
1127
+ {
1128
+ mimeType: string;
1129
+ url: string;
1130
+ }
1131
+ >;
1132
+ 404: z.ZodObject<
1133
+ {
1134
+ statusCode: z.ZodNumber;
1135
+ message: z.ZodString;
1136
+ code: z.ZodString;
1137
+ details: z.ZodOptional<z.ZodUnknown>;
1138
+ timestamp: z.ZodString;
1139
+ path: z.ZodString;
1140
+ correlationId: z.ZodOptional<z.ZodString>;
1141
+ },
1142
+ 'strip',
1143
+ z.ZodTypeAny,
1144
+ {
1145
+ code: string;
1146
+ path: string;
1147
+ message: string;
1148
+ statusCode: number;
1149
+ timestamp: string;
1150
+ details?: unknown;
1151
+ correlationId?: string | undefined;
1152
+ },
1153
+ {
1154
+ code: string;
1155
+ path: string;
1156
+ message: string;
1157
+ statusCode: number;
1158
+ timestamp: string;
1159
+ details?: unknown;
1160
+ correlationId?: string | undefined;
1161
+ }
1162
+ >;
1163
+ 403: z.ZodObject<
1164
+ {
1165
+ statusCode: z.ZodNumber;
1166
+ message: z.ZodString;
1167
+ code: z.ZodString;
1168
+ details: z.ZodOptional<z.ZodUnknown>;
1169
+ timestamp: z.ZodString;
1170
+ path: z.ZodString;
1171
+ correlationId: z.ZodOptional<z.ZodString>;
1172
+ },
1173
+ 'strip',
1174
+ z.ZodTypeAny,
1175
+ {
1176
+ code: string;
1177
+ path: string;
1178
+ message: string;
1179
+ statusCode: number;
1180
+ timestamp: string;
1181
+ details?: unknown;
1182
+ correlationId?: string | undefined;
1183
+ },
1184
+ {
1185
+ code: string;
1186
+ path: string;
1187
+ message: string;
1188
+ statusCode: number;
1189
+ timestamp: string;
1190
+ details?: unknown;
1191
+ correlationId?: string | undefined;
1192
+ }
1193
+ >;
1194
+ };
1195
+ };
1196
+ update: {
1197
+ metadata: {
1198
+ tags: string[];
1199
+ };
1200
+ pathParams: z.ZodObject<
1201
+ {
1202
+ id: z.ZodString;
1203
+ },
1204
+ 'strip',
1205
+ z.ZodTypeAny,
1206
+ {
1207
+ id: string;
1208
+ },
1209
+ {
1210
+ id: string;
1211
+ }
1212
+ >;
1213
+ summary: 'Update a file metadata';
1214
+ method: 'PATCH';
1215
+ body: z.ZodObject<
1216
+ {
1217
+ description: z.ZodOptional<z.ZodString>;
1218
+ },
1219
+ 'strip',
1220
+ z.ZodTypeAny,
1221
+ {
1222
+ description?: string | undefined;
1223
+ },
1224
+ {
1225
+ description?: string | undefined;
1226
+ }
1227
+ >;
1228
+ path: '/v2/files/:id';
1229
+ responses: {
1230
+ 400: z.ZodObject<
1231
+ {
1232
+ statusCode: z.ZodNumber;
1233
+ message: z.ZodString;
1234
+ code: z.ZodString;
1235
+ details: z.ZodOptional<z.ZodUnknown>;
1236
+ timestamp: z.ZodString;
1237
+ path: z.ZodString;
1238
+ correlationId: z.ZodOptional<z.ZodString>;
1239
+ },
1240
+ 'strip',
1241
+ z.ZodTypeAny,
1242
+ {
1243
+ code: string;
1244
+ path: string;
1245
+ message: string;
1246
+ statusCode: number;
1247
+ timestamp: string;
1248
+ details?: unknown;
1249
+ correlationId?: string | undefined;
1250
+ },
1251
+ {
1252
+ code: string;
1253
+ path: string;
1254
+ message: string;
1255
+ statusCode: number;
1256
+ timestamp: string;
1257
+ details?: unknown;
1258
+ correlationId?: string | undefined;
1259
+ }
1260
+ >;
1261
+ 401: z.ZodObject<
1262
+ {
1263
+ statusCode: z.ZodNumber;
1264
+ message: z.ZodString;
1265
+ code: z.ZodString;
1266
+ details: z.ZodOptional<z.ZodUnknown>;
1267
+ timestamp: z.ZodString;
1268
+ path: z.ZodString;
1269
+ correlationId: z.ZodOptional<z.ZodString>;
1270
+ },
1271
+ 'strip',
1272
+ z.ZodTypeAny,
1273
+ {
1274
+ code: string;
1275
+ path: string;
1276
+ message: string;
1277
+ statusCode: number;
1278
+ timestamp: string;
1279
+ details?: unknown;
1280
+ correlationId?: string | undefined;
1281
+ },
1282
+ {
1283
+ code: string;
1284
+ path: string;
1285
+ message: string;
1286
+ statusCode: number;
1287
+ timestamp: string;
1288
+ details?: unknown;
1289
+ correlationId?: string | undefined;
1290
+ }
1291
+ >;
1292
+ 500: z.ZodObject<
1293
+ {
1294
+ statusCode: z.ZodNumber;
1295
+ message: z.ZodString;
1296
+ code: z.ZodString;
1297
+ details: z.ZodOptional<z.ZodUnknown>;
1298
+ timestamp: z.ZodString;
1299
+ path: z.ZodString;
1300
+ correlationId: z.ZodOptional<z.ZodString>;
1301
+ },
1302
+ 'strip',
1303
+ z.ZodTypeAny,
1304
+ {
1305
+ code: string;
1306
+ path: string;
1307
+ message: string;
1308
+ statusCode: number;
1309
+ timestamp: string;
1310
+ details?: unknown;
1311
+ correlationId?: string | undefined;
1312
+ },
1313
+ {
1314
+ code: string;
1315
+ path: string;
1316
+ message: string;
1317
+ statusCode: number;
1318
+ timestamp: string;
1319
+ details?: unknown;
1320
+ correlationId?: string | undefined;
1321
+ }
1322
+ >;
1323
+ 200: z.ZodObject<
1324
+ {
1325
+ id: z.ZodString;
1326
+ originalName: z.ZodString;
1327
+ storageKey: z.ZodString;
1328
+ mimeType: z.ZodString;
1329
+ size: z.ZodNumber;
1330
+ location: z.ZodString;
1331
+ storageProvider: z.ZodString;
1332
+ description: z.ZodNullable<z.ZodString>;
1333
+ entityType: z.ZodNullable<z.ZodString>;
1334
+ entityId: z.ZodNullable<z.ZodString>;
1335
+ userId: z.ZodString;
1336
+ createdAt: z.ZodEffects<
1337
+ z.ZodUnion<[z.ZodString, z.ZodDate]>,
1338
+ string,
1339
+ string | Date
1340
+ >;
1341
+ updatedAt: z.ZodEffects<
1342
+ z.ZodUnion<[z.ZodString, z.ZodDate]>,
1343
+ string,
1344
+ string | Date
1345
+ >;
1346
+ },
1347
+ 'strip',
1348
+ z.ZodTypeAny,
1349
+ {
1350
+ id: string;
1351
+ description: string | null;
1352
+ createdAt: string;
1353
+ updatedAt: string;
1354
+ size: number;
1355
+ originalName: string;
1356
+ storageKey: string;
1357
+ mimeType: string;
1358
+ location: string;
1359
+ storageProvider: string;
1360
+ entityType: string | null;
1361
+ entityId: string | null;
1362
+ userId: string;
1363
+ },
1364
+ {
1365
+ id: string;
1366
+ description: string | null;
1367
+ createdAt: string | Date;
1368
+ updatedAt: string | Date;
1369
+ size: number;
1370
+ originalName: string;
1371
+ storageKey: string;
1372
+ mimeType: string;
1373
+ location: string;
1374
+ storageProvider: string;
1375
+ entityType: string | null;
1376
+ entityId: string | null;
1377
+ userId: string;
1378
+ }
1379
+ >;
1380
+ 404: z.ZodObject<
1381
+ {
1382
+ statusCode: z.ZodNumber;
1383
+ message: z.ZodString;
1384
+ code: z.ZodString;
1385
+ details: z.ZodOptional<z.ZodUnknown>;
1386
+ timestamp: z.ZodString;
1387
+ path: z.ZodString;
1388
+ correlationId: z.ZodOptional<z.ZodString>;
1389
+ },
1390
+ 'strip',
1391
+ z.ZodTypeAny,
1392
+ {
1393
+ code: string;
1394
+ path: string;
1395
+ message: string;
1396
+ statusCode: number;
1397
+ timestamp: string;
1398
+ details?: unknown;
1399
+ correlationId?: string | undefined;
1400
+ },
1401
+ {
1402
+ code: string;
1403
+ path: string;
1404
+ message: string;
1405
+ statusCode: number;
1406
+ timestamp: string;
1407
+ details?: unknown;
1408
+ correlationId?: string | undefined;
1409
+ }
1410
+ >;
1411
+ 403: z.ZodObject<
1412
+ {
1413
+ statusCode: z.ZodNumber;
1414
+ message: z.ZodString;
1415
+ code: z.ZodString;
1416
+ details: z.ZodOptional<z.ZodUnknown>;
1417
+ timestamp: z.ZodString;
1418
+ path: z.ZodString;
1419
+ correlationId: z.ZodOptional<z.ZodString>;
1420
+ },
1421
+ 'strip',
1422
+ z.ZodTypeAny,
1423
+ {
1424
+ code: string;
1425
+ path: string;
1426
+ message: string;
1427
+ statusCode: number;
1428
+ timestamp: string;
1429
+ details?: unknown;
1430
+ correlationId?: string | undefined;
1431
+ },
1432
+ {
1433
+ code: string;
1434
+ path: string;
1435
+ message: string;
1436
+ statusCode: number;
1437
+ timestamp: string;
1438
+ details?: unknown;
1439
+ correlationId?: string | undefined;
1440
+ }
1441
+ >;
1442
+ };
1443
+ };
1444
+ remove: {
1445
+ metadata: {
1446
+ tags: string[];
1447
+ };
1448
+ pathParams: z.ZodObject<
1449
+ {
1450
+ id: z.ZodString;
1451
+ },
1452
+ 'strip',
1453
+ z.ZodTypeAny,
1454
+ {
1455
+ id: string;
1456
+ },
1457
+ {
1458
+ id: string;
1459
+ }
1460
+ >;
1461
+ summary: 'Delete a file';
1462
+ method: 'DELETE';
1463
+ body: z.ZodObject<{}, 'strip', z.ZodTypeAny, {}, {}>;
1464
+ path: '/v2/files/:id';
1465
+ responses: {
1466
+ 400: z.ZodObject<
1467
+ {
1468
+ statusCode: z.ZodNumber;
1469
+ message: z.ZodString;
1470
+ code: z.ZodString;
1471
+ details: z.ZodOptional<z.ZodUnknown>;
1472
+ timestamp: z.ZodString;
1473
+ path: z.ZodString;
1474
+ correlationId: z.ZodOptional<z.ZodString>;
1475
+ },
1476
+ 'strip',
1477
+ z.ZodTypeAny,
1478
+ {
1479
+ code: string;
1480
+ path: string;
1481
+ message: string;
1482
+ statusCode: number;
1483
+ timestamp: string;
1484
+ details?: unknown;
1485
+ correlationId?: string | undefined;
1486
+ },
1487
+ {
1488
+ code: string;
1489
+ path: string;
1490
+ message: string;
1491
+ statusCode: number;
1492
+ timestamp: string;
1493
+ details?: unknown;
1494
+ correlationId?: string | undefined;
1495
+ }
1496
+ >;
1497
+ 401: z.ZodObject<
1498
+ {
1499
+ statusCode: z.ZodNumber;
1500
+ message: z.ZodString;
1501
+ code: z.ZodString;
1502
+ details: z.ZodOptional<z.ZodUnknown>;
1503
+ timestamp: z.ZodString;
1504
+ path: z.ZodString;
1505
+ correlationId: z.ZodOptional<z.ZodString>;
1506
+ },
1507
+ 'strip',
1508
+ z.ZodTypeAny,
1509
+ {
1510
+ code: string;
1511
+ path: string;
1512
+ message: string;
1513
+ statusCode: number;
1514
+ timestamp: string;
1515
+ details?: unknown;
1516
+ correlationId?: string | undefined;
1517
+ },
1518
+ {
1519
+ code: string;
1520
+ path: string;
1521
+ message: string;
1522
+ statusCode: number;
1523
+ timestamp: string;
1524
+ details?: unknown;
1525
+ correlationId?: string | undefined;
1526
+ }
1527
+ >;
1528
+ 500: z.ZodObject<
1529
+ {
1530
+ statusCode: z.ZodNumber;
1531
+ message: z.ZodString;
1532
+ code: z.ZodString;
1533
+ details: z.ZodOptional<z.ZodUnknown>;
1534
+ timestamp: z.ZodString;
1535
+ path: z.ZodString;
1536
+ correlationId: z.ZodOptional<z.ZodString>;
1537
+ },
1538
+ 'strip',
1539
+ z.ZodTypeAny,
1540
+ {
1541
+ code: string;
1542
+ path: string;
1543
+ message: string;
1544
+ statusCode: number;
1545
+ timestamp: string;
1546
+ details?: unknown;
1547
+ correlationId?: string | undefined;
1548
+ },
1549
+ {
1550
+ code: string;
1551
+ path: string;
1552
+ message: string;
1553
+ statusCode: number;
1554
+ timestamp: string;
1555
+ details?: unknown;
1556
+ correlationId?: string | undefined;
1557
+ }
1558
+ >;
1559
+ 204: z.ZodUndefined;
1560
+ 404: z.ZodObject<
1561
+ {
1562
+ statusCode: z.ZodNumber;
1563
+ message: z.ZodString;
1564
+ code: z.ZodString;
1565
+ details: z.ZodOptional<z.ZodUnknown>;
1566
+ timestamp: z.ZodString;
1567
+ path: z.ZodString;
1568
+ correlationId: z.ZodOptional<z.ZodString>;
1569
+ },
1570
+ 'strip',
1571
+ z.ZodTypeAny,
1572
+ {
1573
+ code: string;
1574
+ path: string;
1575
+ message: string;
1576
+ statusCode: number;
1577
+ timestamp: string;
1578
+ details?: unknown;
1579
+ correlationId?: string | undefined;
1580
+ },
1581
+ {
1582
+ code: string;
1583
+ path: string;
1584
+ message: string;
1585
+ statusCode: number;
1586
+ timestamp: string;
1587
+ details?: unknown;
1588
+ correlationId?: string | undefined;
1589
+ }
1590
+ >;
1591
+ 403: z.ZodObject<
1592
+ {
1593
+ statusCode: z.ZodNumber;
1594
+ message: z.ZodString;
1595
+ code: z.ZodString;
1596
+ details: z.ZodOptional<z.ZodUnknown>;
1597
+ timestamp: z.ZodString;
1598
+ path: z.ZodString;
1599
+ correlationId: z.ZodOptional<z.ZodString>;
1600
+ },
1601
+ 'strip',
1602
+ z.ZodTypeAny,
1603
+ {
1604
+ code: string;
1605
+ path: string;
1606
+ message: string;
1607
+ statusCode: number;
1608
+ timestamp: string;
1609
+ details?: unknown;
1610
+ correlationId?: string | undefined;
1611
+ },
1612
+ {
1613
+ code: string;
1614
+ path: string;
1615
+ message: string;
1616
+ statusCode: number;
1617
+ timestamp: string;
1618
+ details?: unknown;
1619
+ correlationId?: string | undefined;
1620
+ }
1621
+ >;
1256
1622
  };
1623
+ };
1257
1624
  };
1258
- //# sourceMappingURL=files.contract.d.ts.map
1625
+ //# sourceMappingURL=files.contract.d.ts.map