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