@darco2903/auth-api 2.0.4-beta.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.
@@ -0,0 +1,1112 @@
1
+ import z from "zod";
2
+ declare const _default: {
3
+ fromId: {
4
+ method: "GET";
5
+ description: "Get user by ID";
6
+ pathParams: z.ZodObject<{
7
+ userId: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ userId: string;
10
+ }, {
11
+ userId: string;
12
+ }>;
13
+ path: "/user/id/:userId";
14
+ responses: {
15
+ 200: z.ZodObject<{
16
+ public_id: z.ZodString;
17
+ name: z.ZodString;
18
+ assets: z.ZodObject<{
19
+ avatar: z.ZodNullable<z.ZodString>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ avatar: string | null;
22
+ }, {
23
+ avatar: string | null;
24
+ }>;
25
+ round_border: z.ZodBoolean;
26
+ }, "strip", z.ZodTypeAny, {
27
+ name: string;
28
+ public_id: string;
29
+ assets: {
30
+ avatar: string | null;
31
+ };
32
+ round_border: boolean;
33
+ }, {
34
+ name: string;
35
+ public_id: string;
36
+ assets: {
37
+ avatar: string | null;
38
+ };
39
+ round_border: boolean;
40
+ }>;
41
+ 400: z.ZodObject<{
42
+ name: z.ZodLiteral<"ZodError">;
43
+ issues: z.ZodArray<z.ZodObject<{
44
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
45
+ message: z.ZodOptional<z.ZodString>;
46
+ code: z.ZodNativeEnum<{
47
+ invalid_type: "invalid_type";
48
+ invalid_literal: "invalid_literal";
49
+ custom: "custom";
50
+ invalid_union: "invalid_union";
51
+ invalid_union_discriminator: "invalid_union_discriminator";
52
+ invalid_enum_value: "invalid_enum_value";
53
+ unrecognized_keys: "unrecognized_keys";
54
+ invalid_arguments: "invalid_arguments";
55
+ invalid_return_type: "invalid_return_type";
56
+ invalid_date: "invalid_date";
57
+ invalid_string: "invalid_string";
58
+ too_small: "too_small";
59
+ too_big: "too_big";
60
+ invalid_intersection_types: "invalid_intersection_types";
61
+ not_multiple_of: "not_multiple_of";
62
+ not_finite: "not_finite";
63
+ }>;
64
+ }, "strip", z.ZodAny, z.objectOutputType<{
65
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
66
+ message: z.ZodOptional<z.ZodString>;
67
+ code: z.ZodNativeEnum<{
68
+ invalid_type: "invalid_type";
69
+ invalid_literal: "invalid_literal";
70
+ custom: "custom";
71
+ invalid_union: "invalid_union";
72
+ invalid_union_discriminator: "invalid_union_discriminator";
73
+ invalid_enum_value: "invalid_enum_value";
74
+ unrecognized_keys: "unrecognized_keys";
75
+ invalid_arguments: "invalid_arguments";
76
+ invalid_return_type: "invalid_return_type";
77
+ invalid_date: "invalid_date";
78
+ invalid_string: "invalid_string";
79
+ too_small: "too_small";
80
+ too_big: "too_big";
81
+ invalid_intersection_types: "invalid_intersection_types";
82
+ not_multiple_of: "not_multiple_of";
83
+ not_finite: "not_finite";
84
+ }>;
85
+ }, z.ZodAny, "strip">, z.objectInputType<{
86
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
87
+ message: z.ZodOptional<z.ZodString>;
88
+ code: z.ZodNativeEnum<{
89
+ invalid_type: "invalid_type";
90
+ invalid_literal: "invalid_literal";
91
+ custom: "custom";
92
+ invalid_union: "invalid_union";
93
+ invalid_union_discriminator: "invalid_union_discriminator";
94
+ invalid_enum_value: "invalid_enum_value";
95
+ unrecognized_keys: "unrecognized_keys";
96
+ invalid_arguments: "invalid_arguments";
97
+ invalid_return_type: "invalid_return_type";
98
+ invalid_date: "invalid_date";
99
+ invalid_string: "invalid_string";
100
+ too_small: "too_small";
101
+ too_big: "too_big";
102
+ invalid_intersection_types: "invalid_intersection_types";
103
+ not_multiple_of: "not_multiple_of";
104
+ not_finite: "not_finite";
105
+ }>;
106
+ }, z.ZodAny, "strip">>, "many">;
107
+ }, "strip", z.ZodTypeAny, {
108
+ name: "ZodError";
109
+ issues: z.objectOutputType<{
110
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
111
+ message: z.ZodOptional<z.ZodString>;
112
+ code: z.ZodNativeEnum<{
113
+ invalid_type: "invalid_type";
114
+ invalid_literal: "invalid_literal";
115
+ custom: "custom";
116
+ invalid_union: "invalid_union";
117
+ invalid_union_discriminator: "invalid_union_discriminator";
118
+ invalid_enum_value: "invalid_enum_value";
119
+ unrecognized_keys: "unrecognized_keys";
120
+ invalid_arguments: "invalid_arguments";
121
+ invalid_return_type: "invalid_return_type";
122
+ invalid_date: "invalid_date";
123
+ invalid_string: "invalid_string";
124
+ too_small: "too_small";
125
+ too_big: "too_big";
126
+ invalid_intersection_types: "invalid_intersection_types";
127
+ not_multiple_of: "not_multiple_of";
128
+ not_finite: "not_finite";
129
+ }>;
130
+ }, z.ZodAny, "strip">[];
131
+ }, {
132
+ name: "ZodError";
133
+ issues: z.objectInputType<{
134
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
135
+ message: z.ZodOptional<z.ZodString>;
136
+ code: z.ZodNativeEnum<{
137
+ invalid_type: "invalid_type";
138
+ invalid_literal: "invalid_literal";
139
+ custom: "custom";
140
+ invalid_union: "invalid_union";
141
+ invalid_union_discriminator: "invalid_union_discriminator";
142
+ invalid_enum_value: "invalid_enum_value";
143
+ unrecognized_keys: "unrecognized_keys";
144
+ invalid_arguments: "invalid_arguments";
145
+ invalid_return_type: "invalid_return_type";
146
+ invalid_date: "invalid_date";
147
+ invalid_string: "invalid_string";
148
+ too_small: "too_small";
149
+ too_big: "too_big";
150
+ invalid_intersection_types: "invalid_intersection_types";
151
+ not_multiple_of: "not_multiple_of";
152
+ not_finite: "not_finite";
153
+ }>;
154
+ }, z.ZodAny, "strip">[];
155
+ }>;
156
+ 404: z.ZodObject<{
157
+ code: z.ZodType<"NOT_FOUND", z.ZodTypeDef, "NOT_FOUND">;
158
+ error: z.ZodType<"User not found", z.ZodTypeDef, "User not found">;
159
+ name: z.ZodLiteral<"APIError">;
160
+ }, "strip", z.ZodTypeAny, {
161
+ code: "NOT_FOUND";
162
+ name: "APIError";
163
+ error: "User not found";
164
+ }, {
165
+ code: "NOT_FOUND";
166
+ name: "APIError";
167
+ error: "User not found";
168
+ }>;
169
+ 500: z.ZodObject<{
170
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
171
+ error: z.ZodType<string, z.ZodTypeDef, string>;
172
+ name: z.ZodLiteral<"APIError">;
173
+ }, "strip", z.ZodTypeAny, {
174
+ code: "INTERNAL_SERVER_ERROR";
175
+ name: "APIError";
176
+ error: string;
177
+ }, {
178
+ code: "INTERNAL_SERVER_ERROR";
179
+ name: "APIError";
180
+ error: string;
181
+ }>;
182
+ };
183
+ };
184
+ fromIds: {
185
+ method: "GET";
186
+ description: "Get users by IDs";
187
+ query: z.ZodObject<{
188
+ userIds: z.ZodArray<z.ZodString, "many">;
189
+ }, "strip", z.ZodTypeAny, {
190
+ userIds: string[];
191
+ }, {
192
+ userIds: string[];
193
+ }>;
194
+ path: "/user/ids";
195
+ responses: {
196
+ 200: z.ZodArray<z.ZodObject<{
197
+ public_id: z.ZodString;
198
+ name: z.ZodString;
199
+ assets: z.ZodObject<{
200
+ avatar: z.ZodNullable<z.ZodString>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ avatar: string | null;
203
+ }, {
204
+ avatar: string | null;
205
+ }>;
206
+ round_border: z.ZodBoolean;
207
+ }, "strip", z.ZodTypeAny, {
208
+ name: string;
209
+ public_id: string;
210
+ assets: {
211
+ avatar: string | null;
212
+ };
213
+ round_border: boolean;
214
+ }, {
215
+ name: string;
216
+ public_id: string;
217
+ assets: {
218
+ avatar: string | null;
219
+ };
220
+ round_border: boolean;
221
+ }>, "many">;
222
+ 400: z.ZodObject<{
223
+ name: z.ZodLiteral<"ZodError">;
224
+ issues: z.ZodArray<z.ZodObject<{
225
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
226
+ message: z.ZodOptional<z.ZodString>;
227
+ code: z.ZodNativeEnum<{
228
+ invalid_type: "invalid_type";
229
+ invalid_literal: "invalid_literal";
230
+ custom: "custom";
231
+ invalid_union: "invalid_union";
232
+ invalid_union_discriminator: "invalid_union_discriminator";
233
+ invalid_enum_value: "invalid_enum_value";
234
+ unrecognized_keys: "unrecognized_keys";
235
+ invalid_arguments: "invalid_arguments";
236
+ invalid_return_type: "invalid_return_type";
237
+ invalid_date: "invalid_date";
238
+ invalid_string: "invalid_string";
239
+ too_small: "too_small";
240
+ too_big: "too_big";
241
+ invalid_intersection_types: "invalid_intersection_types";
242
+ not_multiple_of: "not_multiple_of";
243
+ not_finite: "not_finite";
244
+ }>;
245
+ }, "strip", z.ZodAny, z.objectOutputType<{
246
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
247
+ message: z.ZodOptional<z.ZodString>;
248
+ code: z.ZodNativeEnum<{
249
+ invalid_type: "invalid_type";
250
+ invalid_literal: "invalid_literal";
251
+ custom: "custom";
252
+ invalid_union: "invalid_union";
253
+ invalid_union_discriminator: "invalid_union_discriminator";
254
+ invalid_enum_value: "invalid_enum_value";
255
+ unrecognized_keys: "unrecognized_keys";
256
+ invalid_arguments: "invalid_arguments";
257
+ invalid_return_type: "invalid_return_type";
258
+ invalid_date: "invalid_date";
259
+ invalid_string: "invalid_string";
260
+ too_small: "too_small";
261
+ too_big: "too_big";
262
+ invalid_intersection_types: "invalid_intersection_types";
263
+ not_multiple_of: "not_multiple_of";
264
+ not_finite: "not_finite";
265
+ }>;
266
+ }, z.ZodAny, "strip">, z.objectInputType<{
267
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
268
+ message: z.ZodOptional<z.ZodString>;
269
+ code: z.ZodNativeEnum<{
270
+ invalid_type: "invalid_type";
271
+ invalid_literal: "invalid_literal";
272
+ custom: "custom";
273
+ invalid_union: "invalid_union";
274
+ invalid_union_discriminator: "invalid_union_discriminator";
275
+ invalid_enum_value: "invalid_enum_value";
276
+ unrecognized_keys: "unrecognized_keys";
277
+ invalid_arguments: "invalid_arguments";
278
+ invalid_return_type: "invalid_return_type";
279
+ invalid_date: "invalid_date";
280
+ invalid_string: "invalid_string";
281
+ too_small: "too_small";
282
+ too_big: "too_big";
283
+ invalid_intersection_types: "invalid_intersection_types";
284
+ not_multiple_of: "not_multiple_of";
285
+ not_finite: "not_finite";
286
+ }>;
287
+ }, z.ZodAny, "strip">>, "many">;
288
+ }, "strip", z.ZodTypeAny, {
289
+ name: "ZodError";
290
+ issues: z.objectOutputType<{
291
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
292
+ message: z.ZodOptional<z.ZodString>;
293
+ code: z.ZodNativeEnum<{
294
+ invalid_type: "invalid_type";
295
+ invalid_literal: "invalid_literal";
296
+ custom: "custom";
297
+ invalid_union: "invalid_union";
298
+ invalid_union_discriminator: "invalid_union_discriminator";
299
+ invalid_enum_value: "invalid_enum_value";
300
+ unrecognized_keys: "unrecognized_keys";
301
+ invalid_arguments: "invalid_arguments";
302
+ invalid_return_type: "invalid_return_type";
303
+ invalid_date: "invalid_date";
304
+ invalid_string: "invalid_string";
305
+ too_small: "too_small";
306
+ too_big: "too_big";
307
+ invalid_intersection_types: "invalid_intersection_types";
308
+ not_multiple_of: "not_multiple_of";
309
+ not_finite: "not_finite";
310
+ }>;
311
+ }, z.ZodAny, "strip">[];
312
+ }, {
313
+ name: "ZodError";
314
+ issues: z.objectInputType<{
315
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
316
+ message: z.ZodOptional<z.ZodString>;
317
+ code: z.ZodNativeEnum<{
318
+ invalid_type: "invalid_type";
319
+ invalid_literal: "invalid_literal";
320
+ custom: "custom";
321
+ invalid_union: "invalid_union";
322
+ invalid_union_discriminator: "invalid_union_discriminator";
323
+ invalid_enum_value: "invalid_enum_value";
324
+ unrecognized_keys: "unrecognized_keys";
325
+ invalid_arguments: "invalid_arguments";
326
+ invalid_return_type: "invalid_return_type";
327
+ invalid_date: "invalid_date";
328
+ invalid_string: "invalid_string";
329
+ too_small: "too_small";
330
+ too_big: "too_big";
331
+ invalid_intersection_types: "invalid_intersection_types";
332
+ not_multiple_of: "not_multiple_of";
333
+ not_finite: "not_finite";
334
+ }>;
335
+ }, z.ZodAny, "strip">[];
336
+ }>;
337
+ 500: z.ZodObject<{
338
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
339
+ error: z.ZodType<string, z.ZodTypeDef, string>;
340
+ name: z.ZodLiteral<"APIError">;
341
+ }, "strip", z.ZodTypeAny, {
342
+ code: "INTERNAL_SERVER_ERROR";
343
+ name: "APIError";
344
+ error: string;
345
+ }, {
346
+ code: "INTERNAL_SERVER_ERROR";
347
+ name: "APIError";
348
+ error: string;
349
+ }>;
350
+ };
351
+ };
352
+ me: {
353
+ method: "GET";
354
+ description: "Get current user";
355
+ path: "/user/me";
356
+ headers: z.ZodObject<{
357
+ authorization: z.ZodOptional<z.ZodString>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ authorization?: string | undefined;
360
+ }, {
361
+ authorization?: string | undefined;
362
+ }>;
363
+ responses: {
364
+ 200: z.ZodObject<{
365
+ public_id: z.ZodString;
366
+ name: z.ZodString;
367
+ assets: z.ZodObject<{
368
+ avatar: z.ZodNullable<z.ZodString>;
369
+ }, "strip", z.ZodTypeAny, {
370
+ avatar: string | null;
371
+ }, {
372
+ avatar: string | null;
373
+ }>;
374
+ round_border: z.ZodBoolean;
375
+ } & {
376
+ email: z.ZodString;
377
+ role: z.ZodNumber;
378
+ verified: z.ZodBoolean;
379
+ last_login: z.ZodNullable<z.ZodDate>;
380
+ created_at: z.ZodDate;
381
+ updated_at: z.ZodDate;
382
+ email_verif: z.ZodNullable<z.ZodDate>;
383
+ password_reset: z.ZodNullable<z.ZodDate>;
384
+ }, "strip", z.ZodTypeAny, {
385
+ name: string;
386
+ role: number;
387
+ email: string;
388
+ public_id: string;
389
+ assets: {
390
+ avatar: string | null;
391
+ };
392
+ round_border: boolean;
393
+ verified: boolean;
394
+ last_login: Date | null;
395
+ created_at: Date;
396
+ updated_at: Date;
397
+ email_verif: Date | null;
398
+ password_reset: Date | null;
399
+ }, {
400
+ name: string;
401
+ role: number;
402
+ email: string;
403
+ public_id: string;
404
+ assets: {
405
+ avatar: string | null;
406
+ };
407
+ round_border: boolean;
408
+ verified: boolean;
409
+ last_login: Date | null;
410
+ created_at: Date;
411
+ updated_at: Date;
412
+ email_verif: Date | null;
413
+ password_reset: Date | null;
414
+ }>;
415
+ 401: z.ZodObject<{
416
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
417
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
418
+ name: z.ZodLiteral<"APIError">;
419
+ }, "strip", z.ZodTypeAny, {
420
+ code: "UNAUTHORIZED";
421
+ name: "APIError";
422
+ error: "Unauthorized";
423
+ }, {
424
+ code: "UNAUTHORIZED";
425
+ name: "APIError";
426
+ error: "Unauthorized";
427
+ }>;
428
+ 404: z.ZodObject<{
429
+ code: z.ZodType<"NOT_FOUND", z.ZodTypeDef, "NOT_FOUND">;
430
+ error: z.ZodType<"User not found", z.ZodTypeDef, "User not found">;
431
+ name: z.ZodLiteral<"APIError">;
432
+ }, "strip", z.ZodTypeAny, {
433
+ code: "NOT_FOUND";
434
+ name: "APIError";
435
+ error: "User not found";
436
+ }, {
437
+ code: "NOT_FOUND";
438
+ name: "APIError";
439
+ error: "User not found";
440
+ }>;
441
+ 500: z.ZodObject<{
442
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
443
+ error: z.ZodType<string, z.ZodTypeDef, string>;
444
+ name: z.ZodLiteral<"APIError">;
445
+ }, "strip", z.ZodTypeAny, {
446
+ code: "INTERNAL_SERVER_ERROR";
447
+ name: "APIError";
448
+ error: string;
449
+ }, {
450
+ code: "INTERNAL_SERVER_ERROR";
451
+ name: "APIError";
452
+ error: string;
453
+ }>;
454
+ };
455
+ };
456
+ updateEmail: {
457
+ body: z.ZodObject<{
458
+ email: z.ZodString;
459
+ }, "strip", z.ZodTypeAny, {
460
+ email: string;
461
+ }, {
462
+ email: string;
463
+ }>;
464
+ method: "PATCH";
465
+ description: "Update email for current user";
466
+ path: "/user/email";
467
+ headers: z.ZodObject<{
468
+ authorization: z.ZodOptional<z.ZodString>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ authorization?: string | undefined;
471
+ }, {
472
+ authorization?: string | undefined;
473
+ }>;
474
+ responses: {
475
+ 200: typeof import("@ts-rest/core").ContractNoBody;
476
+ 400: z.ZodObject<{
477
+ name: z.ZodLiteral<"ZodError">;
478
+ issues: z.ZodArray<z.ZodObject<{
479
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
480
+ message: z.ZodOptional<z.ZodString>;
481
+ code: z.ZodNativeEnum<{
482
+ invalid_type: "invalid_type";
483
+ invalid_literal: "invalid_literal";
484
+ custom: "custom";
485
+ invalid_union: "invalid_union";
486
+ invalid_union_discriminator: "invalid_union_discriminator";
487
+ invalid_enum_value: "invalid_enum_value";
488
+ unrecognized_keys: "unrecognized_keys";
489
+ invalid_arguments: "invalid_arguments";
490
+ invalid_return_type: "invalid_return_type";
491
+ invalid_date: "invalid_date";
492
+ invalid_string: "invalid_string";
493
+ too_small: "too_small";
494
+ too_big: "too_big";
495
+ invalid_intersection_types: "invalid_intersection_types";
496
+ not_multiple_of: "not_multiple_of";
497
+ not_finite: "not_finite";
498
+ }>;
499
+ }, "strip", z.ZodAny, z.objectOutputType<{
500
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
501
+ message: z.ZodOptional<z.ZodString>;
502
+ code: z.ZodNativeEnum<{
503
+ invalid_type: "invalid_type";
504
+ invalid_literal: "invalid_literal";
505
+ custom: "custom";
506
+ invalid_union: "invalid_union";
507
+ invalid_union_discriminator: "invalid_union_discriminator";
508
+ invalid_enum_value: "invalid_enum_value";
509
+ unrecognized_keys: "unrecognized_keys";
510
+ invalid_arguments: "invalid_arguments";
511
+ invalid_return_type: "invalid_return_type";
512
+ invalid_date: "invalid_date";
513
+ invalid_string: "invalid_string";
514
+ too_small: "too_small";
515
+ too_big: "too_big";
516
+ invalid_intersection_types: "invalid_intersection_types";
517
+ not_multiple_of: "not_multiple_of";
518
+ not_finite: "not_finite";
519
+ }>;
520
+ }, z.ZodAny, "strip">, z.objectInputType<{
521
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
522
+ message: z.ZodOptional<z.ZodString>;
523
+ code: z.ZodNativeEnum<{
524
+ invalid_type: "invalid_type";
525
+ invalid_literal: "invalid_literal";
526
+ custom: "custom";
527
+ invalid_union: "invalid_union";
528
+ invalid_union_discriminator: "invalid_union_discriminator";
529
+ invalid_enum_value: "invalid_enum_value";
530
+ unrecognized_keys: "unrecognized_keys";
531
+ invalid_arguments: "invalid_arguments";
532
+ invalid_return_type: "invalid_return_type";
533
+ invalid_date: "invalid_date";
534
+ invalid_string: "invalid_string";
535
+ too_small: "too_small";
536
+ too_big: "too_big";
537
+ invalid_intersection_types: "invalid_intersection_types";
538
+ not_multiple_of: "not_multiple_of";
539
+ not_finite: "not_finite";
540
+ }>;
541
+ }, z.ZodAny, "strip">>, "many">;
542
+ }, "strip", z.ZodTypeAny, {
543
+ name: "ZodError";
544
+ issues: z.objectOutputType<{
545
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
546
+ message: z.ZodOptional<z.ZodString>;
547
+ code: z.ZodNativeEnum<{
548
+ invalid_type: "invalid_type";
549
+ invalid_literal: "invalid_literal";
550
+ custom: "custom";
551
+ invalid_union: "invalid_union";
552
+ invalid_union_discriminator: "invalid_union_discriminator";
553
+ invalid_enum_value: "invalid_enum_value";
554
+ unrecognized_keys: "unrecognized_keys";
555
+ invalid_arguments: "invalid_arguments";
556
+ invalid_return_type: "invalid_return_type";
557
+ invalid_date: "invalid_date";
558
+ invalid_string: "invalid_string";
559
+ too_small: "too_small";
560
+ too_big: "too_big";
561
+ invalid_intersection_types: "invalid_intersection_types";
562
+ not_multiple_of: "not_multiple_of";
563
+ not_finite: "not_finite";
564
+ }>;
565
+ }, z.ZodAny, "strip">[];
566
+ }, {
567
+ name: "ZodError";
568
+ issues: z.objectInputType<{
569
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
570
+ message: z.ZodOptional<z.ZodString>;
571
+ code: z.ZodNativeEnum<{
572
+ invalid_type: "invalid_type";
573
+ invalid_literal: "invalid_literal";
574
+ custom: "custom";
575
+ invalid_union: "invalid_union";
576
+ invalid_union_discriminator: "invalid_union_discriminator";
577
+ invalid_enum_value: "invalid_enum_value";
578
+ unrecognized_keys: "unrecognized_keys";
579
+ invalid_arguments: "invalid_arguments";
580
+ invalid_return_type: "invalid_return_type";
581
+ invalid_date: "invalid_date";
582
+ invalid_string: "invalid_string";
583
+ too_small: "too_small";
584
+ too_big: "too_big";
585
+ invalid_intersection_types: "invalid_intersection_types";
586
+ not_multiple_of: "not_multiple_of";
587
+ not_finite: "not_finite";
588
+ }>;
589
+ }, z.ZodAny, "strip">[];
590
+ }>;
591
+ 401: z.ZodObject<{
592
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
593
+ error: z.ZodType<string, z.ZodTypeDef, string>;
594
+ name: z.ZodLiteral<"APIError">;
595
+ }, "strip", z.ZodTypeAny, {
596
+ code: "UNAUTHORIZED";
597
+ name: "APIError";
598
+ error: string;
599
+ }, {
600
+ code: "UNAUTHORIZED";
601
+ name: "APIError";
602
+ error: string;
603
+ }>;
604
+ 500: z.ZodObject<{
605
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
606
+ error: z.ZodType<string, z.ZodTypeDef, string>;
607
+ name: z.ZodLiteral<"APIError">;
608
+ }, "strip", z.ZodTypeAny, {
609
+ code: "INTERNAL_SERVER_ERROR";
610
+ name: "APIError";
611
+ error: string;
612
+ }, {
613
+ code: "INTERNAL_SERVER_ERROR";
614
+ name: "APIError";
615
+ error: string;
616
+ }>;
617
+ };
618
+ };
619
+ updatePassword: {
620
+ body: z.ZodObject<{
621
+ password: z.ZodString;
622
+ disconnectAll: z.ZodDefault<z.ZodBoolean>;
623
+ }, "strip", z.ZodTypeAny, {
624
+ password: string;
625
+ disconnectAll: boolean;
626
+ }, {
627
+ password: string;
628
+ disconnectAll?: boolean | undefined;
629
+ }>;
630
+ method: "PATCH";
631
+ description: "Update password for current user";
632
+ path: "/user/password";
633
+ headers: z.ZodObject<{
634
+ authorization: z.ZodOptional<z.ZodString>;
635
+ }, "strip", z.ZodTypeAny, {
636
+ authorization?: string | undefined;
637
+ }, {
638
+ authorization?: string | undefined;
639
+ }>;
640
+ responses: {
641
+ 200: typeof import("@ts-rest/core").ContractNoBody;
642
+ 400: z.ZodObject<{
643
+ name: z.ZodLiteral<"ZodError">;
644
+ issues: z.ZodArray<z.ZodObject<{
645
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
646
+ message: z.ZodOptional<z.ZodString>;
647
+ code: z.ZodNativeEnum<{
648
+ invalid_type: "invalid_type";
649
+ invalid_literal: "invalid_literal";
650
+ custom: "custom";
651
+ invalid_union: "invalid_union";
652
+ invalid_union_discriminator: "invalid_union_discriminator";
653
+ invalid_enum_value: "invalid_enum_value";
654
+ unrecognized_keys: "unrecognized_keys";
655
+ invalid_arguments: "invalid_arguments";
656
+ invalid_return_type: "invalid_return_type";
657
+ invalid_date: "invalid_date";
658
+ invalid_string: "invalid_string";
659
+ too_small: "too_small";
660
+ too_big: "too_big";
661
+ invalid_intersection_types: "invalid_intersection_types";
662
+ not_multiple_of: "not_multiple_of";
663
+ not_finite: "not_finite";
664
+ }>;
665
+ }, "strip", z.ZodAny, z.objectOutputType<{
666
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
667
+ message: z.ZodOptional<z.ZodString>;
668
+ code: z.ZodNativeEnum<{
669
+ invalid_type: "invalid_type";
670
+ invalid_literal: "invalid_literal";
671
+ custom: "custom";
672
+ invalid_union: "invalid_union";
673
+ invalid_union_discriminator: "invalid_union_discriminator";
674
+ invalid_enum_value: "invalid_enum_value";
675
+ unrecognized_keys: "unrecognized_keys";
676
+ invalid_arguments: "invalid_arguments";
677
+ invalid_return_type: "invalid_return_type";
678
+ invalid_date: "invalid_date";
679
+ invalid_string: "invalid_string";
680
+ too_small: "too_small";
681
+ too_big: "too_big";
682
+ invalid_intersection_types: "invalid_intersection_types";
683
+ not_multiple_of: "not_multiple_of";
684
+ not_finite: "not_finite";
685
+ }>;
686
+ }, z.ZodAny, "strip">, z.objectInputType<{
687
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
688
+ message: z.ZodOptional<z.ZodString>;
689
+ code: z.ZodNativeEnum<{
690
+ invalid_type: "invalid_type";
691
+ invalid_literal: "invalid_literal";
692
+ custom: "custom";
693
+ invalid_union: "invalid_union";
694
+ invalid_union_discriminator: "invalid_union_discriminator";
695
+ invalid_enum_value: "invalid_enum_value";
696
+ unrecognized_keys: "unrecognized_keys";
697
+ invalid_arguments: "invalid_arguments";
698
+ invalid_return_type: "invalid_return_type";
699
+ invalid_date: "invalid_date";
700
+ invalid_string: "invalid_string";
701
+ too_small: "too_small";
702
+ too_big: "too_big";
703
+ invalid_intersection_types: "invalid_intersection_types";
704
+ not_multiple_of: "not_multiple_of";
705
+ not_finite: "not_finite";
706
+ }>;
707
+ }, z.ZodAny, "strip">>, "many">;
708
+ }, "strip", z.ZodTypeAny, {
709
+ name: "ZodError";
710
+ issues: z.objectOutputType<{
711
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
712
+ message: z.ZodOptional<z.ZodString>;
713
+ code: z.ZodNativeEnum<{
714
+ invalid_type: "invalid_type";
715
+ invalid_literal: "invalid_literal";
716
+ custom: "custom";
717
+ invalid_union: "invalid_union";
718
+ invalid_union_discriminator: "invalid_union_discriminator";
719
+ invalid_enum_value: "invalid_enum_value";
720
+ unrecognized_keys: "unrecognized_keys";
721
+ invalid_arguments: "invalid_arguments";
722
+ invalid_return_type: "invalid_return_type";
723
+ invalid_date: "invalid_date";
724
+ invalid_string: "invalid_string";
725
+ too_small: "too_small";
726
+ too_big: "too_big";
727
+ invalid_intersection_types: "invalid_intersection_types";
728
+ not_multiple_of: "not_multiple_of";
729
+ not_finite: "not_finite";
730
+ }>;
731
+ }, z.ZodAny, "strip">[];
732
+ }, {
733
+ name: "ZodError";
734
+ issues: z.objectInputType<{
735
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
736
+ message: z.ZodOptional<z.ZodString>;
737
+ code: z.ZodNativeEnum<{
738
+ invalid_type: "invalid_type";
739
+ invalid_literal: "invalid_literal";
740
+ custom: "custom";
741
+ invalid_union: "invalid_union";
742
+ invalid_union_discriminator: "invalid_union_discriminator";
743
+ invalid_enum_value: "invalid_enum_value";
744
+ unrecognized_keys: "unrecognized_keys";
745
+ invalid_arguments: "invalid_arguments";
746
+ invalid_return_type: "invalid_return_type";
747
+ invalid_date: "invalid_date";
748
+ invalid_string: "invalid_string";
749
+ too_small: "too_small";
750
+ too_big: "too_big";
751
+ invalid_intersection_types: "invalid_intersection_types";
752
+ not_multiple_of: "not_multiple_of";
753
+ not_finite: "not_finite";
754
+ }>;
755
+ }, z.ZodAny, "strip">[];
756
+ }>;
757
+ 401: z.ZodObject<{
758
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
759
+ error: z.ZodType<string, z.ZodTypeDef, string>;
760
+ name: z.ZodLiteral<"APIError">;
761
+ }, "strip", z.ZodTypeAny, {
762
+ code: "UNAUTHORIZED";
763
+ name: "APIError";
764
+ error: string;
765
+ }, {
766
+ code: "UNAUTHORIZED";
767
+ name: "APIError";
768
+ error: string;
769
+ }>;
770
+ 500: z.ZodObject<{
771
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
772
+ error: z.ZodType<string, z.ZodTypeDef, string>;
773
+ name: z.ZodLiteral<"APIError">;
774
+ }, "strip", z.ZodTypeAny, {
775
+ code: "INTERNAL_SERVER_ERROR";
776
+ name: "APIError";
777
+ error: string;
778
+ }, {
779
+ code: "INTERNAL_SERVER_ERROR";
780
+ name: "APIError";
781
+ error: string;
782
+ }>;
783
+ };
784
+ };
785
+ updateUsername: {
786
+ body: z.ZodObject<{
787
+ username: z.ZodString;
788
+ }, "strip", z.ZodTypeAny, {
789
+ username: string;
790
+ }, {
791
+ username: string;
792
+ }>;
793
+ method: "PATCH";
794
+ description: "Update username for current user";
795
+ path: "/user/username";
796
+ headers: z.ZodObject<{
797
+ authorization: z.ZodOptional<z.ZodString>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ authorization?: string | undefined;
800
+ }, {
801
+ authorization?: string | undefined;
802
+ }>;
803
+ responses: {
804
+ 200: typeof import("@ts-rest/core").ContractNoBody;
805
+ 400: z.ZodObject<{
806
+ name: z.ZodLiteral<"ZodError">;
807
+ issues: z.ZodArray<z.ZodObject<{
808
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
809
+ message: z.ZodOptional<z.ZodString>;
810
+ code: z.ZodNativeEnum<{
811
+ invalid_type: "invalid_type";
812
+ invalid_literal: "invalid_literal";
813
+ custom: "custom";
814
+ invalid_union: "invalid_union";
815
+ invalid_union_discriminator: "invalid_union_discriminator";
816
+ invalid_enum_value: "invalid_enum_value";
817
+ unrecognized_keys: "unrecognized_keys";
818
+ invalid_arguments: "invalid_arguments";
819
+ invalid_return_type: "invalid_return_type";
820
+ invalid_date: "invalid_date";
821
+ invalid_string: "invalid_string";
822
+ too_small: "too_small";
823
+ too_big: "too_big";
824
+ invalid_intersection_types: "invalid_intersection_types";
825
+ not_multiple_of: "not_multiple_of";
826
+ not_finite: "not_finite";
827
+ }>;
828
+ }, "strip", z.ZodAny, z.objectOutputType<{
829
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
830
+ message: z.ZodOptional<z.ZodString>;
831
+ code: z.ZodNativeEnum<{
832
+ invalid_type: "invalid_type";
833
+ invalid_literal: "invalid_literal";
834
+ custom: "custom";
835
+ invalid_union: "invalid_union";
836
+ invalid_union_discriminator: "invalid_union_discriminator";
837
+ invalid_enum_value: "invalid_enum_value";
838
+ unrecognized_keys: "unrecognized_keys";
839
+ invalid_arguments: "invalid_arguments";
840
+ invalid_return_type: "invalid_return_type";
841
+ invalid_date: "invalid_date";
842
+ invalid_string: "invalid_string";
843
+ too_small: "too_small";
844
+ too_big: "too_big";
845
+ invalid_intersection_types: "invalid_intersection_types";
846
+ not_multiple_of: "not_multiple_of";
847
+ not_finite: "not_finite";
848
+ }>;
849
+ }, z.ZodAny, "strip">, z.objectInputType<{
850
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
851
+ message: z.ZodOptional<z.ZodString>;
852
+ code: z.ZodNativeEnum<{
853
+ invalid_type: "invalid_type";
854
+ invalid_literal: "invalid_literal";
855
+ custom: "custom";
856
+ invalid_union: "invalid_union";
857
+ invalid_union_discriminator: "invalid_union_discriminator";
858
+ invalid_enum_value: "invalid_enum_value";
859
+ unrecognized_keys: "unrecognized_keys";
860
+ invalid_arguments: "invalid_arguments";
861
+ invalid_return_type: "invalid_return_type";
862
+ invalid_date: "invalid_date";
863
+ invalid_string: "invalid_string";
864
+ too_small: "too_small";
865
+ too_big: "too_big";
866
+ invalid_intersection_types: "invalid_intersection_types";
867
+ not_multiple_of: "not_multiple_of";
868
+ not_finite: "not_finite";
869
+ }>;
870
+ }, z.ZodAny, "strip">>, "many">;
871
+ }, "strip", z.ZodTypeAny, {
872
+ name: "ZodError";
873
+ issues: z.objectOutputType<{
874
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
875
+ message: z.ZodOptional<z.ZodString>;
876
+ code: z.ZodNativeEnum<{
877
+ invalid_type: "invalid_type";
878
+ invalid_literal: "invalid_literal";
879
+ custom: "custom";
880
+ invalid_union: "invalid_union";
881
+ invalid_union_discriminator: "invalid_union_discriminator";
882
+ invalid_enum_value: "invalid_enum_value";
883
+ unrecognized_keys: "unrecognized_keys";
884
+ invalid_arguments: "invalid_arguments";
885
+ invalid_return_type: "invalid_return_type";
886
+ invalid_date: "invalid_date";
887
+ invalid_string: "invalid_string";
888
+ too_small: "too_small";
889
+ too_big: "too_big";
890
+ invalid_intersection_types: "invalid_intersection_types";
891
+ not_multiple_of: "not_multiple_of";
892
+ not_finite: "not_finite";
893
+ }>;
894
+ }, z.ZodAny, "strip">[];
895
+ }, {
896
+ name: "ZodError";
897
+ issues: z.objectInputType<{
898
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
899
+ message: z.ZodOptional<z.ZodString>;
900
+ code: z.ZodNativeEnum<{
901
+ invalid_type: "invalid_type";
902
+ invalid_literal: "invalid_literal";
903
+ custom: "custom";
904
+ invalid_union: "invalid_union";
905
+ invalid_union_discriminator: "invalid_union_discriminator";
906
+ invalid_enum_value: "invalid_enum_value";
907
+ unrecognized_keys: "unrecognized_keys";
908
+ invalid_arguments: "invalid_arguments";
909
+ invalid_return_type: "invalid_return_type";
910
+ invalid_date: "invalid_date";
911
+ invalid_string: "invalid_string";
912
+ too_small: "too_small";
913
+ too_big: "too_big";
914
+ invalid_intersection_types: "invalid_intersection_types";
915
+ not_multiple_of: "not_multiple_of";
916
+ not_finite: "not_finite";
917
+ }>;
918
+ }, z.ZodAny, "strip">[];
919
+ }>;
920
+ 401: z.ZodObject<{
921
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
922
+ error: z.ZodType<string, z.ZodTypeDef, string>;
923
+ name: z.ZodLiteral<"APIError">;
924
+ }, "strip", z.ZodTypeAny, {
925
+ code: "UNAUTHORIZED";
926
+ name: "APIError";
927
+ error: string;
928
+ }, {
929
+ code: "UNAUTHORIZED";
930
+ name: "APIError";
931
+ error: string;
932
+ }>;
933
+ 500: z.ZodObject<{
934
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
935
+ error: z.ZodType<string, z.ZodTypeDef, string>;
936
+ name: z.ZodLiteral<"APIError">;
937
+ }, "strip", z.ZodTypeAny, {
938
+ code: "INTERNAL_SERVER_ERROR";
939
+ name: "APIError";
940
+ error: string;
941
+ }, {
942
+ code: "INTERNAL_SERVER_ERROR";
943
+ name: "APIError";
944
+ error: string;
945
+ }>;
946
+ };
947
+ };
948
+ updateBorder: {
949
+ body: z.ZodObject<{
950
+ roundBorder: z.ZodBoolean;
951
+ }, "strip", z.ZodTypeAny, {
952
+ roundBorder: boolean;
953
+ }, {
954
+ roundBorder: boolean;
955
+ }>;
956
+ method: "POST";
957
+ description: "Set border for user profile picture";
958
+ path: "/user/picture/profile/border";
959
+ headers: z.ZodObject<{
960
+ authorization: z.ZodOptional<z.ZodString>;
961
+ }, "strip", z.ZodTypeAny, {
962
+ authorization?: string | undefined;
963
+ }, {
964
+ authorization?: string | undefined;
965
+ }>;
966
+ responses: {
967
+ 200: typeof import("@ts-rest/core").ContractNoBody;
968
+ 400: z.ZodObject<{
969
+ name: z.ZodLiteral<"ZodError">;
970
+ issues: z.ZodArray<z.ZodObject<{
971
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
972
+ message: z.ZodOptional<z.ZodString>;
973
+ code: z.ZodNativeEnum<{
974
+ invalid_type: "invalid_type";
975
+ invalid_literal: "invalid_literal";
976
+ custom: "custom";
977
+ invalid_union: "invalid_union";
978
+ invalid_union_discriminator: "invalid_union_discriminator";
979
+ invalid_enum_value: "invalid_enum_value";
980
+ unrecognized_keys: "unrecognized_keys";
981
+ invalid_arguments: "invalid_arguments";
982
+ invalid_return_type: "invalid_return_type";
983
+ invalid_date: "invalid_date";
984
+ invalid_string: "invalid_string";
985
+ too_small: "too_small";
986
+ too_big: "too_big";
987
+ invalid_intersection_types: "invalid_intersection_types";
988
+ not_multiple_of: "not_multiple_of";
989
+ not_finite: "not_finite";
990
+ }>;
991
+ }, "strip", z.ZodAny, z.objectOutputType<{
992
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
993
+ message: z.ZodOptional<z.ZodString>;
994
+ code: z.ZodNativeEnum<{
995
+ invalid_type: "invalid_type";
996
+ invalid_literal: "invalid_literal";
997
+ custom: "custom";
998
+ invalid_union: "invalid_union";
999
+ invalid_union_discriminator: "invalid_union_discriminator";
1000
+ invalid_enum_value: "invalid_enum_value";
1001
+ unrecognized_keys: "unrecognized_keys";
1002
+ invalid_arguments: "invalid_arguments";
1003
+ invalid_return_type: "invalid_return_type";
1004
+ invalid_date: "invalid_date";
1005
+ invalid_string: "invalid_string";
1006
+ too_small: "too_small";
1007
+ too_big: "too_big";
1008
+ invalid_intersection_types: "invalid_intersection_types";
1009
+ not_multiple_of: "not_multiple_of";
1010
+ not_finite: "not_finite";
1011
+ }>;
1012
+ }, z.ZodAny, "strip">, z.objectInputType<{
1013
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1014
+ message: z.ZodOptional<z.ZodString>;
1015
+ code: z.ZodNativeEnum<{
1016
+ invalid_type: "invalid_type";
1017
+ invalid_literal: "invalid_literal";
1018
+ custom: "custom";
1019
+ invalid_union: "invalid_union";
1020
+ invalid_union_discriminator: "invalid_union_discriminator";
1021
+ invalid_enum_value: "invalid_enum_value";
1022
+ unrecognized_keys: "unrecognized_keys";
1023
+ invalid_arguments: "invalid_arguments";
1024
+ invalid_return_type: "invalid_return_type";
1025
+ invalid_date: "invalid_date";
1026
+ invalid_string: "invalid_string";
1027
+ too_small: "too_small";
1028
+ too_big: "too_big";
1029
+ invalid_intersection_types: "invalid_intersection_types";
1030
+ not_multiple_of: "not_multiple_of";
1031
+ not_finite: "not_finite";
1032
+ }>;
1033
+ }, z.ZodAny, "strip">>, "many">;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ name: "ZodError";
1036
+ issues: z.objectOutputType<{
1037
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1038
+ message: z.ZodOptional<z.ZodString>;
1039
+ code: z.ZodNativeEnum<{
1040
+ invalid_type: "invalid_type";
1041
+ invalid_literal: "invalid_literal";
1042
+ custom: "custom";
1043
+ invalid_union: "invalid_union";
1044
+ invalid_union_discriminator: "invalid_union_discriminator";
1045
+ invalid_enum_value: "invalid_enum_value";
1046
+ unrecognized_keys: "unrecognized_keys";
1047
+ invalid_arguments: "invalid_arguments";
1048
+ invalid_return_type: "invalid_return_type";
1049
+ invalid_date: "invalid_date";
1050
+ invalid_string: "invalid_string";
1051
+ too_small: "too_small";
1052
+ too_big: "too_big";
1053
+ invalid_intersection_types: "invalid_intersection_types";
1054
+ not_multiple_of: "not_multiple_of";
1055
+ not_finite: "not_finite";
1056
+ }>;
1057
+ }, z.ZodAny, "strip">[];
1058
+ }, {
1059
+ name: "ZodError";
1060
+ issues: z.objectInputType<{
1061
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1062
+ message: z.ZodOptional<z.ZodString>;
1063
+ code: z.ZodNativeEnum<{
1064
+ invalid_type: "invalid_type";
1065
+ invalid_literal: "invalid_literal";
1066
+ custom: "custom";
1067
+ invalid_union: "invalid_union";
1068
+ invalid_union_discriminator: "invalid_union_discriminator";
1069
+ invalid_enum_value: "invalid_enum_value";
1070
+ unrecognized_keys: "unrecognized_keys";
1071
+ invalid_arguments: "invalid_arguments";
1072
+ invalid_return_type: "invalid_return_type";
1073
+ invalid_date: "invalid_date";
1074
+ invalid_string: "invalid_string";
1075
+ too_small: "too_small";
1076
+ too_big: "too_big";
1077
+ invalid_intersection_types: "invalid_intersection_types";
1078
+ not_multiple_of: "not_multiple_of";
1079
+ not_finite: "not_finite";
1080
+ }>;
1081
+ }, z.ZodAny, "strip">[];
1082
+ }>;
1083
+ 401: z.ZodObject<{
1084
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
1085
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
1086
+ name: z.ZodLiteral<"APIError">;
1087
+ }, "strip", z.ZodTypeAny, {
1088
+ code: "UNAUTHORIZED";
1089
+ name: "APIError";
1090
+ error: "Unauthorized";
1091
+ }, {
1092
+ code: "UNAUTHORIZED";
1093
+ name: "APIError";
1094
+ error: "Unauthorized";
1095
+ }>;
1096
+ 500: z.ZodObject<{
1097
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1098
+ error: z.ZodType<string, z.ZodTypeDef, string>;
1099
+ name: z.ZodLiteral<"APIError">;
1100
+ }, "strip", z.ZodTypeAny, {
1101
+ code: "INTERNAL_SERVER_ERROR";
1102
+ name: "APIError";
1103
+ error: string;
1104
+ }, {
1105
+ code: "INTERNAL_SERVER_ERROR";
1106
+ name: "APIError";
1107
+ error: string;
1108
+ }>;
1109
+ };
1110
+ };
1111
+ };
1112
+ export default _default;