@deepintel-ltd/farmpro-contracts 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/index.d.ts +41 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +81 -0
  4. package/dist/routes/analytics.routes.d.ts +754 -0
  5. package/dist/routes/analytics.routes.d.ts.map +1 -0
  6. package/dist/routes/analytics.routes.js +24 -0
  7. package/dist/routes/auth.routes.d.ts +3836 -0
  8. package/dist/routes/auth.routes.d.ts.map +1 -0
  9. package/dist/routes/auth.routes.js +158 -0
  10. package/dist/routes/documents.routes.d.ts +2476 -0
  11. package/dist/routes/documents.routes.d.ts.map +1 -0
  12. package/dist/routes/documents.routes.js +100 -0
  13. package/dist/routes/equipment.routes.d.ts +3617 -0
  14. package/dist/routes/equipment.routes.d.ts.map +1 -0
  15. package/dist/routes/equipment.routes.js +118 -0
  16. package/dist/routes/farms.routes.d.ts +2202 -0
  17. package/dist/routes/farms.routes.d.ts.map +1 -0
  18. package/dist/routes/farms.routes.js +111 -0
  19. package/dist/routes/fields.routes.d.ts +3389 -0
  20. package/dist/routes/fields.routes.d.ts.map +1 -0
  21. package/dist/routes/fields.routes.js +95 -0
  22. package/dist/routes/finance.routes.d.ts +6855 -0
  23. package/dist/routes/finance.routes.d.ts.map +1 -0
  24. package/dist/routes/finance.routes.js +259 -0
  25. package/dist/routes/harvest.routes.d.ts +2337 -0
  26. package/dist/routes/harvest.routes.d.ts.map +1 -0
  27. package/dist/routes/harvest.routes.js +99 -0
  28. package/dist/routes/index.d.ts +68 -0
  29. package/dist/routes/index.d.ts.map +1 -0
  30. package/dist/routes/index.js +43 -0
  31. package/dist/routes/inventory.routes.d.ts +2853 -0
  32. package/dist/routes/inventory.routes.d.ts.map +1 -0
  33. package/dist/routes/inventory.routes.js +121 -0
  34. package/dist/routes/soil-tests.routes.d.ts +3005 -0
  35. package/dist/routes/soil-tests.routes.d.ts.map +1 -0
  36. package/dist/routes/soil-tests.routes.js +98 -0
  37. package/dist/routes/suppliers.routes.d.ts +4190 -0
  38. package/dist/routes/suppliers.routes.d.ts.map +1 -0
  39. package/dist/routes/suppliers.routes.js +146 -0
  40. package/dist/routes/tasks.routes.d.ts +4192 -0
  41. package/dist/routes/tasks.routes.d.ts.map +1 -0
  42. package/dist/routes/tasks.routes.js +138 -0
  43. package/dist/routes/team.routes.d.ts +2210 -0
  44. package/dist/routes/team.routes.d.ts.map +1 -0
  45. package/dist/routes/team.routes.js +98 -0
  46. package/dist/routes/users.routes.d.ts +721 -0
  47. package/dist/routes/users.routes.d.ts.map +1 -0
  48. package/dist/routes/users.routes.js +35 -0
  49. package/dist/routes/weather.routes.d.ts +500 -0
  50. package/dist/routes/weather.routes.d.ts.map +1 -0
  51. package/dist/routes/weather.routes.js +23 -0
  52. package/dist/schemas/analytics.schemas.d.ts +1344 -0
  53. package/dist/schemas/analytics.schemas.d.ts.map +1 -0
  54. package/dist/schemas/analytics.schemas.js +73 -0
  55. package/dist/schemas/auth.schemas.d.ts +1093 -0
  56. package/dist/schemas/auth.schemas.d.ts.map +1 -0
  57. package/dist/schemas/auth.schemas.js +159 -0
  58. package/dist/schemas/common.schemas.d.ts +562 -0
  59. package/dist/schemas/common.schemas.d.ts.map +1 -0
  60. package/dist/schemas/common.schemas.js +122 -0
  61. package/dist/schemas/documents.schemas.d.ts +850 -0
  62. package/dist/schemas/documents.schemas.d.ts.map +1 -0
  63. package/dist/schemas/documents.schemas.js +75 -0
  64. package/dist/schemas/equipment.schemas.d.ts +1618 -0
  65. package/dist/schemas/equipment.schemas.d.ts.map +1 -0
  66. package/dist/schemas/equipment.schemas.js +125 -0
  67. package/dist/schemas/farms.schemas.d.ts +1171 -0
  68. package/dist/schemas/farms.schemas.d.ts.map +1 -0
  69. package/dist/schemas/farms.schemas.js +62 -0
  70. package/dist/schemas/fields.schemas.d.ts +2508 -0
  71. package/dist/schemas/fields.schemas.d.ts.map +1 -0
  72. package/dist/schemas/fields.schemas.js +125 -0
  73. package/dist/schemas/finance.schemas.d.ts +2869 -0
  74. package/dist/schemas/finance.schemas.d.ts.map +1 -0
  75. package/dist/schemas/finance.schemas.js +196 -0
  76. package/dist/schemas/harvest.schemas.d.ts +1051 -0
  77. package/dist/schemas/harvest.schemas.d.ts.map +1 -0
  78. package/dist/schemas/harvest.schemas.js +71 -0
  79. package/dist/schemas/inventory.schemas.d.ts +1138 -0
  80. package/dist/schemas/inventory.schemas.d.ts.map +1 -0
  81. package/dist/schemas/inventory.schemas.js +89 -0
  82. package/dist/schemas/soil-tests.schemas.d.ts +1885 -0
  83. package/dist/schemas/soil-tests.schemas.d.ts.map +1 -0
  84. package/dist/schemas/soil-tests.schemas.js +102 -0
  85. package/dist/schemas/suppliers.schemas.d.ts +1774 -0
  86. package/dist/schemas/suppliers.schemas.d.ts.map +1 -0
  87. package/dist/schemas/suppliers.schemas.js +121 -0
  88. package/dist/schemas/tasks.schemas.d.ts +1761 -0
  89. package/dist/schemas/tasks.schemas.d.ts.map +1 -0
  90. package/dist/schemas/tasks.schemas.js +121 -0
  91. package/dist/schemas/team.schemas.d.ts +583 -0
  92. package/dist/schemas/team.schemas.d.ts.map +1 -0
  93. package/dist/schemas/team.schemas.js +60 -0
  94. package/dist/schemas/users.schemas.d.ts +288 -0
  95. package/dist/schemas/users.schemas.d.ts.map +1 -0
  96. package/dist/schemas/users.schemas.js +32 -0
  97. package/dist/schemas/weather.schemas.d.ts +682 -0
  98. package/dist/schemas/weather.schemas.d.ts.map +1 -0
  99. package/dist/schemas/weather.schemas.js +49 -0
  100. package/package.json +1 -1
