@darco2903/cdn-api 1.0.7-beta.0 → 1.0.7-beta.1

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 (71) hide show
  1. package/README.md +49 -9
  2. package/dist/client.d.ts +1039 -0
  3. package/{src/client.ts → dist/client.js} +15 -18
  4. package/{src/common.ts → dist/common.d.ts} +4 -4
  5. package/dist/common.js +4 -0
  6. package/dist/consts.d.ts +5 -0
  7. package/{src/consts.ts → dist/consts.js} +4 -8
  8. package/dist/contract/auth.d.ts +35 -0
  9. package/{src/contract/auth.ts → dist/contract/auth.js} +18 -22
  10. package/dist/contract/endpoint.d.ts +396 -0
  11. package/{src/contract/endpoint.ts → dist/contract/endpoint.js} +42 -53
  12. package/dist/contract/index.d.ts +2039 -0
  13. package/{src/contract/index.ts → dist/contract/index.js} +22 -27
  14. package/dist/contract/key.d.ts +15 -0
  15. package/{src/contract/key.ts → dist/contract/key.js} +15 -19
  16. package/dist/contract/list.d.ts +134 -0
  17. package/{src/contract/list.ts → dist/contract/list.js} +28 -30
  18. package/dist/contract/record.d.ts +412 -0
  19. package/{src/contract/record.ts → dist/contract/record.js} +71 -82
  20. package/dist/contract/service.d.ts +240 -0
  21. package/{src/contract/service.ts → dist/contract/service.js} +33 -44
  22. package/dist/contract/stats.d.ts +32 -0
  23. package/{src/contract/stats.ts → dist/contract/stats.js} +34 -36
  24. package/dist/contract/upload.d.ts +790 -0
  25. package/{src/contract/upload.ts → dist/contract/upload.js} +78 -82
  26. package/{src/index.ts → dist/index.d.ts} +2 -2
  27. package/dist/index.js +2 -0
  28. package/dist/server.d.ts +10 -0
  29. package/dist/server.js +58 -0
  30. package/{src/socket/index.ts → dist/socket/index.d.ts} +2 -2
  31. package/dist/socket/index.js +2 -0
  32. package/dist/socket/interface/index.d.ts +5 -0
  33. package/dist/socket/interface/index.js +1 -0
  34. package/{src/socket/interface/template.ts → dist/socket/interface/template.d.ts} +6 -7
  35. package/dist/socket/interface/template.js +1 -0
  36. package/dist/socket/types.d.ts +3 -0
  37. package/dist/socket/types.js +1 -0
  38. package/dist/types/creds.d.ts +8 -0
  39. package/{src/types/creds.ts → dist/types/creds.js} +5 -7
  40. package/dist/types/endpoint.d.ts +25 -0
  41. package/{src/types/endpoint.ts → dist/types/endpoint.js} +12 -19
  42. package/{src/types/index.ts → dist/types/index.d.ts} +6 -6
  43. package/dist/types/index.js +6 -0
  44. package/dist/types/jwt.d.ts +128 -0
  45. package/dist/types/jwt.js +33 -0
  46. package/dist/types/record.d.ts +97 -0
  47. package/{src/types/record.ts → dist/types/record.js} +25 -35
  48. package/dist/types/stats.d.ts +15 -0
  49. package/{src/types/stats.ts → dist/types/stats.js} +6 -9
  50. package/dist/types/upload.d.ts +45 -0
  51. package/{src/types/upload.ts → dist/types/upload.js} +12 -18
  52. package/dist/types.d.ts +32 -0
  53. package/dist/types.js +27 -0
  54. package/dist/uploader.d.ts +1044 -0
  55. package/{src/uploader.ts → dist/uploader.js} +72 -99
  56. package/package.json +2 -2
  57. package/.gitattributes +0 -2
  58. package/.github/workflows/release.yml +0 -116
  59. package/TODO.md +0 -0
  60. package/prettier.config.js +0 -24
  61. package/src/server.ts +0 -89
  62. package/src/socket/interface/index.ts +0 -12
  63. package/src/socket/types.ts +0 -7
  64. package/src/types/jwt.ts +0 -78
  65. package/src/types.ts +0 -38
  66. package/tests/keys/private.pem +0 -5
  67. package/tests/keys/public.pem +0 -4
  68. package/tests/keys.ts +0 -11
  69. package/tests/tsconfig.json +0 -12
  70. package/tests/vitest/jwt.test.ts +0 -38
  71. package/tsconfig.json +0 -14
