@darco2903/auth-api 2.1.4 → 2.1.6

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