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

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,2039 @@
1
+ declare const _default: {
2
+ list: {
3
+ public: {
4
+ method: "GET";
5
+ path: "/api/v2/list";
6
+ headers: import("zod").ZodObject<{
7
+ authorization: import("zod").ZodOptional<import("zod").ZodString>;
8
+ }, "strip", import("zod").ZodTypeAny, {
9
+ authorization?: string | undefined;
10
+ }, {
11
+ authorization?: string | undefined;
12
+ }>;
13
+ responses: {
14
+ 200: import("zod").ZodType<{
15
+ filename: string;
16
+ size: number;
17
+ storage_id: string;
18
+ mime_type: string;
19
+ endpoints: {
20
+ endpoint: string;
21
+ }[];
22
+ }[], import("zod").ZodTypeDef, {
23
+ filename: string;
24
+ size: number;
25
+ storage_id: string;
26
+ mime_type: string;
27
+ endpoints: {
28
+ endpoint: string;
29
+ }[];
30
+ }[]>;
31
+ 500: import("zod").ZodObject<{
32
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
33
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
34
+ name: import("zod").ZodLiteral<"APIError">;
35
+ }, "strip", import("zod").ZodTypeAny, {
36
+ code: "INTERNAL_SERVER_ERROR";
37
+ name: "APIError";
38
+ error: string;
39
+ }, {
40
+ code: "INTERNAL_SERVER_ERROR";
41
+ name: "APIError";
42
+ error: string;
43
+ }>;
44
+ };
45
+ };
46
+ admin: {
47
+ method: "GET";
48
+ path: "/api/v2/list/admin";
49
+ headers: import("zod").ZodObject<{
50
+ authorization: import("zod").ZodOptional<import("zod").ZodString>;
51
+ }, "strip", import("zod").ZodTypeAny, {
52
+ authorization?: string | undefined;
53
+ }, {
54
+ authorization?: string | undefined;
55
+ }>;
56
+ responses: {
57
+ 200: import("zod").ZodType<{
58
+ type: "user" | "service" | "system";
59
+ filename: string;
60
+ active: boolean;
61
+ visible: boolean;
62
+ role: number;
63
+ size: number;
64
+ created_at: Date;
65
+ updated_at: Date;
66
+ storage_id: string;
67
+ mime_type: string;
68
+ endpoints: {
69
+ created_at: Date;
70
+ updated_at: Date;
71
+ endpoint: string;
72
+ }[];
73
+ user_id: string | null;
74
+ }[], import("zod").ZodTypeDef, {
75
+ type: "user" | "service" | "system";
76
+ filename: string;
77
+ active: boolean;
78
+ visible: boolean;
79
+ role: number;
80
+ size: number;
81
+ created_at: Date;
82
+ updated_at: Date;
83
+ storage_id: string;
84
+ mime_type: string;
85
+ endpoints: {
86
+ created_at: Date;
87
+ updated_at: Date;
88
+ endpoint: string;
89
+ }[];
90
+ user_id: string | null;
91
+ }[]>;
92
+ 401: import("zod").ZodObject<{
93
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
94
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
95
+ name: import("zod").ZodLiteral<"APIError">;
96
+ }, "strip", import("zod").ZodTypeAny, {
97
+ code: "UNAUTHORIZED";
98
+ name: "APIError";
99
+ error: "Unauthorized";
100
+ }, {
101
+ code: "UNAUTHORIZED";
102
+ name: "APIError";
103
+ error: "Unauthorized";
104
+ }>;
105
+ 403: import("zod").ZodObject<{
106
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
107
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
108
+ name: import("zod").ZodLiteral<"APIError">;
109
+ }, "strip", import("zod").ZodTypeAny, {
110
+ code: "FORBIDDEN";
111
+ name: "APIError";
112
+ error: "Forbidden";
113
+ }, {
114
+ code: "FORBIDDEN";
115
+ name: "APIError";
116
+ error: "Forbidden";
117
+ }>;
118
+ 500: import("zod").ZodObject<{
119
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
120
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
121
+ name: import("zod").ZodLiteral<"APIError">;
122
+ }, "strip", import("zod").ZodTypeAny, {
123
+ code: "INTERNAL_SERVER_ERROR";
124
+ name: "APIError";
125
+ error: string;
126
+ }, {
127
+ code: "INTERNAL_SERVER_ERROR";
128
+ name: "APIError";
129
+ error: string;
130
+ }>;
131
+ };
132
+ };
133
+ };
134
+ record: {
135
+ get: {
136
+ method: "GET";
137
+ path: "/api/v2/record/:storage_id";
138
+ headers: import("zod").ZodObject<{
139
+ authorization: import("zod").ZodOptional<import("zod").ZodString>;
140
+ }, "strip", import("zod").ZodTypeAny, {
141
+ authorization?: string | undefined;
142
+ }, {
143
+ authorization?: string | undefined;
144
+ }>;
145
+ responses: {
146
+ 200: import("zod").ZodType<{
147
+ type: "user" | "service" | "system";
148
+ filename: string;
149
+ active: boolean;
150
+ visible: boolean;
151
+ role: number;
152
+ size: number;
153
+ created_at: Date;
154
+ updated_at: Date;
155
+ storage_id: string;
156
+ mime_type: string;
157
+ endpoints: {
158
+ created_at: Date;
159
+ updated_at: Date;
160
+ endpoint: string;
161
+ }[];
162
+ user_id: string | null;
163
+ }, import("zod").ZodTypeDef, {
164
+ type: "user" | "service" | "system";
165
+ filename: string;
166
+ active: boolean;
167
+ visible: boolean;
168
+ role: number;
169
+ size: number;
170
+ created_at: Date;
171
+ updated_at: Date;
172
+ storage_id: string;
173
+ mime_type: string;
174
+ endpoints: {
175
+ created_at: Date;
176
+ updated_at: Date;
177
+ endpoint: string;
178
+ }[];
179
+ user_id: string | null;
180
+ }>;
181
+ 401: import("zod").ZodObject<{
182
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
183
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
184
+ name: import("zod").ZodLiteral<"APIError">;
185
+ }, "strip", import("zod").ZodTypeAny, {
186
+ code: "UNAUTHORIZED";
187
+ name: "APIError";
188
+ error: "Unauthorized";
189
+ }, {
190
+ code: "UNAUTHORIZED";
191
+ name: "APIError";
192
+ error: "Unauthorized";
193
+ }>;
194
+ 403: import("zod").ZodObject<{
195
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
196
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
197
+ name: import("zod").ZodLiteral<"APIError">;
198
+ }, "strip", import("zod").ZodTypeAny, {
199
+ code: "FORBIDDEN";
200
+ name: "APIError";
201
+ error: "Forbidden";
202
+ }, {
203
+ code: "FORBIDDEN";
204
+ name: "APIError";
205
+ error: "Forbidden";
206
+ }>;
207
+ 404: import("zod").ZodObject<{
208
+ code: import("zod").ZodType<"NOT_FOUND", import("zod").ZodTypeDef, "NOT_FOUND">;
209
+ error: import("zod").ZodType<"Record not found", import("zod").ZodTypeDef, "Record not found">;
210
+ name: import("zod").ZodLiteral<"APIError">;
211
+ }, "strip", import("zod").ZodTypeAny, {
212
+ code: "NOT_FOUND";
213
+ name: "APIError";
214
+ error: "Record not found";
215
+ }, {
216
+ code: "NOT_FOUND";
217
+ name: "APIError";
218
+ error: "Record not found";
219
+ }>;
220
+ 500: import("zod").ZodObject<{
221
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
222
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
223
+ name: import("zod").ZodLiteral<"APIError">;
224
+ }, "strip", import("zod").ZodTypeAny, {
225
+ code: "INTERNAL_SERVER_ERROR";
226
+ name: "APIError";
227
+ error: string;
228
+ }, {
229
+ code: "INTERNAL_SERVER_ERROR";
230
+ name: "APIError";
231
+ error: string;
232
+ }>;
233
+ };
234
+ };
235
+ update: {
236
+ body: import("zod").ZodUnion<[import("zod").ZodObject<{
237
+ filename: import("zod").ZodString;
238
+ role: import("zod").ZodOptional<import("zod").ZodNumber>;
239
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
240
+ visible: import("zod").ZodOptional<import("zod").ZodBoolean>;
241
+ }, "strip", import("zod").ZodTypeAny, {
242
+ filename: string;
243
+ active?: boolean | undefined;
244
+ visible?: boolean | undefined;
245
+ role?: number | undefined;
246
+ }, {
247
+ filename: string;
248
+ active?: boolean | undefined;
249
+ visible?: boolean | undefined;
250
+ role?: number | undefined;
251
+ }>, import("zod").ZodObject<{
252
+ filename: import("zod").ZodOptional<import("zod").ZodString>;
253
+ role: import("zod").ZodNumber;
254
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
255
+ visible: import("zod").ZodOptional<import("zod").ZodBoolean>;
256
+ }, "strip", import("zod").ZodTypeAny, {
257
+ role: number;
258
+ filename?: string | undefined;
259
+ active?: boolean | undefined;
260
+ visible?: boolean | undefined;
261
+ }, {
262
+ role: number;
263
+ filename?: string | undefined;
264
+ active?: boolean | undefined;
265
+ visible?: boolean | undefined;
266
+ }>, import("zod").ZodObject<{
267
+ filename: import("zod").ZodOptional<import("zod").ZodString>;
268
+ role: import("zod").ZodOptional<import("zod").ZodNumber>;
269
+ active: import("zod").ZodBoolean;
270
+ visible: import("zod").ZodOptional<import("zod").ZodBoolean>;
271
+ }, "strip", import("zod").ZodTypeAny, {
272
+ active: boolean;
273
+ filename?: string | undefined;
274
+ visible?: boolean | undefined;
275
+ role?: number | undefined;
276
+ }, {
277
+ active: boolean;
278
+ filename?: string | undefined;
279
+ visible?: boolean | undefined;
280
+ role?: number | undefined;
281
+ }>, import("zod").ZodObject<{
282
+ filename: import("zod").ZodOptional<import("zod").ZodString>;
283
+ role: import("zod").ZodOptional<import("zod").ZodNumber>;
284
+ active: import("zod").ZodOptional<import("zod").ZodBoolean>;
285
+ visible: import("zod").ZodBoolean;
286
+ }, "strip", import("zod").ZodTypeAny, {
287
+ visible: boolean;
288
+ filename?: string | undefined;
289
+ active?: boolean | undefined;
290
+ role?: number | undefined;
291
+ }, {
292
+ visible: boolean;
293
+ filename?: string | undefined;
294
+ active?: boolean | undefined;
295
+ role?: number | undefined;
296
+ }>]>;
297
+ method: "POST";
298
+ path: "/api/v2/record/:storage_id";
299
+ headers: import("zod").ZodObject<{
300
+ authorization: import("zod").ZodOptional<import("zod").ZodString>;
301
+ }, "strip", import("zod").ZodTypeAny, {
302
+ authorization?: string | undefined;
303
+ }, {
304
+ authorization?: string | undefined;
305
+ }>;
306
+ responses: {
307
+ 200: import("zod").ZodType<null, import("zod").ZodTypeDef, null>;
308
+ 400: import("zod").ZodObject<{
309
+ name: import("zod").ZodLiteral<"ZodError">;
310
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
311
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
312
+ message: import("zod").ZodOptional<import("zod").ZodString>;
313
+ code: import("zod").ZodNativeEnum<{
314
+ invalid_type: "invalid_type";
315
+ invalid_literal: "invalid_literal";
316
+ custom: "custom";
317
+ invalid_union: "invalid_union";
318
+ invalid_union_discriminator: "invalid_union_discriminator";
319
+ invalid_enum_value: "invalid_enum_value";
320
+ unrecognized_keys: "unrecognized_keys";
321
+ invalid_arguments: "invalid_arguments";
322
+ invalid_return_type: "invalid_return_type";
323
+ invalid_date: "invalid_date";
324
+ invalid_string: "invalid_string";
325
+ too_small: "too_small";
326
+ too_big: "too_big";
327
+ invalid_intersection_types: "invalid_intersection_types";
328
+ not_multiple_of: "not_multiple_of";
329
+ not_finite: "not_finite";
330
+ }>;
331
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
332
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
333
+ message: import("zod").ZodOptional<import("zod").ZodString>;
334
+ code: import("zod").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
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
353
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
354
+ message: import("zod").ZodOptional<import("zod").ZodString>;
355
+ code: import("zod").ZodNativeEnum<{
356
+ invalid_type: "invalid_type";
357
+ invalid_literal: "invalid_literal";
358
+ custom: "custom";
359
+ invalid_union: "invalid_union";
360
+ invalid_union_discriminator: "invalid_union_discriminator";
361
+ invalid_enum_value: "invalid_enum_value";
362
+ unrecognized_keys: "unrecognized_keys";
363
+ invalid_arguments: "invalid_arguments";
364
+ invalid_return_type: "invalid_return_type";
365
+ invalid_date: "invalid_date";
366
+ invalid_string: "invalid_string";
367
+ too_small: "too_small";
368
+ too_big: "too_big";
369
+ invalid_intersection_types: "invalid_intersection_types";
370
+ not_multiple_of: "not_multiple_of";
371
+ not_finite: "not_finite";
372
+ }>;
373
+ }, import("zod").ZodAny, "strip">>, "many">;
374
+ }, "strip", import("zod").ZodTypeAny, {
375
+ name: "ZodError";
376
+ issues: import("zod").objectOutputType<{
377
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
378
+ message: import("zod").ZodOptional<import("zod").ZodString>;
379
+ code: import("zod").ZodNativeEnum<{
380
+ invalid_type: "invalid_type";
381
+ invalid_literal: "invalid_literal";
382
+ custom: "custom";
383
+ invalid_union: "invalid_union";
384
+ invalid_union_discriminator: "invalid_union_discriminator";
385
+ invalid_enum_value: "invalid_enum_value";
386
+ unrecognized_keys: "unrecognized_keys";
387
+ invalid_arguments: "invalid_arguments";
388
+ invalid_return_type: "invalid_return_type";
389
+ invalid_date: "invalid_date";
390
+ invalid_string: "invalid_string";
391
+ too_small: "too_small";
392
+ too_big: "too_big";
393
+ invalid_intersection_types: "invalid_intersection_types";
394
+ not_multiple_of: "not_multiple_of";
395
+ not_finite: "not_finite";
396
+ }>;
397
+ }, import("zod").ZodAny, "strip">[];
398
+ }, {
399
+ name: "ZodError";
400
+ issues: import("zod").objectInputType<{
401
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
402
+ message: import("zod").ZodOptional<import("zod").ZodString>;
403
+ code: import("zod").ZodNativeEnum<{
404
+ invalid_type: "invalid_type";
405
+ invalid_literal: "invalid_literal";
406
+ custom: "custom";
407
+ invalid_union: "invalid_union";
408
+ invalid_union_discriminator: "invalid_union_discriminator";
409
+ invalid_enum_value: "invalid_enum_value";
410
+ unrecognized_keys: "unrecognized_keys";
411
+ invalid_arguments: "invalid_arguments";
412
+ invalid_return_type: "invalid_return_type";
413
+ invalid_date: "invalid_date";
414
+ invalid_string: "invalid_string";
415
+ too_small: "too_small";
416
+ too_big: "too_big";
417
+ invalid_intersection_types: "invalid_intersection_types";
418
+ not_multiple_of: "not_multiple_of";
419
+ not_finite: "not_finite";
420
+ }>;
421
+ }, import("zod").ZodAny, "strip">[];
422
+ }>;
423
+ 401: import("zod").ZodObject<{
424
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
425
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
426
+ name: import("zod").ZodLiteral<"APIError">;
427
+ }, "strip", import("zod").ZodTypeAny, {
428
+ code: "UNAUTHORIZED";
429
+ name: "APIError";
430
+ error: "Unauthorized";
431
+ }, {
432
+ code: "UNAUTHORIZED";
433
+ name: "APIError";
434
+ error: "Unauthorized";
435
+ }>;
436
+ 403: import("zod").ZodObject<{
437
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
438
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
439
+ name: import("zod").ZodLiteral<"APIError">;
440
+ }, "strip", import("zod").ZodTypeAny, {
441
+ code: "FORBIDDEN";
442
+ name: "APIError";
443
+ error: "Forbidden";
444
+ }, {
445
+ code: "FORBIDDEN";
446
+ name: "APIError";
447
+ error: "Forbidden";
448
+ }>;
449
+ 404: import("zod").ZodObject<{
450
+ code: import("zod").ZodType<"NOT_FOUND", import("zod").ZodTypeDef, "NOT_FOUND">;
451
+ error: import("zod").ZodType<"Record not found", import("zod").ZodTypeDef, "Record not found">;
452
+ name: import("zod").ZodLiteral<"APIError">;
453
+ }, "strip", import("zod").ZodTypeAny, {
454
+ code: "NOT_FOUND";
455
+ name: "APIError";
456
+ error: "Record not found";
457
+ }, {
458
+ code: "NOT_FOUND";
459
+ name: "APIError";
460
+ error: "Record not found";
461
+ }>;
462
+ 500: import("zod").ZodObject<{
463
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
464
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
465
+ name: import("zod").ZodLiteral<"APIError">;
466
+ }, "strip", import("zod").ZodTypeAny, {
467
+ code: "INTERNAL_SERVER_ERROR";
468
+ name: "APIError";
469
+ error: string;
470
+ }, {
471
+ code: "INTERNAL_SERVER_ERROR";
472
+ name: "APIError";
473
+ error: string;
474
+ }>;
475
+ };
476
+ };
477
+ delete: {
478
+ method: "DELETE";
479
+ path: "/api/v2/record/:storage_id";
480
+ headers: import("zod").ZodObject<{
481
+ authorization: import("zod").ZodOptional<import("zod").ZodString>;
482
+ }, "strip", import("zod").ZodTypeAny, {
483
+ authorization?: string | undefined;
484
+ }, {
485
+ authorization?: string | undefined;
486
+ }>;
487
+ responses: {
488
+ 200: import("zod").ZodType<null, import("zod").ZodTypeDef, null>;
489
+ 401: import("zod").ZodObject<{
490
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
491
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
492
+ name: import("zod").ZodLiteral<"APIError">;
493
+ }, "strip", import("zod").ZodTypeAny, {
494
+ code: "UNAUTHORIZED";
495
+ name: "APIError";
496
+ error: "Unauthorized";
497
+ }, {
498
+ code: "UNAUTHORIZED";
499
+ name: "APIError";
500
+ error: "Unauthorized";
501
+ }>;
502
+ 403: import("zod").ZodObject<{
503
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
504
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
505
+ name: import("zod").ZodLiteral<"APIError">;
506
+ }, "strip", import("zod").ZodTypeAny, {
507
+ code: "FORBIDDEN";
508
+ name: "APIError";
509
+ error: "Forbidden";
510
+ }, {
511
+ code: "FORBIDDEN";
512
+ name: "APIError";
513
+ error: "Forbidden";
514
+ }>;
515
+ 404: import("zod").ZodObject<{
516
+ code: import("zod").ZodType<"NOT_FOUND", import("zod").ZodTypeDef, "NOT_FOUND">;
517
+ error: import("zod").ZodType<"Record not found", import("zod").ZodTypeDef, "Record not found">;
518
+ name: import("zod").ZodLiteral<"APIError">;
519
+ }, "strip", import("zod").ZodTypeAny, {
520
+ code: "NOT_FOUND";
521
+ name: "APIError";
522
+ error: "Record not found";
523
+ }, {
524
+ code: "NOT_FOUND";
525
+ name: "APIError";
526
+ error: "Record not found";
527
+ }>;
528
+ 500: import("zod").ZodObject<{
529
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
530
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
531
+ name: import("zod").ZodLiteral<"APIError">;
532
+ }, "strip", import("zod").ZodTypeAny, {
533
+ code: "INTERNAL_SERVER_ERROR";
534
+ name: "APIError";
535
+ error: string;
536
+ }, {
537
+ code: "INTERNAL_SERVER_ERROR";
538
+ name: "APIError";
539
+ error: string;
540
+ }>;
541
+ };
542
+ };
543
+ };
544
+ service: {
545
+ update: {
546
+ body: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
547
+ method: "POST";
548
+ contentType: "multipart/form-data";
549
+ path: "/api/v2/service/asset";
550
+ headers: import("zod").ZodObject<{
551
+ authorization: import("zod").ZodString;
552
+ }, "strip", import("zod").ZodTypeAny, {
553
+ authorization: string;
554
+ }, {
555
+ authorization: string;
556
+ }>;
557
+ responses: {
558
+ 200: import("zod").ZodType<null, import("zod").ZodTypeDef, null>;
559
+ 400: import("zod").ZodObject<{
560
+ code: import("zod").ZodType<"BAD_REQUEST", import("zod").ZodTypeDef, "BAD_REQUEST">;
561
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
562
+ name: import("zod").ZodLiteral<"APIError">;
563
+ }, "strip", import("zod").ZodTypeAny, {
564
+ code: "BAD_REQUEST";
565
+ name: "APIError";
566
+ error: string;
567
+ }, {
568
+ code: "BAD_REQUEST";
569
+ name: "APIError";
570
+ error: string;
571
+ }>;
572
+ 401: import("zod").ZodObject<{
573
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
574
+ error: import("zod").ZodType<"Invalid CDN token", import("zod").ZodTypeDef, "Invalid CDN token">;
575
+ name: import("zod").ZodLiteral<"APIError">;
576
+ }, "strip", import("zod").ZodTypeAny, {
577
+ code: "UNAUTHORIZED";
578
+ name: "APIError";
579
+ error: "Invalid CDN token";
580
+ }, {
581
+ code: "UNAUTHORIZED";
582
+ name: "APIError";
583
+ error: "Invalid CDN token";
584
+ }>;
585
+ 429: import("zod").ZodObject<{
586
+ code: import("zod").ZodType<"TOO_MANY_REQUESTS", import("zod").ZodTypeDef, "TOO_MANY_REQUESTS">;
587
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
588
+ name: import("zod").ZodLiteral<"APIError">;
589
+ }, "strip", import("zod").ZodTypeAny, {
590
+ code: "TOO_MANY_REQUESTS";
591
+ name: "APIError";
592
+ error: string;
593
+ }, {
594
+ code: "TOO_MANY_REQUESTS";
595
+ name: "APIError";
596
+ error: string;
597
+ }>;
598
+ 500: import("zod").ZodObject<{
599
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
600
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
601
+ name: import("zod").ZodLiteral<"APIError">;
602
+ }, "strip", import("zod").ZodTypeAny, {
603
+ code: "INTERNAL_SERVER_ERROR";
604
+ name: "APIError";
605
+ error: string;
606
+ }, {
607
+ code: "INTERNAL_SERVER_ERROR";
608
+ name: "APIError";
609
+ error: string;
610
+ }>;
611
+ };
612
+ };
613
+ delete: {
614
+ method: "DELETE";
615
+ path: "/api/v2/service/asset";
616
+ headers: import("zod").ZodObject<{
617
+ authorization: import("zod").ZodString;
618
+ }, "strip", import("zod").ZodTypeAny, {
619
+ authorization: string;
620
+ }, {
621
+ authorization: string;
622
+ }>;
623
+ responses: {
624
+ 200: import("zod").ZodType<null, import("zod").ZodTypeDef, null>;
625
+ 400: import("zod").ZodObject<{
626
+ name: import("zod").ZodLiteral<"ZodError">;
627
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
628
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
629
+ message: import("zod").ZodOptional<import("zod").ZodString>;
630
+ code: import("zod").ZodNativeEnum<{
631
+ invalid_type: "invalid_type";
632
+ invalid_literal: "invalid_literal";
633
+ custom: "custom";
634
+ invalid_union: "invalid_union";
635
+ invalid_union_discriminator: "invalid_union_discriminator";
636
+ invalid_enum_value: "invalid_enum_value";
637
+ unrecognized_keys: "unrecognized_keys";
638
+ invalid_arguments: "invalid_arguments";
639
+ invalid_return_type: "invalid_return_type";
640
+ invalid_date: "invalid_date";
641
+ invalid_string: "invalid_string";
642
+ too_small: "too_small";
643
+ too_big: "too_big";
644
+ invalid_intersection_types: "invalid_intersection_types";
645
+ not_multiple_of: "not_multiple_of";
646
+ not_finite: "not_finite";
647
+ }>;
648
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
649
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
650
+ message: import("zod").ZodOptional<import("zod").ZodString>;
651
+ code: import("zod").ZodNativeEnum<{
652
+ invalid_type: "invalid_type";
653
+ invalid_literal: "invalid_literal";
654
+ custom: "custom";
655
+ invalid_union: "invalid_union";
656
+ invalid_union_discriminator: "invalid_union_discriminator";
657
+ invalid_enum_value: "invalid_enum_value";
658
+ unrecognized_keys: "unrecognized_keys";
659
+ invalid_arguments: "invalid_arguments";
660
+ invalid_return_type: "invalid_return_type";
661
+ invalid_date: "invalid_date";
662
+ invalid_string: "invalid_string";
663
+ too_small: "too_small";
664
+ too_big: "too_big";
665
+ invalid_intersection_types: "invalid_intersection_types";
666
+ not_multiple_of: "not_multiple_of";
667
+ not_finite: "not_finite";
668
+ }>;
669
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
670
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
671
+ message: import("zod").ZodOptional<import("zod").ZodString>;
672
+ code: import("zod").ZodNativeEnum<{
673
+ invalid_type: "invalid_type";
674
+ invalid_literal: "invalid_literal";
675
+ custom: "custom";
676
+ invalid_union: "invalid_union";
677
+ invalid_union_discriminator: "invalid_union_discriminator";
678
+ invalid_enum_value: "invalid_enum_value";
679
+ unrecognized_keys: "unrecognized_keys";
680
+ invalid_arguments: "invalid_arguments";
681
+ invalid_return_type: "invalid_return_type";
682
+ invalid_date: "invalid_date";
683
+ invalid_string: "invalid_string";
684
+ too_small: "too_small";
685
+ too_big: "too_big";
686
+ invalid_intersection_types: "invalid_intersection_types";
687
+ not_multiple_of: "not_multiple_of";
688
+ not_finite: "not_finite";
689
+ }>;
690
+ }, import("zod").ZodAny, "strip">>, "many">;
691
+ }, "strip", import("zod").ZodTypeAny, {
692
+ name: "ZodError";
693
+ issues: import("zod").objectOutputType<{
694
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
695
+ message: import("zod").ZodOptional<import("zod").ZodString>;
696
+ code: import("zod").ZodNativeEnum<{
697
+ invalid_type: "invalid_type";
698
+ invalid_literal: "invalid_literal";
699
+ custom: "custom";
700
+ invalid_union: "invalid_union";
701
+ invalid_union_discriminator: "invalid_union_discriminator";
702
+ invalid_enum_value: "invalid_enum_value";
703
+ unrecognized_keys: "unrecognized_keys";
704
+ invalid_arguments: "invalid_arguments";
705
+ invalid_return_type: "invalid_return_type";
706
+ invalid_date: "invalid_date";
707
+ invalid_string: "invalid_string";
708
+ too_small: "too_small";
709
+ too_big: "too_big";
710
+ invalid_intersection_types: "invalid_intersection_types";
711
+ not_multiple_of: "not_multiple_of";
712
+ not_finite: "not_finite";
713
+ }>;
714
+ }, import("zod").ZodAny, "strip">[];
715
+ }, {
716
+ name: "ZodError";
717
+ issues: import("zod").objectInputType<{
718
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
719
+ message: import("zod").ZodOptional<import("zod").ZodString>;
720
+ code: import("zod").ZodNativeEnum<{
721
+ invalid_type: "invalid_type";
722
+ invalid_literal: "invalid_literal";
723
+ custom: "custom";
724
+ invalid_union: "invalid_union";
725
+ invalid_union_discriminator: "invalid_union_discriminator";
726
+ invalid_enum_value: "invalid_enum_value";
727
+ unrecognized_keys: "unrecognized_keys";
728
+ invalid_arguments: "invalid_arguments";
729
+ invalid_return_type: "invalid_return_type";
730
+ invalid_date: "invalid_date";
731
+ invalid_string: "invalid_string";
732
+ too_small: "too_small";
733
+ too_big: "too_big";
734
+ invalid_intersection_types: "invalid_intersection_types";
735
+ not_multiple_of: "not_multiple_of";
736
+ not_finite: "not_finite";
737
+ }>;
738
+ }, import("zod").ZodAny, "strip">[];
739
+ }>;
740
+ 401: import("zod").ZodObject<{
741
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
742
+ error: import("zod").ZodType<"Invalid CDN token", import("zod").ZodTypeDef, "Invalid CDN token">;
743
+ name: import("zod").ZodLiteral<"APIError">;
744
+ }, "strip", import("zod").ZodTypeAny, {
745
+ code: "UNAUTHORIZED";
746
+ name: "APIError";
747
+ error: "Invalid CDN token";
748
+ }, {
749
+ code: "UNAUTHORIZED";
750
+ name: "APIError";
751
+ error: "Invalid CDN token";
752
+ }>;
753
+ 404: import("zod").ZodObject<{
754
+ code: import("zod").ZodType<"NOT_FOUND", import("zod").ZodTypeDef, "NOT_FOUND">;
755
+ error: import("zod").ZodType<"Service asset not found", import("zod").ZodTypeDef, "Service asset not found">;
756
+ name: import("zod").ZodLiteral<"APIError">;
757
+ }, "strip", import("zod").ZodTypeAny, {
758
+ code: "NOT_FOUND";
759
+ name: "APIError";
760
+ error: "Service asset not found";
761
+ }, {
762
+ code: "NOT_FOUND";
763
+ name: "APIError";
764
+ error: "Service asset not found";
765
+ }>;
766
+ 500: import("zod").ZodObject<{
767
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
768
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
769
+ name: import("zod").ZodLiteral<"APIError">;
770
+ }, "strip", import("zod").ZodTypeAny, {
771
+ code: "INTERNAL_SERVER_ERROR";
772
+ name: "APIError";
773
+ error: string;
774
+ }, {
775
+ code: "INTERNAL_SERVER_ERROR";
776
+ name: "APIError";
777
+ error: string;
778
+ }>;
779
+ };
780
+ };
781
+ };
782
+ stats: {
783
+ global: {
784
+ method: "GET";
785
+ path: "/api/v2/stats";
786
+ responses: {
787
+ 200: import("zod").ZodType<{
788
+ record_count: number;
789
+ total_size: number;
790
+ max_size: number;
791
+ }, import("zod").ZodTypeDef, {
792
+ record_count: number;
793
+ total_size: number;
794
+ max_size: number;
795
+ }>;
796
+ 500: import("zod").ZodObject<{
797
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
798
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
799
+ name: import("zod").ZodLiteral<"APIError">;
800
+ }, "strip", import("zod").ZodTypeAny, {
801
+ code: "INTERNAL_SERVER_ERROR";
802
+ name: "APIError";
803
+ error: string;
804
+ }, {
805
+ code: "INTERNAL_SERVER_ERROR";
806
+ name: "APIError";
807
+ error: string;
808
+ }>;
809
+ };
810
+ };
811
+ };
812
+ upload: {
813
+ upload: {
814
+ body: import("zod").ZodObject<{
815
+ file: import("zod").ZodAny;
816
+ data: import("zod").ZodEffects<import("zod").ZodString, {
817
+ filename: string;
818
+ active: boolean;
819
+ visible: boolean;
820
+ role: number;
821
+ }, string>;
822
+ }, "strip", import("zod").ZodTypeAny, {
823
+ data: {
824
+ filename: string;
825
+ active: boolean;
826
+ visible: boolean;
827
+ role: number;
828
+ };
829
+ file?: any;
830
+ }, {
831
+ data: string;
832
+ file?: any;
833
+ }>;
834
+ method: "POST";
835
+ contentType: "multipart/form-data";
836
+ path: "/api/v2/upload";
837
+ headers: import("zod").ZodObject<{
838
+ authorization: import("zod").ZodOptional<import("zod").ZodString>;
839
+ }, "strip", import("zod").ZodTypeAny, {
840
+ authorization?: string | undefined;
841
+ }, {
842
+ authorization?: string | undefined;
843
+ }>;
844
+ responses: {
845
+ 200: import("zod").ZodType<null, import("zod").ZodTypeDef, null>;
846
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
847
+ name: import("zod").ZodLiteral<"ZodError">;
848
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
849
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
850
+ message: import("zod").ZodOptional<import("zod").ZodString>;
851
+ code: import("zod").ZodNativeEnum<{
852
+ invalid_type: "invalid_type";
853
+ invalid_literal: "invalid_literal";
854
+ custom: "custom";
855
+ invalid_union: "invalid_union";
856
+ invalid_union_discriminator: "invalid_union_discriminator";
857
+ invalid_enum_value: "invalid_enum_value";
858
+ unrecognized_keys: "unrecognized_keys";
859
+ invalid_arguments: "invalid_arguments";
860
+ invalid_return_type: "invalid_return_type";
861
+ invalid_date: "invalid_date";
862
+ invalid_string: "invalid_string";
863
+ too_small: "too_small";
864
+ too_big: "too_big";
865
+ invalid_intersection_types: "invalid_intersection_types";
866
+ not_multiple_of: "not_multiple_of";
867
+ not_finite: "not_finite";
868
+ }>;
869
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
870
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
871
+ message: import("zod").ZodOptional<import("zod").ZodString>;
872
+ code: import("zod").ZodNativeEnum<{
873
+ invalid_type: "invalid_type";
874
+ invalid_literal: "invalid_literal";
875
+ custom: "custom";
876
+ invalid_union: "invalid_union";
877
+ invalid_union_discriminator: "invalid_union_discriminator";
878
+ invalid_enum_value: "invalid_enum_value";
879
+ unrecognized_keys: "unrecognized_keys";
880
+ invalid_arguments: "invalid_arguments";
881
+ invalid_return_type: "invalid_return_type";
882
+ invalid_date: "invalid_date";
883
+ invalid_string: "invalid_string";
884
+ too_small: "too_small";
885
+ too_big: "too_big";
886
+ invalid_intersection_types: "invalid_intersection_types";
887
+ not_multiple_of: "not_multiple_of";
888
+ not_finite: "not_finite";
889
+ }>;
890
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
891
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
892
+ message: import("zod").ZodOptional<import("zod").ZodString>;
893
+ code: import("zod").ZodNativeEnum<{
894
+ invalid_type: "invalid_type";
895
+ invalid_literal: "invalid_literal";
896
+ custom: "custom";
897
+ invalid_union: "invalid_union";
898
+ invalid_union_discriminator: "invalid_union_discriminator";
899
+ invalid_enum_value: "invalid_enum_value";
900
+ unrecognized_keys: "unrecognized_keys";
901
+ invalid_arguments: "invalid_arguments";
902
+ invalid_return_type: "invalid_return_type";
903
+ invalid_date: "invalid_date";
904
+ invalid_string: "invalid_string";
905
+ too_small: "too_small";
906
+ too_big: "too_big";
907
+ invalid_intersection_types: "invalid_intersection_types";
908
+ not_multiple_of: "not_multiple_of";
909
+ not_finite: "not_finite";
910
+ }>;
911
+ }, import("zod").ZodAny, "strip">>, "many">;
912
+ }, "strip", import("zod").ZodTypeAny, {
913
+ name: "ZodError";
914
+ issues: import("zod").objectOutputType<{
915
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
916
+ message: import("zod").ZodOptional<import("zod").ZodString>;
917
+ code: import("zod").ZodNativeEnum<{
918
+ invalid_type: "invalid_type";
919
+ invalid_literal: "invalid_literal";
920
+ custom: "custom";
921
+ invalid_union: "invalid_union";
922
+ invalid_union_discriminator: "invalid_union_discriminator";
923
+ invalid_enum_value: "invalid_enum_value";
924
+ unrecognized_keys: "unrecognized_keys";
925
+ invalid_arguments: "invalid_arguments";
926
+ invalid_return_type: "invalid_return_type";
927
+ invalid_date: "invalid_date";
928
+ invalid_string: "invalid_string";
929
+ too_small: "too_small";
930
+ too_big: "too_big";
931
+ invalid_intersection_types: "invalid_intersection_types";
932
+ not_multiple_of: "not_multiple_of";
933
+ not_finite: "not_finite";
934
+ }>;
935
+ }, import("zod").ZodAny, "strip">[];
936
+ }, {
937
+ name: "ZodError";
938
+ issues: import("zod").objectInputType<{
939
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
940
+ message: import("zod").ZodOptional<import("zod").ZodString>;
941
+ code: import("zod").ZodNativeEnum<{
942
+ invalid_type: "invalid_type";
943
+ invalid_literal: "invalid_literal";
944
+ custom: "custom";
945
+ invalid_union: "invalid_union";
946
+ invalid_union_discriminator: "invalid_union_discriminator";
947
+ invalid_enum_value: "invalid_enum_value";
948
+ unrecognized_keys: "unrecognized_keys";
949
+ invalid_arguments: "invalid_arguments";
950
+ invalid_return_type: "invalid_return_type";
951
+ invalid_date: "invalid_date";
952
+ invalid_string: "invalid_string";
953
+ too_small: "too_small";
954
+ too_big: "too_big";
955
+ invalid_intersection_types: "invalid_intersection_types";
956
+ not_multiple_of: "not_multiple_of";
957
+ not_finite: "not_finite";
958
+ }>;
959
+ }, import("zod").ZodAny, "strip">[];
960
+ }>, import("zod").ZodObject<{
961
+ code: import("zod").ZodType<"BAD_REQUEST", import("zod").ZodTypeDef, "BAD_REQUEST">;
962
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
963
+ name: import("zod").ZodLiteral<"APIError">;
964
+ }, "strip", import("zod").ZodTypeAny, {
965
+ code: "BAD_REQUEST";
966
+ name: "APIError";
967
+ error: string;
968
+ }, {
969
+ code: "BAD_REQUEST";
970
+ name: "APIError";
971
+ error: string;
972
+ }>]>;
973
+ 401: import("zod").ZodObject<{
974
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
975
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
976
+ name: import("zod").ZodLiteral<"APIError">;
977
+ }, "strip", import("zod").ZodTypeAny, {
978
+ code: "UNAUTHORIZED";
979
+ name: "APIError";
980
+ error: "Unauthorized";
981
+ }, {
982
+ code: "UNAUTHORIZED";
983
+ name: "APIError";
984
+ error: "Unauthorized";
985
+ }>;
986
+ 403: import("zod").ZodObject<{
987
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
988
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
989
+ name: import("zod").ZodLiteral<"APIError">;
990
+ }, "strip", import("zod").ZodTypeAny, {
991
+ code: "FORBIDDEN";
992
+ name: "APIError";
993
+ error: "Forbidden";
994
+ }, {
995
+ code: "FORBIDDEN";
996
+ name: "APIError";
997
+ error: "Forbidden";
998
+ }>;
999
+ 500: import("zod").ZodObject<{
1000
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1001
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1002
+ name: import("zod").ZodLiteral<"APIError">;
1003
+ }, "strip", import("zod").ZodTypeAny, {
1004
+ code: "INTERNAL_SERVER_ERROR";
1005
+ name: "APIError";
1006
+ error: string;
1007
+ }, {
1008
+ code: "INTERNAL_SERVER_ERROR";
1009
+ name: "APIError";
1010
+ error: string;
1011
+ }>;
1012
+ };
1013
+ };
1014
+ uploadInit: {
1015
+ body: import("zod").ZodObject<{
1016
+ filename: import("zod").ZodString;
1017
+ role: import("zod").ZodNumber;
1018
+ visible: import("zod").ZodBoolean;
1019
+ active: import("zod").ZodBoolean;
1020
+ } & {
1021
+ size: import("zod").ZodNumber;
1022
+ mimeType: import("zod").ZodString;
1023
+ parts: import("zod").ZodNumber;
1024
+ }, "strip", import("zod").ZodTypeAny, {
1025
+ filename: string;
1026
+ active: boolean;
1027
+ visible: boolean;
1028
+ role: number;
1029
+ size: number;
1030
+ mimeType: string;
1031
+ parts: number;
1032
+ }, {
1033
+ filename: string;
1034
+ active: boolean;
1035
+ visible: boolean;
1036
+ role: number;
1037
+ size: number;
1038
+ mimeType: string;
1039
+ parts: number;
1040
+ }>;
1041
+ method: "POST";
1042
+ path: "/api/v2/upload/init";
1043
+ responses: {
1044
+ 200: import("zod").ZodType<{
1045
+ uploadId: string;
1046
+ }, import("zod").ZodTypeDef, {
1047
+ uploadId: string;
1048
+ }>;
1049
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
1050
+ name: import("zod").ZodLiteral<"ZodError">;
1051
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
1052
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1053
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1054
+ code: import("zod").ZodNativeEnum<{
1055
+ invalid_type: "invalid_type";
1056
+ invalid_literal: "invalid_literal";
1057
+ custom: "custom";
1058
+ invalid_union: "invalid_union";
1059
+ invalid_union_discriminator: "invalid_union_discriminator";
1060
+ invalid_enum_value: "invalid_enum_value";
1061
+ unrecognized_keys: "unrecognized_keys";
1062
+ invalid_arguments: "invalid_arguments";
1063
+ invalid_return_type: "invalid_return_type";
1064
+ invalid_date: "invalid_date";
1065
+ invalid_string: "invalid_string";
1066
+ too_small: "too_small";
1067
+ too_big: "too_big";
1068
+ invalid_intersection_types: "invalid_intersection_types";
1069
+ not_multiple_of: "not_multiple_of";
1070
+ not_finite: "not_finite";
1071
+ }>;
1072
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1073
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1074
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1075
+ code: import("zod").ZodNativeEnum<{
1076
+ invalid_type: "invalid_type";
1077
+ invalid_literal: "invalid_literal";
1078
+ custom: "custom";
1079
+ invalid_union: "invalid_union";
1080
+ invalid_union_discriminator: "invalid_union_discriminator";
1081
+ invalid_enum_value: "invalid_enum_value";
1082
+ unrecognized_keys: "unrecognized_keys";
1083
+ invalid_arguments: "invalid_arguments";
1084
+ invalid_return_type: "invalid_return_type";
1085
+ invalid_date: "invalid_date";
1086
+ invalid_string: "invalid_string";
1087
+ too_small: "too_small";
1088
+ too_big: "too_big";
1089
+ invalid_intersection_types: "invalid_intersection_types";
1090
+ not_multiple_of: "not_multiple_of";
1091
+ not_finite: "not_finite";
1092
+ }>;
1093
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1094
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1095
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1096
+ code: import("zod").ZodNativeEnum<{
1097
+ invalid_type: "invalid_type";
1098
+ invalid_literal: "invalid_literal";
1099
+ custom: "custom";
1100
+ invalid_union: "invalid_union";
1101
+ invalid_union_discriminator: "invalid_union_discriminator";
1102
+ invalid_enum_value: "invalid_enum_value";
1103
+ unrecognized_keys: "unrecognized_keys";
1104
+ invalid_arguments: "invalid_arguments";
1105
+ invalid_return_type: "invalid_return_type";
1106
+ invalid_date: "invalid_date";
1107
+ invalid_string: "invalid_string";
1108
+ too_small: "too_small";
1109
+ too_big: "too_big";
1110
+ invalid_intersection_types: "invalid_intersection_types";
1111
+ not_multiple_of: "not_multiple_of";
1112
+ not_finite: "not_finite";
1113
+ }>;
1114
+ }, import("zod").ZodAny, "strip">>, "many">;
1115
+ }, "strip", import("zod").ZodTypeAny, {
1116
+ name: "ZodError";
1117
+ issues: import("zod").objectOutputType<{
1118
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1119
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1120
+ code: import("zod").ZodNativeEnum<{
1121
+ invalid_type: "invalid_type";
1122
+ invalid_literal: "invalid_literal";
1123
+ custom: "custom";
1124
+ invalid_union: "invalid_union";
1125
+ invalid_union_discriminator: "invalid_union_discriminator";
1126
+ invalid_enum_value: "invalid_enum_value";
1127
+ unrecognized_keys: "unrecognized_keys";
1128
+ invalid_arguments: "invalid_arguments";
1129
+ invalid_return_type: "invalid_return_type";
1130
+ invalid_date: "invalid_date";
1131
+ invalid_string: "invalid_string";
1132
+ too_small: "too_small";
1133
+ too_big: "too_big";
1134
+ invalid_intersection_types: "invalid_intersection_types";
1135
+ not_multiple_of: "not_multiple_of";
1136
+ not_finite: "not_finite";
1137
+ }>;
1138
+ }, import("zod").ZodAny, "strip">[];
1139
+ }, {
1140
+ name: "ZodError";
1141
+ issues: import("zod").objectInputType<{
1142
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1143
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1144
+ code: import("zod").ZodNativeEnum<{
1145
+ invalid_type: "invalid_type";
1146
+ invalid_literal: "invalid_literal";
1147
+ custom: "custom";
1148
+ invalid_union: "invalid_union";
1149
+ invalid_union_discriminator: "invalid_union_discriminator";
1150
+ invalid_enum_value: "invalid_enum_value";
1151
+ unrecognized_keys: "unrecognized_keys";
1152
+ invalid_arguments: "invalid_arguments";
1153
+ invalid_return_type: "invalid_return_type";
1154
+ invalid_date: "invalid_date";
1155
+ invalid_string: "invalid_string";
1156
+ too_small: "too_small";
1157
+ too_big: "too_big";
1158
+ invalid_intersection_types: "invalid_intersection_types";
1159
+ not_multiple_of: "not_multiple_of";
1160
+ not_finite: "not_finite";
1161
+ }>;
1162
+ }, import("zod").ZodAny, "strip">[];
1163
+ }>, import("zod").ZodObject<{
1164
+ code: import("zod").ZodType<"BAD_REQUEST", import("zod").ZodTypeDef, "BAD_REQUEST">;
1165
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1166
+ name: import("zod").ZodLiteral<"APIError">;
1167
+ }, "strip", import("zod").ZodTypeAny, {
1168
+ code: "BAD_REQUEST";
1169
+ name: "APIError";
1170
+ error: string;
1171
+ }, {
1172
+ code: "BAD_REQUEST";
1173
+ name: "APIError";
1174
+ error: string;
1175
+ }>]>;
1176
+ 401: import("zod").ZodObject<{
1177
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1178
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1179
+ name: import("zod").ZodLiteral<"APIError">;
1180
+ }, "strip", import("zod").ZodTypeAny, {
1181
+ code: "UNAUTHORIZED";
1182
+ name: "APIError";
1183
+ error: "Unauthorized";
1184
+ }, {
1185
+ code: "UNAUTHORIZED";
1186
+ name: "APIError";
1187
+ error: "Unauthorized";
1188
+ }>;
1189
+ 403: import("zod").ZodObject<{
1190
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1191
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1192
+ name: import("zod").ZodLiteral<"APIError">;
1193
+ }, "strip", import("zod").ZodTypeAny, {
1194
+ code: "FORBIDDEN";
1195
+ name: "APIError";
1196
+ error: "Forbidden";
1197
+ }, {
1198
+ code: "FORBIDDEN";
1199
+ name: "APIError";
1200
+ error: "Forbidden";
1201
+ }>;
1202
+ 500: import("zod").ZodObject<{
1203
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1204
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1205
+ name: import("zod").ZodLiteral<"APIError">;
1206
+ }, "strip", import("zod").ZodTypeAny, {
1207
+ code: "INTERNAL_SERVER_ERROR";
1208
+ name: "APIError";
1209
+ error: string;
1210
+ }, {
1211
+ code: "INTERNAL_SERVER_ERROR";
1212
+ name: "APIError";
1213
+ error: string;
1214
+ }>;
1215
+ };
1216
+ };
1217
+ uploadPart: {
1218
+ body: import("zod").ZodObject<{
1219
+ file: import("zod").ZodAny;
1220
+ }, "strip", import("zod").ZodTypeAny, {
1221
+ file?: any;
1222
+ }, {
1223
+ file?: any;
1224
+ }>;
1225
+ method: "POST";
1226
+ contentType: "multipart/form-data";
1227
+ path: "/api/v2/upload/part/:upload_id/:part";
1228
+ responses: {
1229
+ 200: import("zod").ZodType<null, import("zod").ZodTypeDef, null>;
1230
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
1231
+ name: import("zod").ZodLiteral<"ZodError">;
1232
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
1233
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1234
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1235
+ code: import("zod").ZodNativeEnum<{
1236
+ invalid_type: "invalid_type";
1237
+ invalid_literal: "invalid_literal";
1238
+ custom: "custom";
1239
+ invalid_union: "invalid_union";
1240
+ invalid_union_discriminator: "invalid_union_discriminator";
1241
+ invalid_enum_value: "invalid_enum_value";
1242
+ unrecognized_keys: "unrecognized_keys";
1243
+ invalid_arguments: "invalid_arguments";
1244
+ invalid_return_type: "invalid_return_type";
1245
+ invalid_date: "invalid_date";
1246
+ invalid_string: "invalid_string";
1247
+ too_small: "too_small";
1248
+ too_big: "too_big";
1249
+ invalid_intersection_types: "invalid_intersection_types";
1250
+ not_multiple_of: "not_multiple_of";
1251
+ not_finite: "not_finite";
1252
+ }>;
1253
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1254
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1255
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1256
+ code: import("zod").ZodNativeEnum<{
1257
+ invalid_type: "invalid_type";
1258
+ invalid_literal: "invalid_literal";
1259
+ custom: "custom";
1260
+ invalid_union: "invalid_union";
1261
+ invalid_union_discriminator: "invalid_union_discriminator";
1262
+ invalid_enum_value: "invalid_enum_value";
1263
+ unrecognized_keys: "unrecognized_keys";
1264
+ invalid_arguments: "invalid_arguments";
1265
+ invalid_return_type: "invalid_return_type";
1266
+ invalid_date: "invalid_date";
1267
+ invalid_string: "invalid_string";
1268
+ too_small: "too_small";
1269
+ too_big: "too_big";
1270
+ invalid_intersection_types: "invalid_intersection_types";
1271
+ not_multiple_of: "not_multiple_of";
1272
+ not_finite: "not_finite";
1273
+ }>;
1274
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1275
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1276
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1277
+ code: import("zod").ZodNativeEnum<{
1278
+ invalid_type: "invalid_type";
1279
+ invalid_literal: "invalid_literal";
1280
+ custom: "custom";
1281
+ invalid_union: "invalid_union";
1282
+ invalid_union_discriminator: "invalid_union_discriminator";
1283
+ invalid_enum_value: "invalid_enum_value";
1284
+ unrecognized_keys: "unrecognized_keys";
1285
+ invalid_arguments: "invalid_arguments";
1286
+ invalid_return_type: "invalid_return_type";
1287
+ invalid_date: "invalid_date";
1288
+ invalid_string: "invalid_string";
1289
+ too_small: "too_small";
1290
+ too_big: "too_big";
1291
+ invalid_intersection_types: "invalid_intersection_types";
1292
+ not_multiple_of: "not_multiple_of";
1293
+ not_finite: "not_finite";
1294
+ }>;
1295
+ }, import("zod").ZodAny, "strip">>, "many">;
1296
+ }, "strip", import("zod").ZodTypeAny, {
1297
+ name: "ZodError";
1298
+ issues: import("zod").objectOutputType<{
1299
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1300
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1301
+ code: import("zod").ZodNativeEnum<{
1302
+ invalid_type: "invalid_type";
1303
+ invalid_literal: "invalid_literal";
1304
+ custom: "custom";
1305
+ invalid_union: "invalid_union";
1306
+ invalid_union_discriminator: "invalid_union_discriminator";
1307
+ invalid_enum_value: "invalid_enum_value";
1308
+ unrecognized_keys: "unrecognized_keys";
1309
+ invalid_arguments: "invalid_arguments";
1310
+ invalid_return_type: "invalid_return_type";
1311
+ invalid_date: "invalid_date";
1312
+ invalid_string: "invalid_string";
1313
+ too_small: "too_small";
1314
+ too_big: "too_big";
1315
+ invalid_intersection_types: "invalid_intersection_types";
1316
+ not_multiple_of: "not_multiple_of";
1317
+ not_finite: "not_finite";
1318
+ }>;
1319
+ }, import("zod").ZodAny, "strip">[];
1320
+ }, {
1321
+ name: "ZodError";
1322
+ issues: import("zod").objectInputType<{
1323
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1324
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1325
+ code: import("zod").ZodNativeEnum<{
1326
+ invalid_type: "invalid_type";
1327
+ invalid_literal: "invalid_literal";
1328
+ custom: "custom";
1329
+ invalid_union: "invalid_union";
1330
+ invalid_union_discriminator: "invalid_union_discriminator";
1331
+ invalid_enum_value: "invalid_enum_value";
1332
+ unrecognized_keys: "unrecognized_keys";
1333
+ invalid_arguments: "invalid_arguments";
1334
+ invalid_return_type: "invalid_return_type";
1335
+ invalid_date: "invalid_date";
1336
+ invalid_string: "invalid_string";
1337
+ too_small: "too_small";
1338
+ too_big: "too_big";
1339
+ invalid_intersection_types: "invalid_intersection_types";
1340
+ not_multiple_of: "not_multiple_of";
1341
+ not_finite: "not_finite";
1342
+ }>;
1343
+ }, import("zod").ZodAny, "strip">[];
1344
+ }>, import("zod").ZodObject<{
1345
+ code: import("zod").ZodType<"BAD_REQUEST", import("zod").ZodTypeDef, "BAD_REQUEST">;
1346
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1347
+ name: import("zod").ZodLiteral<"APIError">;
1348
+ }, "strip", import("zod").ZodTypeAny, {
1349
+ code: "BAD_REQUEST";
1350
+ name: "APIError";
1351
+ error: string;
1352
+ }, {
1353
+ code: "BAD_REQUEST";
1354
+ name: "APIError";
1355
+ error: string;
1356
+ }>]>;
1357
+ 401: import("zod").ZodObject<{
1358
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1359
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1360
+ name: import("zod").ZodLiteral<"APIError">;
1361
+ }, "strip", import("zod").ZodTypeAny, {
1362
+ code: "UNAUTHORIZED";
1363
+ name: "APIError";
1364
+ error: "Unauthorized";
1365
+ }, {
1366
+ code: "UNAUTHORIZED";
1367
+ name: "APIError";
1368
+ error: "Unauthorized";
1369
+ }>;
1370
+ 403: import("zod").ZodObject<{
1371
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1372
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1373
+ name: import("zod").ZodLiteral<"APIError">;
1374
+ }, "strip", import("zod").ZodTypeAny, {
1375
+ code: "FORBIDDEN";
1376
+ name: "APIError";
1377
+ error: "Forbidden";
1378
+ }, {
1379
+ code: "FORBIDDEN";
1380
+ name: "APIError";
1381
+ error: "Forbidden";
1382
+ }>;
1383
+ 404: import("zod").ZodObject<{
1384
+ code: import("zod").ZodType<"NOT_FOUND", import("zod").ZodTypeDef, "NOT_FOUND">;
1385
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1386
+ name: import("zod").ZodLiteral<"APIError">;
1387
+ }, "strip", import("zod").ZodTypeAny, {
1388
+ code: "NOT_FOUND";
1389
+ name: "APIError";
1390
+ error: string;
1391
+ }, {
1392
+ code: "NOT_FOUND";
1393
+ name: "APIError";
1394
+ error: string;
1395
+ }>;
1396
+ 409: import("zod").ZodObject<{
1397
+ code: import("zod").ZodType<"CONFLICT", import("zod").ZodTypeDef, "CONFLICT">;
1398
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1399
+ name: import("zod").ZodLiteral<"APIError">;
1400
+ }, "strip", import("zod").ZodTypeAny, {
1401
+ code: "CONFLICT";
1402
+ name: "APIError";
1403
+ error: string;
1404
+ }, {
1405
+ code: "CONFLICT";
1406
+ name: "APIError";
1407
+ error: string;
1408
+ }>;
1409
+ 500: import("zod").ZodObject<{
1410
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1411
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1412
+ name: import("zod").ZodLiteral<"APIError">;
1413
+ }, "strip", import("zod").ZodTypeAny, {
1414
+ code: "INTERNAL_SERVER_ERROR";
1415
+ name: "APIError";
1416
+ error: string;
1417
+ }, {
1418
+ code: "INTERNAL_SERVER_ERROR";
1419
+ name: "APIError";
1420
+ error: string;
1421
+ }>;
1422
+ };
1423
+ };
1424
+ uploadEnd: {
1425
+ body: import("zod").ZodUndefined;
1426
+ method: "POST";
1427
+ path: "/api/v2/upload/end/:upload_id";
1428
+ responses: {
1429
+ 200: import("zod").ZodType<null, import("zod").ZodTypeDef, null>;
1430
+ 400: import("zod").ZodObject<{
1431
+ name: import("zod").ZodLiteral<"ZodError">;
1432
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
1433
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1434
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1435
+ code: import("zod").ZodNativeEnum<{
1436
+ invalid_type: "invalid_type";
1437
+ invalid_literal: "invalid_literal";
1438
+ custom: "custom";
1439
+ invalid_union: "invalid_union";
1440
+ invalid_union_discriminator: "invalid_union_discriminator";
1441
+ invalid_enum_value: "invalid_enum_value";
1442
+ unrecognized_keys: "unrecognized_keys";
1443
+ invalid_arguments: "invalid_arguments";
1444
+ invalid_return_type: "invalid_return_type";
1445
+ invalid_date: "invalid_date";
1446
+ invalid_string: "invalid_string";
1447
+ too_small: "too_small";
1448
+ too_big: "too_big";
1449
+ invalid_intersection_types: "invalid_intersection_types";
1450
+ not_multiple_of: "not_multiple_of";
1451
+ not_finite: "not_finite";
1452
+ }>;
1453
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1454
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1455
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1456
+ code: import("zod").ZodNativeEnum<{
1457
+ invalid_type: "invalid_type";
1458
+ invalid_literal: "invalid_literal";
1459
+ custom: "custom";
1460
+ invalid_union: "invalid_union";
1461
+ invalid_union_discriminator: "invalid_union_discriminator";
1462
+ invalid_enum_value: "invalid_enum_value";
1463
+ unrecognized_keys: "unrecognized_keys";
1464
+ invalid_arguments: "invalid_arguments";
1465
+ invalid_return_type: "invalid_return_type";
1466
+ invalid_date: "invalid_date";
1467
+ invalid_string: "invalid_string";
1468
+ too_small: "too_small";
1469
+ too_big: "too_big";
1470
+ invalid_intersection_types: "invalid_intersection_types";
1471
+ not_multiple_of: "not_multiple_of";
1472
+ not_finite: "not_finite";
1473
+ }>;
1474
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1475
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1476
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1477
+ code: import("zod").ZodNativeEnum<{
1478
+ invalid_type: "invalid_type";
1479
+ invalid_literal: "invalid_literal";
1480
+ custom: "custom";
1481
+ invalid_union: "invalid_union";
1482
+ invalid_union_discriminator: "invalid_union_discriminator";
1483
+ invalid_enum_value: "invalid_enum_value";
1484
+ unrecognized_keys: "unrecognized_keys";
1485
+ invalid_arguments: "invalid_arguments";
1486
+ invalid_return_type: "invalid_return_type";
1487
+ invalid_date: "invalid_date";
1488
+ invalid_string: "invalid_string";
1489
+ too_small: "too_small";
1490
+ too_big: "too_big";
1491
+ invalid_intersection_types: "invalid_intersection_types";
1492
+ not_multiple_of: "not_multiple_of";
1493
+ not_finite: "not_finite";
1494
+ }>;
1495
+ }, import("zod").ZodAny, "strip">>, "many">;
1496
+ }, "strip", import("zod").ZodTypeAny, {
1497
+ name: "ZodError";
1498
+ issues: import("zod").objectOutputType<{
1499
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1500
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1501
+ code: import("zod").ZodNativeEnum<{
1502
+ invalid_type: "invalid_type";
1503
+ invalid_literal: "invalid_literal";
1504
+ custom: "custom";
1505
+ invalid_union: "invalid_union";
1506
+ invalid_union_discriminator: "invalid_union_discriminator";
1507
+ invalid_enum_value: "invalid_enum_value";
1508
+ unrecognized_keys: "unrecognized_keys";
1509
+ invalid_arguments: "invalid_arguments";
1510
+ invalid_return_type: "invalid_return_type";
1511
+ invalid_date: "invalid_date";
1512
+ invalid_string: "invalid_string";
1513
+ too_small: "too_small";
1514
+ too_big: "too_big";
1515
+ invalid_intersection_types: "invalid_intersection_types";
1516
+ not_multiple_of: "not_multiple_of";
1517
+ not_finite: "not_finite";
1518
+ }>;
1519
+ }, import("zod").ZodAny, "strip">[];
1520
+ }, {
1521
+ name: "ZodError";
1522
+ issues: import("zod").objectInputType<{
1523
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1524
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1525
+ code: import("zod").ZodNativeEnum<{
1526
+ invalid_type: "invalid_type";
1527
+ invalid_literal: "invalid_literal";
1528
+ custom: "custom";
1529
+ invalid_union: "invalid_union";
1530
+ invalid_union_discriminator: "invalid_union_discriminator";
1531
+ invalid_enum_value: "invalid_enum_value";
1532
+ unrecognized_keys: "unrecognized_keys";
1533
+ invalid_arguments: "invalid_arguments";
1534
+ invalid_return_type: "invalid_return_type";
1535
+ invalid_date: "invalid_date";
1536
+ invalid_string: "invalid_string";
1537
+ too_small: "too_small";
1538
+ too_big: "too_big";
1539
+ invalid_intersection_types: "invalid_intersection_types";
1540
+ not_multiple_of: "not_multiple_of";
1541
+ not_finite: "not_finite";
1542
+ }>;
1543
+ }, import("zod").ZodAny, "strip">[];
1544
+ }>;
1545
+ 401: import("zod").ZodObject<{
1546
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1547
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1548
+ name: import("zod").ZodLiteral<"APIError">;
1549
+ }, "strip", import("zod").ZodTypeAny, {
1550
+ code: "UNAUTHORIZED";
1551
+ name: "APIError";
1552
+ error: "Unauthorized";
1553
+ }, {
1554
+ code: "UNAUTHORIZED";
1555
+ name: "APIError";
1556
+ error: "Unauthorized";
1557
+ }>;
1558
+ 403: import("zod").ZodObject<{
1559
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1560
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1561
+ name: import("zod").ZodLiteral<"APIError">;
1562
+ }, "strip", import("zod").ZodTypeAny, {
1563
+ code: "FORBIDDEN";
1564
+ name: "APIError";
1565
+ error: "Forbidden";
1566
+ }, {
1567
+ code: "FORBIDDEN";
1568
+ name: "APIError";
1569
+ error: "Forbidden";
1570
+ }>;
1571
+ 404: import("zod").ZodObject<{
1572
+ code: import("zod").ZodType<"NOT_FOUND", import("zod").ZodTypeDef, "NOT_FOUND">;
1573
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1574
+ name: import("zod").ZodLiteral<"APIError">;
1575
+ }, "strip", import("zod").ZodTypeAny, {
1576
+ code: "NOT_FOUND";
1577
+ name: "APIError";
1578
+ error: string;
1579
+ }, {
1580
+ code: "NOT_FOUND";
1581
+ name: "APIError";
1582
+ error: string;
1583
+ }>;
1584
+ 500: import("zod").ZodObject<{
1585
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1586
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1587
+ name: import("zod").ZodLiteral<"APIError">;
1588
+ }, "strip", import("zod").ZodTypeAny, {
1589
+ code: "INTERNAL_SERVER_ERROR";
1590
+ name: "APIError";
1591
+ error: string;
1592
+ }, {
1593
+ code: "INTERNAL_SERVER_ERROR";
1594
+ name: "APIError";
1595
+ error: string;
1596
+ }>;
1597
+ };
1598
+ };
1599
+ };
1600
+ publicKey: {
1601
+ method: "GET";
1602
+ path: "/api/v2/public-key";
1603
+ responses: {
1604
+ 200: import("zod").ZodType<{
1605
+ publicKey: string;
1606
+ }, import("zod").ZodTypeDef, {
1607
+ publicKey: string;
1608
+ }>;
1609
+ };
1610
+ };
1611
+ auth: {
1612
+ access: {
1613
+ method: "GET";
1614
+ path: "/api/v2/auth/access";
1615
+ headers: import("zod").ZodObject<{
1616
+ authorization: import("zod").ZodOptional<import("zod").ZodString>;
1617
+ }, "strip", import("zod").ZodTypeAny, {
1618
+ authorization?: string | undefined;
1619
+ }, {
1620
+ authorization?: string | undefined;
1621
+ }>;
1622
+ responses: {
1623
+ 200: import("zod").ZodType<{
1624
+ access: boolean;
1625
+ }, import("zod").ZodTypeDef, {
1626
+ access: boolean;
1627
+ }>;
1628
+ 500: import("zod").ZodObject<{
1629
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1630
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1631
+ name: import("zod").ZodLiteral<"APIError">;
1632
+ }, "strip", import("zod").ZodTypeAny, {
1633
+ code: "INTERNAL_SERVER_ERROR";
1634
+ name: "APIError";
1635
+ error: string;
1636
+ }, {
1637
+ code: "INTERNAL_SERVER_ERROR";
1638
+ name: "APIError";
1639
+ error: string;
1640
+ }>;
1641
+ };
1642
+ };
1643
+ };
1644
+ endpoint: {
1645
+ create: {
1646
+ body: import("zod").ZodObject<{
1647
+ storage_id: import("zod").ZodString;
1648
+ endpoint: import("zod").ZodString;
1649
+ }, "strip", import("zod").ZodTypeAny, {
1650
+ endpoint: string;
1651
+ storage_id: string;
1652
+ }, {
1653
+ endpoint: string;
1654
+ storage_id: string;
1655
+ }>;
1656
+ method: "POST";
1657
+ path: "/api/v2/endpoint";
1658
+ headers: import("zod").ZodObject<{
1659
+ authorization: import("zod").ZodOptional<import("zod").ZodString>;
1660
+ }, "strip", import("zod").ZodTypeAny, {
1661
+ authorization?: string | undefined;
1662
+ }, {
1663
+ authorization?: string | undefined;
1664
+ }>;
1665
+ responses: {
1666
+ 200: import("zod").ZodType<null, import("zod").ZodTypeDef, null>;
1667
+ 400: import("zod").ZodObject<{
1668
+ name: import("zod").ZodLiteral<"ZodError">;
1669
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
1670
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1671
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1672
+ code: import("zod").ZodNativeEnum<{
1673
+ invalid_type: "invalid_type";
1674
+ invalid_literal: "invalid_literal";
1675
+ custom: "custom";
1676
+ invalid_union: "invalid_union";
1677
+ invalid_union_discriminator: "invalid_union_discriminator";
1678
+ invalid_enum_value: "invalid_enum_value";
1679
+ unrecognized_keys: "unrecognized_keys";
1680
+ invalid_arguments: "invalid_arguments";
1681
+ invalid_return_type: "invalid_return_type";
1682
+ invalid_date: "invalid_date";
1683
+ invalid_string: "invalid_string";
1684
+ too_small: "too_small";
1685
+ too_big: "too_big";
1686
+ invalid_intersection_types: "invalid_intersection_types";
1687
+ not_multiple_of: "not_multiple_of";
1688
+ not_finite: "not_finite";
1689
+ }>;
1690
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1691
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1692
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1693
+ code: import("zod").ZodNativeEnum<{
1694
+ invalid_type: "invalid_type";
1695
+ invalid_literal: "invalid_literal";
1696
+ custom: "custom";
1697
+ invalid_union: "invalid_union";
1698
+ invalid_union_discriminator: "invalid_union_discriminator";
1699
+ invalid_enum_value: "invalid_enum_value";
1700
+ unrecognized_keys: "unrecognized_keys";
1701
+ invalid_arguments: "invalid_arguments";
1702
+ invalid_return_type: "invalid_return_type";
1703
+ invalid_date: "invalid_date";
1704
+ invalid_string: "invalid_string";
1705
+ too_small: "too_small";
1706
+ too_big: "too_big";
1707
+ invalid_intersection_types: "invalid_intersection_types";
1708
+ not_multiple_of: "not_multiple_of";
1709
+ not_finite: "not_finite";
1710
+ }>;
1711
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1712
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1713
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1714
+ code: import("zod").ZodNativeEnum<{
1715
+ invalid_type: "invalid_type";
1716
+ invalid_literal: "invalid_literal";
1717
+ custom: "custom";
1718
+ invalid_union: "invalid_union";
1719
+ invalid_union_discriminator: "invalid_union_discriminator";
1720
+ invalid_enum_value: "invalid_enum_value";
1721
+ unrecognized_keys: "unrecognized_keys";
1722
+ invalid_arguments: "invalid_arguments";
1723
+ invalid_return_type: "invalid_return_type";
1724
+ invalid_date: "invalid_date";
1725
+ invalid_string: "invalid_string";
1726
+ too_small: "too_small";
1727
+ too_big: "too_big";
1728
+ invalid_intersection_types: "invalid_intersection_types";
1729
+ not_multiple_of: "not_multiple_of";
1730
+ not_finite: "not_finite";
1731
+ }>;
1732
+ }, import("zod").ZodAny, "strip">>, "many">;
1733
+ }, "strip", import("zod").ZodTypeAny, {
1734
+ name: "ZodError";
1735
+ issues: import("zod").objectOutputType<{
1736
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1737
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1738
+ code: import("zod").ZodNativeEnum<{
1739
+ invalid_type: "invalid_type";
1740
+ invalid_literal: "invalid_literal";
1741
+ custom: "custom";
1742
+ invalid_union: "invalid_union";
1743
+ invalid_union_discriminator: "invalid_union_discriminator";
1744
+ invalid_enum_value: "invalid_enum_value";
1745
+ unrecognized_keys: "unrecognized_keys";
1746
+ invalid_arguments: "invalid_arguments";
1747
+ invalid_return_type: "invalid_return_type";
1748
+ invalid_date: "invalid_date";
1749
+ invalid_string: "invalid_string";
1750
+ too_small: "too_small";
1751
+ too_big: "too_big";
1752
+ invalid_intersection_types: "invalid_intersection_types";
1753
+ not_multiple_of: "not_multiple_of";
1754
+ not_finite: "not_finite";
1755
+ }>;
1756
+ }, import("zod").ZodAny, "strip">[];
1757
+ }, {
1758
+ name: "ZodError";
1759
+ issues: import("zod").objectInputType<{
1760
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1761
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1762
+ code: import("zod").ZodNativeEnum<{
1763
+ invalid_type: "invalid_type";
1764
+ invalid_literal: "invalid_literal";
1765
+ custom: "custom";
1766
+ invalid_union: "invalid_union";
1767
+ invalid_union_discriminator: "invalid_union_discriminator";
1768
+ invalid_enum_value: "invalid_enum_value";
1769
+ unrecognized_keys: "unrecognized_keys";
1770
+ invalid_arguments: "invalid_arguments";
1771
+ invalid_return_type: "invalid_return_type";
1772
+ invalid_date: "invalid_date";
1773
+ invalid_string: "invalid_string";
1774
+ too_small: "too_small";
1775
+ too_big: "too_big";
1776
+ invalid_intersection_types: "invalid_intersection_types";
1777
+ not_multiple_of: "not_multiple_of";
1778
+ not_finite: "not_finite";
1779
+ }>;
1780
+ }, import("zod").ZodAny, "strip">[];
1781
+ }>;
1782
+ 401: import("zod").ZodObject<{
1783
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1784
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1785
+ name: import("zod").ZodLiteral<"APIError">;
1786
+ }, "strip", import("zod").ZodTypeAny, {
1787
+ code: "UNAUTHORIZED";
1788
+ name: "APIError";
1789
+ error: "Unauthorized";
1790
+ }, {
1791
+ code: "UNAUTHORIZED";
1792
+ name: "APIError";
1793
+ error: "Unauthorized";
1794
+ }>;
1795
+ 403: import("zod").ZodObject<{
1796
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1797
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1798
+ name: import("zod").ZodLiteral<"APIError">;
1799
+ }, "strip", import("zod").ZodTypeAny, {
1800
+ code: "FORBIDDEN";
1801
+ name: "APIError";
1802
+ error: "Forbidden";
1803
+ }, {
1804
+ code: "FORBIDDEN";
1805
+ name: "APIError";
1806
+ error: "Forbidden";
1807
+ }>;
1808
+ 404: import("zod").ZodObject<{
1809
+ code: import("zod").ZodType<"NOT_FOUND", import("zod").ZodTypeDef, "NOT_FOUND">;
1810
+ error: import("zod").ZodType<"Record not found", import("zod").ZodTypeDef, "Record not found">;
1811
+ name: import("zod").ZodLiteral<"APIError">;
1812
+ }, "strip", import("zod").ZodTypeAny, {
1813
+ code: "NOT_FOUND";
1814
+ name: "APIError";
1815
+ error: "Record not found";
1816
+ }, {
1817
+ code: "NOT_FOUND";
1818
+ name: "APIError";
1819
+ error: "Record not found";
1820
+ }>;
1821
+ 409: import("zod").ZodObject<{
1822
+ code: import("zod").ZodType<"CONFLICT", import("zod").ZodTypeDef, "CONFLICT">;
1823
+ error: import("zod").ZodType<"Endpoint already exists", import("zod").ZodTypeDef, "Endpoint already exists">;
1824
+ name: import("zod").ZodLiteral<"APIError">;
1825
+ }, "strip", import("zod").ZodTypeAny, {
1826
+ code: "CONFLICT";
1827
+ name: "APIError";
1828
+ error: "Endpoint already exists";
1829
+ }, {
1830
+ code: "CONFLICT";
1831
+ name: "APIError";
1832
+ error: "Endpoint already exists";
1833
+ }>;
1834
+ 500: import("zod").ZodObject<{
1835
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1836
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1837
+ name: import("zod").ZodLiteral<"APIError">;
1838
+ }, "strip", import("zod").ZodTypeAny, {
1839
+ code: "INTERNAL_SERVER_ERROR";
1840
+ name: "APIError";
1841
+ error: string;
1842
+ }, {
1843
+ code: "INTERNAL_SERVER_ERROR";
1844
+ name: "APIError";
1845
+ error: string;
1846
+ }>;
1847
+ };
1848
+ };
1849
+ delete: {
1850
+ body: import("zod").ZodObject<{
1851
+ endpoint: import("zod").ZodString;
1852
+ }, "strip", import("zod").ZodTypeAny, {
1853
+ endpoint: string;
1854
+ }, {
1855
+ endpoint: string;
1856
+ }>;
1857
+ method: "DELETE";
1858
+ path: "/api/v2/endpoint";
1859
+ headers: import("zod").ZodObject<{
1860
+ authorization: import("zod").ZodOptional<import("zod").ZodString>;
1861
+ }, "strip", import("zod").ZodTypeAny, {
1862
+ authorization?: string | undefined;
1863
+ }, {
1864
+ authorization?: string | undefined;
1865
+ }>;
1866
+ responses: {
1867
+ 200: import("zod").ZodType<null, import("zod").ZodTypeDef, null>;
1868
+ 400: import("zod").ZodObject<{
1869
+ name: import("zod").ZodLiteral<"ZodError">;
1870
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
1871
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1872
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1873
+ code: import("zod").ZodNativeEnum<{
1874
+ invalid_type: "invalid_type";
1875
+ invalid_literal: "invalid_literal";
1876
+ custom: "custom";
1877
+ invalid_union: "invalid_union";
1878
+ invalid_union_discriminator: "invalid_union_discriminator";
1879
+ invalid_enum_value: "invalid_enum_value";
1880
+ unrecognized_keys: "unrecognized_keys";
1881
+ invalid_arguments: "invalid_arguments";
1882
+ invalid_return_type: "invalid_return_type";
1883
+ invalid_date: "invalid_date";
1884
+ invalid_string: "invalid_string";
1885
+ too_small: "too_small";
1886
+ too_big: "too_big";
1887
+ invalid_intersection_types: "invalid_intersection_types";
1888
+ not_multiple_of: "not_multiple_of";
1889
+ not_finite: "not_finite";
1890
+ }>;
1891
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1892
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1893
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1894
+ code: import("zod").ZodNativeEnum<{
1895
+ invalid_type: "invalid_type";
1896
+ invalid_literal: "invalid_literal";
1897
+ custom: "custom";
1898
+ invalid_union: "invalid_union";
1899
+ invalid_union_discriminator: "invalid_union_discriminator";
1900
+ invalid_enum_value: "invalid_enum_value";
1901
+ unrecognized_keys: "unrecognized_keys";
1902
+ invalid_arguments: "invalid_arguments";
1903
+ invalid_return_type: "invalid_return_type";
1904
+ invalid_date: "invalid_date";
1905
+ invalid_string: "invalid_string";
1906
+ too_small: "too_small";
1907
+ too_big: "too_big";
1908
+ invalid_intersection_types: "invalid_intersection_types";
1909
+ not_multiple_of: "not_multiple_of";
1910
+ not_finite: "not_finite";
1911
+ }>;
1912
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1913
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1914
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1915
+ code: import("zod").ZodNativeEnum<{
1916
+ invalid_type: "invalid_type";
1917
+ invalid_literal: "invalid_literal";
1918
+ custom: "custom";
1919
+ invalid_union: "invalid_union";
1920
+ invalid_union_discriminator: "invalid_union_discriminator";
1921
+ invalid_enum_value: "invalid_enum_value";
1922
+ unrecognized_keys: "unrecognized_keys";
1923
+ invalid_arguments: "invalid_arguments";
1924
+ invalid_return_type: "invalid_return_type";
1925
+ invalid_date: "invalid_date";
1926
+ invalid_string: "invalid_string";
1927
+ too_small: "too_small";
1928
+ too_big: "too_big";
1929
+ invalid_intersection_types: "invalid_intersection_types";
1930
+ not_multiple_of: "not_multiple_of";
1931
+ not_finite: "not_finite";
1932
+ }>;
1933
+ }, import("zod").ZodAny, "strip">>, "many">;
1934
+ }, "strip", import("zod").ZodTypeAny, {
1935
+ name: "ZodError";
1936
+ issues: import("zod").objectOutputType<{
1937
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1938
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1939
+ code: import("zod").ZodNativeEnum<{
1940
+ invalid_type: "invalid_type";
1941
+ invalid_literal: "invalid_literal";
1942
+ custom: "custom";
1943
+ invalid_union: "invalid_union";
1944
+ invalid_union_discriminator: "invalid_union_discriminator";
1945
+ invalid_enum_value: "invalid_enum_value";
1946
+ unrecognized_keys: "unrecognized_keys";
1947
+ invalid_arguments: "invalid_arguments";
1948
+ invalid_return_type: "invalid_return_type";
1949
+ invalid_date: "invalid_date";
1950
+ invalid_string: "invalid_string";
1951
+ too_small: "too_small";
1952
+ too_big: "too_big";
1953
+ invalid_intersection_types: "invalid_intersection_types";
1954
+ not_multiple_of: "not_multiple_of";
1955
+ not_finite: "not_finite";
1956
+ }>;
1957
+ }, import("zod").ZodAny, "strip">[];
1958
+ }, {
1959
+ name: "ZodError";
1960
+ issues: import("zod").objectInputType<{
1961
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1962
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1963
+ code: import("zod").ZodNativeEnum<{
1964
+ invalid_type: "invalid_type";
1965
+ invalid_literal: "invalid_literal";
1966
+ custom: "custom";
1967
+ invalid_union: "invalid_union";
1968
+ invalid_union_discriminator: "invalid_union_discriminator";
1969
+ invalid_enum_value: "invalid_enum_value";
1970
+ unrecognized_keys: "unrecognized_keys";
1971
+ invalid_arguments: "invalid_arguments";
1972
+ invalid_return_type: "invalid_return_type";
1973
+ invalid_date: "invalid_date";
1974
+ invalid_string: "invalid_string";
1975
+ too_small: "too_small";
1976
+ too_big: "too_big";
1977
+ invalid_intersection_types: "invalid_intersection_types";
1978
+ not_multiple_of: "not_multiple_of";
1979
+ not_finite: "not_finite";
1980
+ }>;
1981
+ }, import("zod").ZodAny, "strip">[];
1982
+ }>;
1983
+ 401: import("zod").ZodObject<{
1984
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1985
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1986
+ name: import("zod").ZodLiteral<"APIError">;
1987
+ }, "strip", import("zod").ZodTypeAny, {
1988
+ code: "UNAUTHORIZED";
1989
+ name: "APIError";
1990
+ error: "Unauthorized";
1991
+ }, {
1992
+ code: "UNAUTHORIZED";
1993
+ name: "APIError";
1994
+ error: "Unauthorized";
1995
+ }>;
1996
+ 403: import("zod").ZodObject<{
1997
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1998
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1999
+ name: import("zod").ZodLiteral<"APIError">;
2000
+ }, "strip", import("zod").ZodTypeAny, {
2001
+ code: "FORBIDDEN";
2002
+ name: "APIError";
2003
+ error: "Forbidden";
2004
+ }, {
2005
+ code: "FORBIDDEN";
2006
+ name: "APIError";
2007
+ error: "Forbidden";
2008
+ }>;
2009
+ 404: import("zod").ZodObject<{
2010
+ code: import("zod").ZodType<"NOT_FOUND", import("zod").ZodTypeDef, "NOT_FOUND">;
2011
+ error: import("zod").ZodType<"Endpoint not found", import("zod").ZodTypeDef, "Endpoint not found">;
2012
+ name: import("zod").ZodLiteral<"APIError">;
2013
+ }, "strip", import("zod").ZodTypeAny, {
2014
+ code: "NOT_FOUND";
2015
+ name: "APIError";
2016
+ error: "Endpoint not found";
2017
+ }, {
2018
+ code: "NOT_FOUND";
2019
+ name: "APIError";
2020
+ error: "Endpoint not found";
2021
+ }>;
2022
+ 500: import("zod").ZodObject<{
2023
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2024
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2025
+ name: import("zod").ZodLiteral<"APIError">;
2026
+ }, "strip", import("zod").ZodTypeAny, {
2027
+ code: "INTERNAL_SERVER_ERROR";
2028
+ name: "APIError";
2029
+ error: string;
2030
+ }, {
2031
+ code: "INTERNAL_SERVER_ERROR";
2032
+ name: "APIError";
2033
+ error: string;
2034
+ }>;
2035
+ };
2036
+ };
2037
+ };
2038
+ };
2039
+ export default _default;