@@ -0,0 +1,3836 @@
1
+ import { z } from 'zod';
2
+ export declare const authRouter: {
3
+ login: {
4
+ summary: "Login with email and password";
5
+ description: "Authenticate user with email and password, returns user data and tokens";
6
+ method: "POST";
7
+ body: z.ZodObject<{
8
+ data: z.ZodObject<{
9
+ type: z.ZodLiteral<"auth">;
10
+ attributes: z.ZodObject<{
11
+ email: z.ZodString;
12
+ password: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ email: string;
15
+ password: string;
16
+ }, {
17
+ email: string;
18
+ password: string;
19
+ }>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ type: "auth";
22
+ attributes: {
23
+ email: string;
24
+ password: string;
25
+ };
26
+ }, {
27
+ type: "auth";
28
+ attributes: {
29
+ email: string;
30
+ password: string;
31
+ };
32
+ }>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ data: {
35
+ type: "auth";
36
+ attributes: {
37
+ email: string;
38
+ password: string;
39
+ };
40
+ };
41
+ }, {
42
+ data: {
43
+ type: "auth";
44
+ attributes: {
45
+ email: string;
46
+ password: string;
47
+ };
48
+ };
49
+ }>;
50
+ path: "/auth/login";
51
+ responses: {
52
+ 200: z.ZodObject<{
53
+ data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
54
+ type: z.ZodLiteral<string>;
55
+ id: z.ZodString;
56
+ attributes: z.ZodObject<{
57
+ name: z.ZodString;
58
+ email: z.ZodString;
59
+ phone: z.ZodNullable<z.ZodString>;
60
+ emailVerified: z.ZodBoolean;
61
+ avatar: z.ZodNullable<z.ZodString>;
62
+ } & {
63
+ createdAt: z.ZodString;
64
+ updatedAt: z.ZodString;
65
+ }, "strip", z.ZodTypeAny, {
66
+ email: string;
67
+ createdAt: string;
68
+ updatedAt: string;
69
+ name: string;
70
+ phone: string | null;
71
+ emailVerified: boolean;
72
+ avatar: string | null;
73
+ }, {
74
+ email: string;
75
+ createdAt: string;
76
+ updatedAt: string;
77
+ name: string;
78
+ phone: string | null;
79
+ emailVerified: boolean;
80
+ avatar: string | null;
81
+ }>;
82
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
83
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
84
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ type: string;
87
+ id: string;
88
+ attributes: {
89
+ email: string;
90
+ createdAt: string;
91
+ updatedAt: string;
92
+ name: string;
93
+ phone: string | null;
94
+ emailVerified: boolean;
95
+ avatar: string | null;
96
+ };
97
+ relationships?: Record<string, unknown> | undefined;
98
+ links?: Record<string, string> | undefined;
99
+ meta?: Record<string, unknown> | undefined;
100
+ }, {
101
+ type: string;
102
+ id: string;
103
+ attributes: {
104
+ email: string;
105
+ createdAt: string;
106
+ updatedAt: string;
107
+ name: string;
108
+ phone: string | null;
109
+ emailVerified: boolean;
110
+ avatar: string | null;
111
+ };
112
+ relationships?: Record<string, unknown> | undefined;
113
+ links?: Record<string, string> | undefined;
114
+ meta?: Record<string, unknown> | undefined;
115
+ }>, z.ZodObject<{
116
+ type: z.ZodLiteral<string>;
117
+ id: z.ZodString;
118
+ attributes: z.ZodObject<{
119
+ accessToken: z.ZodString;
120
+ refreshToken: z.ZodString;
121
+ expiresIn: z.ZodNumber;
122
+ tokenType: z.ZodDefault<z.ZodLiteral<"Bearer">>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ refreshToken: string;
125
+ accessToken: string;
126
+ expiresIn: number;
127
+ tokenType: "Bearer";
128
+ }, {
129
+ refreshToken: string;
130
+ accessToken: string;
131
+ expiresIn: number;
132
+ tokenType?: "Bearer" | undefined;
133
+ }>;
134
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
135
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
136
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ type: string;
139
+ id: string;
140
+ attributes: {
141
+ refreshToken: string;
142
+ accessToken: string;
143
+ expiresIn: number;
144
+ tokenType: "Bearer";
145
+ };
146
+ relationships?: Record<string, unknown> | undefined;
147
+ links?: Record<string, string> | undefined;
148
+ meta?: Record<string, unknown> | undefined;
149
+ }, {
150
+ type: string;
151
+ id: string;
152
+ attributes: {
153
+ refreshToken: string;
154
+ accessToken: string;
155
+ expiresIn: number;
156
+ tokenType?: "Bearer" | undefined;
157
+ };
158
+ relationships?: Record<string, unknown> | undefined;
159
+ links?: Record<string, string> | undefined;
160
+ meta?: Record<string, unknown> | undefined;
161
+ }>]>, "many">;
162
+ meta: z.ZodOptional<z.ZodObject<{
163
+ message: z.ZodOptional<z.ZodString>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ message?: string | undefined;
166
+ }, {
167
+ message?: string | undefined;
168
+ }>>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ data: ({
171
+ type: string;
172
+ id: string;
173
+ attributes: {
174
+ email: string;
175
+ createdAt: string;
176
+ updatedAt: string;
177
+ name: string;
178
+ phone: string | null;
179
+ emailVerified: boolean;
180
+ avatar: string | null;
181
+ };
182
+ relationships?: Record<string, unknown> | undefined;
183
+ links?: Record<string, string> | undefined;
184
+ meta?: Record<string, unknown> | undefined;
185
+ } | {
186
+ type: string;
187
+ id: string;
188
+ attributes: {
189
+ refreshToken: string;
190
+ accessToken: string;
191
+ expiresIn: number;
192
+ tokenType: "Bearer";
193
+ };
194
+ relationships?: Record<string, unknown> | undefined;
195
+ links?: Record<string, string> | undefined;
196
+ meta?: Record<string, unknown> | undefined;
197
+ })[];
198
+ meta?: {
199
+ message?: string | undefined;
200
+ } | undefined;
201
+ }, {
202
+ data: ({
203
+ type: string;
204
+ id: string;
205
+ attributes: {
206
+ email: string;
207
+ createdAt: string;
208
+ updatedAt: string;
209
+ name: string;
210
+ phone: string | null;
211
+ emailVerified: boolean;
212
+ avatar: string | null;
213
+ };
214
+ relationships?: Record<string, unknown> | undefined;
215
+ links?: Record<string, string> | undefined;
216
+ meta?: Record<string, unknown> | undefined;
217
+ } | {
218
+ type: string;
219
+ id: string;
220
+ attributes: {
221
+ refreshToken: string;
222
+ accessToken: string;
223
+ expiresIn: number;
224
+ tokenType?: "Bearer" | undefined;
225
+ };
226
+ relationships?: Record<string, unknown> | undefined;
227
+ links?: Record<string, string> | undefined;
228
+ meta?: Record<string, unknown> | undefined;
229
+ })[];
230
+ meta?: {
231
+ message?: string | undefined;
232
+ } | undefined;
233
+ }>;
234
+ 401: z.ZodObject<{
235
+ errors: z.ZodArray<z.ZodObject<{
236
+ id: z.ZodOptional<z.ZodString>;
237
+ links: z.ZodOptional<z.ZodObject<{
238
+ about: z.ZodOptional<z.ZodString>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ about?: string | undefined;
241
+ }, {
242
+ about?: string | undefined;
243
+ }>>;
244
+ status: z.ZodOptional<z.ZodString>;
245
+ code: z.ZodOptional<z.ZodString>;
246
+ title: z.ZodOptional<z.ZodString>;
247
+ detail: z.ZodOptional<z.ZodString>;
248
+ source: z.ZodOptional<z.ZodObject<{
249
+ pointer: z.ZodOptional<z.ZodString>;
250
+ parameter: z.ZodOptional<z.ZodString>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ pointer?: string | undefined;
253
+ parameter?: string | undefined;
254
+ }, {
255
+ pointer?: string | undefined;
256
+ parameter?: string | undefined;
257
+ }>>;
258
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ status?: string | undefined;
261
+ code?: string | undefined;
262
+ id?: string | undefined;
263
+ links?: {
264
+ about?: string | undefined;
265
+ } | undefined;
266
+ meta?: Record<string, unknown> | undefined;
267
+ title?: string | undefined;
268
+ detail?: string | undefined;
269
+ source?: {
270
+ pointer?: string | undefined;
271
+ parameter?: string | undefined;
272
+ } | undefined;
273
+ }, {
274
+ status?: string | undefined;
275
+ code?: string | undefined;
276
+ id?: string | undefined;
277
+ links?: {
278
+ about?: string | undefined;
279
+ } | undefined;
280
+ meta?: Record<string, unknown> | undefined;
281
+ title?: string | undefined;
282
+ detail?: string | undefined;
283
+ source?: {
284
+ pointer?: string | undefined;
285
+ parameter?: string | undefined;
286
+ } | undefined;
287
+ }>, "many">;
288
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
289
+ }, "strip", z.ZodTypeAny, {
290
+ errors: {
291
+ status?: string | undefined;
292
+ code?: string | undefined;
293
+ id?: string | undefined;
294
+ links?: {
295
+ about?: string | undefined;
296
+ } | undefined;
297
+ meta?: Record<string, unknown> | undefined;
298
+ title?: string | undefined;
299
+ detail?: string | undefined;
300
+ source?: {
301
+ pointer?: string | undefined;
302
+ parameter?: string | undefined;
303
+ } | undefined;
304
+ }[];
305
+ meta?: Record<string, unknown> | undefined;
306
+ }, {
307
+ errors: {
308
+ status?: string | undefined;
309
+ code?: string | undefined;
310
+ id?: string | undefined;
311
+ links?: {
312
+ about?: string | undefined;
313
+ } | undefined;
314
+ meta?: Record<string, unknown> | undefined;
315
+ title?: string | undefined;
316
+ detail?: string | undefined;
317
+ source?: {
318
+ pointer?: string | undefined;
319
+ parameter?: string | undefined;
320
+ } | undefined;
321
+ }[];
322
+ meta?: Record<string, unknown> | undefined;
323
+ }>;
324
+ 400: z.ZodObject<{
325
+ errors: z.ZodArray<z.ZodObject<{
326
+ id: z.ZodOptional<z.ZodString>;
327
+ links: z.ZodOptional<z.ZodObject<{
328
+ about: z.ZodOptional<z.ZodString>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ about?: string | undefined;
331
+ }, {
332
+ about?: string | undefined;
333
+ }>>;
334
+ status: z.ZodOptional<z.ZodString>;
335
+ code: z.ZodOptional<z.ZodString>;
336
+ title: z.ZodOptional<z.ZodString>;
337
+ detail: z.ZodOptional<z.ZodString>;
338
+ source: z.ZodOptional<z.ZodObject<{
339
+ pointer: z.ZodOptional<z.ZodString>;
340
+ parameter: z.ZodOptional<z.ZodString>;
341
+ }, "strip", z.ZodTypeAny, {
342
+ pointer?: string | undefined;
343
+ parameter?: string | undefined;
344
+ }, {
345
+ pointer?: string | undefined;
346
+ parameter?: string | undefined;
347
+ }>>;
348
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
349
+ }, "strip", z.ZodTypeAny, {
350
+ status?: string | undefined;
351
+ code?: string | undefined;
352
+ id?: string | undefined;
353
+ links?: {
354
+ about?: string | undefined;
355
+ } | undefined;
356
+ meta?: Record<string, unknown> | undefined;
357
+ title?: string | undefined;
358
+ detail?: string | undefined;
359
+ source?: {
360
+ pointer?: string | undefined;
361
+ parameter?: string | undefined;
362
+ } | undefined;
363
+ }, {
364
+ status?: string | undefined;
365
+ code?: string | undefined;
366
+ id?: string | undefined;
367
+ links?: {
368
+ about?: string | undefined;
369
+ } | undefined;
370
+ meta?: Record<string, unknown> | undefined;
371
+ title?: string | undefined;
372
+ detail?: string | undefined;
373
+ source?: {
374
+ pointer?: string | undefined;
375
+ parameter?: string | undefined;
376
+ } | undefined;
377
+ }>, "many">;
378
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ errors: {
381
+ status?: string | undefined;
382
+ code?: string | undefined;
383
+ id?: string | undefined;
384
+ links?: {
385
+ about?: string | undefined;
386
+ } | undefined;
387
+ meta?: Record<string, unknown> | undefined;
388
+ title?: string | undefined;
389
+ detail?: string | undefined;
390
+ source?: {
391
+ pointer?: string | undefined;
392
+ parameter?: string | undefined;
393
+ } | undefined;
394
+ }[];
395
+ meta?: Record<string, unknown> | undefined;
396
+ }, {
397
+ errors: {
398
+ status?: string | undefined;
399
+ code?: string | undefined;
400
+ id?: string | undefined;
401
+ links?: {
402
+ about?: string | undefined;
403
+ } | undefined;
404
+ meta?: Record<string, unknown> | undefined;
405
+ title?: string | undefined;
406
+ detail?: string | undefined;
407
+ source?: {
408
+ pointer?: string | undefined;
409
+ parameter?: string | undefined;
410
+ } | undefined;
411
+ }[];
412
+ meta?: Record<string, unknown> | undefined;
413
+ }>;
414
+ 422: z.ZodObject<{
415
+ errors: z.ZodArray<z.ZodObject<{
416
+ id: z.ZodOptional<z.ZodString>;
417
+ links: z.ZodOptional<z.ZodObject<{
418
+ about: z.ZodOptional<z.ZodString>;
419
+ }, "strip", z.ZodTypeAny, {
420
+ about?: string | undefined;
421
+ }, {
422
+ about?: string | undefined;
423
+ }>>;
424
+ status: z.ZodOptional<z.ZodString>;
425
+ code: z.ZodOptional<z.ZodString>;
426
+ title: z.ZodOptional<z.ZodString>;
427
+ detail: z.ZodOptional<z.ZodString>;
428
+ source: z.ZodOptional<z.ZodObject<{
429
+ pointer: z.ZodOptional<z.ZodString>;
430
+ parameter: z.ZodOptional<z.ZodString>;
431
+ }, "strip", z.ZodTypeAny, {
432
+ pointer?: string | undefined;
433
+ parameter?: string | undefined;
434
+ }, {
435
+ pointer?: string | undefined;
436
+ parameter?: string | undefined;
437
+ }>>;
438
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
439
+ }, "strip", z.ZodTypeAny, {
440
+ status?: string | undefined;
441
+ code?: string | undefined;
442
+ id?: string | undefined;
443
+ links?: {
444
+ about?: string | undefined;
445
+ } | undefined;
446
+ meta?: Record<string, unknown> | undefined;
447
+ title?: string | undefined;
448
+ detail?: string | undefined;
449
+ source?: {
450
+ pointer?: string | undefined;
451
+ parameter?: string | undefined;
452
+ } | undefined;
453
+ }, {
454
+ status?: string | undefined;
455
+ code?: string | undefined;
456
+ id?: string | undefined;
457
+ links?: {
458
+ about?: string | undefined;
459
+ } | undefined;
460
+ meta?: Record<string, unknown> | undefined;
461
+ title?: string | undefined;
462
+ detail?: string | undefined;
463
+ source?: {
464
+ pointer?: string | undefined;
465
+ parameter?: string | undefined;
466
+ } | undefined;
467
+ }>, "many">;
468
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ errors: {
471
+ status?: string | undefined;
472
+ code?: string | undefined;
473
+ id?: string | undefined;
474
+ links?: {
475
+ about?: string | undefined;
476
+ } | undefined;
477
+ meta?: Record<string, unknown> | undefined;
478
+ title?: string | undefined;
479
+ detail?: string | undefined;
480
+ source?: {
481
+ pointer?: string | undefined;
482
+ parameter?: string | undefined;
483
+ } | undefined;
484
+ }[];
485
+ meta?: Record<string, unknown> | undefined;
486
+ }, {
487
+ errors: {
488
+ status?: string | undefined;
489
+ code?: string | undefined;
490
+ id?: string | undefined;
491
+ links?: {
492
+ about?: string | undefined;
493
+ } | undefined;
494
+ meta?: Record<string, unknown> | undefined;
495
+ title?: string | undefined;
496
+ detail?: string | undefined;
497
+ source?: {
498
+ pointer?: string | undefined;
499
+ parameter?: string | undefined;
500
+ } | undefined;
501
+ }[];
502
+ meta?: Record<string, unknown> | undefined;
503
+ }>;
504
+ };
505
+ };
506
+ signup: {
507
+ summary: "Register new user";
508
+ description: "Create a new user account with email and password";
509
+ method: "POST";
510
+ body: z.ZodObject<{
511
+ data: z.ZodObject<{
512
+ type: z.ZodLiteral<"users">;
513
+ attributes: z.ZodObject<{
514
+ name: z.ZodString;
515
+ email: z.ZodString;
516
+ password: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ email: string;
519
+ password: string;
520
+ name: string;
521
+ }, {
522
+ email: string;
523
+ password: string;
524
+ name: string;
525
+ }>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ type: "users";
528
+ attributes: {
529
+ email: string;
530
+ password: string;
531
+ name: string;
532
+ };
533
+ }, {
534
+ type: "users";
535
+ attributes: {
536
+ email: string;
537
+ password: string;
538
+ name: string;
539
+ };
540
+ }>;
541
+ }, "strip", z.ZodTypeAny, {
542
+ data: {
543
+ type: "users";
544
+ attributes: {
545
+ email: string;
546
+ password: string;
547
+ name: string;
548
+ };
549
+ };
550
+ }, {
551
+ data: {
552
+ type: "users";
553
+ attributes: {
554
+ email: string;
555
+ password: string;
556
+ name: string;
557
+ };
558
+ };
559
+ }>;
560
+ path: "/auth/signup";
561
+ responses: {
562
+ 201: z.ZodObject<{
563
+ data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
564
+ type: z.ZodLiteral<string>;
565
+ id: z.ZodString;
566
+ attributes: z.ZodObject<{
567
+ name: z.ZodString;
568
+ email: z.ZodString;
569
+ phone: z.ZodNullable<z.ZodString>;
570
+ emailVerified: z.ZodBoolean;
571
+ avatar: z.ZodNullable<z.ZodString>;
572
+ } & {
573
+ createdAt: z.ZodString;
574
+ updatedAt: z.ZodString;
575
+ }, "strip", z.ZodTypeAny, {
576
+ email: string;
577
+ createdAt: string;
578
+ updatedAt: string;
579
+ name: string;
580
+ phone: string | null;
581
+ emailVerified: boolean;
582
+ avatar: string | null;
583
+ }, {
584
+ email: string;
585
+ createdAt: string;
586
+ updatedAt: string;
587
+ name: string;
588
+ phone: string | null;
589
+ emailVerified: boolean;
590
+ avatar: string | null;
591
+ }>;
592
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
593
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
594
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
595
+ }, "strip", z.ZodTypeAny, {
596
+ type: string;
597
+ id: string;
598
+ attributes: {
599
+ email: string;
600
+ createdAt: string;
601
+ updatedAt: string;
602
+ name: string;
603
+ phone: string | null;
604
+ emailVerified: boolean;
605
+ avatar: string | null;
606
+ };
607
+ relationships?: Record<string, unknown> | undefined;
608
+ links?: Record<string, string> | undefined;
609
+ meta?: Record<string, unknown> | undefined;
610
+ }, {
611
+ type: string;
612
+ id: string;
613
+ attributes: {
614
+ email: string;
615
+ createdAt: string;
616
+ updatedAt: string;
617
+ name: string;
618
+ phone: string | null;
619
+ emailVerified: boolean;
620
+ avatar: string | null;
621
+ };
622
+ relationships?: Record<string, unknown> | undefined;
623
+ links?: Record<string, string> | undefined;
624
+ meta?: Record<string, unknown> | undefined;
625
+ }>, z.ZodObject<{
626
+ type: z.ZodLiteral<string>;
627
+ id: z.ZodString;
628
+ attributes: z.ZodObject<{
629
+ accessToken: z.ZodString;
630
+ refreshToken: z.ZodString;
631
+ expiresIn: z.ZodNumber;
632
+ tokenType: z.ZodDefault<z.ZodLiteral<"Bearer">>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ refreshToken: string;
635
+ accessToken: string;
636
+ expiresIn: number;
637
+ tokenType: "Bearer";
638
+ }, {
639
+ refreshToken: string;
640
+ accessToken: string;
641
+ expiresIn: number;
642
+ tokenType?: "Bearer" | undefined;
643
+ }>;
644
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
645
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
646
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ type: string;
649
+ id: string;
650
+ attributes: {
651
+ refreshToken: string;
652
+ accessToken: string;
653
+ expiresIn: number;
654
+ tokenType: "Bearer";
655
+ };
656
+ relationships?: Record<string, unknown> | undefined;
657
+ links?: Record<string, string> | undefined;
658
+ meta?: Record<string, unknown> | undefined;
659
+ }, {
660
+ type: string;
661
+ id: string;
662
+ attributes: {
663
+ refreshToken: string;
664
+ accessToken: string;
665
+ expiresIn: number;
666
+ tokenType?: "Bearer" | undefined;
667
+ };
668
+ relationships?: Record<string, unknown> | undefined;
669
+ links?: Record<string, string> | undefined;
670
+ meta?: Record<string, unknown> | undefined;
671
+ }>]>, "many">;
672
+ meta: z.ZodOptional<z.ZodObject<{
673
+ message: z.ZodOptional<z.ZodString>;
674
+ }, "strip", z.ZodTypeAny, {
675
+ message?: string | undefined;
676
+ }, {
677
+ message?: string | undefined;
678
+ }>>;
679
+ }, "strip", z.ZodTypeAny, {
680
+ data: ({
681
+ type: string;
682
+ id: string;
683
+ attributes: {
684
+ email: string;
685
+ createdAt: string;
686
+ updatedAt: string;
687
+ name: string;
688
+ phone: string | null;
689
+ emailVerified: boolean;
690
+ avatar: string | null;
691
+ };
692
+ relationships?: Record<string, unknown> | undefined;
693
+ links?: Record<string, string> | undefined;
694
+ meta?: Record<string, unknown> | undefined;
695
+ } | {
696
+ type: string;
697
+ id: string;
698
+ attributes: {
699
+ refreshToken: string;
700
+ accessToken: string;
701
+ expiresIn: number;
702
+ tokenType: "Bearer";
703
+ };
704
+ relationships?: Record<string, unknown> | undefined;
705
+ links?: Record<string, string> | undefined;
706
+ meta?: Record<string, unknown> | undefined;
707
+ })[];
708
+ meta?: {
709
+ message?: string | undefined;
710
+ } | undefined;
711
+ }, {
712
+ data: ({
713
+ type: string;
714
+ id: string;
715
+ attributes: {
716
+ email: string;
717
+ createdAt: string;
718
+ updatedAt: string;
719
+ name: string;
720
+ phone: string | null;
721
+ emailVerified: boolean;
722
+ avatar: string | null;
723
+ };
724
+ relationships?: Record<string, unknown> | undefined;
725
+ links?: Record<string, string> | undefined;
726
+ meta?: Record<string, unknown> | undefined;
727
+ } | {
728
+ type: string;
729
+ id: string;
730
+ attributes: {
731
+ refreshToken: string;
732
+ accessToken: string;
733
+ expiresIn: number;
734
+ tokenType?: "Bearer" | undefined;
735
+ };
736
+ relationships?: Record<string, unknown> | undefined;
737
+ links?: Record<string, string> | undefined;
738
+ meta?: Record<string, unknown> | undefined;
739
+ })[];
740
+ meta?: {
741
+ message?: string | undefined;
742
+ } | undefined;
743
+ }>;
744
+ 400: z.ZodObject<{
745
+ errors: z.ZodArray<z.ZodObject<{
746
+ id: z.ZodOptional<z.ZodString>;
747
+ links: z.ZodOptional<z.ZodObject<{
748
+ about: z.ZodOptional<z.ZodString>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ about?: string | undefined;
751
+ }, {
752
+ about?: string | undefined;
753
+ }>>;
754
+ status: z.ZodOptional<z.ZodString>;
755
+ code: z.ZodOptional<z.ZodString>;
756
+ title: z.ZodOptional<z.ZodString>;
757
+ detail: z.ZodOptional<z.ZodString>;
758
+ source: z.ZodOptional<z.ZodObject<{
759
+ pointer: z.ZodOptional<z.ZodString>;
760
+ parameter: z.ZodOptional<z.ZodString>;
761
+ }, "strip", z.ZodTypeAny, {
762
+ pointer?: string | undefined;
763
+ parameter?: string | undefined;
764
+ }, {
765
+ pointer?: string | undefined;
766
+ parameter?: string | undefined;
767
+ }>>;
768
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
769
+ }, "strip", z.ZodTypeAny, {
770
+ status?: string | undefined;
771
+ code?: string | undefined;
772
+ id?: string | undefined;
773
+ links?: {
774
+ about?: string | undefined;
775
+ } | undefined;
776
+ meta?: Record<string, unknown> | undefined;
777
+ title?: string | undefined;
778
+ detail?: string | undefined;
779
+ source?: {
780
+ pointer?: string | undefined;
781
+ parameter?: string | undefined;
782
+ } | undefined;
783
+ }, {
784
+ status?: string | undefined;
785
+ code?: string | undefined;
786
+ id?: string | undefined;
787
+ links?: {
788
+ about?: string | undefined;
789
+ } | undefined;
790
+ meta?: Record<string, unknown> | undefined;
791
+ title?: string | undefined;
792
+ detail?: string | undefined;
793
+ source?: {
794
+ pointer?: string | undefined;
795
+ parameter?: string | undefined;
796
+ } | undefined;
797
+ }>, "many">;
798
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ errors: {
801
+ status?: string | undefined;
802
+ code?: string | undefined;
803
+ id?: string | undefined;
804
+ links?: {
805
+ about?: string | undefined;
806
+ } | undefined;
807
+ meta?: Record<string, unknown> | undefined;
808
+ title?: string | undefined;
809
+ detail?: string | undefined;
810
+ source?: {
811
+ pointer?: string | undefined;
812
+ parameter?: string | undefined;
813
+ } | undefined;
814
+ }[];
815
+ meta?: Record<string, unknown> | undefined;
816
+ }, {
817
+ errors: {
818
+ status?: string | undefined;
819
+ code?: string | undefined;
820
+ id?: string | undefined;
821
+ links?: {
822
+ about?: string | undefined;
823
+ } | undefined;
824
+ meta?: Record<string, unknown> | undefined;
825
+ title?: string | undefined;
826
+ detail?: string | undefined;
827
+ source?: {
828
+ pointer?: string | undefined;
829
+ parameter?: string | undefined;
830
+ } | undefined;
831
+ }[];
832
+ meta?: Record<string, unknown> | undefined;
833
+ }>;
834
+ 409: z.ZodObject<{
835
+ errors: z.ZodArray<z.ZodObject<{
836
+ id: z.ZodOptional<z.ZodString>;
837
+ links: z.ZodOptional<z.ZodObject<{
838
+ about: z.ZodOptional<z.ZodString>;
839
+ }, "strip", z.ZodTypeAny, {
840
+ about?: string | undefined;
841
+ }, {
842
+ about?: string | undefined;
843
+ }>>;
844
+ status: z.ZodOptional<z.ZodString>;
845
+ code: z.ZodOptional<z.ZodString>;
846
+ title: z.ZodOptional<z.ZodString>;
847
+ detail: z.ZodOptional<z.ZodString>;
848
+ source: z.ZodOptional<z.ZodObject<{
849
+ pointer: z.ZodOptional<z.ZodString>;
850
+ parameter: z.ZodOptional<z.ZodString>;
851
+ }, "strip", z.ZodTypeAny, {
852
+ pointer?: string | undefined;
853
+ parameter?: string | undefined;
854
+ }, {
855
+ pointer?: string | undefined;
856
+ parameter?: string | undefined;
857
+ }>>;
858
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
859
+ }, "strip", z.ZodTypeAny, {
860
+ status?: string | undefined;
861
+ code?: string | undefined;
862
+ id?: string | undefined;
863
+ links?: {
864
+ about?: string | undefined;
865
+ } | undefined;
866
+ meta?: Record<string, unknown> | undefined;
867
+ title?: string | undefined;
868
+ detail?: string | undefined;
869
+ source?: {
870
+ pointer?: string | undefined;
871
+ parameter?: string | undefined;
872
+ } | undefined;
873
+ }, {
874
+ status?: string | undefined;
875
+ code?: string | undefined;
876
+ id?: string | undefined;
877
+ links?: {
878
+ about?: string | undefined;
879
+ } | undefined;
880
+ meta?: Record<string, unknown> | undefined;
881
+ title?: string | undefined;
882
+ detail?: string | undefined;
883
+ source?: {
884
+ pointer?: string | undefined;
885
+ parameter?: string | undefined;
886
+ } | undefined;
887
+ }>, "many">;
888
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
889
+ }, "strip", z.ZodTypeAny, {
890
+ errors: {
891
+ status?: string | undefined;
892
+ code?: string | undefined;
893
+ id?: string | undefined;
894
+ links?: {
895
+ about?: string | undefined;
896
+ } | undefined;
897
+ meta?: Record<string, unknown> | undefined;
898
+ title?: string | undefined;
899
+ detail?: string | undefined;
900
+ source?: {
901
+ pointer?: string | undefined;
902
+ parameter?: string | undefined;
903
+ } | undefined;
904
+ }[];
905
+ meta?: Record<string, unknown> | undefined;
906
+ }, {
907
+ errors: {
908
+ status?: string | undefined;
909
+ code?: string | undefined;
910
+ id?: string | undefined;
911
+ links?: {
912
+ about?: string | undefined;
913
+ } | undefined;
914
+ meta?: Record<string, unknown> | undefined;
915
+ title?: string | undefined;
916
+ detail?: string | undefined;
917
+ source?: {
918
+ pointer?: string | undefined;
919
+ parameter?: string | undefined;
920
+ } | undefined;
921
+ }[];
922
+ meta?: Record<string, unknown> | undefined;
923
+ }>;
924
+ 422: z.ZodObject<{
925
+ errors: z.ZodArray<z.ZodObject<{
926
+ id: z.ZodOptional<z.ZodString>;
927
+ links: z.ZodOptional<z.ZodObject<{
928
+ about: z.ZodOptional<z.ZodString>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ about?: string | undefined;
931
+ }, {
932
+ about?: string | undefined;
933
+ }>>;
934
+ status: z.ZodOptional<z.ZodString>;
935
+ code: z.ZodOptional<z.ZodString>;
936
+ title: z.ZodOptional<z.ZodString>;
937
+ detail: z.ZodOptional<z.ZodString>;
938
+ source: z.ZodOptional<z.ZodObject<{
939
+ pointer: z.ZodOptional<z.ZodString>;
940
+ parameter: z.ZodOptional<z.ZodString>;
941
+ }, "strip", z.ZodTypeAny, {
942
+ pointer?: string | undefined;
943
+ parameter?: string | undefined;
944
+ }, {
945
+ pointer?: string | undefined;
946
+ parameter?: string | undefined;
947
+ }>>;
948
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
949
+ }, "strip", z.ZodTypeAny, {
950
+ status?: string | undefined;
951
+ code?: string | undefined;
952
+ id?: string | undefined;
953
+ links?: {
954
+ about?: string | undefined;
955
+ } | undefined;
956
+ meta?: Record<string, unknown> | undefined;
957
+ title?: string | undefined;
958
+ detail?: string | undefined;
959
+ source?: {
960
+ pointer?: string | undefined;
961
+ parameter?: string | undefined;
962
+ } | undefined;
963
+ }, {
964
+ status?: string | undefined;
965
+ code?: string | undefined;
966
+ id?: string | undefined;
967
+ links?: {
968
+ about?: string | undefined;
969
+ } | undefined;
970
+ meta?: Record<string, unknown> | undefined;
971
+ title?: string | undefined;
972
+ detail?: string | undefined;
973
+ source?: {
974
+ pointer?: string | undefined;
975
+ parameter?: string | undefined;
976
+ } | undefined;
977
+ }>, "many">;
978
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
979
+ }, "strip", z.ZodTypeAny, {
980
+ errors: {
981
+ status?: string | undefined;
982
+ code?: string | undefined;
983
+ id?: string | undefined;
984
+ links?: {
985
+ about?: string | undefined;
986
+ } | undefined;
987
+ meta?: Record<string, unknown> | undefined;
988
+ title?: string | undefined;
989
+ detail?: string | undefined;
990
+ source?: {
991
+ pointer?: string | undefined;
992
+ parameter?: string | undefined;
993
+ } | undefined;
994
+ }[];
995
+ meta?: Record<string, unknown> | undefined;
996
+ }, {
997
+ errors: {
998
+ status?: string | undefined;
999
+ code?: string | undefined;
1000
+ id?: string | undefined;
1001
+ links?: {
1002
+ about?: string | undefined;
1003
+ } | undefined;
1004
+ meta?: Record<string, unknown> | undefined;
1005
+ title?: string | undefined;
1006
+ detail?: string | undefined;
1007
+ source?: {
1008
+ pointer?: string | undefined;
1009
+ parameter?: string | undefined;
1010
+ } | undefined;
1011
+ }[];
1012
+ meta?: Record<string, unknown> | undefined;
1013
+ }>;
1014
+ };
1015
+ };
1016
+ googleAuthInitiate: {
1017
+ summary: "Initiate Google OAuth flow";
1018
+ description: "Get Google OAuth authorization URL and state token";
1019
+ method: "POST";
1020
+ body: z.ZodObject<{
1021
+ data: z.ZodObject<{
1022
+ type: z.ZodLiteral<"auth">;
1023
+ attributes: z.ZodObject<{
1024
+ redirectUri: z.ZodOptional<z.ZodString>;
1025
+ }, "strip", z.ZodTypeAny, {
1026
+ redirectUri?: string | undefined;
1027
+ }, {
1028
+ redirectUri?: string | undefined;
1029
+ }>;
1030
+ }, "strip", z.ZodTypeAny, {
1031
+ type: "auth";
1032
+ attributes: {
1033
+ redirectUri?: string | undefined;
1034
+ };
1035
+ }, {
1036
+ type: "auth";
1037
+ attributes: {
1038
+ redirectUri?: string | undefined;
1039
+ };
1040
+ }>;
1041
+ }, "strip", z.ZodTypeAny, {
1042
+ data: {
1043
+ type: "auth";
1044
+ attributes: {
1045
+ redirectUri?: string | undefined;
1046
+ };
1047
+ };
1048
+ }, {
1049
+ data: {
1050
+ type: "auth";
1051
+ attributes: {
1052
+ redirectUri?: string | undefined;
1053
+ };
1054
+ };
1055
+ }>;
1056
+ path: "/auth/google/initiate";
1057
+ responses: {
1058
+ 200: z.ZodObject<{
1059
+ data: z.ZodObject<{
1060
+ type: z.ZodLiteral<string>;
1061
+ id: z.ZodString;
1062
+ attributes: z.ZodObject<{
1063
+ authUrl: z.ZodString;
1064
+ state: z.ZodString;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ state: string;
1067
+ authUrl: string;
1068
+ }, {
1069
+ state: string;
1070
+ authUrl: string;
1071
+ }>;
1072
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1073
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1074
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ type: string;
1077
+ id: string;
1078
+ attributes: {
1079
+ state: string;
1080
+ authUrl: string;
1081
+ };
1082
+ relationships?: Record<string, unknown> | undefined;
1083
+ links?: Record<string, string> | undefined;
1084
+ meta?: Record<string, unknown> | undefined;
1085
+ }, {
1086
+ type: string;
1087
+ id: string;
1088
+ attributes: {
1089
+ state: string;
1090
+ authUrl: string;
1091
+ };
1092
+ relationships?: Record<string, unknown> | undefined;
1093
+ links?: Record<string, string> | undefined;
1094
+ meta?: Record<string, unknown> | undefined;
1095
+ }>;
1096
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1097
+ type: z.ZodString;
1098
+ id: z.ZodString;
1099
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1100
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1101
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1102
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1103
+ }, "strip", z.ZodTypeAny, {
1104
+ type: string;
1105
+ id: string;
1106
+ attributes?: Record<string, unknown> | undefined;
1107
+ relationships?: Record<string, unknown> | undefined;
1108
+ links?: Record<string, string> | undefined;
1109
+ meta?: Record<string, unknown> | undefined;
1110
+ }, {
1111
+ type: string;
1112
+ id: string;
1113
+ attributes?: Record<string, unknown> | undefined;
1114
+ relationships?: Record<string, unknown> | undefined;
1115
+ links?: Record<string, string> | undefined;
1116
+ meta?: Record<string, unknown> | undefined;
1117
+ }>, "many">>;
1118
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1119
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ data: {
1122
+ type: string;
1123
+ id: string;
1124
+ attributes: {
1125
+ state: string;
1126
+ authUrl: string;
1127
+ };
1128
+ relationships?: Record<string, unknown> | undefined;
1129
+ links?: Record<string, string> | undefined;
1130
+ meta?: Record<string, unknown> | undefined;
1131
+ };
1132
+ links?: Record<string, string> | undefined;
1133
+ meta?: Record<string, unknown> | undefined;
1134
+ included?: {
1135
+ type: string;
1136
+ id: string;
1137
+ attributes?: Record<string, unknown> | undefined;
1138
+ relationships?: Record<string, unknown> | undefined;
1139
+ links?: Record<string, string> | undefined;
1140
+ meta?: Record<string, unknown> | undefined;
1141
+ }[] | undefined;
1142
+ }, {
1143
+ data: {
1144
+ type: string;
1145
+ id: string;
1146
+ attributes: {
1147
+ state: string;
1148
+ authUrl: string;
1149
+ };
1150
+ relationships?: Record<string, unknown> | undefined;
1151
+ links?: Record<string, string> | undefined;
1152
+ meta?: Record<string, unknown> | undefined;
1153
+ };
1154
+ links?: Record<string, string> | undefined;
1155
+ meta?: Record<string, unknown> | undefined;
1156
+ included?: {
1157
+ type: string;
1158
+ id: string;
1159
+ attributes?: Record<string, unknown> | undefined;
1160
+ relationships?: Record<string, unknown> | undefined;
1161
+ links?: Record<string, string> | undefined;
1162
+ meta?: Record<string, unknown> | undefined;
1163
+ }[] | undefined;
1164
+ }>;
1165
+ 400: z.ZodObject<{
1166
+ errors: z.ZodArray<z.ZodObject<{
1167
+ id: z.ZodOptional<z.ZodString>;
1168
+ links: z.ZodOptional<z.ZodObject<{
1169
+ about: z.ZodOptional<z.ZodString>;
1170
+ }, "strip", z.ZodTypeAny, {
1171
+ about?: string | undefined;
1172
+ }, {
1173
+ about?: string | undefined;
1174
+ }>>;
1175
+ status: z.ZodOptional<z.ZodString>;
1176
+ code: z.ZodOptional<z.ZodString>;
1177
+ title: z.ZodOptional<z.ZodString>;
1178
+ detail: z.ZodOptional<z.ZodString>;
1179
+ source: z.ZodOptional<z.ZodObject<{
1180
+ pointer: z.ZodOptional<z.ZodString>;
1181
+ parameter: z.ZodOptional<z.ZodString>;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ pointer?: string | undefined;
1184
+ parameter?: string | undefined;
1185
+ }, {
1186
+ pointer?: string | undefined;
1187
+ parameter?: string | undefined;
1188
+ }>>;
1189
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1190
+ }, "strip", z.ZodTypeAny, {
1191
+ status?: string | undefined;
1192
+ code?: string | undefined;
1193
+ id?: string | undefined;
1194
+ links?: {
1195
+ about?: string | undefined;
1196
+ } | undefined;
1197
+ meta?: Record<string, unknown> | undefined;
1198
+ title?: string | undefined;
1199
+ detail?: string | undefined;
1200
+ source?: {
1201
+ pointer?: string | undefined;
1202
+ parameter?: string | undefined;
1203
+ } | undefined;
1204
+ }, {
1205
+ status?: string | undefined;
1206
+ code?: string | undefined;
1207
+ id?: string | undefined;
1208
+ links?: {
1209
+ about?: string | undefined;
1210
+ } | undefined;
1211
+ meta?: Record<string, unknown> | undefined;
1212
+ title?: string | undefined;
1213
+ detail?: string | undefined;
1214
+ source?: {
1215
+ pointer?: string | undefined;
1216
+ parameter?: string | undefined;
1217
+ } | undefined;
1218
+ }>, "many">;
1219
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1220
+ }, "strip", z.ZodTypeAny, {
1221
+ errors: {
1222
+ status?: string | undefined;
1223
+ code?: string | undefined;
1224
+ id?: string | undefined;
1225
+ links?: {
1226
+ about?: string | undefined;
1227
+ } | undefined;
1228
+ meta?: Record<string, unknown> | undefined;
1229
+ title?: string | undefined;
1230
+ detail?: string | undefined;
1231
+ source?: {
1232
+ pointer?: string | undefined;
1233
+ parameter?: string | undefined;
1234
+ } | undefined;
1235
+ }[];
1236
+ meta?: Record<string, unknown> | undefined;
1237
+ }, {
1238
+ errors: {
1239
+ status?: string | undefined;
1240
+ code?: string | undefined;
1241
+ id?: string | undefined;
1242
+ links?: {
1243
+ about?: string | undefined;
1244
+ } | undefined;
1245
+ meta?: Record<string, unknown> | undefined;
1246
+ title?: string | undefined;
1247
+ detail?: string | undefined;
1248
+ source?: {
1249
+ pointer?: string | undefined;
1250
+ parameter?: string | undefined;
1251
+ } | undefined;
1252
+ }[];
1253
+ meta?: Record<string, unknown> | undefined;
1254
+ }>;
1255
+ 422: z.ZodObject<{
1256
+ errors: z.ZodArray<z.ZodObject<{
1257
+ id: z.ZodOptional<z.ZodString>;
1258
+ links: z.ZodOptional<z.ZodObject<{
1259
+ about: z.ZodOptional<z.ZodString>;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ about?: string | undefined;
1262
+ }, {
1263
+ about?: string | undefined;
1264
+ }>>;
1265
+ status: z.ZodOptional<z.ZodString>;
1266
+ code: z.ZodOptional<z.ZodString>;
1267
+ title: z.ZodOptional<z.ZodString>;
1268
+ detail: z.ZodOptional<z.ZodString>;
1269
+ source: z.ZodOptional<z.ZodObject<{
1270
+ pointer: z.ZodOptional<z.ZodString>;
1271
+ parameter: z.ZodOptional<z.ZodString>;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ pointer?: string | undefined;
1274
+ parameter?: string | undefined;
1275
+ }, {
1276
+ pointer?: string | undefined;
1277
+ parameter?: string | undefined;
1278
+ }>>;
1279
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ status?: string | undefined;
1282
+ code?: string | undefined;
1283
+ id?: string | undefined;
1284
+ links?: {
1285
+ about?: string | undefined;
1286
+ } | undefined;
1287
+ meta?: Record<string, unknown> | undefined;
1288
+ title?: string | undefined;
1289
+ detail?: string | undefined;
1290
+ source?: {
1291
+ pointer?: string | undefined;
1292
+ parameter?: string | undefined;
1293
+ } | undefined;
1294
+ }, {
1295
+ status?: string | undefined;
1296
+ code?: string | undefined;
1297
+ id?: string | undefined;
1298
+ links?: {
1299
+ about?: string | undefined;
1300
+ } | undefined;
1301
+ meta?: Record<string, unknown> | undefined;
1302
+ title?: string | undefined;
1303
+ detail?: string | undefined;
1304
+ source?: {
1305
+ pointer?: string | undefined;
1306
+ parameter?: string | undefined;
1307
+ } | undefined;
1308
+ }>, "many">;
1309
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1310
+ }, "strip", z.ZodTypeAny, {
1311
+ errors: {
1312
+ status?: string | undefined;
1313
+ code?: string | undefined;
1314
+ id?: string | undefined;
1315
+ links?: {
1316
+ about?: string | undefined;
1317
+ } | undefined;
1318
+ meta?: Record<string, unknown> | undefined;
1319
+ title?: string | undefined;
1320
+ detail?: string | undefined;
1321
+ source?: {
1322
+ pointer?: string | undefined;
1323
+ parameter?: string | undefined;
1324
+ } | undefined;
1325
+ }[];
1326
+ meta?: Record<string, unknown> | undefined;
1327
+ }, {
1328
+ errors: {
1329
+ status?: string | undefined;
1330
+ code?: string | undefined;
1331
+ id?: string | undefined;
1332
+ links?: {
1333
+ about?: string | undefined;
1334
+ } | undefined;
1335
+ meta?: Record<string, unknown> | undefined;
1336
+ title?: string | undefined;
1337
+ detail?: string | undefined;
1338
+ source?: {
1339
+ pointer?: string | undefined;
1340
+ parameter?: string | undefined;
1341
+ } | undefined;
1342
+ }[];
1343
+ meta?: Record<string, unknown> | undefined;
1344
+ }>;
1345
+ };
1346
+ };
1347
+ googleAuthCallback: {
1348
+ summary: "Handle Google OAuth callback";
1349
+ description: "Exchange Google OAuth code for access and refresh tokens";
1350
+ method: "POST";
1351
+ body: z.ZodObject<{
1352
+ data: z.ZodObject<{
1353
+ type: z.ZodLiteral<"auth">;
1354
+ attributes: z.ZodObject<{
1355
+ code: z.ZodString;
1356
+ state: z.ZodOptional<z.ZodString>;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ code: string;
1359
+ state?: string | undefined;
1360
+ }, {
1361
+ code: string;
1362
+ state?: string | undefined;
1363
+ }>;
1364
+ }, "strip", z.ZodTypeAny, {
1365
+ type: "auth";
1366
+ attributes: {
1367
+ code: string;
1368
+ state?: string | undefined;
1369
+ };
1370
+ }, {
1371
+ type: "auth";
1372
+ attributes: {
1373
+ code: string;
1374
+ state?: string | undefined;
1375
+ };
1376
+ }>;
1377
+ }, "strip", z.ZodTypeAny, {
1378
+ data: {
1379
+ type: "auth";
1380
+ attributes: {
1381
+ code: string;
1382
+ state?: string | undefined;
1383
+ };
1384
+ };
1385
+ }, {
1386
+ data: {
1387
+ type: "auth";
1388
+ attributes: {
1389
+ code: string;
1390
+ state?: string | undefined;
1391
+ };
1392
+ };
1393
+ }>;
1394
+ path: "/auth/google/callback";
1395
+ responses: {
1396
+ 200: z.ZodObject<{
1397
+ data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1398
+ type: z.ZodLiteral<string>;
1399
+ id: z.ZodString;
1400
+ attributes: z.ZodObject<{
1401
+ name: z.ZodString;
1402
+ email: z.ZodString;
1403
+ phone: z.ZodNullable<z.ZodString>;
1404
+ emailVerified: z.ZodBoolean;
1405
+ avatar: z.ZodNullable<z.ZodString>;
1406
+ } & {
1407
+ createdAt: z.ZodString;
1408
+ updatedAt: z.ZodString;
1409
+ }, "strip", z.ZodTypeAny, {
1410
+ email: string;
1411
+ createdAt: string;
1412
+ updatedAt: string;
1413
+ name: string;
1414
+ phone: string | null;
1415
+ emailVerified: boolean;
1416
+ avatar: string | null;
1417
+ }, {
1418
+ email: string;
1419
+ createdAt: string;
1420
+ updatedAt: string;
1421
+ name: string;
1422
+ phone: string | null;
1423
+ emailVerified: boolean;
1424
+ avatar: string | null;
1425
+ }>;
1426
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1427
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1428
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1429
+ }, "strip", z.ZodTypeAny, {
1430
+ type: string;
1431
+ id: string;
1432
+ attributes: {
1433
+ email: string;
1434
+ createdAt: string;
1435
+ updatedAt: string;
1436
+ name: string;
1437
+ phone: string | null;
1438
+ emailVerified: boolean;
1439
+ avatar: string | null;
1440
+ };
1441
+ relationships?: Record<string, unknown> | undefined;
1442
+ links?: Record<string, string> | undefined;
1443
+ meta?: Record<string, unknown> | undefined;
1444
+ }, {
1445
+ type: string;
1446
+ id: string;
1447
+ attributes: {
1448
+ email: string;
1449
+ createdAt: string;
1450
+ updatedAt: string;
1451
+ name: string;
1452
+ phone: string | null;
1453
+ emailVerified: boolean;
1454
+ avatar: string | null;
1455
+ };
1456
+ relationships?: Record<string, unknown> | undefined;
1457
+ links?: Record<string, string> | undefined;
1458
+ meta?: Record<string, unknown> | undefined;
1459
+ }>, z.ZodObject<{
1460
+ type: z.ZodLiteral<string>;
1461
+ id: z.ZodString;
1462
+ attributes: z.ZodObject<{
1463
+ accessToken: z.ZodString;
1464
+ refreshToken: z.ZodString;
1465
+ expiresIn: z.ZodNumber;
1466
+ tokenType: z.ZodDefault<z.ZodLiteral<"Bearer">>;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ refreshToken: string;
1469
+ accessToken: string;
1470
+ expiresIn: number;
1471
+ tokenType: "Bearer";
1472
+ }, {
1473
+ refreshToken: string;
1474
+ accessToken: string;
1475
+ expiresIn: number;
1476
+ tokenType?: "Bearer" | undefined;
1477
+ }>;
1478
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1479
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1480
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1481
+ }, "strip", z.ZodTypeAny, {
1482
+ type: string;
1483
+ id: string;
1484
+ attributes: {
1485
+ refreshToken: string;
1486
+ accessToken: string;
1487
+ expiresIn: number;
1488
+ tokenType: "Bearer";
1489
+ };
1490
+ relationships?: Record<string, unknown> | undefined;
1491
+ links?: Record<string, string> | undefined;
1492
+ meta?: Record<string, unknown> | undefined;
1493
+ }, {
1494
+ type: string;
1495
+ id: string;
1496
+ attributes: {
1497
+ refreshToken: string;
1498
+ accessToken: string;
1499
+ expiresIn: number;
1500
+ tokenType?: "Bearer" | undefined;
1501
+ };
1502
+ relationships?: Record<string, unknown> | undefined;
1503
+ links?: Record<string, string> | undefined;
1504
+ meta?: Record<string, unknown> | undefined;
1505
+ }>]>, "many">;
1506
+ meta: z.ZodOptional<z.ZodObject<{
1507
+ message: z.ZodOptional<z.ZodString>;
1508
+ }, "strip", z.ZodTypeAny, {
1509
+ message?: string | undefined;
1510
+ }, {
1511
+ message?: string | undefined;
1512
+ }>>;
1513
+ }, "strip", z.ZodTypeAny, {
1514
+ data: ({
1515
+ type: string;
1516
+ id: string;
1517
+ attributes: {
1518
+ email: string;
1519
+ createdAt: string;
1520
+ updatedAt: string;
1521
+ name: string;
1522
+ phone: string | null;
1523
+ emailVerified: boolean;
1524
+ avatar: string | null;
1525
+ };
1526
+ relationships?: Record<string, unknown> | undefined;
1527
+ links?: Record<string, string> | undefined;
1528
+ meta?: Record<string, unknown> | undefined;
1529
+ } | {
1530
+ type: string;
1531
+ id: string;
1532
+ attributes: {
1533
+ refreshToken: string;
1534
+ accessToken: string;
1535
+ expiresIn: number;
1536
+ tokenType: "Bearer";
1537
+ };
1538
+ relationships?: Record<string, unknown> | undefined;
1539
+ links?: Record<string, string> | undefined;
1540
+ meta?: Record<string, unknown> | undefined;
1541
+ })[];
1542
+ meta?: {
1543
+ message?: string | undefined;
1544
+ } | undefined;
1545
+ }, {
1546
+ data: ({
1547
+ type: string;
1548
+ id: string;
1549
+ attributes: {
1550
+ email: string;
1551
+ createdAt: string;
1552
+ updatedAt: string;
1553
+ name: string;
1554
+ phone: string | null;
1555
+ emailVerified: boolean;
1556
+ avatar: string | null;
1557
+ };
1558
+ relationships?: Record<string, unknown> | undefined;
1559
+ links?: Record<string, string> | undefined;
1560
+ meta?: Record<string, unknown> | undefined;
1561
+ } | {
1562
+ type: string;
1563
+ id: string;
1564
+ attributes: {
1565
+ refreshToken: string;
1566
+ accessToken: string;
1567
+ expiresIn: number;
1568
+ tokenType?: "Bearer" | undefined;
1569
+ };
1570
+ relationships?: Record<string, unknown> | undefined;
1571
+ links?: Record<string, string> | undefined;
1572
+ meta?: Record<string, unknown> | undefined;
1573
+ })[];
1574
+ meta?: {
1575
+ message?: string | undefined;
1576
+ } | undefined;
1577
+ }>;
1578
+ 400: z.ZodObject<{
1579
+ errors: z.ZodArray<z.ZodObject<{
1580
+ id: z.ZodOptional<z.ZodString>;
1581
+ links: z.ZodOptional<z.ZodObject<{
1582
+ about: z.ZodOptional<z.ZodString>;
1583
+ }, "strip", z.ZodTypeAny, {
1584
+ about?: string | undefined;
1585
+ }, {
1586
+ about?: string | undefined;
1587
+ }>>;
1588
+ status: z.ZodOptional<z.ZodString>;
1589
+ code: z.ZodOptional<z.ZodString>;
1590
+ title: z.ZodOptional<z.ZodString>;
1591
+ detail: z.ZodOptional<z.ZodString>;
1592
+ source: z.ZodOptional<z.ZodObject<{
1593
+ pointer: z.ZodOptional<z.ZodString>;
1594
+ parameter: z.ZodOptional<z.ZodString>;
1595
+ }, "strip", z.ZodTypeAny, {
1596
+ pointer?: string | undefined;
1597
+ parameter?: string | undefined;
1598
+ }, {
1599
+ pointer?: string | undefined;
1600
+ parameter?: string | undefined;
1601
+ }>>;
1602
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1603
+ }, "strip", z.ZodTypeAny, {
1604
+ status?: string | undefined;
1605
+ code?: string | undefined;
1606
+ id?: string | undefined;
1607
+ links?: {
1608
+ about?: string | undefined;
1609
+ } | undefined;
1610
+ meta?: Record<string, unknown> | undefined;
1611
+ title?: string | undefined;
1612
+ detail?: string | undefined;
1613
+ source?: {
1614
+ pointer?: string | undefined;
1615
+ parameter?: string | undefined;
1616
+ } | undefined;
1617
+ }, {
1618
+ status?: string | undefined;
1619
+ code?: string | undefined;
1620
+ id?: string | undefined;
1621
+ links?: {
1622
+ about?: string | undefined;
1623
+ } | undefined;
1624
+ meta?: Record<string, unknown> | undefined;
1625
+ title?: string | undefined;
1626
+ detail?: string | undefined;
1627
+ source?: {
1628
+ pointer?: string | undefined;
1629
+ parameter?: string | undefined;
1630
+ } | undefined;
1631
+ }>, "many">;
1632
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1633
+ }, "strip", z.ZodTypeAny, {
1634
+ errors: {
1635
+ status?: string | undefined;
1636
+ code?: string | undefined;
1637
+ id?: string | undefined;
1638
+ links?: {
1639
+ about?: string | undefined;
1640
+ } | undefined;
1641
+ meta?: Record<string, unknown> | undefined;
1642
+ title?: string | undefined;
1643
+ detail?: string | undefined;
1644
+ source?: {
1645
+ pointer?: string | undefined;
1646
+ parameter?: string | undefined;
1647
+ } | undefined;
1648
+ }[];
1649
+ meta?: Record<string, unknown> | undefined;
1650
+ }, {
1651
+ errors: {
1652
+ status?: string | undefined;
1653
+ code?: string | undefined;
1654
+ id?: string | undefined;
1655
+ links?: {
1656
+ about?: string | undefined;
1657
+ } | undefined;
1658
+ meta?: Record<string, unknown> | undefined;
1659
+ title?: string | undefined;
1660
+ detail?: string | undefined;
1661
+ source?: {
1662
+ pointer?: string | undefined;
1663
+ parameter?: string | undefined;
1664
+ } | undefined;
1665
+ }[];
1666
+ meta?: Record<string, unknown> | undefined;
1667
+ }>;
1668
+ 401: z.ZodObject<{
1669
+ errors: z.ZodArray<z.ZodObject<{
1670
+ id: z.ZodOptional<z.ZodString>;
1671
+ links: z.ZodOptional<z.ZodObject<{
1672
+ about: z.ZodOptional<z.ZodString>;
1673
+ }, "strip", z.ZodTypeAny, {
1674
+ about?: string | undefined;
1675
+ }, {
1676
+ about?: string | undefined;
1677
+ }>>;
1678
+ status: z.ZodOptional<z.ZodString>;
1679
+ code: z.ZodOptional<z.ZodString>;
1680
+ title: z.ZodOptional<z.ZodString>;
1681
+ detail: z.ZodOptional<z.ZodString>;
1682
+ source: z.ZodOptional<z.ZodObject<{
1683
+ pointer: z.ZodOptional<z.ZodString>;
1684
+ parameter: z.ZodOptional<z.ZodString>;
1685
+ }, "strip", z.ZodTypeAny, {
1686
+ pointer?: string | undefined;
1687
+ parameter?: string | undefined;
1688
+ }, {
1689
+ pointer?: string | undefined;
1690
+ parameter?: string | undefined;
1691
+ }>>;
1692
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1693
+ }, "strip", z.ZodTypeAny, {
1694
+ status?: string | undefined;
1695
+ code?: string | undefined;
1696
+ id?: string | undefined;
1697
+ links?: {
1698
+ about?: string | undefined;
1699
+ } | undefined;
1700
+ meta?: Record<string, unknown> | undefined;
1701
+ title?: string | undefined;
1702
+ detail?: string | undefined;
1703
+ source?: {
1704
+ pointer?: string | undefined;
1705
+ parameter?: string | undefined;
1706
+ } | undefined;
1707
+ }, {
1708
+ status?: string | undefined;
1709
+ code?: string | undefined;
1710
+ id?: string | undefined;
1711
+ links?: {
1712
+ about?: string | undefined;
1713
+ } | undefined;
1714
+ meta?: Record<string, unknown> | undefined;
1715
+ title?: string | undefined;
1716
+ detail?: string | undefined;
1717
+ source?: {
1718
+ pointer?: string | undefined;
1719
+ parameter?: string | undefined;
1720
+ } | undefined;
1721
+ }>, "many">;
1722
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1723
+ }, "strip", z.ZodTypeAny, {
1724
+ errors: {
1725
+ status?: string | undefined;
1726
+ code?: string | undefined;
1727
+ id?: string | undefined;
1728
+ links?: {
1729
+ about?: string | undefined;
1730
+ } | undefined;
1731
+ meta?: Record<string, unknown> | undefined;
1732
+ title?: string | undefined;
1733
+ detail?: string | undefined;
1734
+ source?: {
1735
+ pointer?: string | undefined;
1736
+ parameter?: string | undefined;
1737
+ } | undefined;
1738
+ }[];
1739
+ meta?: Record<string, unknown> | undefined;
1740
+ }, {
1741
+ errors: {
1742
+ status?: string | undefined;
1743
+ code?: string | undefined;
1744
+ id?: string | undefined;
1745
+ links?: {
1746
+ about?: string | undefined;
1747
+ } | undefined;
1748
+ meta?: Record<string, unknown> | undefined;
1749
+ title?: string | undefined;
1750
+ detail?: string | undefined;
1751
+ source?: {
1752
+ pointer?: string | undefined;
1753
+ parameter?: string | undefined;
1754
+ } | undefined;
1755
+ }[];
1756
+ meta?: Record<string, unknown> | undefined;
1757
+ }>;
1758
+ 422: z.ZodObject<{
1759
+ errors: z.ZodArray<z.ZodObject<{
1760
+ id: z.ZodOptional<z.ZodString>;
1761
+ links: z.ZodOptional<z.ZodObject<{
1762
+ about: z.ZodOptional<z.ZodString>;
1763
+ }, "strip", z.ZodTypeAny, {
1764
+ about?: string | undefined;
1765
+ }, {
1766
+ about?: string | undefined;
1767
+ }>>;
1768
+ status: z.ZodOptional<z.ZodString>;
1769
+ code: z.ZodOptional<z.ZodString>;
1770
+ title: z.ZodOptional<z.ZodString>;
1771
+ detail: z.ZodOptional<z.ZodString>;
1772
+ source: z.ZodOptional<z.ZodObject<{
1773
+ pointer: z.ZodOptional<z.ZodString>;
1774
+ parameter: z.ZodOptional<z.ZodString>;
1775
+ }, "strip", z.ZodTypeAny, {
1776
+ pointer?: string | undefined;
1777
+ parameter?: string | undefined;
1778
+ }, {
1779
+ pointer?: string | undefined;
1780
+ parameter?: string | undefined;
1781
+ }>>;
1782
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1783
+ }, "strip", z.ZodTypeAny, {
1784
+ status?: string | undefined;
1785
+ code?: string | undefined;
1786
+ id?: string | undefined;
1787
+ links?: {
1788
+ about?: string | undefined;
1789
+ } | undefined;
1790
+ meta?: Record<string, unknown> | undefined;
1791
+ title?: string | undefined;
1792
+ detail?: string | undefined;
1793
+ source?: {
1794
+ pointer?: string | undefined;
1795
+ parameter?: string | undefined;
1796
+ } | undefined;
1797
+ }, {
1798
+ status?: string | undefined;
1799
+ code?: string | undefined;
1800
+ id?: string | undefined;
1801
+ links?: {
1802
+ about?: string | undefined;
1803
+ } | undefined;
1804
+ meta?: Record<string, unknown> | undefined;
1805
+ title?: string | undefined;
1806
+ detail?: string | undefined;
1807
+ source?: {
1808
+ pointer?: string | undefined;
1809
+ parameter?: string | undefined;
1810
+ } | undefined;
1811
+ }>, "many">;
1812
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1813
+ }, "strip", z.ZodTypeAny, {
1814
+ errors: {
1815
+ status?: string | undefined;
1816
+ code?: string | undefined;
1817
+ id?: string | undefined;
1818
+ links?: {
1819
+ about?: string | undefined;
1820
+ } | undefined;
1821
+ meta?: Record<string, unknown> | undefined;
1822
+ title?: string | undefined;
1823
+ detail?: string | undefined;
1824
+ source?: {
1825
+ pointer?: string | undefined;
1826
+ parameter?: string | undefined;
1827
+ } | undefined;
1828
+ }[];
1829
+ meta?: Record<string, unknown> | undefined;
1830
+ }, {
1831
+ errors: {
1832
+ status?: string | undefined;
1833
+ code?: string | undefined;
1834
+ id?: string | undefined;
1835
+ links?: {
1836
+ about?: string | undefined;
1837
+ } | undefined;
1838
+ meta?: Record<string, unknown> | undefined;
1839
+ title?: string | undefined;
1840
+ detail?: string | undefined;
1841
+ source?: {
1842
+ pointer?: string | undefined;
1843
+ parameter?: string | undefined;
1844
+ } | undefined;
1845
+ }[];
1846
+ meta?: Record<string, unknown> | undefined;
1847
+ }>;
1848
+ };
1849
+ };
1850
+ refreshToken: {
1851
+ summary: "Refresh access token";
1852
+ description: "Get a new access token using a valid refresh token";
1853
+ method: "POST";
1854
+ body: z.ZodObject<{
1855
+ data: z.ZodObject<{
1856
+ type: z.ZodLiteral<"auth">;
1857
+ attributes: z.ZodObject<{
1858
+ refreshToken: z.ZodString;
1859
+ }, "strip", z.ZodTypeAny, {
1860
+ refreshToken: string;
1861
+ }, {
1862
+ refreshToken: string;
1863
+ }>;
1864
+ }, "strip", z.ZodTypeAny, {
1865
+ type: "auth";
1866
+ attributes: {
1867
+ refreshToken: string;
1868
+ };
1869
+ }, {
1870
+ type: "auth";
1871
+ attributes: {
1872
+ refreshToken: string;
1873
+ };
1874
+ }>;
1875
+ }, "strip", z.ZodTypeAny, {
1876
+ data: {
1877
+ type: "auth";
1878
+ attributes: {
1879
+ refreshToken: string;
1880
+ };
1881
+ };
1882
+ }, {
1883
+ data: {
1884
+ type: "auth";
1885
+ attributes: {
1886
+ refreshToken: string;
1887
+ };
1888
+ };
1889
+ }>;
1890
+ path: "/auth/refresh";
1891
+ responses: {
1892
+ 200: z.ZodObject<{
1893
+ data: z.ZodObject<{
1894
+ type: z.ZodLiteral<string>;
1895
+ id: z.ZodString;
1896
+ attributes: z.ZodObject<{
1897
+ accessToken: z.ZodString;
1898
+ refreshToken: z.ZodOptional<z.ZodString>;
1899
+ expiresIn: z.ZodNumber;
1900
+ tokenType: z.ZodDefault<z.ZodLiteral<"Bearer">>;
1901
+ }, "strip", z.ZodTypeAny, {
1902
+ accessToken: string;
1903
+ expiresIn: number;
1904
+ tokenType: "Bearer";
1905
+ refreshToken?: string | undefined;
1906
+ }, {
1907
+ accessToken: string;
1908
+ expiresIn: number;
1909
+ refreshToken?: string | undefined;
1910
+ tokenType?: "Bearer" | undefined;
1911
+ }>;
1912
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1913
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1914
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1915
+ }, "strip", z.ZodTypeAny, {
1916
+ type: string;
1917
+ id: string;
1918
+ attributes: {
1919
+ accessToken: string;
1920
+ expiresIn: number;
1921
+ tokenType: "Bearer";
1922
+ refreshToken?: string | undefined;
1923
+ };
1924
+ relationships?: Record<string, unknown> | undefined;
1925
+ links?: Record<string, string> | undefined;
1926
+ meta?: Record<string, unknown> | undefined;
1927
+ }, {
1928
+ type: string;
1929
+ id: string;
1930
+ attributes: {
1931
+ accessToken: string;
1932
+ expiresIn: number;
1933
+ refreshToken?: string | undefined;
1934
+ tokenType?: "Bearer" | undefined;
1935
+ };
1936
+ relationships?: Record<string, unknown> | undefined;
1937
+ links?: Record<string, string> | undefined;
1938
+ meta?: Record<string, unknown> | undefined;
1939
+ }>;
1940
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1941
+ type: z.ZodString;
1942
+ id: z.ZodString;
1943
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1944
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1945
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1946
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1947
+ }, "strip", z.ZodTypeAny, {
1948
+ type: string;
1949
+ id: string;
1950
+ attributes?: Record<string, unknown> | undefined;
1951
+ relationships?: Record<string, unknown> | undefined;
1952
+ links?: Record<string, string> | undefined;
1953
+ meta?: Record<string, unknown> | undefined;
1954
+ }, {
1955
+ type: string;
1956
+ id: string;
1957
+ attributes?: Record<string, unknown> | undefined;
1958
+ relationships?: Record<string, unknown> | undefined;
1959
+ links?: Record<string, string> | undefined;
1960
+ meta?: Record<string, unknown> | undefined;
1961
+ }>, "many">>;
1962
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1963
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1964
+ }, "strip", z.ZodTypeAny, {
1965
+ data: {
1966
+ type: string;
1967
+ id: string;
1968
+ attributes: {
1969
+ accessToken: string;
1970
+ expiresIn: number;
1971
+ tokenType: "Bearer";
1972
+ refreshToken?: string | undefined;
1973
+ };
1974
+ relationships?: Record<string, unknown> | undefined;
1975
+ links?: Record<string, string> | undefined;
1976
+ meta?: Record<string, unknown> | undefined;
1977
+ };
1978
+ links?: Record<string, string> | undefined;
1979
+ meta?: Record<string, unknown> | undefined;
1980
+ included?: {
1981
+ type: string;
1982
+ id: string;
1983
+ attributes?: Record<string, unknown> | undefined;
1984
+ relationships?: Record<string, unknown> | undefined;
1985
+ links?: Record<string, string> | undefined;
1986
+ meta?: Record<string, unknown> | undefined;
1987
+ }[] | undefined;
1988
+ }, {
1989
+ data: {
1990
+ type: string;
1991
+ id: string;
1992
+ attributes: {
1993
+ accessToken: string;
1994
+ expiresIn: number;
1995
+ refreshToken?: string | undefined;
1996
+ tokenType?: "Bearer" | undefined;
1997
+ };
1998
+ relationships?: Record<string, unknown> | undefined;
1999
+ links?: Record<string, string> | undefined;
2000
+ meta?: Record<string, unknown> | undefined;
2001
+ };
2002
+ links?: Record<string, string> | undefined;
2003
+ meta?: Record<string, unknown> | undefined;
2004
+ included?: {
2005
+ type: string;
2006
+ id: string;
2007
+ attributes?: Record<string, unknown> | undefined;
2008
+ relationships?: Record<string, unknown> | undefined;
2009
+ links?: Record<string, string> | undefined;
2010
+ meta?: Record<string, unknown> | undefined;
2011
+ }[] | undefined;
2012
+ }>;
2013
+ 401: z.ZodObject<{
2014
+ errors: z.ZodArray<z.ZodObject<{
2015
+ id: z.ZodOptional<z.ZodString>;
2016
+ links: z.ZodOptional<z.ZodObject<{
2017
+ about: z.ZodOptional<z.ZodString>;
2018
+ }, "strip", z.ZodTypeAny, {
2019
+ about?: string | undefined;
2020
+ }, {
2021
+ about?: string | undefined;
2022
+ }>>;
2023
+ status: z.ZodOptional<z.ZodString>;
2024
+ code: z.ZodOptional<z.ZodString>;
2025
+ title: z.ZodOptional<z.ZodString>;
2026
+ detail: z.ZodOptional<z.ZodString>;
2027
+ source: z.ZodOptional<z.ZodObject<{
2028
+ pointer: z.ZodOptional<z.ZodString>;
2029
+ parameter: z.ZodOptional<z.ZodString>;
2030
+ }, "strip", z.ZodTypeAny, {
2031
+ pointer?: string | undefined;
2032
+ parameter?: string | undefined;
2033
+ }, {
2034
+ pointer?: string | undefined;
2035
+ parameter?: string | undefined;
2036
+ }>>;
2037
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2038
+ }, "strip", z.ZodTypeAny, {
2039
+ status?: string | undefined;
2040
+ code?: string | undefined;
2041
+ id?: string | undefined;
2042
+ links?: {
2043
+ about?: string | undefined;
2044
+ } | undefined;
2045
+ meta?: Record<string, unknown> | undefined;
2046
+ title?: string | undefined;
2047
+ detail?: string | undefined;
2048
+ source?: {
2049
+ pointer?: string | undefined;
2050
+ parameter?: string | undefined;
2051
+ } | undefined;
2052
+ }, {
2053
+ status?: string | undefined;
2054
+ code?: string | undefined;
2055
+ id?: string | undefined;
2056
+ links?: {
2057
+ about?: string | undefined;
2058
+ } | undefined;
2059
+ meta?: Record<string, unknown> | undefined;
2060
+ title?: string | undefined;
2061
+ detail?: string | undefined;
2062
+ source?: {
2063
+ pointer?: string | undefined;
2064
+ parameter?: string | undefined;
2065
+ } | undefined;
2066
+ }>, "many">;
2067
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2068
+ }, "strip", z.ZodTypeAny, {
2069
+ errors: {
2070
+ status?: string | undefined;
2071
+ code?: string | undefined;
2072
+ id?: string | undefined;
2073
+ links?: {
2074
+ about?: string | undefined;
2075
+ } | undefined;
2076
+ meta?: Record<string, unknown> | undefined;
2077
+ title?: string | undefined;
2078
+ detail?: string | undefined;
2079
+ source?: {
2080
+ pointer?: string | undefined;
2081
+ parameter?: string | undefined;
2082
+ } | undefined;
2083
+ }[];
2084
+ meta?: Record<string, unknown> | undefined;
2085
+ }, {
2086
+ errors: {
2087
+ status?: string | undefined;
2088
+ code?: string | undefined;
2089
+ id?: string | undefined;
2090
+ links?: {
2091
+ about?: string | undefined;
2092
+ } | undefined;
2093
+ meta?: Record<string, unknown> | undefined;
2094
+ title?: string | undefined;
2095
+ detail?: string | undefined;
2096
+ source?: {
2097
+ pointer?: string | undefined;
2098
+ parameter?: string | undefined;
2099
+ } | undefined;
2100
+ }[];
2101
+ meta?: Record<string, unknown> | undefined;
2102
+ }>;
2103
+ 422: z.ZodObject<{
2104
+ errors: z.ZodArray<z.ZodObject<{
2105
+ id: z.ZodOptional<z.ZodString>;
2106
+ links: z.ZodOptional<z.ZodObject<{
2107
+ about: z.ZodOptional<z.ZodString>;
2108
+ }, "strip", z.ZodTypeAny, {
2109
+ about?: string | undefined;
2110
+ }, {
2111
+ about?: string | undefined;
2112
+ }>>;
2113
+ status: z.ZodOptional<z.ZodString>;
2114
+ code: z.ZodOptional<z.ZodString>;
2115
+ title: z.ZodOptional<z.ZodString>;
2116
+ detail: z.ZodOptional<z.ZodString>;
2117
+ source: z.ZodOptional<z.ZodObject<{
2118
+ pointer: z.ZodOptional<z.ZodString>;
2119
+ parameter: z.ZodOptional<z.ZodString>;
2120
+ }, "strip", z.ZodTypeAny, {
2121
+ pointer?: string | undefined;
2122
+ parameter?: string | undefined;
2123
+ }, {
2124
+ pointer?: string | undefined;
2125
+ parameter?: string | undefined;
2126
+ }>>;
2127
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2128
+ }, "strip", z.ZodTypeAny, {
2129
+ status?: string | undefined;
2130
+ code?: string | undefined;
2131
+ id?: string | undefined;
2132
+ links?: {
2133
+ about?: string | undefined;
2134
+ } | undefined;
2135
+ meta?: Record<string, unknown> | undefined;
2136
+ title?: string | undefined;
2137
+ detail?: string | undefined;
2138
+ source?: {
2139
+ pointer?: string | undefined;
2140
+ parameter?: string | undefined;
2141
+ } | undefined;
2142
+ }, {
2143
+ status?: string | undefined;
2144
+ code?: string | undefined;
2145
+ id?: string | undefined;
2146
+ links?: {
2147
+ about?: string | undefined;
2148
+ } | undefined;
2149
+ meta?: Record<string, unknown> | undefined;
2150
+ title?: string | undefined;
2151
+ detail?: string | undefined;
2152
+ source?: {
2153
+ pointer?: string | undefined;
2154
+ parameter?: string | undefined;
2155
+ } | undefined;
2156
+ }>, "many">;
2157
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2158
+ }, "strip", z.ZodTypeAny, {
2159
+ errors: {
2160
+ status?: string | undefined;
2161
+ code?: string | undefined;
2162
+ id?: string | undefined;
2163
+ links?: {
2164
+ about?: string | undefined;
2165
+ } | undefined;
2166
+ meta?: Record<string, unknown> | undefined;
2167
+ title?: string | undefined;
2168
+ detail?: string | undefined;
2169
+ source?: {
2170
+ pointer?: string | undefined;
2171
+ parameter?: string | undefined;
2172
+ } | undefined;
2173
+ }[];
2174
+ meta?: Record<string, unknown> | undefined;
2175
+ }, {
2176
+ errors: {
2177
+ status?: string | undefined;
2178
+ code?: string | undefined;
2179
+ id?: string | undefined;
2180
+ links?: {
2181
+ about?: string | undefined;
2182
+ } | undefined;
2183
+ meta?: Record<string, unknown> | undefined;
2184
+ title?: string | undefined;
2185
+ detail?: string | undefined;
2186
+ source?: {
2187
+ pointer?: string | undefined;
2188
+ parameter?: string | undefined;
2189
+ } | undefined;
2190
+ }[];
2191
+ meta?: Record<string, unknown> | undefined;
2192
+ }>;
2193
+ };
2194
+ };
2195
+ logout: {
2196
+ summary: "Logout user";
2197
+ description: "Invalidate user session and optionally refresh token";
2198
+ method: "POST";
2199
+ body: z.ZodObject<{
2200
+ data: z.ZodObject<{
2201
+ type: z.ZodLiteral<"auth">;
2202
+ attributes: z.ZodObject<{
2203
+ refreshToken: z.ZodOptional<z.ZodString>;
2204
+ }, "strip", z.ZodTypeAny, {
2205
+ refreshToken?: string | undefined;
2206
+ }, {
2207
+ refreshToken?: string | undefined;
2208
+ }>;
2209
+ }, "strip", z.ZodTypeAny, {
2210
+ type: "auth";
2211
+ attributes: {
2212
+ refreshToken?: string | undefined;
2213
+ };
2214
+ }, {
2215
+ type: "auth";
2216
+ attributes: {
2217
+ refreshToken?: string | undefined;
2218
+ };
2219
+ }>;
2220
+ }, "strip", z.ZodTypeAny, {
2221
+ data: {
2222
+ type: "auth";
2223
+ attributes: {
2224
+ refreshToken?: string | undefined;
2225
+ };
2226
+ };
2227
+ }, {
2228
+ data: {
2229
+ type: "auth";
2230
+ attributes: {
2231
+ refreshToken?: string | undefined;
2232
+ };
2233
+ };
2234
+ }>;
2235
+ path: "/auth/logout";
2236
+ responses: {
2237
+ 200: z.ZodObject<{
2238
+ meta: z.ZodObject<{
2239
+ message: z.ZodString;
2240
+ }, "strip", z.ZodTypeAny, {
2241
+ message: string;
2242
+ }, {
2243
+ message: string;
2244
+ }>;
2245
+ }, "strip", z.ZodTypeAny, {
2246
+ meta: {
2247
+ message: string;
2248
+ };
2249
+ }, {
2250
+ meta: {
2251
+ message: string;
2252
+ };
2253
+ }>;
2254
+ 401: z.ZodObject<{
2255
+ errors: z.ZodArray<z.ZodObject<{
2256
+ id: z.ZodOptional<z.ZodString>;
2257
+ links: z.ZodOptional<z.ZodObject<{
2258
+ about: z.ZodOptional<z.ZodString>;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ about?: string | undefined;
2261
+ }, {
2262
+ about?: string | undefined;
2263
+ }>>;
2264
+ status: z.ZodOptional<z.ZodString>;
2265
+ code: z.ZodOptional<z.ZodString>;
2266
+ title: z.ZodOptional<z.ZodString>;
2267
+ detail: z.ZodOptional<z.ZodString>;
2268
+ source: z.ZodOptional<z.ZodObject<{
2269
+ pointer: z.ZodOptional<z.ZodString>;
2270
+ parameter: z.ZodOptional<z.ZodString>;
2271
+ }, "strip", z.ZodTypeAny, {
2272
+ pointer?: string | undefined;
2273
+ parameter?: string | undefined;
2274
+ }, {
2275
+ pointer?: string | undefined;
2276
+ parameter?: string | undefined;
2277
+ }>>;
2278
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2279
+ }, "strip", z.ZodTypeAny, {
2280
+ status?: string | undefined;
2281
+ code?: string | undefined;
2282
+ id?: string | undefined;
2283
+ links?: {
2284
+ about?: string | undefined;
2285
+ } | undefined;
2286
+ meta?: Record<string, unknown> | undefined;
2287
+ title?: string | undefined;
2288
+ detail?: string | undefined;
2289
+ source?: {
2290
+ pointer?: string | undefined;
2291
+ parameter?: string | undefined;
2292
+ } | undefined;
2293
+ }, {
2294
+ status?: string | undefined;
2295
+ code?: string | undefined;
2296
+ id?: string | undefined;
2297
+ links?: {
2298
+ about?: string | undefined;
2299
+ } | undefined;
2300
+ meta?: Record<string, unknown> | undefined;
2301
+ title?: string | undefined;
2302
+ detail?: string | undefined;
2303
+ source?: {
2304
+ pointer?: string | undefined;
2305
+ parameter?: string | undefined;
2306
+ } | undefined;
2307
+ }>, "many">;
2308
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2309
+ }, "strip", z.ZodTypeAny, {
2310
+ errors: {
2311
+ status?: string | undefined;
2312
+ code?: string | undefined;
2313
+ id?: string | undefined;
2314
+ links?: {
2315
+ about?: string | undefined;
2316
+ } | undefined;
2317
+ meta?: Record<string, unknown> | undefined;
2318
+ title?: string | undefined;
2319
+ detail?: string | undefined;
2320
+ source?: {
2321
+ pointer?: string | undefined;
2322
+ parameter?: string | undefined;
2323
+ } | undefined;
2324
+ }[];
2325
+ meta?: Record<string, unknown> | undefined;
2326
+ }, {
2327
+ errors: {
2328
+ status?: string | undefined;
2329
+ code?: string | undefined;
2330
+ id?: string | undefined;
2331
+ links?: {
2332
+ about?: string | undefined;
2333
+ } | undefined;
2334
+ meta?: Record<string, unknown> | undefined;
2335
+ title?: string | undefined;
2336
+ detail?: string | undefined;
2337
+ source?: {
2338
+ pointer?: string | undefined;
2339
+ parameter?: string | undefined;
2340
+ } | undefined;
2341
+ }[];
2342
+ meta?: Record<string, unknown> | undefined;
2343
+ }>;
2344
+ };
2345
+ };
2346
+ requestPasswordReset: {
2347
+ summary: "Request password reset";
2348
+ description: "Send password reset email to user";
2349
+ method: "POST";
2350
+ body: z.ZodObject<{
2351
+ data: z.ZodObject<{
2352
+ type: z.ZodLiteral<"auth">;
2353
+ attributes: z.ZodObject<{
2354
+ email: z.ZodString;
2355
+ }, "strip", z.ZodTypeAny, {
2356
+ email: string;
2357
+ }, {
2358
+ email: string;
2359
+ }>;
2360
+ }, "strip", z.ZodTypeAny, {
2361
+ type: "auth";
2362
+ attributes: {
2363
+ email: string;
2364
+ };
2365
+ }, {
2366
+ type: "auth";
2367
+ attributes: {
2368
+ email: string;
2369
+ };
2370
+ }>;
2371
+ }, "strip", z.ZodTypeAny, {
2372
+ data: {
2373
+ type: "auth";
2374
+ attributes: {
2375
+ email: string;
2376
+ };
2377
+ };
2378
+ }, {
2379
+ data: {
2380
+ type: "auth";
2381
+ attributes: {
2382
+ email: string;
2383
+ };
2384
+ };
2385
+ }>;
2386
+ path: "/auth/password/reset-request";
2387
+ responses: {
2388
+ 200: z.ZodObject<{
2389
+ meta: z.ZodObject<{
2390
+ message: z.ZodString;
2391
+ }, "strip", z.ZodTypeAny, {
2392
+ message: string;
2393
+ }, {
2394
+ message: string;
2395
+ }>;
2396
+ }, "strip", z.ZodTypeAny, {
2397
+ meta: {
2398
+ message: string;
2399
+ };
2400
+ }, {
2401
+ meta: {
2402
+ message: string;
2403
+ };
2404
+ }>;
2405
+ 400: z.ZodObject<{
2406
+ errors: z.ZodArray<z.ZodObject<{
2407
+ id: z.ZodOptional<z.ZodString>;
2408
+ links: z.ZodOptional<z.ZodObject<{
2409
+ about: z.ZodOptional<z.ZodString>;
2410
+ }, "strip", z.ZodTypeAny, {
2411
+ about?: string | undefined;
2412
+ }, {
2413
+ about?: string | undefined;
2414
+ }>>;
2415
+ status: z.ZodOptional<z.ZodString>;
2416
+ code: z.ZodOptional<z.ZodString>;
2417
+ title: z.ZodOptional<z.ZodString>;
2418
+ detail: z.ZodOptional<z.ZodString>;
2419
+ source: z.ZodOptional<z.ZodObject<{
2420
+ pointer: z.ZodOptional<z.ZodString>;
2421
+ parameter: z.ZodOptional<z.ZodString>;
2422
+ }, "strip", z.ZodTypeAny, {
2423
+ pointer?: string | undefined;
2424
+ parameter?: string | undefined;
2425
+ }, {
2426
+ pointer?: string | undefined;
2427
+ parameter?: string | undefined;
2428
+ }>>;
2429
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2430
+ }, "strip", z.ZodTypeAny, {
2431
+ status?: string | undefined;
2432
+ code?: string | undefined;
2433
+ id?: string | undefined;
2434
+ links?: {
2435
+ about?: string | undefined;
2436
+ } | undefined;
2437
+ meta?: Record<string, unknown> | undefined;
2438
+ title?: string | undefined;
2439
+ detail?: string | undefined;
2440
+ source?: {
2441
+ pointer?: string | undefined;
2442
+ parameter?: string | undefined;
2443
+ } | undefined;
2444
+ }, {
2445
+ status?: string | undefined;
2446
+ code?: string | undefined;
2447
+ id?: string | undefined;
2448
+ links?: {
2449
+ about?: string | undefined;
2450
+ } | undefined;
2451
+ meta?: Record<string, unknown> | undefined;
2452
+ title?: string | undefined;
2453
+ detail?: string | undefined;
2454
+ source?: {
2455
+ pointer?: string | undefined;
2456
+ parameter?: string | undefined;
2457
+ } | undefined;
2458
+ }>, "many">;
2459
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2460
+ }, "strip", z.ZodTypeAny, {
2461
+ errors: {
2462
+ status?: string | undefined;
2463
+ code?: string | undefined;
2464
+ id?: string | undefined;
2465
+ links?: {
2466
+ about?: string | undefined;
2467
+ } | undefined;
2468
+ meta?: Record<string, unknown> | undefined;
2469
+ title?: string | undefined;
2470
+ detail?: string | undefined;
2471
+ source?: {
2472
+ pointer?: string | undefined;
2473
+ parameter?: string | undefined;
2474
+ } | undefined;
2475
+ }[];
2476
+ meta?: Record<string, unknown> | undefined;
2477
+ }, {
2478
+ errors: {
2479
+ status?: string | undefined;
2480
+ code?: string | undefined;
2481
+ id?: string | undefined;
2482
+ links?: {
2483
+ about?: string | undefined;
2484
+ } | undefined;
2485
+ meta?: Record<string, unknown> | undefined;
2486
+ title?: string | undefined;
2487
+ detail?: string | undefined;
2488
+ source?: {
2489
+ pointer?: string | undefined;
2490
+ parameter?: string | undefined;
2491
+ } | undefined;
2492
+ }[];
2493
+ meta?: Record<string, unknown> | undefined;
2494
+ }>;
2495
+ 422: z.ZodObject<{
2496
+ errors: z.ZodArray<z.ZodObject<{
2497
+ id: z.ZodOptional<z.ZodString>;
2498
+ links: z.ZodOptional<z.ZodObject<{
2499
+ about: z.ZodOptional<z.ZodString>;
2500
+ }, "strip", z.ZodTypeAny, {
2501
+ about?: string | undefined;
2502
+ }, {
2503
+ about?: string | undefined;
2504
+ }>>;
2505
+ status: z.ZodOptional<z.ZodString>;
2506
+ code: z.ZodOptional<z.ZodString>;
2507
+ title: z.ZodOptional<z.ZodString>;
2508
+ detail: z.ZodOptional<z.ZodString>;
2509
+ source: z.ZodOptional<z.ZodObject<{
2510
+ pointer: z.ZodOptional<z.ZodString>;
2511
+ parameter: z.ZodOptional<z.ZodString>;
2512
+ }, "strip", z.ZodTypeAny, {
2513
+ pointer?: string | undefined;
2514
+ parameter?: string | undefined;
2515
+ }, {
2516
+ pointer?: string | undefined;
2517
+ parameter?: string | undefined;
2518
+ }>>;
2519
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2520
+ }, "strip", z.ZodTypeAny, {
2521
+ status?: string | undefined;
2522
+ code?: string | undefined;
2523
+ id?: string | undefined;
2524
+ links?: {
2525
+ about?: string | undefined;
2526
+ } | undefined;
2527
+ meta?: Record<string, unknown> | undefined;
2528
+ title?: string | undefined;
2529
+ detail?: string | undefined;
2530
+ source?: {
2531
+ pointer?: string | undefined;
2532
+ parameter?: string | undefined;
2533
+ } | undefined;
2534
+ }, {
2535
+ status?: string | undefined;
2536
+ code?: string | undefined;
2537
+ id?: string | undefined;
2538
+ links?: {
2539
+ about?: string | undefined;
2540
+ } | undefined;
2541
+ meta?: Record<string, unknown> | undefined;
2542
+ title?: string | undefined;
2543
+ detail?: string | undefined;
2544
+ source?: {
2545
+ pointer?: string | undefined;
2546
+ parameter?: string | undefined;
2547
+ } | undefined;
2548
+ }>, "many">;
2549
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2550
+ }, "strip", z.ZodTypeAny, {
2551
+ errors: {
2552
+ status?: string | undefined;
2553
+ code?: string | undefined;
2554
+ id?: string | undefined;
2555
+ links?: {
2556
+ about?: string | undefined;
2557
+ } | undefined;
2558
+ meta?: Record<string, unknown> | undefined;
2559
+ title?: string | undefined;
2560
+ detail?: string | undefined;
2561
+ source?: {
2562
+ pointer?: string | undefined;
2563
+ parameter?: string | undefined;
2564
+ } | undefined;
2565
+ }[];
2566
+ meta?: Record<string, unknown> | undefined;
2567
+ }, {
2568
+ errors: {
2569
+ status?: string | undefined;
2570
+ code?: string | undefined;
2571
+ id?: string | undefined;
2572
+ links?: {
2573
+ about?: string | undefined;
2574
+ } | undefined;
2575
+ meta?: Record<string, unknown> | undefined;
2576
+ title?: string | undefined;
2577
+ detail?: string | undefined;
2578
+ source?: {
2579
+ pointer?: string | undefined;
2580
+ parameter?: string | undefined;
2581
+ } | undefined;
2582
+ }[];
2583
+ meta?: Record<string, unknown> | undefined;
2584
+ }>;
2585
+ };
2586
+ };
2587
+ resetPassword: {
2588
+ summary: "Reset password";
2589
+ description: "Reset password using token from email";
2590
+ method: "POST";
2591
+ body: z.ZodObject<{
2592
+ data: z.ZodObject<{
2593
+ type: z.ZodLiteral<"auth">;
2594
+ attributes: z.ZodObject<{
2595
+ token: z.ZodString;
2596
+ newPassword: z.ZodString;
2597
+ }, "strip", z.ZodTypeAny, {
2598
+ token: string;
2599
+ newPassword: string;
2600
+ }, {
2601
+ token: string;
2602
+ newPassword: string;
2603
+ }>;
2604
+ }, "strip", z.ZodTypeAny, {
2605
+ type: "auth";
2606
+ attributes: {
2607
+ token: string;
2608
+ newPassword: string;
2609
+ };
2610
+ }, {
2611
+ type: "auth";
2612
+ attributes: {
2613
+ token: string;
2614
+ newPassword: string;
2615
+ };
2616
+ }>;
2617
+ }, "strip", z.ZodTypeAny, {
2618
+ data: {
2619
+ type: "auth";
2620
+ attributes: {
2621
+ token: string;
2622
+ newPassword: string;
2623
+ };
2624
+ };
2625
+ }, {
2626
+ data: {
2627
+ type: "auth";
2628
+ attributes: {
2629
+ token: string;
2630
+ newPassword: string;
2631
+ };
2632
+ };
2633
+ }>;
2634
+ path: "/auth/password/reset";
2635
+ responses: {
2636
+ 200: z.ZodObject<{
2637
+ meta: z.ZodObject<{
2638
+ message: z.ZodString;
2639
+ }, "strip", z.ZodTypeAny, {
2640
+ message: string;
2641
+ }, {
2642
+ message: string;
2643
+ }>;
2644
+ }, "strip", z.ZodTypeAny, {
2645
+ meta: {
2646
+ message: string;
2647
+ };
2648
+ }, {
2649
+ meta: {
2650
+ message: string;
2651
+ };
2652
+ }>;
2653
+ 400: z.ZodObject<{
2654
+ errors: z.ZodArray<z.ZodObject<{
2655
+ id: z.ZodOptional<z.ZodString>;
2656
+ links: z.ZodOptional<z.ZodObject<{
2657
+ about: z.ZodOptional<z.ZodString>;
2658
+ }, "strip", z.ZodTypeAny, {
2659
+ about?: string | undefined;
2660
+ }, {
2661
+ about?: string | undefined;
2662
+ }>>;
2663
+ status: z.ZodOptional<z.ZodString>;
2664
+ code: z.ZodOptional<z.ZodString>;
2665
+ title: z.ZodOptional<z.ZodString>;
2666
+ detail: z.ZodOptional<z.ZodString>;
2667
+ source: z.ZodOptional<z.ZodObject<{
2668
+ pointer: z.ZodOptional<z.ZodString>;
2669
+ parameter: z.ZodOptional<z.ZodString>;
2670
+ }, "strip", z.ZodTypeAny, {
2671
+ pointer?: string | undefined;
2672
+ parameter?: string | undefined;
2673
+ }, {
2674
+ pointer?: string | undefined;
2675
+ parameter?: string | undefined;
2676
+ }>>;
2677
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2678
+ }, "strip", z.ZodTypeAny, {
2679
+ status?: string | undefined;
2680
+ code?: string | undefined;
2681
+ id?: string | undefined;
2682
+ links?: {
2683
+ about?: string | undefined;
2684
+ } | undefined;
2685
+ meta?: Record<string, unknown> | undefined;
2686
+ title?: string | undefined;
2687
+ detail?: string | undefined;
2688
+ source?: {
2689
+ pointer?: string | undefined;
2690
+ parameter?: string | undefined;
2691
+ } | undefined;
2692
+ }, {
2693
+ status?: string | undefined;
2694
+ code?: string | undefined;
2695
+ id?: string | undefined;
2696
+ links?: {
2697
+ about?: string | undefined;
2698
+ } | undefined;
2699
+ meta?: Record<string, unknown> | undefined;
2700
+ title?: string | undefined;
2701
+ detail?: string | undefined;
2702
+ source?: {
2703
+ pointer?: string | undefined;
2704
+ parameter?: string | undefined;
2705
+ } | undefined;
2706
+ }>, "many">;
2707
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2708
+ }, "strip", z.ZodTypeAny, {
2709
+ errors: {
2710
+ status?: string | undefined;
2711
+ code?: string | undefined;
2712
+ id?: string | undefined;
2713
+ links?: {
2714
+ about?: string | undefined;
2715
+ } | undefined;
2716
+ meta?: Record<string, unknown> | undefined;
2717
+ title?: string | undefined;
2718
+ detail?: string | undefined;
2719
+ source?: {
2720
+ pointer?: string | undefined;
2721
+ parameter?: string | undefined;
2722
+ } | undefined;
2723
+ }[];
2724
+ meta?: Record<string, unknown> | undefined;
2725
+ }, {
2726
+ errors: {
2727
+ status?: string | undefined;
2728
+ code?: string | undefined;
2729
+ id?: string | undefined;
2730
+ links?: {
2731
+ about?: string | undefined;
2732
+ } | undefined;
2733
+ meta?: Record<string, unknown> | undefined;
2734
+ title?: string | undefined;
2735
+ detail?: string | undefined;
2736
+ source?: {
2737
+ pointer?: string | undefined;
2738
+ parameter?: string | undefined;
2739
+ } | undefined;
2740
+ }[];
2741
+ meta?: Record<string, unknown> | undefined;
2742
+ }>;
2743
+ 401: z.ZodObject<{
2744
+ errors: z.ZodArray<z.ZodObject<{
2745
+ id: z.ZodOptional<z.ZodString>;
2746
+ links: z.ZodOptional<z.ZodObject<{
2747
+ about: z.ZodOptional<z.ZodString>;
2748
+ }, "strip", z.ZodTypeAny, {
2749
+ about?: string | undefined;
2750
+ }, {
2751
+ about?: string | undefined;
2752
+ }>>;
2753
+ status: z.ZodOptional<z.ZodString>;
2754
+ code: z.ZodOptional<z.ZodString>;
2755
+ title: z.ZodOptional<z.ZodString>;
2756
+ detail: z.ZodOptional<z.ZodString>;
2757
+ source: z.ZodOptional<z.ZodObject<{
2758
+ pointer: z.ZodOptional<z.ZodString>;
2759
+ parameter: z.ZodOptional<z.ZodString>;
2760
+ }, "strip", z.ZodTypeAny, {
2761
+ pointer?: string | undefined;
2762
+ parameter?: string | undefined;
2763
+ }, {
2764
+ pointer?: string | undefined;
2765
+ parameter?: string | undefined;
2766
+ }>>;
2767
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2768
+ }, "strip", z.ZodTypeAny, {
2769
+ status?: string | undefined;
2770
+ code?: string | undefined;
2771
+ id?: string | undefined;
2772
+ links?: {
2773
+ about?: string | undefined;
2774
+ } | undefined;
2775
+ meta?: Record<string, unknown> | undefined;
2776
+ title?: string | undefined;
2777
+ detail?: string | undefined;
2778
+ source?: {
2779
+ pointer?: string | undefined;
2780
+ parameter?: string | undefined;
2781
+ } | undefined;
2782
+ }, {
2783
+ status?: string | undefined;
2784
+ code?: string | undefined;
2785
+ id?: string | undefined;
2786
+ links?: {
2787
+ about?: string | undefined;
2788
+ } | undefined;
2789
+ meta?: Record<string, unknown> | undefined;
2790
+ title?: string | undefined;
2791
+ detail?: string | undefined;
2792
+ source?: {
2793
+ pointer?: string | undefined;
2794
+ parameter?: string | undefined;
2795
+ } | undefined;
2796
+ }>, "many">;
2797
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2798
+ }, "strip", z.ZodTypeAny, {
2799
+ errors: {
2800
+ status?: string | undefined;
2801
+ code?: string | undefined;
2802
+ id?: string | undefined;
2803
+ links?: {
2804
+ about?: string | undefined;
2805
+ } | undefined;
2806
+ meta?: Record<string, unknown> | undefined;
2807
+ title?: string | undefined;
2808
+ detail?: string | undefined;
2809
+ source?: {
2810
+ pointer?: string | undefined;
2811
+ parameter?: string | undefined;
2812
+ } | undefined;
2813
+ }[];
2814
+ meta?: Record<string, unknown> | undefined;
2815
+ }, {
2816
+ errors: {
2817
+ status?: string | undefined;
2818
+ code?: string | undefined;
2819
+ id?: string | undefined;
2820
+ links?: {
2821
+ about?: string | undefined;
2822
+ } | undefined;
2823
+ meta?: Record<string, unknown> | undefined;
2824
+ title?: string | undefined;
2825
+ detail?: string | undefined;
2826
+ source?: {
2827
+ pointer?: string | undefined;
2828
+ parameter?: string | undefined;
2829
+ } | undefined;
2830
+ }[];
2831
+ meta?: Record<string, unknown> | undefined;
2832
+ }>;
2833
+ 422: z.ZodObject<{
2834
+ errors: z.ZodArray<z.ZodObject<{
2835
+ id: z.ZodOptional<z.ZodString>;
2836
+ links: z.ZodOptional<z.ZodObject<{
2837
+ about: z.ZodOptional<z.ZodString>;
2838
+ }, "strip", z.ZodTypeAny, {
2839
+ about?: string | undefined;
2840
+ }, {
2841
+ about?: string | undefined;
2842
+ }>>;
2843
+ status: z.ZodOptional<z.ZodString>;
2844
+ code: z.ZodOptional<z.ZodString>;
2845
+ title: z.ZodOptional<z.ZodString>;
2846
+ detail: z.ZodOptional<z.ZodString>;
2847
+ source: z.ZodOptional<z.ZodObject<{
2848
+ pointer: z.ZodOptional<z.ZodString>;
2849
+ parameter: z.ZodOptional<z.ZodString>;
2850
+ }, "strip", z.ZodTypeAny, {
2851
+ pointer?: string | undefined;
2852
+ parameter?: string | undefined;
2853
+ }, {
2854
+ pointer?: string | undefined;
2855
+ parameter?: string | undefined;
2856
+ }>>;
2857
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2858
+ }, "strip", z.ZodTypeAny, {
2859
+ status?: string | undefined;
2860
+ code?: string | undefined;
2861
+ id?: string | undefined;
2862
+ links?: {
2863
+ about?: string | undefined;
2864
+ } | undefined;
2865
+ meta?: Record<string, unknown> | undefined;
2866
+ title?: string | undefined;
2867
+ detail?: string | undefined;
2868
+ source?: {
2869
+ pointer?: string | undefined;
2870
+ parameter?: string | undefined;
2871
+ } | undefined;
2872
+ }, {
2873
+ status?: string | undefined;
2874
+ code?: string | undefined;
2875
+ id?: string | undefined;
2876
+ links?: {
2877
+ about?: string | undefined;
2878
+ } | undefined;
2879
+ meta?: Record<string, unknown> | undefined;
2880
+ title?: string | undefined;
2881
+ detail?: string | undefined;
2882
+ source?: {
2883
+ pointer?: string | undefined;
2884
+ parameter?: string | undefined;
2885
+ } | undefined;
2886
+ }>, "many">;
2887
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2888
+ }, "strip", z.ZodTypeAny, {
2889
+ errors: {
2890
+ status?: string | undefined;
2891
+ code?: string | undefined;
2892
+ id?: string | undefined;
2893
+ links?: {
2894
+ about?: string | undefined;
2895
+ } | undefined;
2896
+ meta?: Record<string, unknown> | undefined;
2897
+ title?: string | undefined;
2898
+ detail?: string | undefined;
2899
+ source?: {
2900
+ pointer?: string | undefined;
2901
+ parameter?: string | undefined;
2902
+ } | undefined;
2903
+ }[];
2904
+ meta?: Record<string, unknown> | undefined;
2905
+ }, {
2906
+ errors: {
2907
+ status?: string | undefined;
2908
+ code?: string | undefined;
2909
+ id?: string | undefined;
2910
+ links?: {
2911
+ about?: string | undefined;
2912
+ } | undefined;
2913
+ meta?: Record<string, unknown> | undefined;
2914
+ title?: string | undefined;
2915
+ detail?: string | undefined;
2916
+ source?: {
2917
+ pointer?: string | undefined;
2918
+ parameter?: string | undefined;
2919
+ } | undefined;
2920
+ }[];
2921
+ meta?: Record<string, unknown> | undefined;
2922
+ }>;
2923
+ };
2924
+ };
2925
+ changePassword: {
2926
+ summary: "Change password";
2927
+ description: "Change password for authenticated user";
2928
+ method: "POST";
2929
+ body: z.ZodObject<{
2930
+ data: z.ZodObject<{
2931
+ type: z.ZodLiteral<"auth">;
2932
+ attributes: z.ZodObject<{
2933
+ currentPassword: z.ZodString;
2934
+ newPassword: z.ZodString;
2935
+ }, "strip", z.ZodTypeAny, {
2936
+ newPassword: string;
2937
+ currentPassword: string;
2938
+ }, {
2939
+ newPassword: string;
2940
+ currentPassword: string;
2941
+ }>;
2942
+ }, "strip", z.ZodTypeAny, {
2943
+ type: "auth";
2944
+ attributes: {
2945
+ newPassword: string;
2946
+ currentPassword: string;
2947
+ };
2948
+ }, {
2949
+ type: "auth";
2950
+ attributes: {
2951
+ newPassword: string;
2952
+ currentPassword: string;
2953
+ };
2954
+ }>;
2955
+ }, "strip", z.ZodTypeAny, {
2956
+ data: {
2957
+ type: "auth";
2958
+ attributes: {
2959
+ newPassword: string;
2960
+ currentPassword: string;
2961
+ };
2962
+ };
2963
+ }, {
2964
+ data: {
2965
+ type: "auth";
2966
+ attributes: {
2967
+ newPassword: string;
2968
+ currentPassword: string;
2969
+ };
2970
+ };
2971
+ }>;
2972
+ path: "/auth/password/change";
2973
+ responses: {
2974
+ 200: z.ZodObject<{
2975
+ meta: z.ZodObject<{
2976
+ message: z.ZodString;
2977
+ }, "strip", z.ZodTypeAny, {
2978
+ message: string;
2979
+ }, {
2980
+ message: string;
2981
+ }>;
2982
+ }, "strip", z.ZodTypeAny, {
2983
+ meta: {
2984
+ message: string;
2985
+ };
2986
+ }, {
2987
+ meta: {
2988
+ message: string;
2989
+ };
2990
+ }>;
2991
+ 400: z.ZodObject<{
2992
+ errors: z.ZodArray<z.ZodObject<{
2993
+ id: z.ZodOptional<z.ZodString>;
2994
+ links: z.ZodOptional<z.ZodObject<{
2995
+ about: z.ZodOptional<z.ZodString>;
2996
+ }, "strip", z.ZodTypeAny, {
2997
+ about?: string | undefined;
2998
+ }, {
2999
+ about?: string | undefined;
3000
+ }>>;
3001
+ status: z.ZodOptional<z.ZodString>;
3002
+ code: z.ZodOptional<z.ZodString>;
3003
+ title: z.ZodOptional<z.ZodString>;
3004
+ detail: z.ZodOptional<z.ZodString>;
3005
+ source: z.ZodOptional<z.ZodObject<{
3006
+ pointer: z.ZodOptional<z.ZodString>;
3007
+ parameter: z.ZodOptional<z.ZodString>;
3008
+ }, "strip", z.ZodTypeAny, {
3009
+ pointer?: string | undefined;
3010
+ parameter?: string | undefined;
3011
+ }, {
3012
+ pointer?: string | undefined;
3013
+ parameter?: string | undefined;
3014
+ }>>;
3015
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3016
+ }, "strip", z.ZodTypeAny, {
3017
+ status?: string | undefined;
3018
+ code?: string | undefined;
3019
+ id?: string | undefined;
3020
+ links?: {
3021
+ about?: string | undefined;
3022
+ } | undefined;
3023
+ meta?: Record<string, unknown> | undefined;
3024
+ title?: string | undefined;
3025
+ detail?: string | undefined;
3026
+ source?: {
3027
+ pointer?: string | undefined;
3028
+ parameter?: string | undefined;
3029
+ } | undefined;
3030
+ }, {
3031
+ status?: string | undefined;
3032
+ code?: string | undefined;
3033
+ id?: string | undefined;
3034
+ links?: {
3035
+ about?: string | undefined;
3036
+ } | undefined;
3037
+ meta?: Record<string, unknown> | undefined;
3038
+ title?: string | undefined;
3039
+ detail?: string | undefined;
3040
+ source?: {
3041
+ pointer?: string | undefined;
3042
+ parameter?: string | undefined;
3043
+ } | undefined;
3044
+ }>, "many">;
3045
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3046
+ }, "strip", z.ZodTypeAny, {
3047
+ errors: {
3048
+ status?: string | undefined;
3049
+ code?: string | undefined;
3050
+ id?: string | undefined;
3051
+ links?: {
3052
+ about?: string | undefined;
3053
+ } | undefined;
3054
+ meta?: Record<string, unknown> | undefined;
3055
+ title?: string | undefined;
3056
+ detail?: string | undefined;
3057
+ source?: {
3058
+ pointer?: string | undefined;
3059
+ parameter?: string | undefined;
3060
+ } | undefined;
3061
+ }[];
3062
+ meta?: Record<string, unknown> | undefined;
3063
+ }, {
3064
+ errors: {
3065
+ status?: string | undefined;
3066
+ code?: string | undefined;
3067
+ id?: string | undefined;
3068
+ links?: {
3069
+ about?: string | undefined;
3070
+ } | undefined;
3071
+ meta?: Record<string, unknown> | undefined;
3072
+ title?: string | undefined;
3073
+ detail?: string | undefined;
3074
+ source?: {
3075
+ pointer?: string | undefined;
3076
+ parameter?: string | undefined;
3077
+ } | undefined;
3078
+ }[];
3079
+ meta?: Record<string, unknown> | undefined;
3080
+ }>;
3081
+ 401: z.ZodObject<{
3082
+ errors: z.ZodArray<z.ZodObject<{
3083
+ id: z.ZodOptional<z.ZodString>;
3084
+ links: z.ZodOptional<z.ZodObject<{
3085
+ about: z.ZodOptional<z.ZodString>;
3086
+ }, "strip", z.ZodTypeAny, {
3087
+ about?: string | undefined;
3088
+ }, {
3089
+ about?: string | undefined;
3090
+ }>>;
3091
+ status: z.ZodOptional<z.ZodString>;
3092
+ code: z.ZodOptional<z.ZodString>;
3093
+ title: z.ZodOptional<z.ZodString>;
3094
+ detail: z.ZodOptional<z.ZodString>;
3095
+ source: z.ZodOptional<z.ZodObject<{
3096
+ pointer: z.ZodOptional<z.ZodString>;
3097
+ parameter: z.ZodOptional<z.ZodString>;
3098
+ }, "strip", z.ZodTypeAny, {
3099
+ pointer?: string | undefined;
3100
+ parameter?: string | undefined;
3101
+ }, {
3102
+ pointer?: string | undefined;
3103
+ parameter?: string | undefined;
3104
+ }>>;
3105
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3106
+ }, "strip", z.ZodTypeAny, {
3107
+ status?: string | undefined;
3108
+ code?: string | undefined;
3109
+ id?: string | undefined;
3110
+ links?: {
3111
+ about?: string | undefined;
3112
+ } | undefined;
3113
+ meta?: Record<string, unknown> | undefined;
3114
+ title?: string | undefined;
3115
+ detail?: string | undefined;
3116
+ source?: {
3117
+ pointer?: string | undefined;
3118
+ parameter?: string | undefined;
3119
+ } | undefined;
3120
+ }, {
3121
+ status?: string | undefined;
3122
+ code?: string | undefined;
3123
+ id?: string | undefined;
3124
+ links?: {
3125
+ about?: string | undefined;
3126
+ } | undefined;
3127
+ meta?: Record<string, unknown> | undefined;
3128
+ title?: string | undefined;
3129
+ detail?: string | undefined;
3130
+ source?: {
3131
+ pointer?: string | undefined;
3132
+ parameter?: string | undefined;
3133
+ } | undefined;
3134
+ }>, "many">;
3135
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3136
+ }, "strip", z.ZodTypeAny, {
3137
+ errors: {
3138
+ status?: string | undefined;
3139
+ code?: string | undefined;
3140
+ id?: string | undefined;
3141
+ links?: {
3142
+ about?: string | undefined;
3143
+ } | undefined;
3144
+ meta?: Record<string, unknown> | undefined;
3145
+ title?: string | undefined;
3146
+ detail?: string | undefined;
3147
+ source?: {
3148
+ pointer?: string | undefined;
3149
+ parameter?: string | undefined;
3150
+ } | undefined;
3151
+ }[];
3152
+ meta?: Record<string, unknown> | undefined;
3153
+ }, {
3154
+ errors: {
3155
+ status?: string | undefined;
3156
+ code?: string | undefined;
3157
+ id?: string | undefined;
3158
+ links?: {
3159
+ about?: string | undefined;
3160
+ } | undefined;
3161
+ meta?: Record<string, unknown> | undefined;
3162
+ title?: string | undefined;
3163
+ detail?: string | undefined;
3164
+ source?: {
3165
+ pointer?: string | undefined;
3166
+ parameter?: string | undefined;
3167
+ } | undefined;
3168
+ }[];
3169
+ meta?: Record<string, unknown> | undefined;
3170
+ }>;
3171
+ 422: z.ZodObject<{
3172
+ errors: z.ZodArray<z.ZodObject<{
3173
+ id: z.ZodOptional<z.ZodString>;
3174
+ links: z.ZodOptional<z.ZodObject<{
3175
+ about: z.ZodOptional<z.ZodString>;
3176
+ }, "strip", z.ZodTypeAny, {
3177
+ about?: string | undefined;
3178
+ }, {
3179
+ about?: string | undefined;
3180
+ }>>;
3181
+ status: z.ZodOptional<z.ZodString>;
3182
+ code: z.ZodOptional<z.ZodString>;
3183
+ title: z.ZodOptional<z.ZodString>;
3184
+ detail: z.ZodOptional<z.ZodString>;
3185
+ source: z.ZodOptional<z.ZodObject<{
3186
+ pointer: z.ZodOptional<z.ZodString>;
3187
+ parameter: z.ZodOptional<z.ZodString>;
3188
+ }, "strip", z.ZodTypeAny, {
3189
+ pointer?: string | undefined;
3190
+ parameter?: string | undefined;
3191
+ }, {
3192
+ pointer?: string | undefined;
3193
+ parameter?: string | undefined;
3194
+ }>>;
3195
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3196
+ }, "strip", z.ZodTypeAny, {
3197
+ status?: string | undefined;
3198
+ code?: string | undefined;
3199
+ id?: string | undefined;
3200
+ links?: {
3201
+ about?: string | undefined;
3202
+ } | undefined;
3203
+ meta?: Record<string, unknown> | undefined;
3204
+ title?: string | undefined;
3205
+ detail?: string | undefined;
3206
+ source?: {
3207
+ pointer?: string | undefined;
3208
+ parameter?: string | undefined;
3209
+ } | undefined;
3210
+ }, {
3211
+ status?: string | undefined;
3212
+ code?: string | undefined;
3213
+ id?: string | undefined;
3214
+ links?: {
3215
+ about?: string | undefined;
3216
+ } | undefined;
3217
+ meta?: Record<string, unknown> | undefined;
3218
+ title?: string | undefined;
3219
+ detail?: string | undefined;
3220
+ source?: {
3221
+ pointer?: string | undefined;
3222
+ parameter?: string | undefined;
3223
+ } | undefined;
3224
+ }>, "many">;
3225
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3226
+ }, "strip", z.ZodTypeAny, {
3227
+ errors: {
3228
+ status?: string | undefined;
3229
+ code?: string | undefined;
3230
+ id?: string | undefined;
3231
+ links?: {
3232
+ about?: string | undefined;
3233
+ } | undefined;
3234
+ meta?: Record<string, unknown> | undefined;
3235
+ title?: string | undefined;
3236
+ detail?: string | undefined;
3237
+ source?: {
3238
+ pointer?: string | undefined;
3239
+ parameter?: string | undefined;
3240
+ } | undefined;
3241
+ }[];
3242
+ meta?: Record<string, unknown> | undefined;
3243
+ }, {
3244
+ errors: {
3245
+ status?: string | undefined;
3246
+ code?: string | undefined;
3247
+ id?: string | undefined;
3248
+ links?: {
3249
+ about?: string | undefined;
3250
+ } | undefined;
3251
+ meta?: Record<string, unknown> | undefined;
3252
+ title?: string | undefined;
3253
+ detail?: string | undefined;
3254
+ source?: {
3255
+ pointer?: string | undefined;
3256
+ parameter?: string | undefined;
3257
+ } | undefined;
3258
+ }[];
3259
+ meta?: Record<string, unknown> | undefined;
3260
+ }>;
3261
+ };
3262
+ };
3263
+ verifyEmail: {
3264
+ summary: "Verify email address";
3265
+ description: "Verify email address using token from email";
3266
+ method: "POST";
3267
+ body: z.ZodObject<{
3268
+ data: z.ZodObject<{
3269
+ type: z.ZodLiteral<"auth">;
3270
+ attributes: z.ZodObject<{
3271
+ token: z.ZodString;
3272
+ }, "strip", z.ZodTypeAny, {
3273
+ token: string;
3274
+ }, {
3275
+ token: string;
3276
+ }>;
3277
+ }, "strip", z.ZodTypeAny, {
3278
+ type: "auth";
3279
+ attributes: {
3280
+ token: string;
3281
+ };
3282
+ }, {
3283
+ type: "auth";
3284
+ attributes: {
3285
+ token: string;
3286
+ };
3287
+ }>;
3288
+ }, "strip", z.ZodTypeAny, {
3289
+ data: {
3290
+ type: "auth";
3291
+ attributes: {
3292
+ token: string;
3293
+ };
3294
+ };
3295
+ }, {
3296
+ data: {
3297
+ type: "auth";
3298
+ attributes: {
3299
+ token: string;
3300
+ };
3301
+ };
3302
+ }>;
3303
+ path: "/auth/email/verify";
3304
+ responses: {
3305
+ 200: z.ZodObject<{
3306
+ meta: z.ZodObject<{
3307
+ message: z.ZodString;
3308
+ }, "strip", z.ZodTypeAny, {
3309
+ message: string;
3310
+ }, {
3311
+ message: string;
3312
+ }>;
3313
+ }, "strip", z.ZodTypeAny, {
3314
+ meta: {
3315
+ message: string;
3316
+ };
3317
+ }, {
3318
+ meta: {
3319
+ message: string;
3320
+ };
3321
+ }>;
3322
+ 400: z.ZodObject<{
3323
+ errors: z.ZodArray<z.ZodObject<{
3324
+ id: z.ZodOptional<z.ZodString>;
3325
+ links: z.ZodOptional<z.ZodObject<{
3326
+ about: z.ZodOptional<z.ZodString>;
3327
+ }, "strip", z.ZodTypeAny, {
3328
+ about?: string | undefined;
3329
+ }, {
3330
+ about?: string | undefined;
3331
+ }>>;
3332
+ status: z.ZodOptional<z.ZodString>;
3333
+ code: z.ZodOptional<z.ZodString>;
3334
+ title: z.ZodOptional<z.ZodString>;
3335
+ detail: z.ZodOptional<z.ZodString>;
3336
+ source: z.ZodOptional<z.ZodObject<{
3337
+ pointer: z.ZodOptional<z.ZodString>;
3338
+ parameter: z.ZodOptional<z.ZodString>;
3339
+ }, "strip", z.ZodTypeAny, {
3340
+ pointer?: string | undefined;
3341
+ parameter?: string | undefined;
3342
+ }, {
3343
+ pointer?: string | undefined;
3344
+ parameter?: string | undefined;
3345
+ }>>;
3346
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3347
+ }, "strip", z.ZodTypeAny, {
3348
+ status?: string | undefined;
3349
+ code?: string | undefined;
3350
+ id?: string | undefined;
3351
+ links?: {
3352
+ about?: string | undefined;
3353
+ } | undefined;
3354
+ meta?: Record<string, unknown> | undefined;
3355
+ title?: string | undefined;
3356
+ detail?: string | undefined;
3357
+ source?: {
3358
+ pointer?: string | undefined;
3359
+ parameter?: string | undefined;
3360
+ } | undefined;
3361
+ }, {
3362
+ status?: string | undefined;
3363
+ code?: string | undefined;
3364
+ id?: string | undefined;
3365
+ links?: {
3366
+ about?: string | undefined;
3367
+ } | undefined;
3368
+ meta?: Record<string, unknown> | undefined;
3369
+ title?: string | undefined;
3370
+ detail?: string | undefined;
3371
+ source?: {
3372
+ pointer?: string | undefined;
3373
+ parameter?: string | undefined;
3374
+ } | undefined;
3375
+ }>, "many">;
3376
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3377
+ }, "strip", z.ZodTypeAny, {
3378
+ errors: {
3379
+ status?: string | undefined;
3380
+ code?: string | undefined;
3381
+ id?: string | undefined;
3382
+ links?: {
3383
+ about?: string | undefined;
3384
+ } | undefined;
3385
+ meta?: Record<string, unknown> | undefined;
3386
+ title?: string | undefined;
3387
+ detail?: string | undefined;
3388
+ source?: {
3389
+ pointer?: string | undefined;
3390
+ parameter?: string | undefined;
3391
+ } | undefined;
3392
+ }[];
3393
+ meta?: Record<string, unknown> | undefined;
3394
+ }, {
3395
+ errors: {
3396
+ status?: string | undefined;
3397
+ code?: string | undefined;
3398
+ id?: string | undefined;
3399
+ links?: {
3400
+ about?: string | undefined;
3401
+ } | undefined;
3402
+ meta?: Record<string, unknown> | undefined;
3403
+ title?: string | undefined;
3404
+ detail?: string | undefined;
3405
+ source?: {
3406
+ pointer?: string | undefined;
3407
+ parameter?: string | undefined;
3408
+ } | undefined;
3409
+ }[];
3410
+ meta?: Record<string, unknown> | undefined;
3411
+ }>;
3412
+ 401: z.ZodObject<{
3413
+ errors: z.ZodArray<z.ZodObject<{
3414
+ id: z.ZodOptional<z.ZodString>;
3415
+ links: z.ZodOptional<z.ZodObject<{
3416
+ about: z.ZodOptional<z.ZodString>;
3417
+ }, "strip", z.ZodTypeAny, {
3418
+ about?: string | undefined;
3419
+ }, {
3420
+ about?: string | undefined;
3421
+ }>>;
3422
+ status: z.ZodOptional<z.ZodString>;
3423
+ code: z.ZodOptional<z.ZodString>;
3424
+ title: z.ZodOptional<z.ZodString>;
3425
+ detail: z.ZodOptional<z.ZodString>;
3426
+ source: z.ZodOptional<z.ZodObject<{
3427
+ pointer: z.ZodOptional<z.ZodString>;
3428
+ parameter: z.ZodOptional<z.ZodString>;
3429
+ }, "strip", z.ZodTypeAny, {
3430
+ pointer?: string | undefined;
3431
+ parameter?: string | undefined;
3432
+ }, {
3433
+ pointer?: string | undefined;
3434
+ parameter?: string | undefined;
3435
+ }>>;
3436
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3437
+ }, "strip", z.ZodTypeAny, {
3438
+ status?: string | undefined;
3439
+ code?: string | undefined;
3440
+ id?: string | undefined;
3441
+ links?: {
3442
+ about?: string | undefined;
3443
+ } | undefined;
3444
+ meta?: Record<string, unknown> | undefined;
3445
+ title?: string | undefined;
3446
+ detail?: string | undefined;
3447
+ source?: {
3448
+ pointer?: string | undefined;
3449
+ parameter?: string | undefined;
3450
+ } | undefined;
3451
+ }, {
3452
+ status?: string | undefined;
3453
+ code?: string | undefined;
3454
+ id?: string | undefined;
3455
+ links?: {
3456
+ about?: string | undefined;
3457
+ } | undefined;
3458
+ meta?: Record<string, unknown> | undefined;
3459
+ title?: string | undefined;
3460
+ detail?: string | undefined;
3461
+ source?: {
3462
+ pointer?: string | undefined;
3463
+ parameter?: string | undefined;
3464
+ } | undefined;
3465
+ }>, "many">;
3466
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3467
+ }, "strip", z.ZodTypeAny, {
3468
+ errors: {
3469
+ status?: string | undefined;
3470
+ code?: string | undefined;
3471
+ id?: string | undefined;
3472
+ links?: {
3473
+ about?: string | undefined;
3474
+ } | undefined;
3475
+ meta?: Record<string, unknown> | undefined;
3476
+ title?: string | undefined;
3477
+ detail?: string | undefined;
3478
+ source?: {
3479
+ pointer?: string | undefined;
3480
+ parameter?: string | undefined;
3481
+ } | undefined;
3482
+ }[];
3483
+ meta?: Record<string, unknown> | undefined;
3484
+ }, {
3485
+ errors: {
3486
+ status?: string | undefined;
3487
+ code?: string | undefined;
3488
+ id?: string | undefined;
3489
+ links?: {
3490
+ about?: string | undefined;
3491
+ } | undefined;
3492
+ meta?: Record<string, unknown> | undefined;
3493
+ title?: string | undefined;
3494
+ detail?: string | undefined;
3495
+ source?: {
3496
+ pointer?: string | undefined;
3497
+ parameter?: string | undefined;
3498
+ } | undefined;
3499
+ }[];
3500
+ meta?: Record<string, unknown> | undefined;
3501
+ }>;
3502
+ 422: z.ZodObject<{
3503
+ errors: z.ZodArray<z.ZodObject<{
3504
+ id: z.ZodOptional<z.ZodString>;
3505
+ links: z.ZodOptional<z.ZodObject<{
3506
+ about: z.ZodOptional<z.ZodString>;
3507
+ }, "strip", z.ZodTypeAny, {
3508
+ about?: string | undefined;
3509
+ }, {
3510
+ about?: string | undefined;
3511
+ }>>;
3512
+ status: z.ZodOptional<z.ZodString>;
3513
+ code: z.ZodOptional<z.ZodString>;
3514
+ title: z.ZodOptional<z.ZodString>;
3515
+ detail: z.ZodOptional<z.ZodString>;
3516
+ source: z.ZodOptional<z.ZodObject<{
3517
+ pointer: z.ZodOptional<z.ZodString>;
3518
+ parameter: z.ZodOptional<z.ZodString>;
3519
+ }, "strip", z.ZodTypeAny, {
3520
+ pointer?: string | undefined;
3521
+ parameter?: string | undefined;
3522
+ }, {
3523
+ pointer?: string | undefined;
3524
+ parameter?: string | undefined;
3525
+ }>>;
3526
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3527
+ }, "strip", z.ZodTypeAny, {
3528
+ status?: string | undefined;
3529
+ code?: string | undefined;
3530
+ id?: string | undefined;
3531
+ links?: {
3532
+ about?: string | undefined;
3533
+ } | undefined;
3534
+ meta?: Record<string, unknown> | undefined;
3535
+ title?: string | undefined;
3536
+ detail?: string | undefined;
3537
+ source?: {
3538
+ pointer?: string | undefined;
3539
+ parameter?: string | undefined;
3540
+ } | undefined;
3541
+ }, {
3542
+ status?: string | undefined;
3543
+ code?: string | undefined;
3544
+ id?: string | undefined;
3545
+ links?: {
3546
+ about?: string | undefined;
3547
+ } | undefined;
3548
+ meta?: Record<string, unknown> | undefined;
3549
+ title?: string | undefined;
3550
+ detail?: string | undefined;
3551
+ source?: {
3552
+ pointer?: string | undefined;
3553
+ parameter?: string | undefined;
3554
+ } | undefined;
3555
+ }>, "many">;
3556
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3557
+ }, "strip", z.ZodTypeAny, {
3558
+ errors: {
3559
+ status?: string | undefined;
3560
+ code?: string | undefined;
3561
+ id?: string | undefined;
3562
+ links?: {
3563
+ about?: string | undefined;
3564
+ } | undefined;
3565
+ meta?: Record<string, unknown> | undefined;
3566
+ title?: string | undefined;
3567
+ detail?: string | undefined;
3568
+ source?: {
3569
+ pointer?: string | undefined;
3570
+ parameter?: string | undefined;
3571
+ } | undefined;
3572
+ }[];
3573
+ meta?: Record<string, unknown> | undefined;
3574
+ }, {
3575
+ errors: {
3576
+ status?: string | undefined;
3577
+ code?: string | undefined;
3578
+ id?: string | undefined;
3579
+ links?: {
3580
+ about?: string | undefined;
3581
+ } | undefined;
3582
+ meta?: Record<string, unknown> | undefined;
3583
+ title?: string | undefined;
3584
+ detail?: string | undefined;
3585
+ source?: {
3586
+ pointer?: string | undefined;
3587
+ parameter?: string | undefined;
3588
+ } | undefined;
3589
+ }[];
3590
+ meta?: Record<string, unknown> | undefined;
3591
+ }>;
3592
+ };
3593
+ };
3594
+ resendVerification: {
3595
+ summary: "Resend verification email";
3596
+ description: "Resend email verification link";
3597
+ method: "POST";
3598
+ body: z.ZodObject<{
3599
+ data: z.ZodObject<{
3600
+ type: z.ZodLiteral<"auth">;
3601
+ attributes: z.ZodObject<{
3602
+ email: z.ZodString;
3603
+ }, "strip", z.ZodTypeAny, {
3604
+ email: string;
3605
+ }, {
3606
+ email: string;
3607
+ }>;
3608
+ }, "strip", z.ZodTypeAny, {
3609
+ type: "auth";
3610
+ attributes: {
3611
+ email: string;
3612
+ };
3613
+ }, {
3614
+ type: "auth";
3615
+ attributes: {
3616
+ email: string;
3617
+ };
3618
+ }>;
3619
+ }, "strip", z.ZodTypeAny, {
3620
+ data: {
3621
+ type: "auth";
3622
+ attributes: {
3623
+ email: string;
3624
+ };
3625
+ };
3626
+ }, {
3627
+ data: {
3628
+ type: "auth";
3629
+ attributes: {
3630
+ email: string;
3631
+ };
3632
+ };
3633
+ }>;
3634
+ path: "/auth/email/resend-verification";
3635
+ responses: {
3636
+ 200: z.ZodObject<{
3637
+ meta: z.ZodObject<{
3638
+ message: z.ZodString;
3639
+ }, "strip", z.ZodTypeAny, {
3640
+ message: string;
3641
+ }, {
3642
+ message: string;
3643
+ }>;
3644
+ }, "strip", z.ZodTypeAny, {
3645
+ meta: {
3646
+ message: string;
3647
+ };
3648
+ }, {
3649
+ meta: {
3650
+ message: string;
3651
+ };
3652
+ }>;
3653
+ 400: z.ZodObject<{
3654
+ errors: z.ZodArray<z.ZodObject<{
3655
+ id: z.ZodOptional<z.ZodString>;
3656
+ links: z.ZodOptional<z.ZodObject<{
3657
+ about: z.ZodOptional<z.ZodString>;
3658
+ }, "strip", z.ZodTypeAny, {
3659
+ about?: string | undefined;
3660
+ }, {
3661
+ about?: string | undefined;
3662
+ }>>;
3663
+ status: z.ZodOptional<z.ZodString>;
3664
+ code: z.ZodOptional<z.ZodString>;
3665
+ title: z.ZodOptional<z.ZodString>;
3666
+ detail: z.ZodOptional<z.ZodString>;
3667
+ source: z.ZodOptional<z.ZodObject<{
3668
+ pointer: z.ZodOptional<z.ZodString>;
3669
+ parameter: z.ZodOptional<z.ZodString>;
3670
+ }, "strip", z.ZodTypeAny, {
3671
+ pointer?: string | undefined;
3672
+ parameter?: string | undefined;
3673
+ }, {
3674
+ pointer?: string | undefined;
3675
+ parameter?: string | undefined;
3676
+ }>>;
3677
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3678
+ }, "strip", z.ZodTypeAny, {
3679
+ status?: string | undefined;
3680
+ code?: string | undefined;
3681
+ id?: string | undefined;
3682
+ links?: {
3683
+ about?: string | undefined;
3684
+ } | undefined;
3685
+ meta?: Record<string, unknown> | undefined;
3686
+ title?: string | undefined;
3687
+ detail?: string | undefined;
3688
+ source?: {
3689
+ pointer?: string | undefined;
3690
+ parameter?: string | undefined;
3691
+ } | undefined;
3692
+ }, {
3693
+ status?: string | undefined;
3694
+ code?: string | undefined;
3695
+ id?: string | undefined;
3696
+ links?: {
3697
+ about?: string | undefined;
3698
+ } | undefined;
3699
+ meta?: Record<string, unknown> | undefined;
3700
+ title?: string | undefined;
3701
+ detail?: string | undefined;
3702
+ source?: {
3703
+ pointer?: string | undefined;
3704
+ parameter?: string | undefined;
3705
+ } | undefined;
3706
+ }>, "many">;
3707
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3708
+ }, "strip", z.ZodTypeAny, {
3709
+ errors: {
3710
+ status?: string | undefined;
3711
+ code?: string | undefined;
3712
+ id?: string | undefined;
3713
+ links?: {
3714
+ about?: string | undefined;
3715
+ } | undefined;
3716
+ meta?: Record<string, unknown> | undefined;
3717
+ title?: string | undefined;
3718
+ detail?: string | undefined;
3719
+ source?: {
3720
+ pointer?: string | undefined;
3721
+ parameter?: string | undefined;
3722
+ } | undefined;
3723
+ }[];
3724
+ meta?: Record<string, unknown> | undefined;
3725
+ }, {
3726
+ errors: {
3727
+ status?: string | undefined;
3728
+ code?: string | undefined;
3729
+ id?: string | undefined;
3730
+ links?: {
3731
+ about?: string | undefined;
3732
+ } | undefined;
3733
+ meta?: Record<string, unknown> | undefined;
3734
+ title?: string | undefined;
3735
+ detail?: string | undefined;
3736
+ source?: {
3737
+ pointer?: string | undefined;
3738
+ parameter?: string | undefined;
3739
+ } | undefined;
3740
+ }[];
3741
+ meta?: Record<string, unknown> | undefined;
3742
+ }>;
3743
+ 422: z.ZodObject<{
3744
+ errors: z.ZodArray<z.ZodObject<{
3745
+ id: z.ZodOptional<z.ZodString>;
3746
+ links: z.ZodOptional<z.ZodObject<{
3747
+ about: z.ZodOptional<z.ZodString>;
3748
+ }, "strip", z.ZodTypeAny, {
3749
+ about?: string | undefined;
3750
+ }, {
3751
+ about?: string | undefined;
3752
+ }>>;
3753
+ status: z.ZodOptional<z.ZodString>;
3754
+ code: z.ZodOptional<z.ZodString>;
3755
+ title: z.ZodOptional<z.ZodString>;
3756
+ detail: z.ZodOptional<z.ZodString>;
3757
+ source: z.ZodOptional<z.ZodObject<{
3758
+ pointer: z.ZodOptional<z.ZodString>;
3759
+ parameter: z.ZodOptional<z.ZodString>;
3760
+ }, "strip", z.ZodTypeAny, {
3761
+ pointer?: string | undefined;
3762
+ parameter?: string | undefined;
3763
+ }, {
3764
+ pointer?: string | undefined;
3765
+ parameter?: string | undefined;
3766
+ }>>;
3767
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3768
+ }, "strip", z.ZodTypeAny, {
3769
+ status?: string | undefined;
3770
+ code?: string | undefined;
3771
+ id?: string | undefined;
3772
+ links?: {
3773
+ about?: string | undefined;
3774
+ } | undefined;
3775
+ meta?: Record<string, unknown> | undefined;
3776
+ title?: string | undefined;
3777
+ detail?: string | undefined;
3778
+ source?: {
3779
+ pointer?: string | undefined;
3780
+ parameter?: string | undefined;
3781
+ } | undefined;
3782
+ }, {
3783
+ status?: string | undefined;
3784
+ code?: string | undefined;
3785
+ id?: string | undefined;
3786
+ links?: {
3787
+ about?: string | undefined;
3788
+ } | undefined;
3789
+ meta?: Record<string, unknown> | undefined;
3790
+ title?: string | undefined;
3791
+ detail?: string | undefined;
3792
+ source?: {
3793
+ pointer?: string | undefined;
3794
+ parameter?: string | undefined;
3795
+ } | undefined;
3796
+ }>, "many">;
3797
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3798
+ }, "strip", z.ZodTypeAny, {
3799
+ errors: {
3800
+ status?: string | undefined;
3801
+ code?: string | undefined;
3802
+ id?: string | undefined;
3803
+ links?: {
3804
+ about?: string | undefined;
3805
+ } | undefined;
3806
+ meta?: Record<string, unknown> | undefined;
3807
+ title?: string | undefined;
3808
+ detail?: string | undefined;
3809
+ source?: {
3810
+ pointer?: string | undefined;
3811
+ parameter?: string | undefined;
3812
+ } | undefined;
3813
+ }[];
3814
+ meta?: Record<string, unknown> | undefined;
3815
+ }, {
3816
+ errors: {
3817
+ status?: string | undefined;
3818
+ code?: string | undefined;
3819
+ id?: string | undefined;
3820
+ links?: {
3821
+ about?: string | undefined;
3822
+ } | undefined;
3823
+ meta?: Record<string, unknown> | undefined;
3824
+ title?: string | undefined;
3825
+ detail?: string | undefined;
3826
+ source?: {
3827
+ pointer?: string | undefined;
3828
+ parameter?: string | undefined;
3829
+ } | undefined;
3830
+ }[];
3831
+ meta?: Record<string, unknown> | undefined;
3832
+ }>;
3833
+ };
3834
+ };
3835
+ };
3836
+ //# sourceMappingURL=auth.routes.d.ts.map