@@ -0,0 +1,790 @@
1
+ import z from "zod";
2
+ declare const _default: {
3
+ upload: {
4
+ body: z.ZodObject<{
5
+ file: z.ZodAny;
6
+ data: z.ZodEffects<z.ZodString, {
7
+ filename: string;
8
+ active: boolean;
9
+ visible: boolean;
10
+ role: number;
11
+ }, string>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ data: {
14
+ filename: string;
15
+ active: boolean;
16
+ visible: boolean;
17
+ role: number;
18
+ };
19
+ file?: any;
20
+ }, {
21
+ data: string;
22
+ file?: any;
23
+ }>;
24
+ method: "POST";
25
+ contentType: "multipart/form-data";
26
+ path: "/upload";
27
+ headers: z.ZodObject<{
28
+ authorization: z.ZodOptional<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ authorization?: string | undefined;
31
+ }, {
32
+ authorization?: string | undefined;
33
+ }>;
34
+ responses: {
35
+ 200: z.ZodType<null, z.ZodTypeDef, null>;
36
+ 400: z.ZodUnion<[z.ZodObject<{
37
+ name: z.ZodLiteral<"ZodError">;
38
+ issues: z.ZodArray<z.ZodObject<{
39
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
40
+ message: z.ZodOptional<z.ZodString>;
41
+ code: z.ZodNativeEnum<{
42
+ invalid_type: "invalid_type";
43
+ invalid_literal: "invalid_literal";
44
+ custom: "custom";
45
+ invalid_union: "invalid_union";
46
+ invalid_union_discriminator: "invalid_union_discriminator";
47
+ invalid_enum_value: "invalid_enum_value";
48
+ unrecognized_keys: "unrecognized_keys";
49
+ invalid_arguments: "invalid_arguments";
50
+ invalid_return_type: "invalid_return_type";
51
+ invalid_date: "invalid_date";
52
+ invalid_string: "invalid_string";
53
+ too_small: "too_small";
54
+ too_big: "too_big";
55
+ invalid_intersection_types: "invalid_intersection_types";
56
+ not_multiple_of: "not_multiple_of";
57
+ not_finite: "not_finite";
58
+ }>;
59
+ }, "strip", z.ZodAny, z.objectOutputType<{
60
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
61
+ message: z.ZodOptional<z.ZodString>;
62
+ code: z.ZodNativeEnum<{
63
+ invalid_type: "invalid_type";
64
+ invalid_literal: "invalid_literal";
65
+ custom: "custom";
66
+ invalid_union: "invalid_union";
67
+ invalid_union_discriminator: "invalid_union_discriminator";
68
+ invalid_enum_value: "invalid_enum_value";
69
+ unrecognized_keys: "unrecognized_keys";
70
+ invalid_arguments: "invalid_arguments";
71
+ invalid_return_type: "invalid_return_type";
72
+ invalid_date: "invalid_date";
73
+ invalid_string: "invalid_string";
74
+ too_small: "too_small";
75
+ too_big: "too_big";
76
+ invalid_intersection_types: "invalid_intersection_types";
77
+ not_multiple_of: "not_multiple_of";
78
+ not_finite: "not_finite";
79
+ }>;
80
+ }, z.ZodAny, "strip">, z.objectInputType<{
81
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
82
+ message: z.ZodOptional<z.ZodString>;
83
+ code: z.ZodNativeEnum<{
84
+ invalid_type: "invalid_type";
85
+ invalid_literal: "invalid_literal";
86
+ custom: "custom";
87
+ invalid_union: "invalid_union";
88
+ invalid_union_discriminator: "invalid_union_discriminator";
89
+ invalid_enum_value: "invalid_enum_value";
90
+ unrecognized_keys: "unrecognized_keys";
91
+ invalid_arguments: "invalid_arguments";
92
+ invalid_return_type: "invalid_return_type";
93
+ invalid_date: "invalid_date";
94
+ invalid_string: "invalid_string";
95
+ too_small: "too_small";
96
+ too_big: "too_big";
97
+ invalid_intersection_types: "invalid_intersection_types";
98
+ not_multiple_of: "not_multiple_of";
99
+ not_finite: "not_finite";
100
+ }>;
101
+ }, z.ZodAny, "strip">>, "many">;
102
+ }, "strip", z.ZodTypeAny, {
103
+ name: "ZodError";
104
+ issues: z.objectOutputType<{
105
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
106
+ message: z.ZodOptional<z.ZodString>;
107
+ code: z.ZodNativeEnum<{
108
+ invalid_type: "invalid_type";
109
+ invalid_literal: "invalid_literal";
110
+ custom: "custom";
111
+ invalid_union: "invalid_union";
112
+ invalid_union_discriminator: "invalid_union_discriminator";
113
+ invalid_enum_value: "invalid_enum_value";
114
+ unrecognized_keys: "unrecognized_keys";
115
+ invalid_arguments: "invalid_arguments";
116
+ invalid_return_type: "invalid_return_type";
117
+ invalid_date: "invalid_date";
118
+ invalid_string: "invalid_string";
119
+ too_small: "too_small";
120
+ too_big: "too_big";
121
+ invalid_intersection_types: "invalid_intersection_types";
122
+ not_multiple_of: "not_multiple_of";
123
+ not_finite: "not_finite";
124
+ }>;
125
+ }, z.ZodAny, "strip">[];
126
+ }, {
127
+ name: "ZodError";
128
+ issues: z.objectInputType<{
129
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
130
+ message: z.ZodOptional<z.ZodString>;
131
+ code: z.ZodNativeEnum<{
132
+ invalid_type: "invalid_type";
133
+ invalid_literal: "invalid_literal";
134
+ custom: "custom";
135
+ invalid_union: "invalid_union";
136
+ invalid_union_discriminator: "invalid_union_discriminator";
137
+ invalid_enum_value: "invalid_enum_value";
138
+ unrecognized_keys: "unrecognized_keys";
139
+ invalid_arguments: "invalid_arguments";
140
+ invalid_return_type: "invalid_return_type";
141
+ invalid_date: "invalid_date";
142
+ invalid_string: "invalid_string";
143
+ too_small: "too_small";
144
+ too_big: "too_big";
145
+ invalid_intersection_types: "invalid_intersection_types";
146
+ not_multiple_of: "not_multiple_of";
147
+ not_finite: "not_finite";
148
+ }>;
149
+ }, z.ZodAny, "strip">[];
150
+ }>, z.ZodObject<{
151
+ code: z.ZodType<"BAD_REQUEST", z.ZodTypeDef, "BAD_REQUEST">;
152
+ error: z.ZodType<string, z.ZodTypeDef, string>;
153
+ name: z.ZodLiteral<"APIError">;
154
+ }, "strip", z.ZodTypeAny, {
155
+ code: "BAD_REQUEST";
156
+ name: "APIError";
157
+ error: string;
158
+ }, {
159
+ code: "BAD_REQUEST";
160
+ name: "APIError";
161
+ error: string;
162
+ }>]>;
163
+ 401: z.ZodObject<{
164
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
165
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
166
+ name: z.ZodLiteral<"APIError">;
167
+ }, "strip", z.ZodTypeAny, {
168
+ code: "UNAUTHORIZED";
169
+ name: "APIError";
170
+ error: "Unauthorized";
171
+ }, {
172
+ code: "UNAUTHORIZED";
173
+ name: "APIError";
174
+ error: "Unauthorized";
175
+ }>;
176
+ 403: z.ZodObject<{
177
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
178
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
179
+ name: z.ZodLiteral<"APIError">;
180
+ }, "strip", z.ZodTypeAny, {
181
+ code: "FORBIDDEN";
182
+ name: "APIError";
183
+ error: "Forbidden";
184
+ }, {
185
+ code: "FORBIDDEN";
186
+ name: "APIError";
187
+ error: "Forbidden";
188
+ }>;
189
+ 500: z.ZodObject<{
190
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
191
+ error: z.ZodType<string, z.ZodTypeDef, string>;
192
+ name: z.ZodLiteral<"APIError">;
193
+ }, "strip", z.ZodTypeAny, {
194
+ code: "INTERNAL_SERVER_ERROR";
195
+ name: "APIError";
196
+ error: string;
197
+ }, {
198
+ code: "INTERNAL_SERVER_ERROR";
199
+ name: "APIError";
200
+ error: string;
201
+ }>;
202
+ };
203
+ };
204
+ uploadInit: {
205
+ body: z.ZodObject<{
206
+ filename: z.ZodString;
207
+ role: z.ZodNumber;
208
+ visible: z.ZodBoolean;
209
+ active: z.ZodBoolean;
210
+ } & {
211
+ size: z.ZodNumber;
212
+ mimeType: z.ZodString;
213
+ parts: z.ZodNumber;
214
+ }, "strip", z.ZodTypeAny, {
215
+ filename: string;
216
+ active: boolean;
217
+ visible: boolean;
218
+ role: number;
219
+ size: number;
220
+ mimeType: string;
221
+ parts: number;
222
+ }, {
223
+ filename: string;
224
+ active: boolean;
225
+ visible: boolean;
226
+ role: number;
227
+ size: number;
228
+ mimeType: string;
229
+ parts: number;
230
+ }>;
231
+ method: "POST";
232
+ path: "/upload/init";
233
+ responses: {
234
+ 200: z.ZodType<{
235
+ uploadId: string;
236
+ }, z.ZodTypeDef, {
237
+ uploadId: string;
238
+ }>;
239
+ 400: z.ZodUnion<[z.ZodObject<{
240
+ name: z.ZodLiteral<"ZodError">;
241
+ issues: z.ZodArray<z.ZodObject<{
242
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
243
+ message: z.ZodOptional<z.ZodString>;
244
+ code: z.ZodNativeEnum<{
245
+ invalid_type: "invalid_type";
246
+ invalid_literal: "invalid_literal";
247
+ custom: "custom";
248
+ invalid_union: "invalid_union";
249
+ invalid_union_discriminator: "invalid_union_discriminator";
250
+ invalid_enum_value: "invalid_enum_value";
251
+ unrecognized_keys: "unrecognized_keys";
252
+ invalid_arguments: "invalid_arguments";
253
+ invalid_return_type: "invalid_return_type";
254
+ invalid_date: "invalid_date";
255
+ invalid_string: "invalid_string";
256
+ too_small: "too_small";
257
+ too_big: "too_big";
258
+ invalid_intersection_types: "invalid_intersection_types";
259
+ not_multiple_of: "not_multiple_of";
260
+ not_finite: "not_finite";
261
+ }>;
262
+ }, "strip", z.ZodAny, z.objectOutputType<{
263
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
264
+ message: z.ZodOptional<z.ZodString>;
265
+ code: z.ZodNativeEnum<{
266
+ invalid_type: "invalid_type";
267
+ invalid_literal: "invalid_literal";
268
+ custom: "custom";
269
+ invalid_union: "invalid_union";
270
+ invalid_union_discriminator: "invalid_union_discriminator";
271
+ invalid_enum_value: "invalid_enum_value";
272
+ unrecognized_keys: "unrecognized_keys";
273
+ invalid_arguments: "invalid_arguments";
274
+ invalid_return_type: "invalid_return_type";
275
+ invalid_date: "invalid_date";
276
+ invalid_string: "invalid_string";
277
+ too_small: "too_small";
278
+ too_big: "too_big";
279
+ invalid_intersection_types: "invalid_intersection_types";
280
+ not_multiple_of: "not_multiple_of";
281
+ not_finite: "not_finite";
282
+ }>;
283
+ }, z.ZodAny, "strip">, z.objectInputType<{
284
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
285
+ message: z.ZodOptional<z.ZodString>;
286
+ code: z.ZodNativeEnum<{
287
+ invalid_type: "invalid_type";
288
+ invalid_literal: "invalid_literal";
289
+ custom: "custom";
290
+ invalid_union: "invalid_union";
291
+ invalid_union_discriminator: "invalid_union_discriminator";
292
+ invalid_enum_value: "invalid_enum_value";
293
+ unrecognized_keys: "unrecognized_keys";
294
+ invalid_arguments: "invalid_arguments";
295
+ invalid_return_type: "invalid_return_type";
296
+ invalid_date: "invalid_date";
297
+ invalid_string: "invalid_string";
298
+ too_small: "too_small";
299
+ too_big: "too_big";
300
+ invalid_intersection_types: "invalid_intersection_types";
301
+ not_multiple_of: "not_multiple_of";
302
+ not_finite: "not_finite";
303
+ }>;
304
+ }, z.ZodAny, "strip">>, "many">;
305
+ }, "strip", z.ZodTypeAny, {
306
+ name: "ZodError";
307
+ issues: z.objectOutputType<{
308
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
309
+ message: z.ZodOptional<z.ZodString>;
310
+ code: z.ZodNativeEnum<{
311
+ invalid_type: "invalid_type";
312
+ invalid_literal: "invalid_literal";
313
+ custom: "custom";
314
+ invalid_union: "invalid_union";
315
+ invalid_union_discriminator: "invalid_union_discriminator";
316
+ invalid_enum_value: "invalid_enum_value";
317
+ unrecognized_keys: "unrecognized_keys";
318
+ invalid_arguments: "invalid_arguments";
319
+ invalid_return_type: "invalid_return_type";
320
+ invalid_date: "invalid_date";
321
+ invalid_string: "invalid_string";
322
+ too_small: "too_small";
323
+ too_big: "too_big";
324
+ invalid_intersection_types: "invalid_intersection_types";
325
+ not_multiple_of: "not_multiple_of";
326
+ not_finite: "not_finite";
327
+ }>;
328
+ }, z.ZodAny, "strip">[];
329
+ }, {
330
+ name: "ZodError";
331
+ issues: z.objectInputType<{
332
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
333
+ message: z.ZodOptional<z.ZodString>;
334
+ code: z.ZodNativeEnum<{
335
+ invalid_type: "invalid_type";
336
+ invalid_literal: "invalid_literal";
337
+ custom: "custom";
338
+ invalid_union: "invalid_union";
339
+ invalid_union_discriminator: "invalid_union_discriminator";
340
+ invalid_enum_value: "invalid_enum_value";
341
+ unrecognized_keys: "unrecognized_keys";
342
+ invalid_arguments: "invalid_arguments";
343
+ invalid_return_type: "invalid_return_type";
344
+ invalid_date: "invalid_date";
345
+ invalid_string: "invalid_string";
346
+ too_small: "too_small";
347
+ too_big: "too_big";
348
+ invalid_intersection_types: "invalid_intersection_types";
349
+ not_multiple_of: "not_multiple_of";
350
+ not_finite: "not_finite";
351
+ }>;
352
+ }, z.ZodAny, "strip">[];
353
+ }>, z.ZodObject<{
354
+ code: z.ZodType<"BAD_REQUEST", z.ZodTypeDef, "BAD_REQUEST">;
355
+ error: z.ZodType<string, z.ZodTypeDef, string>;
356
+ name: z.ZodLiteral<"APIError">;
357
+ }, "strip", z.ZodTypeAny, {
358
+ code: "BAD_REQUEST";
359
+ name: "APIError";
360
+ error: string;
361
+ }, {
362
+ code: "BAD_REQUEST";
363
+ name: "APIError";
364
+ error: string;
365
+ }>]>;
366
+ 401: z.ZodObject<{
367
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
368
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
369
+ name: z.ZodLiteral<"APIError">;
370
+ }, "strip", z.ZodTypeAny, {
371
+ code: "UNAUTHORIZED";
372
+ name: "APIError";
373
+ error: "Unauthorized";
374
+ }, {
375
+ code: "UNAUTHORIZED";
376
+ name: "APIError";
377
+ error: "Unauthorized";
378
+ }>;
379
+ 403: z.ZodObject<{
380
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
381
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
382
+ name: z.ZodLiteral<"APIError">;
383
+ }, "strip", z.ZodTypeAny, {
384
+ code: "FORBIDDEN";
385
+ name: "APIError";
386
+ error: "Forbidden";
387
+ }, {
388
+ code: "FORBIDDEN";
389
+ name: "APIError";
390
+ error: "Forbidden";
391
+ }>;
392
+ 500: z.ZodObject<{
393
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
394
+ error: z.ZodType<string, z.ZodTypeDef, string>;
395
+ name: z.ZodLiteral<"APIError">;
396
+ }, "strip", z.ZodTypeAny, {
397
+ code: "INTERNAL_SERVER_ERROR";
398
+ name: "APIError";
399
+ error: string;
400
+ }, {
401
+ code: "INTERNAL_SERVER_ERROR";
402
+ name: "APIError";
403
+ error: string;
404
+ }>;
405
+ };
406
+ };
407
+ uploadPart: {
408
+ body: z.ZodObject<{
409
+ file: z.ZodAny;
410
+ }, "strip", z.ZodTypeAny, {
411
+ file?: any;
412
+ }, {
413
+ file?: any;
414
+ }>;
415
+ method: "POST";
416
+ contentType: "multipart/form-data";
417
+ path: "/upload/part/:upload_id/:part";
418
+ responses: {
419
+ 200: z.ZodType<null, z.ZodTypeDef, null>;
420
+ 400: z.ZodUnion<[z.ZodObject<{
421
+ name: z.ZodLiteral<"ZodError">;
422
+ issues: z.ZodArray<z.ZodObject<{
423
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
424
+ message: z.ZodOptional<z.ZodString>;
425
+ code: z.ZodNativeEnum<{
426
+ invalid_type: "invalid_type";
427
+ invalid_literal: "invalid_literal";
428
+ custom: "custom";
429
+ invalid_union: "invalid_union";
430
+ invalid_union_discriminator: "invalid_union_discriminator";
431
+ invalid_enum_value: "invalid_enum_value";
432
+ unrecognized_keys: "unrecognized_keys";
433
+ invalid_arguments: "invalid_arguments";
434
+ invalid_return_type: "invalid_return_type";
435
+ invalid_date: "invalid_date";
436
+ invalid_string: "invalid_string";
437
+ too_small: "too_small";
438
+ too_big: "too_big";
439
+ invalid_intersection_types: "invalid_intersection_types";
440
+ not_multiple_of: "not_multiple_of";
441
+ not_finite: "not_finite";
442
+ }>;
443
+ }, "strip", z.ZodAny, z.objectOutputType<{
444
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
445
+ message: z.ZodOptional<z.ZodString>;
446
+ code: z.ZodNativeEnum<{
447
+ invalid_type: "invalid_type";
448
+ invalid_literal: "invalid_literal";
449
+ custom: "custom";
450
+ invalid_union: "invalid_union";
451
+ invalid_union_discriminator: "invalid_union_discriminator";
452
+ invalid_enum_value: "invalid_enum_value";
453
+ unrecognized_keys: "unrecognized_keys";
454
+ invalid_arguments: "invalid_arguments";
455
+ invalid_return_type: "invalid_return_type";
456
+ invalid_date: "invalid_date";
457
+ invalid_string: "invalid_string";
458
+ too_small: "too_small";
459
+ too_big: "too_big";
460
+ invalid_intersection_types: "invalid_intersection_types";
461
+ not_multiple_of: "not_multiple_of";
462
+ not_finite: "not_finite";
463
+ }>;
464
+ }, z.ZodAny, "strip">, z.objectInputType<{
465
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
466
+ message: z.ZodOptional<z.ZodString>;
467
+ code: z.ZodNativeEnum<{
468
+ invalid_type: "invalid_type";
469
+ invalid_literal: "invalid_literal";
470
+ custom: "custom";
471
+ invalid_union: "invalid_union";
472
+ invalid_union_discriminator: "invalid_union_discriminator";
473
+ invalid_enum_value: "invalid_enum_value";
474
+ unrecognized_keys: "unrecognized_keys";
475
+ invalid_arguments: "invalid_arguments";
476
+ invalid_return_type: "invalid_return_type";
477
+ invalid_date: "invalid_date";
478
+ invalid_string: "invalid_string";
479
+ too_small: "too_small";
480
+ too_big: "too_big";
481
+ invalid_intersection_types: "invalid_intersection_types";
482
+ not_multiple_of: "not_multiple_of";
483
+ not_finite: "not_finite";
484
+ }>;
485
+ }, z.ZodAny, "strip">>, "many">;
486
+ }, "strip", z.ZodTypeAny, {
487
+ name: "ZodError";
488
+ issues: z.objectOutputType<{
489
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
490
+ message: z.ZodOptional<z.ZodString>;
491
+ code: z.ZodNativeEnum<{
492
+ invalid_type: "invalid_type";
493
+ invalid_literal: "invalid_literal";
494
+ custom: "custom";
495
+ invalid_union: "invalid_union";
496
+ invalid_union_discriminator: "invalid_union_discriminator";
497
+ invalid_enum_value: "invalid_enum_value";
498
+ unrecognized_keys: "unrecognized_keys";
499
+ invalid_arguments: "invalid_arguments";
500
+ invalid_return_type: "invalid_return_type";
501
+ invalid_date: "invalid_date";
502
+ invalid_string: "invalid_string";
503
+ too_small: "too_small";
504
+ too_big: "too_big";
505
+ invalid_intersection_types: "invalid_intersection_types";
506
+ not_multiple_of: "not_multiple_of";
507
+ not_finite: "not_finite";
508
+ }>;
509
+ }, z.ZodAny, "strip">[];
510
+ }, {
511
+ name: "ZodError";
512
+ issues: z.objectInputType<{
513
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
514
+ message: z.ZodOptional<z.ZodString>;
515
+ code: z.ZodNativeEnum<{
516
+ invalid_type: "invalid_type";
517
+ invalid_literal: "invalid_literal";
518
+ custom: "custom";
519
+ invalid_union: "invalid_union";
520
+ invalid_union_discriminator: "invalid_union_discriminator";
521
+ invalid_enum_value: "invalid_enum_value";
522
+ unrecognized_keys: "unrecognized_keys";
523
+ invalid_arguments: "invalid_arguments";
524
+ invalid_return_type: "invalid_return_type";
525
+ invalid_date: "invalid_date";
526
+ invalid_string: "invalid_string";
527
+ too_small: "too_small";
528
+ too_big: "too_big";
529
+ invalid_intersection_types: "invalid_intersection_types";
530
+ not_multiple_of: "not_multiple_of";
531
+ not_finite: "not_finite";
532
+ }>;
533
+ }, z.ZodAny, "strip">[];
534
+ }>, z.ZodObject<{
535
+ code: z.ZodType<"BAD_REQUEST", z.ZodTypeDef, "BAD_REQUEST">;
536
+ error: z.ZodType<string, z.ZodTypeDef, string>;
537
+ name: z.ZodLiteral<"APIError">;
538
+ }, "strip", z.ZodTypeAny, {
539
+ code: "BAD_REQUEST";
540
+ name: "APIError";
541
+ error: string;
542
+ }, {
543
+ code: "BAD_REQUEST";
544
+ name: "APIError";
545
+ error: string;
546
+ }>]>;
547
+ 401: z.ZodObject<{
548
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
549
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
550
+ name: z.ZodLiteral<"APIError">;
551
+ }, "strip", z.ZodTypeAny, {
552
+ code: "UNAUTHORIZED";
553
+ name: "APIError";
554
+ error: "Unauthorized";
555
+ }, {
556
+ code: "UNAUTHORIZED";
557
+ name: "APIError";
558
+ error: "Unauthorized";
559
+ }>;
560
+ 403: z.ZodObject<{
561
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
562
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
563
+ name: z.ZodLiteral<"APIError">;
564
+ }, "strip", z.ZodTypeAny, {
565
+ code: "FORBIDDEN";
566
+ name: "APIError";
567
+ error: "Forbidden";
568
+ }, {
569
+ code: "FORBIDDEN";
570
+ name: "APIError";
571
+ error: "Forbidden";
572
+ }>;
573
+ 404: z.ZodObject<{
574
+ code: z.ZodType<"NOT_FOUND", z.ZodTypeDef, "NOT_FOUND">;
575
+ error: z.ZodType<string, z.ZodTypeDef, string>;
576
+ name: z.ZodLiteral<"APIError">;
577
+ }, "strip", z.ZodTypeAny, {
578
+ code: "NOT_FOUND";
579
+ name: "APIError";
580
+ error: string;
581
+ }, {
582
+ code: "NOT_FOUND";
583
+ name: "APIError";
584
+ error: string;
585
+ }>;
586
+ 409: z.ZodObject<{
587
+ code: z.ZodType<"CONFLICT", z.ZodTypeDef, "CONFLICT">;
588
+ error: z.ZodType<string, z.ZodTypeDef, string>;
589
+ name: z.ZodLiteral<"APIError">;
590
+ }, "strip", z.ZodTypeAny, {
591
+ code: "CONFLICT";
592
+ name: "APIError";
593
+ error: string;
594
+ }, {
595
+ code: "CONFLICT";
596
+ name: "APIError";
597
+ error: string;
598
+ }>;
599
+ 500: z.ZodObject<{
600
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
601
+ error: z.ZodType<string, z.ZodTypeDef, string>;
602
+ name: z.ZodLiteral<"APIError">;
603
+ }, "strip", z.ZodTypeAny, {
604
+ code: "INTERNAL_SERVER_ERROR";
605
+ name: "APIError";
606
+ error: string;
607
+ }, {
608
+ code: "INTERNAL_SERVER_ERROR";
609
+ name: "APIError";
610
+ error: string;
611
+ }>;
612
+ };
613
+ };
614
+ uploadEnd: {
615
+ body: z.ZodUndefined;
616
+ method: "POST";
617
+ path: "/upload/end/:upload_id";
618
+ responses: {
619
+ 200: z.ZodType<null, z.ZodTypeDef, null>;
620
+ 400: z.ZodObject<{
621
+ name: z.ZodLiteral<"ZodError">;
622
+ issues: z.ZodArray<z.ZodObject<{
623
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
624
+ message: z.ZodOptional<z.ZodString>;
625
+ code: z.ZodNativeEnum<{
626
+ invalid_type: "invalid_type";
627
+ invalid_literal: "invalid_literal";
628
+ custom: "custom";
629
+ invalid_union: "invalid_union";
630
+ invalid_union_discriminator: "invalid_union_discriminator";
631
+ invalid_enum_value: "invalid_enum_value";
632
+ unrecognized_keys: "unrecognized_keys";
633
+ invalid_arguments: "invalid_arguments";
634
+ invalid_return_type: "invalid_return_type";
635
+ invalid_date: "invalid_date";
636
+ invalid_string: "invalid_string";
637
+ too_small: "too_small";
638
+ too_big: "too_big";
639
+ invalid_intersection_types: "invalid_intersection_types";
640
+ not_multiple_of: "not_multiple_of";
641
+ not_finite: "not_finite";
642
+ }>;
643
+ }, "strip", z.ZodAny, z.objectOutputType<{
644
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
645
+ message: z.ZodOptional<z.ZodString>;
646
+ code: z.ZodNativeEnum<{
647
+ invalid_type: "invalid_type";
648
+ invalid_literal: "invalid_literal";
649
+ custom: "custom";
650
+ invalid_union: "invalid_union";
651
+ invalid_union_discriminator: "invalid_union_discriminator";
652
+ invalid_enum_value: "invalid_enum_value";
653
+ unrecognized_keys: "unrecognized_keys";
654
+ invalid_arguments: "invalid_arguments";
655
+ invalid_return_type: "invalid_return_type";
656
+ invalid_date: "invalid_date";
657
+ invalid_string: "invalid_string";
658
+ too_small: "too_small";
659
+ too_big: "too_big";
660
+ invalid_intersection_types: "invalid_intersection_types";
661
+ not_multiple_of: "not_multiple_of";
662
+ not_finite: "not_finite";
663
+ }>;
664
+ }, z.ZodAny, "strip">, z.objectInputType<{
665
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
666
+ message: z.ZodOptional<z.ZodString>;
667
+ code: z.ZodNativeEnum<{
668
+ invalid_type: "invalid_type";
669
+ invalid_literal: "invalid_literal";
670
+ custom: "custom";
671
+ invalid_union: "invalid_union";
672
+ invalid_union_discriminator: "invalid_union_discriminator";
673
+ invalid_enum_value: "invalid_enum_value";
674
+ unrecognized_keys: "unrecognized_keys";
675
+ invalid_arguments: "invalid_arguments";
676
+ invalid_return_type: "invalid_return_type";
677
+ invalid_date: "invalid_date";
678
+ invalid_string: "invalid_string";
679
+ too_small: "too_small";
680
+ too_big: "too_big";
681
+ invalid_intersection_types: "invalid_intersection_types";
682
+ not_multiple_of: "not_multiple_of";
683
+ not_finite: "not_finite";
684
+ }>;
685
+ }, z.ZodAny, "strip">>, "many">;
686
+ }, "strip", z.ZodTypeAny, {
687
+ name: "ZodError";
688
+ issues: z.objectOutputType<{
689
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
690
+ message: z.ZodOptional<z.ZodString>;
691
+ code: z.ZodNativeEnum<{
692
+ invalid_type: "invalid_type";
693
+ invalid_literal: "invalid_literal";
694
+ custom: "custom";
695
+ invalid_union: "invalid_union";
696
+ invalid_union_discriminator: "invalid_union_discriminator";
697
+ invalid_enum_value: "invalid_enum_value";
698
+ unrecognized_keys: "unrecognized_keys";
699
+ invalid_arguments: "invalid_arguments";
700
+ invalid_return_type: "invalid_return_type";
701
+ invalid_date: "invalid_date";
702
+ invalid_string: "invalid_string";
703
+ too_small: "too_small";
704
+ too_big: "too_big";
705
+ invalid_intersection_types: "invalid_intersection_types";
706
+ not_multiple_of: "not_multiple_of";
707
+ not_finite: "not_finite";
708
+ }>;
709
+ }, z.ZodAny, "strip">[];
710
+ }, {
711
+ name: "ZodError";
712
+ issues: z.objectInputType<{
713
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
714
+ message: z.ZodOptional<z.ZodString>;
715
+ code: z.ZodNativeEnum<{
716
+ invalid_type: "invalid_type";
717
+ invalid_literal: "invalid_literal";
718
+ custom: "custom";
719
+ invalid_union: "invalid_union";
720
+ invalid_union_discriminator: "invalid_union_discriminator";
721
+ invalid_enum_value: "invalid_enum_value";
722
+ unrecognized_keys: "unrecognized_keys";
723
+ invalid_arguments: "invalid_arguments";
724
+ invalid_return_type: "invalid_return_type";
725
+ invalid_date: "invalid_date";
726
+ invalid_string: "invalid_string";
727
+ too_small: "too_small";
728
+ too_big: "too_big";
729
+ invalid_intersection_types: "invalid_intersection_types";
730
+ not_multiple_of: "not_multiple_of";
731
+ not_finite: "not_finite";
732
+ }>;
733
+ }, z.ZodAny, "strip">[];
734
+ }>;
735
+ 401: z.ZodObject<{
736
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
737
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
738
+ name: z.ZodLiteral<"APIError">;
739
+ }, "strip", z.ZodTypeAny, {
740
+ code: "UNAUTHORIZED";
741
+ name: "APIError";
742
+ error: "Unauthorized";
743
+ }, {
744
+ code: "UNAUTHORIZED";
745
+ name: "APIError";
746
+ error: "Unauthorized";
747
+ }>;
748
+ 403: z.ZodObject<{
749
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
750
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
751
+ name: z.ZodLiteral<"APIError">;
752
+ }, "strip", z.ZodTypeAny, {
753
+ code: "FORBIDDEN";
754
+ name: "APIError";
755
+ error: "Forbidden";
756
+ }, {
757
+ code: "FORBIDDEN";
758
+ name: "APIError";
759
+ error: "Forbidden";
760
+ }>;
761
+ 404: z.ZodObject<{
762
+ code: z.ZodType<"NOT_FOUND", z.ZodTypeDef, "NOT_FOUND">;
763
+ error: z.ZodType<string, z.ZodTypeDef, string>;
764
+ name: z.ZodLiteral<"APIError">;
765
+ }, "strip", z.ZodTypeAny, {
766
+ code: "NOT_FOUND";
767
+ name: "APIError";
768
+ error: string;
769
+ }, {
770
+ code: "NOT_FOUND";
771
+ name: "APIError";
772
+ error: string;
773
+ }>;
774
+ 500: z.ZodObject<{
775
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
776
+ error: z.ZodType<string, z.ZodTypeDef, string>;
777
+ name: z.ZodLiteral<"APIError">;
778
+ }, "strip", z.ZodTypeAny, {
779
+ code: "INTERNAL_SERVER_ERROR";
780
+ name: "APIError";
781
+ error: string;
782
+ }, {
783
+ code: "INTERNAL_SERVER_ERROR";
784
+ name: "APIError";
785
+ error: string;
786
+ }>;
787
+ };
788
+ };
789
+ };
790
+ export default _default;