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