@deepintel-ltd/farmpro-contracts 1.11.3 → 1.11.4

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 (73) hide show
  1. package/dist/routes/admin.routes.d.ts +2852 -36
  2. package/dist/routes/admin.routes.d.ts.map +1 -1
  3. package/dist/routes/admin.routes.js +78 -6
  4. package/dist/routes/agent-workflows.routes.d.ts +140 -140
  5. package/dist/routes/agents.routes.d.ts +6 -6
  6. package/dist/routes/analytics.routes.d.ts +6 -6
  7. package/dist/routes/auth.routes.d.ts +503 -0
  8. package/dist/routes/auth.routes.d.ts.map +1 -1
  9. package/dist/routes/auth.routes.js +15 -0
  10. package/dist/routes/crop-profile.routes.d.ts +18 -18
  11. package/dist/routes/documents.routes.d.ts +58 -58
  12. package/dist/routes/equipment.routes.d.ts +62 -62
  13. package/dist/routes/extension.routes.d.ts +6 -6
  14. package/dist/routes/farm-status.routes.d.ts +6 -6
  15. package/dist/routes/farms.routes.d.ts +35 -0
  16. package/dist/routes/farms.routes.d.ts.map +1 -1
  17. package/dist/routes/fertigation.routes.d.ts +76 -76
  18. package/dist/routes/field-monitoring.routes.d.ts +34 -34
  19. package/dist/routes/field-observations.routes.d.ts +170 -170
  20. package/dist/routes/finance.routes.d.ts +6 -6
  21. package/dist/routes/geofences.routes.d.ts +8 -8
  22. package/dist/routes/irrigation.routes.d.ts +22 -22
  23. package/dist/routes/live-monitor.routes.d.ts +2 -2
  24. package/dist/routes/livestock-groups.routes.d.ts +30 -30
  25. package/dist/routes/livestock.routes.d.ts +24 -24
  26. package/dist/routes/monitoring-visualization.routes.d.ts +4 -4
  27. package/dist/routes/pest-disease-risk.routes.d.ts +48 -48
  28. package/dist/routes/prescription-maps.routes.d.ts +2 -2
  29. package/dist/routes/seasonal-plans.routes.d.ts +6 -6
  30. package/dist/routes/soil-tests.routes.d.ts +30 -30
  31. package/dist/routes/subscriptions.routes.d.ts +2 -2
  32. package/dist/routes/team-payments.routes.d.ts +36 -36
  33. package/dist/routes/team.routes.d.ts +24 -24
  34. package/dist/routes/users.routes.d.ts +14 -0
  35. package/dist/routes/users.routes.d.ts.map +1 -1
  36. package/dist/routes/weather.routes.d.ts +14 -14
  37. package/dist/routes/yield-prediction.routes.d.ts +48 -48
  38. package/dist/schemas/admin.schemas.d.ts +431 -84
  39. package/dist/schemas/admin.schemas.d.ts.map +1 -1
  40. package/dist/schemas/admin.schemas.js +36 -0
  41. package/dist/schemas/agent-workflows.schemas.d.ts +111 -111
  42. package/dist/schemas/agents.schemas.d.ts +6 -6
  43. package/dist/schemas/analytics.schemas.d.ts +12 -12
  44. package/dist/schemas/crop-profile.schemas.d.ts +26 -26
  45. package/dist/schemas/documents.schemas.d.ts +48 -48
  46. package/dist/schemas/equipment.schemas.d.ts +48 -48
  47. package/dist/schemas/extension.schemas.d.ts +12 -12
  48. package/dist/schemas/farm-status.schemas.d.ts +8 -8
  49. package/dist/schemas/farms.schemas.d.ts +48 -0
  50. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  51. package/dist/schemas/farms.schemas.js +3 -0
  52. package/dist/schemas/fertigation.schemas.d.ts +20 -20
  53. package/dist/schemas/field-monitoring.schemas.d.ts +26 -26
  54. package/dist/schemas/field-observations.schemas.d.ts +126 -126
  55. package/dist/schemas/finance.schemas.d.ts +6 -6
  56. package/dist/schemas/geofences.schemas.d.ts +6 -6
  57. package/dist/schemas/irrigation.schemas.d.ts +12 -12
  58. package/dist/schemas/live-monitor.schemas.d.ts +2 -2
  59. package/dist/schemas/livestock-groups.schemas.d.ts +18 -18
  60. package/dist/schemas/livestock.schemas.d.ts +18 -18
  61. package/dist/schemas/monitoring-visualization.schemas.d.ts +4 -4
  62. package/dist/schemas/pest-disease-risk.schemas.d.ts +32 -32
  63. package/dist/schemas/prescription-maps.schemas.d.ts +2 -2
  64. package/dist/schemas/seasonal-plans.schemas.d.ts +12 -12
  65. package/dist/schemas/soil-tests.schemas.d.ts +28 -28
  66. package/dist/schemas/team-payments.schemas.d.ts +24 -24
  67. package/dist/schemas/team.schemas.d.ts +18 -18
  68. package/dist/schemas/users.schemas.d.ts +15 -0
  69. package/dist/schemas/users.schemas.d.ts.map +1 -1
  70. package/dist/schemas/users.schemas.js +1 -0
  71. package/dist/schemas/weather.schemas.d.ts +28 -28
  72. package/dist/schemas/yield-prediction.schemas.d.ts +8 -8
  73. package/package.json +1 -1
@@ -28,15 +28,15 @@ export declare const adminRouter: {
28
28
  skipped: z.ZodNumber;
29
29
  deduplicationRate: z.ZodNumber;
30
30
  }, "strip", z.ZodTypeAny, {
31
- skipped: number;
32
31
  tasksCreated: number;
33
32
  tasksUpdated: number;
33
+ skipped: number;
34
34
  deduplicationRate: number;
35
35
  totalRecommendations: number;
36
36
  }, {
37
- skipped: number;
38
37
  tasksCreated: number;
39
38
  tasksUpdated: number;
39
+ skipped: number;
40
40
  deduplicationRate: number;
41
41
  totalRecommendations: number;
42
42
  }>;
@@ -51,22 +51,22 @@ export declare const adminRouter: {
51
51
  successRate: z.ZodOptional<z.ZodNumber>;
52
52
  }, "strip", z.ZodTypeAny, {
53
53
  recommendations: number;
54
- skipped: number;
55
54
  tasksCreated: number;
56
55
  tasksUpdated: number;
56
+ skipped: number;
57
57
  avgConfidence: number;
58
58
  tasksCompleted?: number | undefined;
59
- successRate?: number | undefined;
60
59
  successfulOutcomes?: number | undefined;
60
+ successRate?: number | undefined;
61
61
  }, {
62
62
  recommendations: number;
63
- skipped: number;
64
63
  tasksCreated: number;
65
64
  tasksUpdated: number;
65
+ skipped: number;
66
66
  avgConfidence: number;
67
67
  tasksCompleted?: number | undefined;
68
- successRate?: number | undefined;
69
68
  successfulOutcomes?: number | undefined;
69
+ successRate?: number | undefined;
70
70
  }>>;
71
71
  crossSourceMatches: z.ZodArray<z.ZodObject<{
72
72
  issueType: z.ZodString;
@@ -94,13 +94,13 @@ export declare const adminRouter: {
94
94
  avgImprovementScore: z.ZodNumber;
95
95
  }, "strip", z.ZodTypeAny, {
96
96
  tasksCompleted: number;
97
- successRate: number;
98
97
  successfulOutcomes: number;
98
+ successRate: number;
99
99
  avgImprovementScore: number;
100
100
  }, {
101
101
  tasksCompleted: number;
102
- successRate: number;
103
102
  successfulOutcomes: number;
103
+ successRate: number;
104
104
  avgImprovementScore: number;
105
105
  }>>;
106
106
  learnedPatterns: z.ZodObject<{
@@ -145,21 +145,21 @@ export declare const adminRouter: {
145
145
  }>;
146
146
  }, "strip", z.ZodTypeAny, {
147
147
  overall: {
148
- skipped: number;
149
148
  tasksCreated: number;
150
149
  tasksUpdated: number;
150
+ skipped: number;
151
151
  deduplicationRate: number;
152
152
  totalRecommendations: number;
153
153
  };
154
154
  bySource: Record<string, {
155
155
  recommendations: number;
156
- skipped: number;
157
156
  tasksCreated: number;
158
157
  tasksUpdated: number;
158
+ skipped: number;
159
159
  avgConfidence: number;
160
160
  tasksCompleted?: number | undefined;
161
- successRate?: number | undefined;
162
161
  successfulOutcomes?: number | undefined;
162
+ successRate?: number | undefined;
163
163
  }>;
164
164
  crossSourceMatches: {
165
165
  tasksCreated: number;
@@ -170,8 +170,8 @@ export declare const adminRouter: {
170
170
  }[];
171
171
  effectiveness: Record<string, {
172
172
  tasksCompleted: number;
173
- successRate: number;
174
173
  successfulOutcomes: number;
174
+ successRate: number;
175
175
  avgImprovementScore: number;
176
176
  }>;
177
177
  learnedPatterns: {
@@ -186,21 +186,21 @@ export declare const adminRouter: {
186
186
  };
187
187
  }, {
188
188
  overall: {
189
- skipped: number;
190
189
  tasksCreated: number;
191
190
  tasksUpdated: number;
191
+ skipped: number;
192
192
  deduplicationRate: number;
193
193
  totalRecommendations: number;
194
194
  };
195
195
  bySource: Record<string, {
196
196
  recommendations: number;
197
- skipped: number;
198
197
  tasksCreated: number;
199
198
  tasksUpdated: number;
199
+ skipped: number;
200
200
  avgConfidence: number;
201
201
  tasksCompleted?: number | undefined;
202
- successRate?: number | undefined;
203
202
  successfulOutcomes?: number | undefined;
203
+ successRate?: number | undefined;
204
204
  }>;
205
205
  crossSourceMatches: {
206
206
  tasksCreated: number;
@@ -211,8 +211,8 @@ export declare const adminRouter: {
211
211
  }[];
212
212
  effectiveness: Record<string, {
213
213
  tasksCompleted: number;
214
- successRate: number;
215
214
  successfulOutcomes: number;
215
+ successRate: number;
216
216
  avgImprovementScore: number;
217
217
  }>;
218
218
  learnedPatterns: {
@@ -234,21 +234,21 @@ export declare const adminRouter: {
234
234
  id: string;
235
235
  attributes: {
236
236
  overall: {
237
- skipped: number;
238
237
  tasksCreated: number;
239
238
  tasksUpdated: number;
239
+ skipped: number;
240
240
  deduplicationRate: number;
241
241
  totalRecommendations: number;
242
242
  };
243
243
  bySource: Record<string, {
244
244
  recommendations: number;
245
- skipped: number;
246
245
  tasksCreated: number;
247
246
  tasksUpdated: number;
247
+ skipped: number;
248
248
  avgConfidence: number;
249
249
  tasksCompleted?: number | undefined;
250
- successRate?: number | undefined;
251
250
  successfulOutcomes?: number | undefined;
251
+ successRate?: number | undefined;
252
252
  }>;
253
253
  crossSourceMatches: {
254
254
  tasksCreated: number;
@@ -259,8 +259,8 @@ export declare const adminRouter: {
259
259
  }[];
260
260
  effectiveness: Record<string, {
261
261
  tasksCompleted: number;
262
- successRate: number;
263
262
  successfulOutcomes: number;
263
+ successRate: number;
264
264
  avgImprovementScore: number;
265
265
  }>;
266
266
  learnedPatterns: {
@@ -282,21 +282,21 @@ export declare const adminRouter: {
282
282
  id: string;
283
283
  attributes: {
284
284
  overall: {
285
- skipped: number;
286
285
  tasksCreated: number;
287
286
  tasksUpdated: number;
287
+ skipped: number;
288
288
  deduplicationRate: number;
289
289
  totalRecommendations: number;
290
290
  };
291
291
  bySource: Record<string, {
292
292
  recommendations: number;
293
- skipped: number;
294
293
  tasksCreated: number;
295
294
  tasksUpdated: number;
295
+ skipped: number;
296
296
  avgConfidence: number;
297
297
  tasksCompleted?: number | undefined;
298
- successRate?: number | undefined;
299
298
  successfulOutcomes?: number | undefined;
299
+ successRate?: number | undefined;
300
300
  }>;
301
301
  crossSourceMatches: {
302
302
  tasksCreated: number;
@@ -307,8 +307,8 @@ export declare const adminRouter: {
307
307
  }[];
308
308
  effectiveness: Record<string, {
309
309
  tasksCompleted: number;
310
- successRate: number;
311
310
  successfulOutcomes: number;
311
+ successRate: number;
312
312
  avgImprovementScore: number;
313
313
  }>;
314
314
  learnedPatterns: {
@@ -356,21 +356,21 @@ export declare const adminRouter: {
356
356
  id: string;
357
357
  attributes: {
358
358
  overall: {
359
- skipped: number;
360
359
  tasksCreated: number;
361
360
  tasksUpdated: number;
361
+ skipped: number;
362
362
  deduplicationRate: number;
363
363
  totalRecommendations: number;
364
364
  };
365
365
  bySource: Record<string, {
366
366
  recommendations: number;
367
- skipped: number;
368
367
  tasksCreated: number;
369
368
  tasksUpdated: number;
369
+ skipped: number;
370
370
  avgConfidence: number;
371
371
  tasksCompleted?: number | undefined;
372
- successRate?: number | undefined;
373
372
  successfulOutcomes?: number | undefined;
373
+ successRate?: number | undefined;
374
374
  }>;
375
375
  crossSourceMatches: {
376
376
  tasksCreated: number;
@@ -381,8 +381,8 @@ export declare const adminRouter: {
381
381
  }[];
382
382
  effectiveness: Record<string, {
383
383
  tasksCompleted: number;
384
- successRate: number;
385
384
  successfulOutcomes: number;
385
+ successRate: number;
386
386
  avgImprovementScore: number;
387
387
  }>;
388
388
  learnedPatterns: {
@@ -416,21 +416,21 @@ export declare const adminRouter: {
416
416
  id: string;
417
417
  attributes: {
418
418
  overall: {
419
- skipped: number;
420
419
  tasksCreated: number;
421
420
  tasksUpdated: number;
421
+ skipped: number;
422
422
  deduplicationRate: number;
423
423
  totalRecommendations: number;
424
424
  };
425
425
  bySource: Record<string, {
426
426
  recommendations: number;
427
- skipped: number;
428
427
  tasksCreated: number;
429
428
  tasksUpdated: number;
429
+ skipped: number;
430
430
  avgConfidence: number;
431
431
  tasksCompleted?: number | undefined;
432
- successRate?: number | undefined;
433
432
  successfulOutcomes?: number | undefined;
433
+ successRate?: number | undefined;
434
434
  }>;
435
435
  crossSourceMatches: {
436
436
  tasksCreated: number;
@@ -441,8 +441,8 @@ export declare const adminRouter: {
441
441
  }[];
442
442
  effectiveness: Record<string, {
443
443
  tasksCompleted: number;
444
- successRate: number;
445
444
  successfulOutcomes: number;
445
+ successRate: number;
446
446
  avgImprovementScore: number;
447
447
  }>;
448
448
  learnedPatterns: {
@@ -759,7 +759,7 @@ export declare const adminRouter: {
759
759
  q?: string | undefined;
760
760
  }>;
761
761
  summary: "List users (platform admin)";
762
- description: "Search and paginate platform users. Restricted to ADMIN_EMAILS.";
762
+ description: "Search and paginate platform users. Restricted to super admins.";
763
763
  method: "GET";
764
764
  path: "/admin/users";
765
765
  responses: {
@@ -773,6 +773,8 @@ export declare const adminRouter: {
773
773
  phone: z.ZodNullable<z.ZodString>;
774
774
  emailVerified: z.ZodBoolean;
775
775
  isPlatformAdmin: z.ZodBoolean;
776
+ platformRole: z.ZodNullable<z.ZodEnum<["super_admin"]>>;
777
+ hasPassword: z.ZodOptional<z.ZodBoolean>;
776
778
  } & {
777
779
  createdAt: z.ZodString;
778
780
  updatedAt: z.ZodString;
@@ -784,6 +786,8 @@ export declare const adminRouter: {
784
786
  phone: string | null;
785
787
  emailVerified: boolean;
786
788
  isPlatformAdmin: boolean;
789
+ platformRole: "super_admin" | null;
790
+ hasPassword?: boolean | undefined;
787
791
  }, {
788
792
  email: string;
789
793
  createdAt: string;
@@ -792,6 +796,8 @@ export declare const adminRouter: {
792
796
  phone: string | null;
793
797
  emailVerified: boolean;
794
798
  isPlatformAdmin: boolean;
799
+ platformRole: "super_admin" | null;
800
+ hasPassword?: boolean | undefined;
795
801
  }>;
796
802
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
797
803
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -807,6 +813,8 @@ export declare const adminRouter: {
807
813
  phone: string | null;
808
814
  emailVerified: boolean;
809
815
  isPlatformAdmin: boolean;
816
+ platformRole: "super_admin" | null;
817
+ hasPassword?: boolean | undefined;
810
818
  };
811
819
  relationships?: Record<string, unknown> | undefined;
812
820
  links?: Record<string, string> | undefined;
@@ -822,6 +830,8 @@ export declare const adminRouter: {
822
830
  phone: string | null;
823
831
  emailVerified: boolean;
824
832
  isPlatformAdmin: boolean;
833
+ platformRole: "super_admin" | null;
834
+ hasPassword?: boolean | undefined;
825
835
  };
826
836
  relationships?: Record<string, unknown> | undefined;
827
837
  links?: Record<string, string> | undefined;
@@ -879,6 +889,8 @@ export declare const adminRouter: {
879
889
  phone: string | null;
880
890
  emailVerified: boolean;
881
891
  isPlatformAdmin: boolean;
892
+ platformRole: "super_admin" | null;
893
+ hasPassword?: boolean | undefined;
882
894
  };
883
895
  relationships?: Record<string, unknown> | undefined;
884
896
  links?: Record<string, string> | undefined;
@@ -911,6 +923,8 @@ export declare const adminRouter: {
911
923
  phone: string | null;
912
924
  emailVerified: boolean;
913
925
  isPlatformAdmin: boolean;
926
+ platformRole: "super_admin" | null;
927
+ hasPassword?: boolean | undefined;
914
928
  };
915
929
  relationships?: Record<string, unknown> | undefined;
916
930
  links?: Record<string, string> | undefined;
@@ -1206,7 +1220,7 @@ export declare const adminRouter: {
1206
1220
  };
1207
1221
  createUser: {
1208
1222
  summary: "Create user (platform admin)";
1209
- description: "Provision a platform user with email and password. Restricted to ADMIN_EMAILS.";
1223
+ description: "Provision a platform user with email and password. Restricted to super admins.";
1210
1224
  method: "POST";
1211
1225
  body: z.ZodObject<{
1212
1226
  data: z.ZodObject<{
@@ -1278,6 +1292,7 @@ export declare const adminRouter: {
1278
1292
  emailVerified: z.ZodBoolean;
1279
1293
  avatar: z.ZodNullable<z.ZodString>;
1280
1294
  isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
1295
+ platformRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["super_admin"]>>>;
1281
1296
  } & {
1282
1297
  createdAt: z.ZodString;
1283
1298
  updatedAt: z.ZodString;
@@ -1290,6 +1305,7 @@ export declare const adminRouter: {
1290
1305
  emailVerified: boolean;
1291
1306
  avatar: string | null;
1292
1307
  isPlatformAdmin?: boolean | undefined;
1308
+ platformRole?: "super_admin" | null | undefined;
1293
1309
  }, {
1294
1310
  email: string;
1295
1311
  createdAt: string;
@@ -1299,6 +1315,7 @@ export declare const adminRouter: {
1299
1315
  emailVerified: boolean;
1300
1316
  avatar: string | null;
1301
1317
  isPlatformAdmin?: boolean | undefined;
1318
+ platformRole?: "super_admin" | null | undefined;
1302
1319
  }>;
1303
1320
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1304
1321
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1315,6 +1332,7 @@ export declare const adminRouter: {
1315
1332
  emailVerified: boolean;
1316
1333
  avatar: string | null;
1317
1334
  isPlatformAdmin?: boolean | undefined;
1335
+ platformRole?: "super_admin" | null | undefined;
1318
1336
  };
1319
1337
  relationships?: Record<string, unknown> | undefined;
1320
1338
  links?: Record<string, string> | undefined;
@@ -1331,6 +1349,7 @@ export declare const adminRouter: {
1331
1349
  emailVerified: boolean;
1332
1350
  avatar: string | null;
1333
1351
  isPlatformAdmin?: boolean | undefined;
1352
+ platformRole?: "super_admin" | null | undefined;
1334
1353
  };
1335
1354
  relationships?: Record<string, unknown> | undefined;
1336
1355
  links?: Record<string, string> | undefined;
@@ -1373,6 +1392,7 @@ export declare const adminRouter: {
1373
1392
  emailVerified: boolean;
1374
1393
  avatar: string | null;
1375
1394
  isPlatformAdmin?: boolean | undefined;
1395
+ platformRole?: "super_admin" | null | undefined;
1376
1396
  };
1377
1397
  relationships?: Record<string, unknown> | undefined;
1378
1398
  links?: Record<string, string> | undefined;
@@ -1401,6 +1421,7 @@ export declare const adminRouter: {
1401
1421
  emailVerified: boolean;
1402
1422
  avatar: string | null;
1403
1423
  isPlatformAdmin?: boolean | undefined;
1424
+ platformRole?: "super_admin" | null | undefined;
1404
1425
  };
1405
1426
  relationships?: Record<string, unknown> | undefined;
1406
1427
  links?: Record<string, string> | undefined;
@@ -1968,7 +1989,7 @@ export declare const adminRouter: {
1968
1989
  id: string;
1969
1990
  }>;
1970
1991
  summary: "Create one-time login link (platform admin)";
1971
- description: "Mint a short-lived, single-use login URL for a user. Restricted to ADMIN_EMAILS.";
1992
+ description: "Mint a short-lived, single-use login URL for a user. Restricted to super admins.";
1972
1993
  method: "POST";
1973
1994
  body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1974
1995
  path: "/admin/users/:id/login-link";
@@ -2442,9 +2463,2804 @@ export declare const adminRouter: {
2442
2463
  }>;
2443
2464
  };
2444
2465
  };
2466
+ inviteSuperAdmin: {
2467
+ summary: "Invite a super admin";
2468
+ description: "Invite by name+email. New users set their own password via email link. Restricted to super admins.";
2469
+ method: "POST";
2470
+ body: z.ZodObject<{
2471
+ data: z.ZodObject<{
2472
+ type: z.ZodLiteral<"super-admin-invites">;
2473
+ attributes: z.ZodObject<{
2474
+ name: z.ZodString;
2475
+ email: z.ZodString;
2476
+ }, "strip", z.ZodTypeAny, {
2477
+ email: string;
2478
+ name: string;
2479
+ }, {
2480
+ email: string;
2481
+ name: string;
2482
+ }>;
2483
+ }, "strip", z.ZodTypeAny, {
2484
+ type: "super-admin-invites";
2485
+ attributes: {
2486
+ email: string;
2487
+ name: string;
2488
+ };
2489
+ }, {
2490
+ type: "super-admin-invites";
2491
+ attributes: {
2492
+ email: string;
2493
+ name: string;
2494
+ };
2495
+ }>;
2496
+ }, "strip", z.ZodTypeAny, {
2497
+ data: {
2498
+ type: "super-admin-invites";
2499
+ attributes: {
2500
+ email: string;
2501
+ name: string;
2502
+ };
2503
+ };
2504
+ }, {
2505
+ data: {
2506
+ type: "super-admin-invites";
2507
+ attributes: {
2508
+ email: string;
2509
+ name: string;
2510
+ };
2511
+ };
2512
+ }>;
2513
+ path: "/admin/super-admins";
2514
+ responses: {
2515
+ 201: z.ZodObject<{
2516
+ data: z.ZodObject<{
2517
+ type: z.ZodLiteral<string>;
2518
+ id: z.ZodString;
2519
+ attributes: z.ZodObject<{
2520
+ name: z.ZodString;
2521
+ email: z.ZodString;
2522
+ phone: z.ZodNullable<z.ZodString>;
2523
+ emailVerified: z.ZodBoolean;
2524
+ avatar: z.ZodNullable<z.ZodString>;
2525
+ isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
2526
+ platformRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["super_admin"]>>>;
2527
+ } & {
2528
+ createdAt: z.ZodString;
2529
+ updatedAt: z.ZodString;
2530
+ }, "strip", z.ZodTypeAny, {
2531
+ email: string;
2532
+ createdAt: string;
2533
+ updatedAt: string;
2534
+ name: string;
2535
+ phone: string | null;
2536
+ emailVerified: boolean;
2537
+ avatar: string | null;
2538
+ isPlatformAdmin?: boolean | undefined;
2539
+ platformRole?: "super_admin" | null | undefined;
2540
+ }, {
2541
+ email: string;
2542
+ createdAt: string;
2543
+ updatedAt: string;
2544
+ name: string;
2545
+ phone: string | null;
2546
+ emailVerified: boolean;
2547
+ avatar: string | null;
2548
+ isPlatformAdmin?: boolean | undefined;
2549
+ platformRole?: "super_admin" | null | undefined;
2550
+ }>;
2551
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2552
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2553
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2554
+ }, "strip", z.ZodTypeAny, {
2555
+ type: string;
2556
+ id: string;
2557
+ attributes: {
2558
+ email: string;
2559
+ createdAt: string;
2560
+ updatedAt: string;
2561
+ name: string;
2562
+ phone: string | null;
2563
+ emailVerified: boolean;
2564
+ avatar: string | null;
2565
+ isPlatformAdmin?: boolean | undefined;
2566
+ platformRole?: "super_admin" | null | undefined;
2567
+ };
2568
+ relationships?: Record<string, unknown> | undefined;
2569
+ links?: Record<string, string> | undefined;
2570
+ meta?: Record<string, unknown> | undefined;
2571
+ }, {
2572
+ type: string;
2573
+ id: string;
2574
+ attributes: {
2575
+ email: string;
2576
+ createdAt: string;
2577
+ updatedAt: string;
2578
+ name: string;
2579
+ phone: string | null;
2580
+ emailVerified: boolean;
2581
+ avatar: string | null;
2582
+ isPlatformAdmin?: boolean | undefined;
2583
+ platformRole?: "super_admin" | null | undefined;
2584
+ };
2585
+ relationships?: Record<string, unknown> | undefined;
2586
+ links?: Record<string, string> | undefined;
2587
+ meta?: Record<string, unknown> | undefined;
2588
+ }>;
2589
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2590
+ type: z.ZodString;
2591
+ id: z.ZodString;
2592
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2593
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2594
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2595
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2596
+ }, "strip", z.ZodTypeAny, {
2597
+ type: string;
2598
+ id: string;
2599
+ attributes?: Record<string, unknown> | undefined;
2600
+ relationships?: Record<string, unknown> | undefined;
2601
+ links?: Record<string, string> | undefined;
2602
+ meta?: Record<string, unknown> | undefined;
2603
+ }, {
2604
+ type: string;
2605
+ id: string;
2606
+ attributes?: Record<string, unknown> | undefined;
2607
+ relationships?: Record<string, unknown> | undefined;
2608
+ links?: Record<string, string> | undefined;
2609
+ meta?: Record<string, unknown> | undefined;
2610
+ }>, "many">>;
2611
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2612
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2613
+ }, "strip", z.ZodTypeAny, {
2614
+ data: {
2615
+ type: string;
2616
+ id: string;
2617
+ attributes: {
2618
+ email: string;
2619
+ createdAt: string;
2620
+ updatedAt: string;
2621
+ name: string;
2622
+ phone: string | null;
2623
+ emailVerified: boolean;
2624
+ avatar: string | null;
2625
+ isPlatformAdmin?: boolean | undefined;
2626
+ platformRole?: "super_admin" | null | undefined;
2627
+ };
2628
+ relationships?: Record<string, unknown> | undefined;
2629
+ links?: Record<string, string> | undefined;
2630
+ meta?: Record<string, unknown> | undefined;
2631
+ };
2632
+ links?: Record<string, string> | undefined;
2633
+ meta?: Record<string, unknown> | undefined;
2634
+ included?: {
2635
+ type: string;
2636
+ id: string;
2637
+ attributes?: Record<string, unknown> | undefined;
2638
+ relationships?: Record<string, unknown> | undefined;
2639
+ links?: Record<string, string> | undefined;
2640
+ meta?: Record<string, unknown> | undefined;
2641
+ }[] | undefined;
2642
+ }, {
2643
+ data: {
2644
+ type: string;
2645
+ id: string;
2646
+ attributes: {
2647
+ email: string;
2648
+ createdAt: string;
2649
+ updatedAt: string;
2650
+ name: string;
2651
+ phone: string | null;
2652
+ emailVerified: boolean;
2653
+ avatar: string | null;
2654
+ isPlatformAdmin?: boolean | undefined;
2655
+ platformRole?: "super_admin" | null | undefined;
2656
+ };
2657
+ relationships?: Record<string, unknown> | undefined;
2658
+ links?: Record<string, string> | undefined;
2659
+ meta?: Record<string, unknown> | undefined;
2660
+ };
2661
+ links?: Record<string, string> | undefined;
2662
+ meta?: Record<string, unknown> | undefined;
2663
+ included?: {
2664
+ type: string;
2665
+ id: string;
2666
+ attributes?: Record<string, unknown> | undefined;
2667
+ relationships?: Record<string, unknown> | undefined;
2668
+ links?: Record<string, string> | undefined;
2669
+ meta?: Record<string, unknown> | undefined;
2670
+ }[] | undefined;
2671
+ }>;
2672
+ 400: z.ZodObject<{
2673
+ errors: z.ZodArray<z.ZodObject<{
2674
+ id: z.ZodOptional<z.ZodString>;
2675
+ links: z.ZodOptional<z.ZodObject<{
2676
+ about: z.ZodOptional<z.ZodString>;
2677
+ }, "strip", z.ZodTypeAny, {
2678
+ about?: string | undefined;
2679
+ }, {
2680
+ about?: string | undefined;
2681
+ }>>;
2682
+ status: z.ZodOptional<z.ZodString>;
2683
+ code: z.ZodOptional<z.ZodString>;
2684
+ title: z.ZodOptional<z.ZodString>;
2685
+ detail: z.ZodOptional<z.ZodString>;
2686
+ source: z.ZodOptional<z.ZodObject<{
2687
+ pointer: z.ZodOptional<z.ZodString>;
2688
+ parameter: z.ZodOptional<z.ZodString>;
2689
+ }, "strip", z.ZodTypeAny, {
2690
+ pointer?: string | undefined;
2691
+ parameter?: string | undefined;
2692
+ }, {
2693
+ pointer?: string | undefined;
2694
+ parameter?: string | undefined;
2695
+ }>>;
2696
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2697
+ }, "strip", z.ZodTypeAny, {
2698
+ status?: string | undefined;
2699
+ code?: string | undefined;
2700
+ id?: string | undefined;
2701
+ links?: {
2702
+ about?: string | undefined;
2703
+ } | undefined;
2704
+ meta?: Record<string, unknown> | undefined;
2705
+ title?: string | undefined;
2706
+ detail?: string | undefined;
2707
+ source?: {
2708
+ pointer?: string | undefined;
2709
+ parameter?: string | undefined;
2710
+ } | undefined;
2711
+ }, {
2712
+ status?: string | undefined;
2713
+ code?: string | undefined;
2714
+ id?: string | undefined;
2715
+ links?: {
2716
+ about?: string | undefined;
2717
+ } | undefined;
2718
+ meta?: Record<string, unknown> | undefined;
2719
+ title?: string | undefined;
2720
+ detail?: string | undefined;
2721
+ source?: {
2722
+ pointer?: string | undefined;
2723
+ parameter?: string | undefined;
2724
+ } | undefined;
2725
+ }>, "many">;
2726
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2727
+ }, "strip", z.ZodTypeAny, {
2728
+ errors: {
2729
+ status?: string | undefined;
2730
+ code?: string | undefined;
2731
+ id?: string | undefined;
2732
+ links?: {
2733
+ about?: string | undefined;
2734
+ } | undefined;
2735
+ meta?: Record<string, unknown> | undefined;
2736
+ title?: string | undefined;
2737
+ detail?: string | undefined;
2738
+ source?: {
2739
+ pointer?: string | undefined;
2740
+ parameter?: string | undefined;
2741
+ } | undefined;
2742
+ }[];
2743
+ meta?: Record<string, unknown> | undefined;
2744
+ }, {
2745
+ errors: {
2746
+ status?: string | undefined;
2747
+ code?: string | undefined;
2748
+ id?: string | undefined;
2749
+ links?: {
2750
+ about?: string | undefined;
2751
+ } | undefined;
2752
+ meta?: Record<string, unknown> | undefined;
2753
+ title?: string | undefined;
2754
+ detail?: string | undefined;
2755
+ source?: {
2756
+ pointer?: string | undefined;
2757
+ parameter?: string | undefined;
2758
+ } | undefined;
2759
+ }[];
2760
+ meta?: Record<string, unknown> | undefined;
2761
+ }>;
2762
+ 401: z.ZodObject<{
2763
+ errors: z.ZodArray<z.ZodObject<{
2764
+ id: z.ZodOptional<z.ZodString>;
2765
+ links: z.ZodOptional<z.ZodObject<{
2766
+ about: z.ZodOptional<z.ZodString>;
2767
+ }, "strip", z.ZodTypeAny, {
2768
+ about?: string | undefined;
2769
+ }, {
2770
+ about?: string | undefined;
2771
+ }>>;
2772
+ status: z.ZodOptional<z.ZodString>;
2773
+ code: z.ZodOptional<z.ZodString>;
2774
+ title: z.ZodOptional<z.ZodString>;
2775
+ detail: z.ZodOptional<z.ZodString>;
2776
+ source: z.ZodOptional<z.ZodObject<{
2777
+ pointer: z.ZodOptional<z.ZodString>;
2778
+ parameter: z.ZodOptional<z.ZodString>;
2779
+ }, "strip", z.ZodTypeAny, {
2780
+ pointer?: string | undefined;
2781
+ parameter?: string | undefined;
2782
+ }, {
2783
+ pointer?: string | undefined;
2784
+ parameter?: string | undefined;
2785
+ }>>;
2786
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2787
+ }, "strip", z.ZodTypeAny, {
2788
+ status?: string | undefined;
2789
+ code?: string | undefined;
2790
+ id?: string | undefined;
2791
+ links?: {
2792
+ about?: string | undefined;
2793
+ } | undefined;
2794
+ meta?: Record<string, unknown> | undefined;
2795
+ title?: string | undefined;
2796
+ detail?: string | undefined;
2797
+ source?: {
2798
+ pointer?: string | undefined;
2799
+ parameter?: string | undefined;
2800
+ } | undefined;
2801
+ }, {
2802
+ status?: string | undefined;
2803
+ code?: string | undefined;
2804
+ id?: string | undefined;
2805
+ links?: {
2806
+ about?: string | undefined;
2807
+ } | undefined;
2808
+ meta?: Record<string, unknown> | undefined;
2809
+ title?: string | undefined;
2810
+ detail?: string | undefined;
2811
+ source?: {
2812
+ pointer?: string | undefined;
2813
+ parameter?: string | undefined;
2814
+ } | undefined;
2815
+ }>, "many">;
2816
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2817
+ }, "strip", z.ZodTypeAny, {
2818
+ errors: {
2819
+ status?: string | undefined;
2820
+ code?: string | undefined;
2821
+ id?: string | undefined;
2822
+ links?: {
2823
+ about?: string | undefined;
2824
+ } | undefined;
2825
+ meta?: Record<string, unknown> | undefined;
2826
+ title?: string | undefined;
2827
+ detail?: string | undefined;
2828
+ source?: {
2829
+ pointer?: string | undefined;
2830
+ parameter?: string | undefined;
2831
+ } | undefined;
2832
+ }[];
2833
+ meta?: Record<string, unknown> | undefined;
2834
+ }, {
2835
+ errors: {
2836
+ status?: string | undefined;
2837
+ code?: string | undefined;
2838
+ id?: string | undefined;
2839
+ links?: {
2840
+ about?: string | undefined;
2841
+ } | undefined;
2842
+ meta?: Record<string, unknown> | undefined;
2843
+ title?: string | undefined;
2844
+ detail?: string | undefined;
2845
+ source?: {
2846
+ pointer?: string | undefined;
2847
+ parameter?: string | undefined;
2848
+ } | undefined;
2849
+ }[];
2850
+ meta?: Record<string, unknown> | undefined;
2851
+ }>;
2852
+ 403: z.ZodObject<{
2853
+ errors: z.ZodArray<z.ZodObject<{
2854
+ id: z.ZodOptional<z.ZodString>;
2855
+ links: z.ZodOptional<z.ZodObject<{
2856
+ about: z.ZodOptional<z.ZodString>;
2857
+ }, "strip", z.ZodTypeAny, {
2858
+ about?: string | undefined;
2859
+ }, {
2860
+ about?: string | undefined;
2861
+ }>>;
2862
+ status: z.ZodOptional<z.ZodString>;
2863
+ code: z.ZodOptional<z.ZodString>;
2864
+ title: z.ZodOptional<z.ZodString>;
2865
+ detail: z.ZodOptional<z.ZodString>;
2866
+ source: z.ZodOptional<z.ZodObject<{
2867
+ pointer: z.ZodOptional<z.ZodString>;
2868
+ parameter: z.ZodOptional<z.ZodString>;
2869
+ }, "strip", z.ZodTypeAny, {
2870
+ pointer?: string | undefined;
2871
+ parameter?: string | undefined;
2872
+ }, {
2873
+ pointer?: string | undefined;
2874
+ parameter?: string | undefined;
2875
+ }>>;
2876
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2877
+ }, "strip", z.ZodTypeAny, {
2878
+ status?: string | undefined;
2879
+ code?: string | undefined;
2880
+ id?: string | undefined;
2881
+ links?: {
2882
+ about?: string | undefined;
2883
+ } | undefined;
2884
+ meta?: Record<string, unknown> | undefined;
2885
+ title?: string | undefined;
2886
+ detail?: string | undefined;
2887
+ source?: {
2888
+ pointer?: string | undefined;
2889
+ parameter?: string | undefined;
2890
+ } | undefined;
2891
+ }, {
2892
+ status?: string | undefined;
2893
+ code?: string | undefined;
2894
+ id?: string | undefined;
2895
+ links?: {
2896
+ about?: string | undefined;
2897
+ } | undefined;
2898
+ meta?: Record<string, unknown> | undefined;
2899
+ title?: string | undefined;
2900
+ detail?: string | undefined;
2901
+ source?: {
2902
+ pointer?: string | undefined;
2903
+ parameter?: string | undefined;
2904
+ } | undefined;
2905
+ }>, "many">;
2906
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2907
+ }, "strip", z.ZodTypeAny, {
2908
+ errors: {
2909
+ status?: string | undefined;
2910
+ code?: string | undefined;
2911
+ id?: string | undefined;
2912
+ links?: {
2913
+ about?: string | undefined;
2914
+ } | undefined;
2915
+ meta?: Record<string, unknown> | undefined;
2916
+ title?: string | undefined;
2917
+ detail?: string | undefined;
2918
+ source?: {
2919
+ pointer?: string | undefined;
2920
+ parameter?: string | undefined;
2921
+ } | undefined;
2922
+ }[];
2923
+ meta?: Record<string, unknown> | undefined;
2924
+ }, {
2925
+ errors: {
2926
+ status?: string | undefined;
2927
+ code?: string | undefined;
2928
+ id?: string | undefined;
2929
+ links?: {
2930
+ about?: string | undefined;
2931
+ } | undefined;
2932
+ meta?: Record<string, unknown> | undefined;
2933
+ title?: string | undefined;
2934
+ detail?: string | undefined;
2935
+ source?: {
2936
+ pointer?: string | undefined;
2937
+ parameter?: string | undefined;
2938
+ } | undefined;
2939
+ }[];
2940
+ meta?: Record<string, unknown> | undefined;
2941
+ }>;
2942
+ 409: z.ZodObject<{
2943
+ errors: z.ZodArray<z.ZodObject<{
2944
+ id: z.ZodOptional<z.ZodString>;
2945
+ links: z.ZodOptional<z.ZodObject<{
2946
+ about: z.ZodOptional<z.ZodString>;
2947
+ }, "strip", z.ZodTypeAny, {
2948
+ about?: string | undefined;
2949
+ }, {
2950
+ about?: string | undefined;
2951
+ }>>;
2952
+ status: z.ZodOptional<z.ZodString>;
2953
+ code: z.ZodOptional<z.ZodString>;
2954
+ title: z.ZodOptional<z.ZodString>;
2955
+ detail: z.ZodOptional<z.ZodString>;
2956
+ source: z.ZodOptional<z.ZodObject<{
2957
+ pointer: z.ZodOptional<z.ZodString>;
2958
+ parameter: z.ZodOptional<z.ZodString>;
2959
+ }, "strip", z.ZodTypeAny, {
2960
+ pointer?: string | undefined;
2961
+ parameter?: string | undefined;
2962
+ }, {
2963
+ pointer?: string | undefined;
2964
+ parameter?: string | undefined;
2965
+ }>>;
2966
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2967
+ }, "strip", z.ZodTypeAny, {
2968
+ status?: string | undefined;
2969
+ code?: string | undefined;
2970
+ id?: string | undefined;
2971
+ links?: {
2972
+ about?: string | undefined;
2973
+ } | undefined;
2974
+ meta?: Record<string, unknown> | undefined;
2975
+ title?: string | undefined;
2976
+ detail?: string | undefined;
2977
+ source?: {
2978
+ pointer?: string | undefined;
2979
+ parameter?: string | undefined;
2980
+ } | undefined;
2981
+ }, {
2982
+ status?: string | undefined;
2983
+ code?: string | undefined;
2984
+ id?: string | undefined;
2985
+ links?: {
2986
+ about?: string | undefined;
2987
+ } | undefined;
2988
+ meta?: Record<string, unknown> | undefined;
2989
+ title?: string | undefined;
2990
+ detail?: string | undefined;
2991
+ source?: {
2992
+ pointer?: string | undefined;
2993
+ parameter?: string | undefined;
2994
+ } | undefined;
2995
+ }>, "many">;
2996
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2997
+ }, "strip", z.ZodTypeAny, {
2998
+ errors: {
2999
+ status?: string | undefined;
3000
+ code?: string | undefined;
3001
+ id?: string | undefined;
3002
+ links?: {
3003
+ about?: string | undefined;
3004
+ } | undefined;
3005
+ meta?: Record<string, unknown> | undefined;
3006
+ title?: string | undefined;
3007
+ detail?: string | undefined;
3008
+ source?: {
3009
+ pointer?: string | undefined;
3010
+ parameter?: string | undefined;
3011
+ } | undefined;
3012
+ }[];
3013
+ meta?: Record<string, unknown> | undefined;
3014
+ }, {
3015
+ errors: {
3016
+ status?: string | undefined;
3017
+ code?: string | undefined;
3018
+ id?: string | undefined;
3019
+ links?: {
3020
+ about?: string | undefined;
3021
+ } | undefined;
3022
+ meta?: Record<string, unknown> | undefined;
3023
+ title?: string | undefined;
3024
+ detail?: string | undefined;
3025
+ source?: {
3026
+ pointer?: string | undefined;
3027
+ parameter?: string | undefined;
3028
+ } | undefined;
3029
+ }[];
3030
+ meta?: Record<string, unknown> | undefined;
3031
+ }>;
3032
+ 422: z.ZodObject<{
3033
+ errors: z.ZodArray<z.ZodObject<{
3034
+ id: z.ZodOptional<z.ZodString>;
3035
+ links: z.ZodOptional<z.ZodObject<{
3036
+ about: z.ZodOptional<z.ZodString>;
3037
+ }, "strip", z.ZodTypeAny, {
3038
+ about?: string | undefined;
3039
+ }, {
3040
+ about?: string | undefined;
3041
+ }>>;
3042
+ status: z.ZodOptional<z.ZodString>;
3043
+ code: z.ZodOptional<z.ZodString>;
3044
+ title: z.ZodOptional<z.ZodString>;
3045
+ detail: z.ZodOptional<z.ZodString>;
3046
+ source: z.ZodOptional<z.ZodObject<{
3047
+ pointer: z.ZodOptional<z.ZodString>;
3048
+ parameter: z.ZodOptional<z.ZodString>;
3049
+ }, "strip", z.ZodTypeAny, {
3050
+ pointer?: string | undefined;
3051
+ parameter?: string | undefined;
3052
+ }, {
3053
+ pointer?: string | undefined;
3054
+ parameter?: string | undefined;
3055
+ }>>;
3056
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3057
+ }, "strip", z.ZodTypeAny, {
3058
+ status?: string | undefined;
3059
+ code?: string | undefined;
3060
+ id?: string | undefined;
3061
+ links?: {
3062
+ about?: string | undefined;
3063
+ } | undefined;
3064
+ meta?: Record<string, unknown> | undefined;
3065
+ title?: string | undefined;
3066
+ detail?: string | undefined;
3067
+ source?: {
3068
+ pointer?: string | undefined;
3069
+ parameter?: string | undefined;
3070
+ } | undefined;
3071
+ }, {
3072
+ status?: string | undefined;
3073
+ code?: string | undefined;
3074
+ id?: string | undefined;
3075
+ links?: {
3076
+ about?: string | undefined;
3077
+ } | undefined;
3078
+ meta?: Record<string, unknown> | undefined;
3079
+ title?: string | undefined;
3080
+ detail?: string | undefined;
3081
+ source?: {
3082
+ pointer?: string | undefined;
3083
+ parameter?: string | undefined;
3084
+ } | undefined;
3085
+ }>, "many">;
3086
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3087
+ }, "strip", z.ZodTypeAny, {
3088
+ errors: {
3089
+ status?: string | undefined;
3090
+ code?: string | undefined;
3091
+ id?: string | undefined;
3092
+ links?: {
3093
+ about?: string | undefined;
3094
+ } | undefined;
3095
+ meta?: Record<string, unknown> | undefined;
3096
+ title?: string | undefined;
3097
+ detail?: string | undefined;
3098
+ source?: {
3099
+ pointer?: string | undefined;
3100
+ parameter?: string | undefined;
3101
+ } | undefined;
3102
+ }[];
3103
+ meta?: Record<string, unknown> | undefined;
3104
+ }, {
3105
+ errors: {
3106
+ status?: string | undefined;
3107
+ code?: string | undefined;
3108
+ id?: string | undefined;
3109
+ links?: {
3110
+ about?: string | undefined;
3111
+ } | undefined;
3112
+ meta?: Record<string, unknown> | undefined;
3113
+ title?: string | undefined;
3114
+ detail?: string | undefined;
3115
+ source?: {
3116
+ pointer?: string | undefined;
3117
+ parameter?: string | undefined;
3118
+ } | undefined;
3119
+ }[];
3120
+ meta?: Record<string, unknown> | undefined;
3121
+ }>;
3122
+ 500: z.ZodObject<{
3123
+ errors: z.ZodArray<z.ZodObject<{
3124
+ id: z.ZodOptional<z.ZodString>;
3125
+ links: z.ZodOptional<z.ZodObject<{
3126
+ about: z.ZodOptional<z.ZodString>;
3127
+ }, "strip", z.ZodTypeAny, {
3128
+ about?: string | undefined;
3129
+ }, {
3130
+ about?: string | undefined;
3131
+ }>>;
3132
+ status: z.ZodOptional<z.ZodString>;
3133
+ code: z.ZodOptional<z.ZodString>;
3134
+ title: z.ZodOptional<z.ZodString>;
3135
+ detail: z.ZodOptional<z.ZodString>;
3136
+ source: z.ZodOptional<z.ZodObject<{
3137
+ pointer: z.ZodOptional<z.ZodString>;
3138
+ parameter: z.ZodOptional<z.ZodString>;
3139
+ }, "strip", z.ZodTypeAny, {
3140
+ pointer?: string | undefined;
3141
+ parameter?: string | undefined;
3142
+ }, {
3143
+ pointer?: string | undefined;
3144
+ parameter?: string | undefined;
3145
+ }>>;
3146
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3147
+ }, "strip", z.ZodTypeAny, {
3148
+ status?: string | undefined;
3149
+ code?: string | undefined;
3150
+ id?: string | undefined;
3151
+ links?: {
3152
+ about?: string | undefined;
3153
+ } | undefined;
3154
+ meta?: Record<string, unknown> | undefined;
3155
+ title?: string | undefined;
3156
+ detail?: string | undefined;
3157
+ source?: {
3158
+ pointer?: string | undefined;
3159
+ parameter?: string | undefined;
3160
+ } | undefined;
3161
+ }, {
3162
+ status?: string | undefined;
3163
+ code?: string | undefined;
3164
+ id?: string | undefined;
3165
+ links?: {
3166
+ about?: string | undefined;
3167
+ } | undefined;
3168
+ meta?: Record<string, unknown> | undefined;
3169
+ title?: string | undefined;
3170
+ detail?: string | undefined;
3171
+ source?: {
3172
+ pointer?: string | undefined;
3173
+ parameter?: string | undefined;
3174
+ } | undefined;
3175
+ }>, "many">;
3176
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3177
+ }, "strip", z.ZodTypeAny, {
3178
+ errors: {
3179
+ status?: string | undefined;
3180
+ code?: string | undefined;
3181
+ id?: string | undefined;
3182
+ links?: {
3183
+ about?: string | undefined;
3184
+ } | undefined;
3185
+ meta?: Record<string, unknown> | undefined;
3186
+ title?: string | undefined;
3187
+ detail?: string | undefined;
3188
+ source?: {
3189
+ pointer?: string | undefined;
3190
+ parameter?: string | undefined;
3191
+ } | undefined;
3192
+ }[];
3193
+ meta?: Record<string, unknown> | undefined;
3194
+ }, {
3195
+ errors: {
3196
+ status?: string | undefined;
3197
+ code?: string | undefined;
3198
+ id?: string | undefined;
3199
+ links?: {
3200
+ about?: string | undefined;
3201
+ } | undefined;
3202
+ meta?: Record<string, unknown> | undefined;
3203
+ title?: string | undefined;
3204
+ detail?: string | undefined;
3205
+ source?: {
3206
+ pointer?: string | undefined;
3207
+ parameter?: string | undefined;
3208
+ } | undefined;
3209
+ }[];
3210
+ meta?: Record<string, unknown> | undefined;
3211
+ }>;
3212
+ };
3213
+ };
3214
+ resendSuperAdminInvite: {
3215
+ pathParams: z.ZodObject<{
3216
+ id: z.ZodString;
3217
+ }, "strip", z.ZodTypeAny, {
3218
+ id: string;
3219
+ }, {
3220
+ id: string;
3221
+ }>;
3222
+ summary: "Resend super admin invite email";
3223
+ method: "POST";
3224
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3225
+ path: "/admin/super-admins/:id/resend-invite";
3226
+ responses: {
3227
+ 200: z.ZodObject<{
3228
+ meta: z.ZodObject<{
3229
+ message: z.ZodString;
3230
+ }, "strip", z.ZodTypeAny, {
3231
+ message: string;
3232
+ }, {
3233
+ message: string;
3234
+ }>;
3235
+ }, "strip", z.ZodTypeAny, {
3236
+ meta: {
3237
+ message: string;
3238
+ };
3239
+ }, {
3240
+ meta: {
3241
+ message: string;
3242
+ };
3243
+ }>;
3244
+ 400: z.ZodObject<{
3245
+ errors: z.ZodArray<z.ZodObject<{
3246
+ id: z.ZodOptional<z.ZodString>;
3247
+ links: z.ZodOptional<z.ZodObject<{
3248
+ about: z.ZodOptional<z.ZodString>;
3249
+ }, "strip", z.ZodTypeAny, {
3250
+ about?: string | undefined;
3251
+ }, {
3252
+ about?: string | undefined;
3253
+ }>>;
3254
+ status: z.ZodOptional<z.ZodString>;
3255
+ code: z.ZodOptional<z.ZodString>;
3256
+ title: z.ZodOptional<z.ZodString>;
3257
+ detail: z.ZodOptional<z.ZodString>;
3258
+ source: z.ZodOptional<z.ZodObject<{
3259
+ pointer: z.ZodOptional<z.ZodString>;
3260
+ parameter: z.ZodOptional<z.ZodString>;
3261
+ }, "strip", z.ZodTypeAny, {
3262
+ pointer?: string | undefined;
3263
+ parameter?: string | undefined;
3264
+ }, {
3265
+ pointer?: string | undefined;
3266
+ parameter?: string | undefined;
3267
+ }>>;
3268
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3269
+ }, "strip", z.ZodTypeAny, {
3270
+ status?: string | undefined;
3271
+ code?: string | undefined;
3272
+ id?: string | undefined;
3273
+ links?: {
3274
+ about?: string | undefined;
3275
+ } | undefined;
3276
+ meta?: Record<string, unknown> | undefined;
3277
+ title?: string | undefined;
3278
+ detail?: string | undefined;
3279
+ source?: {
3280
+ pointer?: string | undefined;
3281
+ parameter?: string | undefined;
3282
+ } | undefined;
3283
+ }, {
3284
+ status?: string | undefined;
3285
+ code?: string | undefined;
3286
+ id?: string | undefined;
3287
+ links?: {
3288
+ about?: string | undefined;
3289
+ } | undefined;
3290
+ meta?: Record<string, unknown> | undefined;
3291
+ title?: string | undefined;
3292
+ detail?: string | undefined;
3293
+ source?: {
3294
+ pointer?: string | undefined;
3295
+ parameter?: string | undefined;
3296
+ } | undefined;
3297
+ }>, "many">;
3298
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3299
+ }, "strip", z.ZodTypeAny, {
3300
+ errors: {
3301
+ status?: string | undefined;
3302
+ code?: string | undefined;
3303
+ id?: string | undefined;
3304
+ links?: {
3305
+ about?: string | undefined;
3306
+ } | undefined;
3307
+ meta?: Record<string, unknown> | undefined;
3308
+ title?: string | undefined;
3309
+ detail?: string | undefined;
3310
+ source?: {
3311
+ pointer?: string | undefined;
3312
+ parameter?: string | undefined;
3313
+ } | undefined;
3314
+ }[];
3315
+ meta?: Record<string, unknown> | undefined;
3316
+ }, {
3317
+ errors: {
3318
+ status?: string | undefined;
3319
+ code?: string | undefined;
3320
+ id?: string | undefined;
3321
+ links?: {
3322
+ about?: string | undefined;
3323
+ } | undefined;
3324
+ meta?: Record<string, unknown> | undefined;
3325
+ title?: string | undefined;
3326
+ detail?: string | undefined;
3327
+ source?: {
3328
+ pointer?: string | undefined;
3329
+ parameter?: string | undefined;
3330
+ } | undefined;
3331
+ }[];
3332
+ meta?: Record<string, unknown> | undefined;
3333
+ }>;
3334
+ 401: z.ZodObject<{
3335
+ errors: z.ZodArray<z.ZodObject<{
3336
+ id: z.ZodOptional<z.ZodString>;
3337
+ links: z.ZodOptional<z.ZodObject<{
3338
+ about: z.ZodOptional<z.ZodString>;
3339
+ }, "strip", z.ZodTypeAny, {
3340
+ about?: string | undefined;
3341
+ }, {
3342
+ about?: string | undefined;
3343
+ }>>;
3344
+ status: z.ZodOptional<z.ZodString>;
3345
+ code: z.ZodOptional<z.ZodString>;
3346
+ title: z.ZodOptional<z.ZodString>;
3347
+ detail: z.ZodOptional<z.ZodString>;
3348
+ source: z.ZodOptional<z.ZodObject<{
3349
+ pointer: z.ZodOptional<z.ZodString>;
3350
+ parameter: z.ZodOptional<z.ZodString>;
3351
+ }, "strip", z.ZodTypeAny, {
3352
+ pointer?: string | undefined;
3353
+ parameter?: string | undefined;
3354
+ }, {
3355
+ pointer?: string | undefined;
3356
+ parameter?: string | undefined;
3357
+ }>>;
3358
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3359
+ }, "strip", z.ZodTypeAny, {
3360
+ status?: string | undefined;
3361
+ code?: string | undefined;
3362
+ id?: string | undefined;
3363
+ links?: {
3364
+ about?: string | undefined;
3365
+ } | undefined;
3366
+ meta?: Record<string, unknown> | undefined;
3367
+ title?: string | undefined;
3368
+ detail?: string | undefined;
3369
+ source?: {
3370
+ pointer?: string | undefined;
3371
+ parameter?: string | undefined;
3372
+ } | undefined;
3373
+ }, {
3374
+ status?: string | undefined;
3375
+ code?: string | undefined;
3376
+ id?: string | undefined;
3377
+ links?: {
3378
+ about?: string | undefined;
3379
+ } | undefined;
3380
+ meta?: Record<string, unknown> | undefined;
3381
+ title?: string | undefined;
3382
+ detail?: string | undefined;
3383
+ source?: {
3384
+ pointer?: string | undefined;
3385
+ parameter?: string | undefined;
3386
+ } | undefined;
3387
+ }>, "many">;
3388
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3389
+ }, "strip", z.ZodTypeAny, {
3390
+ errors: {
3391
+ status?: string | undefined;
3392
+ code?: string | undefined;
3393
+ id?: string | undefined;
3394
+ links?: {
3395
+ about?: string | undefined;
3396
+ } | undefined;
3397
+ meta?: Record<string, unknown> | undefined;
3398
+ title?: string | undefined;
3399
+ detail?: string | undefined;
3400
+ source?: {
3401
+ pointer?: string | undefined;
3402
+ parameter?: string | undefined;
3403
+ } | undefined;
3404
+ }[];
3405
+ meta?: Record<string, unknown> | undefined;
3406
+ }, {
3407
+ errors: {
3408
+ status?: string | undefined;
3409
+ code?: string | undefined;
3410
+ id?: string | undefined;
3411
+ links?: {
3412
+ about?: string | undefined;
3413
+ } | undefined;
3414
+ meta?: Record<string, unknown> | undefined;
3415
+ title?: string | undefined;
3416
+ detail?: string | undefined;
3417
+ source?: {
3418
+ pointer?: string | undefined;
3419
+ parameter?: string | undefined;
3420
+ } | undefined;
3421
+ }[];
3422
+ meta?: Record<string, unknown> | undefined;
3423
+ }>;
3424
+ 403: z.ZodObject<{
3425
+ errors: z.ZodArray<z.ZodObject<{
3426
+ id: z.ZodOptional<z.ZodString>;
3427
+ links: z.ZodOptional<z.ZodObject<{
3428
+ about: z.ZodOptional<z.ZodString>;
3429
+ }, "strip", z.ZodTypeAny, {
3430
+ about?: string | undefined;
3431
+ }, {
3432
+ about?: string | undefined;
3433
+ }>>;
3434
+ status: z.ZodOptional<z.ZodString>;
3435
+ code: z.ZodOptional<z.ZodString>;
3436
+ title: z.ZodOptional<z.ZodString>;
3437
+ detail: z.ZodOptional<z.ZodString>;
3438
+ source: z.ZodOptional<z.ZodObject<{
3439
+ pointer: z.ZodOptional<z.ZodString>;
3440
+ parameter: z.ZodOptional<z.ZodString>;
3441
+ }, "strip", z.ZodTypeAny, {
3442
+ pointer?: string | undefined;
3443
+ parameter?: string | undefined;
3444
+ }, {
3445
+ pointer?: string | undefined;
3446
+ parameter?: string | undefined;
3447
+ }>>;
3448
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3449
+ }, "strip", z.ZodTypeAny, {
3450
+ status?: string | undefined;
3451
+ code?: string | undefined;
3452
+ id?: string | undefined;
3453
+ links?: {
3454
+ about?: string | undefined;
3455
+ } | undefined;
3456
+ meta?: Record<string, unknown> | undefined;
3457
+ title?: string | undefined;
3458
+ detail?: string | undefined;
3459
+ source?: {
3460
+ pointer?: string | undefined;
3461
+ parameter?: string | undefined;
3462
+ } | undefined;
3463
+ }, {
3464
+ status?: string | undefined;
3465
+ code?: string | undefined;
3466
+ id?: string | undefined;
3467
+ links?: {
3468
+ about?: string | undefined;
3469
+ } | undefined;
3470
+ meta?: Record<string, unknown> | undefined;
3471
+ title?: string | undefined;
3472
+ detail?: string | undefined;
3473
+ source?: {
3474
+ pointer?: string | undefined;
3475
+ parameter?: string | undefined;
3476
+ } | undefined;
3477
+ }>, "many">;
3478
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3479
+ }, "strip", z.ZodTypeAny, {
3480
+ errors: {
3481
+ status?: string | undefined;
3482
+ code?: string | undefined;
3483
+ id?: string | undefined;
3484
+ links?: {
3485
+ about?: string | undefined;
3486
+ } | undefined;
3487
+ meta?: Record<string, unknown> | undefined;
3488
+ title?: string | undefined;
3489
+ detail?: string | undefined;
3490
+ source?: {
3491
+ pointer?: string | undefined;
3492
+ parameter?: string | undefined;
3493
+ } | undefined;
3494
+ }[];
3495
+ meta?: Record<string, unknown> | undefined;
3496
+ }, {
3497
+ errors: {
3498
+ status?: string | undefined;
3499
+ code?: string | undefined;
3500
+ id?: string | undefined;
3501
+ links?: {
3502
+ about?: string | undefined;
3503
+ } | undefined;
3504
+ meta?: Record<string, unknown> | undefined;
3505
+ title?: string | undefined;
3506
+ detail?: string | undefined;
3507
+ source?: {
3508
+ pointer?: string | undefined;
3509
+ parameter?: string | undefined;
3510
+ } | undefined;
3511
+ }[];
3512
+ meta?: Record<string, unknown> | undefined;
3513
+ }>;
3514
+ 404: z.ZodObject<{
3515
+ errors: z.ZodArray<z.ZodObject<{
3516
+ id: z.ZodOptional<z.ZodString>;
3517
+ links: z.ZodOptional<z.ZodObject<{
3518
+ about: z.ZodOptional<z.ZodString>;
3519
+ }, "strip", z.ZodTypeAny, {
3520
+ about?: string | undefined;
3521
+ }, {
3522
+ about?: string | undefined;
3523
+ }>>;
3524
+ status: z.ZodOptional<z.ZodString>;
3525
+ code: z.ZodOptional<z.ZodString>;
3526
+ title: z.ZodOptional<z.ZodString>;
3527
+ detail: z.ZodOptional<z.ZodString>;
3528
+ source: z.ZodOptional<z.ZodObject<{
3529
+ pointer: z.ZodOptional<z.ZodString>;
3530
+ parameter: z.ZodOptional<z.ZodString>;
3531
+ }, "strip", z.ZodTypeAny, {
3532
+ pointer?: string | undefined;
3533
+ parameter?: string | undefined;
3534
+ }, {
3535
+ pointer?: string | undefined;
3536
+ parameter?: string | undefined;
3537
+ }>>;
3538
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3539
+ }, "strip", z.ZodTypeAny, {
3540
+ status?: string | undefined;
3541
+ code?: string | undefined;
3542
+ id?: string | undefined;
3543
+ links?: {
3544
+ about?: string | undefined;
3545
+ } | undefined;
3546
+ meta?: Record<string, unknown> | undefined;
3547
+ title?: string | undefined;
3548
+ detail?: string | undefined;
3549
+ source?: {
3550
+ pointer?: string | undefined;
3551
+ parameter?: string | undefined;
3552
+ } | undefined;
3553
+ }, {
3554
+ status?: string | undefined;
3555
+ code?: string | undefined;
3556
+ id?: string | undefined;
3557
+ links?: {
3558
+ about?: string | undefined;
3559
+ } | undefined;
3560
+ meta?: Record<string, unknown> | undefined;
3561
+ title?: string | undefined;
3562
+ detail?: string | undefined;
3563
+ source?: {
3564
+ pointer?: string | undefined;
3565
+ parameter?: string | undefined;
3566
+ } | undefined;
3567
+ }>, "many">;
3568
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3569
+ }, "strip", z.ZodTypeAny, {
3570
+ errors: {
3571
+ status?: string | undefined;
3572
+ code?: string | undefined;
3573
+ id?: string | undefined;
3574
+ links?: {
3575
+ about?: string | undefined;
3576
+ } | undefined;
3577
+ meta?: Record<string, unknown> | undefined;
3578
+ title?: string | undefined;
3579
+ detail?: string | undefined;
3580
+ source?: {
3581
+ pointer?: string | undefined;
3582
+ parameter?: string | undefined;
3583
+ } | undefined;
3584
+ }[];
3585
+ meta?: Record<string, unknown> | undefined;
3586
+ }, {
3587
+ errors: {
3588
+ status?: string | undefined;
3589
+ code?: string | undefined;
3590
+ id?: string | undefined;
3591
+ links?: {
3592
+ about?: string | undefined;
3593
+ } | undefined;
3594
+ meta?: Record<string, unknown> | undefined;
3595
+ title?: string | undefined;
3596
+ detail?: string | undefined;
3597
+ source?: {
3598
+ pointer?: string | undefined;
3599
+ parameter?: string | undefined;
3600
+ } | undefined;
3601
+ }[];
3602
+ meta?: Record<string, unknown> | undefined;
3603
+ }>;
3604
+ 500: z.ZodObject<{
3605
+ errors: z.ZodArray<z.ZodObject<{
3606
+ id: z.ZodOptional<z.ZodString>;
3607
+ links: z.ZodOptional<z.ZodObject<{
3608
+ about: z.ZodOptional<z.ZodString>;
3609
+ }, "strip", z.ZodTypeAny, {
3610
+ about?: string | undefined;
3611
+ }, {
3612
+ about?: string | undefined;
3613
+ }>>;
3614
+ status: z.ZodOptional<z.ZodString>;
3615
+ code: z.ZodOptional<z.ZodString>;
3616
+ title: z.ZodOptional<z.ZodString>;
3617
+ detail: z.ZodOptional<z.ZodString>;
3618
+ source: z.ZodOptional<z.ZodObject<{
3619
+ pointer: z.ZodOptional<z.ZodString>;
3620
+ parameter: z.ZodOptional<z.ZodString>;
3621
+ }, "strip", z.ZodTypeAny, {
3622
+ pointer?: string | undefined;
3623
+ parameter?: string | undefined;
3624
+ }, {
3625
+ pointer?: string | undefined;
3626
+ parameter?: string | undefined;
3627
+ }>>;
3628
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3629
+ }, "strip", z.ZodTypeAny, {
3630
+ status?: string | undefined;
3631
+ code?: string | undefined;
3632
+ id?: string | undefined;
3633
+ links?: {
3634
+ about?: string | undefined;
3635
+ } | undefined;
3636
+ meta?: Record<string, unknown> | undefined;
3637
+ title?: string | undefined;
3638
+ detail?: string | undefined;
3639
+ source?: {
3640
+ pointer?: string | undefined;
3641
+ parameter?: string | undefined;
3642
+ } | undefined;
3643
+ }, {
3644
+ status?: string | undefined;
3645
+ code?: string | undefined;
3646
+ id?: string | undefined;
3647
+ links?: {
3648
+ about?: string | undefined;
3649
+ } | undefined;
3650
+ meta?: Record<string, unknown> | undefined;
3651
+ title?: string | undefined;
3652
+ detail?: string | undefined;
3653
+ source?: {
3654
+ pointer?: string | undefined;
3655
+ parameter?: string | undefined;
3656
+ } | undefined;
3657
+ }>, "many">;
3658
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3659
+ }, "strip", z.ZodTypeAny, {
3660
+ errors: {
3661
+ status?: string | undefined;
3662
+ code?: string | undefined;
3663
+ id?: string | undefined;
3664
+ links?: {
3665
+ about?: string | undefined;
3666
+ } | undefined;
3667
+ meta?: Record<string, unknown> | undefined;
3668
+ title?: string | undefined;
3669
+ detail?: string | undefined;
3670
+ source?: {
3671
+ pointer?: string | undefined;
3672
+ parameter?: string | undefined;
3673
+ } | undefined;
3674
+ }[];
3675
+ meta?: Record<string, unknown> | undefined;
3676
+ }, {
3677
+ errors: {
3678
+ status?: string | undefined;
3679
+ code?: string | undefined;
3680
+ id?: string | undefined;
3681
+ links?: {
3682
+ about?: string | undefined;
3683
+ } | undefined;
3684
+ meta?: Record<string, unknown> | undefined;
3685
+ title?: string | undefined;
3686
+ detail?: string | undefined;
3687
+ source?: {
3688
+ pointer?: string | undefined;
3689
+ parameter?: string | undefined;
3690
+ } | undefined;
3691
+ }[];
3692
+ meta?: Record<string, unknown> | undefined;
3693
+ }>;
3694
+ };
3695
+ };
3696
+ revokeSuperAdmin: {
3697
+ pathParams: z.ZodObject<{
3698
+ id: z.ZodString;
3699
+ }, "strip", z.ZodTypeAny, {
3700
+ id: string;
3701
+ }, {
3702
+ id: string;
3703
+ }>;
3704
+ summary: "Revoke super admin role";
3705
+ method: "DELETE";
3706
+ path: "/admin/super-admins/:id";
3707
+ responses: {
3708
+ 200: z.ZodObject<{
3709
+ meta: z.ZodObject<{
3710
+ message: z.ZodString;
3711
+ }, "strip", z.ZodTypeAny, {
3712
+ message: string;
3713
+ }, {
3714
+ message: string;
3715
+ }>;
3716
+ }, "strip", z.ZodTypeAny, {
3717
+ meta: {
3718
+ message: string;
3719
+ };
3720
+ }, {
3721
+ meta: {
3722
+ message: string;
3723
+ };
3724
+ }>;
3725
+ 400: z.ZodObject<{
3726
+ errors: z.ZodArray<z.ZodObject<{
3727
+ id: z.ZodOptional<z.ZodString>;
3728
+ links: z.ZodOptional<z.ZodObject<{
3729
+ about: z.ZodOptional<z.ZodString>;
3730
+ }, "strip", z.ZodTypeAny, {
3731
+ about?: string | undefined;
3732
+ }, {
3733
+ about?: string | undefined;
3734
+ }>>;
3735
+ status: z.ZodOptional<z.ZodString>;
3736
+ code: z.ZodOptional<z.ZodString>;
3737
+ title: z.ZodOptional<z.ZodString>;
3738
+ detail: z.ZodOptional<z.ZodString>;
3739
+ source: z.ZodOptional<z.ZodObject<{
3740
+ pointer: z.ZodOptional<z.ZodString>;
3741
+ parameter: z.ZodOptional<z.ZodString>;
3742
+ }, "strip", z.ZodTypeAny, {
3743
+ pointer?: string | undefined;
3744
+ parameter?: string | undefined;
3745
+ }, {
3746
+ pointer?: string | undefined;
3747
+ parameter?: string | undefined;
3748
+ }>>;
3749
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3750
+ }, "strip", z.ZodTypeAny, {
3751
+ status?: string | undefined;
3752
+ code?: string | undefined;
3753
+ id?: string | undefined;
3754
+ links?: {
3755
+ about?: string | undefined;
3756
+ } | undefined;
3757
+ meta?: Record<string, unknown> | undefined;
3758
+ title?: string | undefined;
3759
+ detail?: string | undefined;
3760
+ source?: {
3761
+ pointer?: string | undefined;
3762
+ parameter?: string | undefined;
3763
+ } | undefined;
3764
+ }, {
3765
+ status?: string | undefined;
3766
+ code?: string | undefined;
3767
+ id?: string | undefined;
3768
+ links?: {
3769
+ about?: string | undefined;
3770
+ } | undefined;
3771
+ meta?: Record<string, unknown> | undefined;
3772
+ title?: string | undefined;
3773
+ detail?: string | undefined;
3774
+ source?: {
3775
+ pointer?: string | undefined;
3776
+ parameter?: string | undefined;
3777
+ } | undefined;
3778
+ }>, "many">;
3779
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3780
+ }, "strip", z.ZodTypeAny, {
3781
+ errors: {
3782
+ status?: string | undefined;
3783
+ code?: string | undefined;
3784
+ id?: string | undefined;
3785
+ links?: {
3786
+ about?: string | undefined;
3787
+ } | undefined;
3788
+ meta?: Record<string, unknown> | undefined;
3789
+ title?: string | undefined;
3790
+ detail?: string | undefined;
3791
+ source?: {
3792
+ pointer?: string | undefined;
3793
+ parameter?: string | undefined;
3794
+ } | undefined;
3795
+ }[];
3796
+ meta?: Record<string, unknown> | undefined;
3797
+ }, {
3798
+ errors: {
3799
+ status?: string | undefined;
3800
+ code?: string | undefined;
3801
+ id?: string | undefined;
3802
+ links?: {
3803
+ about?: string | undefined;
3804
+ } | undefined;
3805
+ meta?: Record<string, unknown> | undefined;
3806
+ title?: string | undefined;
3807
+ detail?: string | undefined;
3808
+ source?: {
3809
+ pointer?: string | undefined;
3810
+ parameter?: string | undefined;
3811
+ } | undefined;
3812
+ }[];
3813
+ meta?: Record<string, unknown> | undefined;
3814
+ }>;
3815
+ 401: z.ZodObject<{
3816
+ errors: z.ZodArray<z.ZodObject<{
3817
+ id: z.ZodOptional<z.ZodString>;
3818
+ links: z.ZodOptional<z.ZodObject<{
3819
+ about: z.ZodOptional<z.ZodString>;
3820
+ }, "strip", z.ZodTypeAny, {
3821
+ about?: string | undefined;
3822
+ }, {
3823
+ about?: string | undefined;
3824
+ }>>;
3825
+ status: z.ZodOptional<z.ZodString>;
3826
+ code: z.ZodOptional<z.ZodString>;
3827
+ title: z.ZodOptional<z.ZodString>;
3828
+ detail: z.ZodOptional<z.ZodString>;
3829
+ source: z.ZodOptional<z.ZodObject<{
3830
+ pointer: z.ZodOptional<z.ZodString>;
3831
+ parameter: z.ZodOptional<z.ZodString>;
3832
+ }, "strip", z.ZodTypeAny, {
3833
+ pointer?: string | undefined;
3834
+ parameter?: string | undefined;
3835
+ }, {
3836
+ pointer?: string | undefined;
3837
+ parameter?: string | undefined;
3838
+ }>>;
3839
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3840
+ }, "strip", z.ZodTypeAny, {
3841
+ status?: string | undefined;
3842
+ code?: string | undefined;
3843
+ id?: string | undefined;
3844
+ links?: {
3845
+ about?: string | undefined;
3846
+ } | undefined;
3847
+ meta?: Record<string, unknown> | undefined;
3848
+ title?: string | undefined;
3849
+ detail?: string | undefined;
3850
+ source?: {
3851
+ pointer?: string | undefined;
3852
+ parameter?: string | undefined;
3853
+ } | undefined;
3854
+ }, {
3855
+ status?: string | undefined;
3856
+ code?: string | undefined;
3857
+ id?: string | undefined;
3858
+ links?: {
3859
+ about?: string | undefined;
3860
+ } | undefined;
3861
+ meta?: Record<string, unknown> | undefined;
3862
+ title?: string | undefined;
3863
+ detail?: string | undefined;
3864
+ source?: {
3865
+ pointer?: string | undefined;
3866
+ parameter?: string | undefined;
3867
+ } | undefined;
3868
+ }>, "many">;
3869
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3870
+ }, "strip", z.ZodTypeAny, {
3871
+ errors: {
3872
+ status?: string | undefined;
3873
+ code?: string | undefined;
3874
+ id?: string | undefined;
3875
+ links?: {
3876
+ about?: string | undefined;
3877
+ } | undefined;
3878
+ meta?: Record<string, unknown> | undefined;
3879
+ title?: string | undefined;
3880
+ detail?: string | undefined;
3881
+ source?: {
3882
+ pointer?: string | undefined;
3883
+ parameter?: string | undefined;
3884
+ } | undefined;
3885
+ }[];
3886
+ meta?: Record<string, unknown> | undefined;
3887
+ }, {
3888
+ errors: {
3889
+ status?: string | undefined;
3890
+ code?: string | undefined;
3891
+ id?: string | undefined;
3892
+ links?: {
3893
+ about?: string | undefined;
3894
+ } | undefined;
3895
+ meta?: Record<string, unknown> | undefined;
3896
+ title?: string | undefined;
3897
+ detail?: string | undefined;
3898
+ source?: {
3899
+ pointer?: string | undefined;
3900
+ parameter?: string | undefined;
3901
+ } | undefined;
3902
+ }[];
3903
+ meta?: Record<string, unknown> | undefined;
3904
+ }>;
3905
+ 403: z.ZodObject<{
3906
+ errors: z.ZodArray<z.ZodObject<{
3907
+ id: z.ZodOptional<z.ZodString>;
3908
+ links: z.ZodOptional<z.ZodObject<{
3909
+ about: z.ZodOptional<z.ZodString>;
3910
+ }, "strip", z.ZodTypeAny, {
3911
+ about?: string | undefined;
3912
+ }, {
3913
+ about?: string | undefined;
3914
+ }>>;
3915
+ status: z.ZodOptional<z.ZodString>;
3916
+ code: z.ZodOptional<z.ZodString>;
3917
+ title: z.ZodOptional<z.ZodString>;
3918
+ detail: z.ZodOptional<z.ZodString>;
3919
+ source: z.ZodOptional<z.ZodObject<{
3920
+ pointer: z.ZodOptional<z.ZodString>;
3921
+ parameter: z.ZodOptional<z.ZodString>;
3922
+ }, "strip", z.ZodTypeAny, {
3923
+ pointer?: string | undefined;
3924
+ parameter?: string | undefined;
3925
+ }, {
3926
+ pointer?: string | undefined;
3927
+ parameter?: string | undefined;
3928
+ }>>;
3929
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3930
+ }, "strip", z.ZodTypeAny, {
3931
+ status?: string | undefined;
3932
+ code?: string | undefined;
3933
+ id?: string | undefined;
3934
+ links?: {
3935
+ about?: string | undefined;
3936
+ } | undefined;
3937
+ meta?: Record<string, unknown> | undefined;
3938
+ title?: string | undefined;
3939
+ detail?: string | undefined;
3940
+ source?: {
3941
+ pointer?: string | undefined;
3942
+ parameter?: string | undefined;
3943
+ } | undefined;
3944
+ }, {
3945
+ status?: string | undefined;
3946
+ code?: string | undefined;
3947
+ id?: string | undefined;
3948
+ links?: {
3949
+ about?: string | undefined;
3950
+ } | undefined;
3951
+ meta?: Record<string, unknown> | undefined;
3952
+ title?: string | undefined;
3953
+ detail?: string | undefined;
3954
+ source?: {
3955
+ pointer?: string | undefined;
3956
+ parameter?: string | undefined;
3957
+ } | undefined;
3958
+ }>, "many">;
3959
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3960
+ }, "strip", z.ZodTypeAny, {
3961
+ errors: {
3962
+ status?: string | undefined;
3963
+ code?: string | undefined;
3964
+ id?: string | undefined;
3965
+ links?: {
3966
+ about?: string | undefined;
3967
+ } | undefined;
3968
+ meta?: Record<string, unknown> | undefined;
3969
+ title?: string | undefined;
3970
+ detail?: string | undefined;
3971
+ source?: {
3972
+ pointer?: string | undefined;
3973
+ parameter?: string | undefined;
3974
+ } | undefined;
3975
+ }[];
3976
+ meta?: Record<string, unknown> | undefined;
3977
+ }, {
3978
+ errors: {
3979
+ status?: string | undefined;
3980
+ code?: string | undefined;
3981
+ id?: string | undefined;
3982
+ links?: {
3983
+ about?: string | undefined;
3984
+ } | undefined;
3985
+ meta?: Record<string, unknown> | undefined;
3986
+ title?: string | undefined;
3987
+ detail?: string | undefined;
3988
+ source?: {
3989
+ pointer?: string | undefined;
3990
+ parameter?: string | undefined;
3991
+ } | undefined;
3992
+ }[];
3993
+ meta?: Record<string, unknown> | undefined;
3994
+ }>;
3995
+ 404: z.ZodObject<{
3996
+ errors: z.ZodArray<z.ZodObject<{
3997
+ id: z.ZodOptional<z.ZodString>;
3998
+ links: z.ZodOptional<z.ZodObject<{
3999
+ about: z.ZodOptional<z.ZodString>;
4000
+ }, "strip", z.ZodTypeAny, {
4001
+ about?: string | undefined;
4002
+ }, {
4003
+ about?: string | undefined;
4004
+ }>>;
4005
+ status: z.ZodOptional<z.ZodString>;
4006
+ code: z.ZodOptional<z.ZodString>;
4007
+ title: z.ZodOptional<z.ZodString>;
4008
+ detail: z.ZodOptional<z.ZodString>;
4009
+ source: z.ZodOptional<z.ZodObject<{
4010
+ pointer: z.ZodOptional<z.ZodString>;
4011
+ parameter: z.ZodOptional<z.ZodString>;
4012
+ }, "strip", z.ZodTypeAny, {
4013
+ pointer?: string | undefined;
4014
+ parameter?: string | undefined;
4015
+ }, {
4016
+ pointer?: string | undefined;
4017
+ parameter?: string | undefined;
4018
+ }>>;
4019
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4020
+ }, "strip", z.ZodTypeAny, {
4021
+ status?: string | undefined;
4022
+ code?: string | undefined;
4023
+ id?: string | undefined;
4024
+ links?: {
4025
+ about?: string | undefined;
4026
+ } | undefined;
4027
+ meta?: Record<string, unknown> | undefined;
4028
+ title?: string | undefined;
4029
+ detail?: string | undefined;
4030
+ source?: {
4031
+ pointer?: string | undefined;
4032
+ parameter?: string | undefined;
4033
+ } | undefined;
4034
+ }, {
4035
+ status?: string | undefined;
4036
+ code?: string | undefined;
4037
+ id?: string | undefined;
4038
+ links?: {
4039
+ about?: string | undefined;
4040
+ } | undefined;
4041
+ meta?: Record<string, unknown> | undefined;
4042
+ title?: string | undefined;
4043
+ detail?: string | undefined;
4044
+ source?: {
4045
+ pointer?: string | undefined;
4046
+ parameter?: string | undefined;
4047
+ } | undefined;
4048
+ }>, "many">;
4049
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4050
+ }, "strip", z.ZodTypeAny, {
4051
+ errors: {
4052
+ status?: string | undefined;
4053
+ code?: string | undefined;
4054
+ id?: string | undefined;
4055
+ links?: {
4056
+ about?: string | undefined;
4057
+ } | undefined;
4058
+ meta?: Record<string, unknown> | undefined;
4059
+ title?: string | undefined;
4060
+ detail?: string | undefined;
4061
+ source?: {
4062
+ pointer?: string | undefined;
4063
+ parameter?: string | undefined;
4064
+ } | undefined;
4065
+ }[];
4066
+ meta?: Record<string, unknown> | undefined;
4067
+ }, {
4068
+ errors: {
4069
+ status?: string | undefined;
4070
+ code?: string | undefined;
4071
+ id?: string | undefined;
4072
+ links?: {
4073
+ about?: string | undefined;
4074
+ } | undefined;
4075
+ meta?: Record<string, unknown> | undefined;
4076
+ title?: string | undefined;
4077
+ detail?: string | undefined;
4078
+ source?: {
4079
+ pointer?: string | undefined;
4080
+ parameter?: string | undefined;
4081
+ } | undefined;
4082
+ }[];
4083
+ meta?: Record<string, unknown> | undefined;
4084
+ }>;
4085
+ 500: z.ZodObject<{
4086
+ errors: z.ZodArray<z.ZodObject<{
4087
+ id: z.ZodOptional<z.ZodString>;
4088
+ links: z.ZodOptional<z.ZodObject<{
4089
+ about: z.ZodOptional<z.ZodString>;
4090
+ }, "strip", z.ZodTypeAny, {
4091
+ about?: string | undefined;
4092
+ }, {
4093
+ about?: string | undefined;
4094
+ }>>;
4095
+ status: z.ZodOptional<z.ZodString>;
4096
+ code: z.ZodOptional<z.ZodString>;
4097
+ title: z.ZodOptional<z.ZodString>;
4098
+ detail: z.ZodOptional<z.ZodString>;
4099
+ source: z.ZodOptional<z.ZodObject<{
4100
+ pointer: z.ZodOptional<z.ZodString>;
4101
+ parameter: z.ZodOptional<z.ZodString>;
4102
+ }, "strip", z.ZodTypeAny, {
4103
+ pointer?: string | undefined;
4104
+ parameter?: string | undefined;
4105
+ }, {
4106
+ pointer?: string | undefined;
4107
+ parameter?: string | undefined;
4108
+ }>>;
4109
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4110
+ }, "strip", z.ZodTypeAny, {
4111
+ status?: string | undefined;
4112
+ code?: string | undefined;
4113
+ id?: string | undefined;
4114
+ links?: {
4115
+ about?: string | undefined;
4116
+ } | undefined;
4117
+ meta?: Record<string, unknown> | undefined;
4118
+ title?: string | undefined;
4119
+ detail?: string | undefined;
4120
+ source?: {
4121
+ pointer?: string | undefined;
4122
+ parameter?: string | undefined;
4123
+ } | undefined;
4124
+ }, {
4125
+ status?: string | undefined;
4126
+ code?: string | undefined;
4127
+ id?: string | undefined;
4128
+ links?: {
4129
+ about?: string | undefined;
4130
+ } | undefined;
4131
+ meta?: Record<string, unknown> | undefined;
4132
+ title?: string | undefined;
4133
+ detail?: string | undefined;
4134
+ source?: {
4135
+ pointer?: string | undefined;
4136
+ parameter?: string | undefined;
4137
+ } | undefined;
4138
+ }>, "many">;
4139
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4140
+ }, "strip", z.ZodTypeAny, {
4141
+ errors: {
4142
+ status?: string | undefined;
4143
+ code?: string | undefined;
4144
+ id?: string | undefined;
4145
+ links?: {
4146
+ about?: string | undefined;
4147
+ } | undefined;
4148
+ meta?: Record<string, unknown> | undefined;
4149
+ title?: string | undefined;
4150
+ detail?: string | undefined;
4151
+ source?: {
4152
+ pointer?: string | undefined;
4153
+ parameter?: string | undefined;
4154
+ } | undefined;
4155
+ }[];
4156
+ meta?: Record<string, unknown> | undefined;
4157
+ }, {
4158
+ errors: {
4159
+ status?: string | undefined;
4160
+ code?: string | undefined;
4161
+ id?: string | undefined;
4162
+ links?: {
4163
+ about?: string | undefined;
4164
+ } | undefined;
4165
+ meta?: Record<string, unknown> | undefined;
4166
+ title?: string | undefined;
4167
+ detail?: string | undefined;
4168
+ source?: {
4169
+ pointer?: string | undefined;
4170
+ parameter?: string | undefined;
4171
+ } | undefined;
4172
+ }[];
4173
+ meta?: Record<string, unknown> | undefined;
4174
+ }>;
4175
+ };
4176
+ };
4177
+ listSuperAdmins: {
4178
+ query: z.ZodObject<{
4179
+ 'page[number]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4180
+ 'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4181
+ }, "strip", z.ZodTypeAny, {
4182
+ 'page[number]'?: number | undefined;
4183
+ 'page[size]'?: number | undefined;
4184
+ }, {
4185
+ 'page[number]'?: number | undefined;
4186
+ 'page[size]'?: number | undefined;
4187
+ }>;
4188
+ summary: "List super admins";
4189
+ method: "GET";
4190
+ path: "/admin/super-admins";
4191
+ responses: {
4192
+ 200: z.ZodObject<{
4193
+ data: z.ZodArray<z.ZodObject<{
4194
+ type: z.ZodLiteral<string>;
4195
+ id: z.ZodString;
4196
+ attributes: z.ZodObject<{
4197
+ name: z.ZodString;
4198
+ email: z.ZodString;
4199
+ phone: z.ZodNullable<z.ZodString>;
4200
+ emailVerified: z.ZodBoolean;
4201
+ isPlatformAdmin: z.ZodBoolean;
4202
+ platformRole: z.ZodNullable<z.ZodEnum<["super_admin"]>>;
4203
+ hasPassword: z.ZodOptional<z.ZodBoolean>;
4204
+ } & {
4205
+ createdAt: z.ZodString;
4206
+ updatedAt: z.ZodString;
4207
+ }, "strip", z.ZodTypeAny, {
4208
+ email: string;
4209
+ createdAt: string;
4210
+ updatedAt: string;
4211
+ name: string;
4212
+ phone: string | null;
4213
+ emailVerified: boolean;
4214
+ isPlatformAdmin: boolean;
4215
+ platformRole: "super_admin" | null;
4216
+ hasPassword?: boolean | undefined;
4217
+ }, {
4218
+ email: string;
4219
+ createdAt: string;
4220
+ updatedAt: string;
4221
+ name: string;
4222
+ phone: string | null;
4223
+ emailVerified: boolean;
4224
+ isPlatformAdmin: boolean;
4225
+ platformRole: "super_admin" | null;
4226
+ hasPassword?: boolean | undefined;
4227
+ }>;
4228
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4229
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4230
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4231
+ }, "strip", z.ZodTypeAny, {
4232
+ type: string;
4233
+ id: string;
4234
+ attributes: {
4235
+ email: string;
4236
+ createdAt: string;
4237
+ updatedAt: string;
4238
+ name: string;
4239
+ phone: string | null;
4240
+ emailVerified: boolean;
4241
+ isPlatformAdmin: boolean;
4242
+ platformRole: "super_admin" | null;
4243
+ hasPassword?: boolean | undefined;
4244
+ };
4245
+ relationships?: Record<string, unknown> | undefined;
4246
+ links?: Record<string, string> | undefined;
4247
+ meta?: Record<string, unknown> | undefined;
4248
+ }, {
4249
+ type: string;
4250
+ id: string;
4251
+ attributes: {
4252
+ email: string;
4253
+ createdAt: string;
4254
+ updatedAt: string;
4255
+ name: string;
4256
+ phone: string | null;
4257
+ emailVerified: boolean;
4258
+ isPlatformAdmin: boolean;
4259
+ platformRole: "super_admin" | null;
4260
+ hasPassword?: boolean | undefined;
4261
+ };
4262
+ relationships?: Record<string, unknown> | undefined;
4263
+ links?: Record<string, string> | undefined;
4264
+ meta?: Record<string, unknown> | undefined;
4265
+ }>, "many">;
4266
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
4267
+ type: z.ZodString;
4268
+ id: z.ZodString;
4269
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4270
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4271
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4272
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4273
+ }, "strip", z.ZodTypeAny, {
4274
+ type: string;
4275
+ id: string;
4276
+ attributes?: Record<string, unknown> | undefined;
4277
+ relationships?: Record<string, unknown> | undefined;
4278
+ links?: Record<string, string> | undefined;
4279
+ meta?: Record<string, unknown> | undefined;
4280
+ }, {
4281
+ type: string;
4282
+ id: string;
4283
+ attributes?: Record<string, unknown> | undefined;
4284
+ relationships?: Record<string, unknown> | undefined;
4285
+ links?: Record<string, string> | undefined;
4286
+ meta?: Record<string, unknown> | undefined;
4287
+ }>, "many">>;
4288
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4289
+ } & {
4290
+ meta: z.ZodOptional<z.ZodObject<{
4291
+ totalRecords: z.ZodNumber;
4292
+ totalPages: z.ZodNumber;
4293
+ currentPage: z.ZodNumber;
4294
+ pageSize: z.ZodNumber;
4295
+ }, "strip", z.ZodTypeAny, {
4296
+ totalRecords: number;
4297
+ totalPages: number;
4298
+ currentPage: number;
4299
+ pageSize: number;
4300
+ }, {
4301
+ totalRecords: number;
4302
+ totalPages: number;
4303
+ currentPage: number;
4304
+ pageSize: number;
4305
+ }>>;
4306
+ }, "strip", z.ZodTypeAny, {
4307
+ data: {
4308
+ type: string;
4309
+ id: string;
4310
+ attributes: {
4311
+ email: string;
4312
+ createdAt: string;
4313
+ updatedAt: string;
4314
+ name: string;
4315
+ phone: string | null;
4316
+ emailVerified: boolean;
4317
+ isPlatformAdmin: boolean;
4318
+ platformRole: "super_admin" | null;
4319
+ hasPassword?: boolean | undefined;
4320
+ };
4321
+ relationships?: Record<string, unknown> | undefined;
4322
+ links?: Record<string, string> | undefined;
4323
+ meta?: Record<string, unknown> | undefined;
4324
+ }[];
4325
+ links?: Record<string, string> | undefined;
4326
+ meta?: {
4327
+ totalRecords: number;
4328
+ totalPages: number;
4329
+ currentPage: number;
4330
+ pageSize: number;
4331
+ } | undefined;
4332
+ included?: {
4333
+ type: string;
4334
+ id: string;
4335
+ attributes?: Record<string, unknown> | undefined;
4336
+ relationships?: Record<string, unknown> | undefined;
4337
+ links?: Record<string, string> | undefined;
4338
+ meta?: Record<string, unknown> | undefined;
4339
+ }[] | undefined;
4340
+ }, {
4341
+ data: {
4342
+ type: string;
4343
+ id: string;
4344
+ attributes: {
4345
+ email: string;
4346
+ createdAt: string;
4347
+ updatedAt: string;
4348
+ name: string;
4349
+ phone: string | null;
4350
+ emailVerified: boolean;
4351
+ isPlatformAdmin: boolean;
4352
+ platformRole: "super_admin" | null;
4353
+ hasPassword?: boolean | undefined;
4354
+ };
4355
+ relationships?: Record<string, unknown> | undefined;
4356
+ links?: Record<string, string> | undefined;
4357
+ meta?: Record<string, unknown> | undefined;
4358
+ }[];
4359
+ links?: Record<string, string> | undefined;
4360
+ meta?: {
4361
+ totalRecords: number;
4362
+ totalPages: number;
4363
+ currentPage: number;
4364
+ pageSize: number;
4365
+ } | undefined;
4366
+ included?: {
4367
+ type: string;
4368
+ id: string;
4369
+ attributes?: Record<string, unknown> | undefined;
4370
+ relationships?: Record<string, unknown> | undefined;
4371
+ links?: Record<string, string> | undefined;
4372
+ meta?: Record<string, unknown> | undefined;
4373
+ }[] | undefined;
4374
+ }>;
4375
+ 401: z.ZodObject<{
4376
+ errors: z.ZodArray<z.ZodObject<{
4377
+ id: z.ZodOptional<z.ZodString>;
4378
+ links: z.ZodOptional<z.ZodObject<{
4379
+ about: z.ZodOptional<z.ZodString>;
4380
+ }, "strip", z.ZodTypeAny, {
4381
+ about?: string | undefined;
4382
+ }, {
4383
+ about?: string | undefined;
4384
+ }>>;
4385
+ status: z.ZodOptional<z.ZodString>;
4386
+ code: z.ZodOptional<z.ZodString>;
4387
+ title: z.ZodOptional<z.ZodString>;
4388
+ detail: z.ZodOptional<z.ZodString>;
4389
+ source: z.ZodOptional<z.ZodObject<{
4390
+ pointer: z.ZodOptional<z.ZodString>;
4391
+ parameter: z.ZodOptional<z.ZodString>;
4392
+ }, "strip", z.ZodTypeAny, {
4393
+ pointer?: string | undefined;
4394
+ parameter?: string | undefined;
4395
+ }, {
4396
+ pointer?: string | undefined;
4397
+ parameter?: string | undefined;
4398
+ }>>;
4399
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4400
+ }, "strip", z.ZodTypeAny, {
4401
+ status?: string | undefined;
4402
+ code?: string | undefined;
4403
+ id?: string | undefined;
4404
+ links?: {
4405
+ about?: string | undefined;
4406
+ } | undefined;
4407
+ meta?: Record<string, unknown> | undefined;
4408
+ title?: string | undefined;
4409
+ detail?: string | undefined;
4410
+ source?: {
4411
+ pointer?: string | undefined;
4412
+ parameter?: string | undefined;
4413
+ } | undefined;
4414
+ }, {
4415
+ status?: string | undefined;
4416
+ code?: string | undefined;
4417
+ id?: string | undefined;
4418
+ links?: {
4419
+ about?: string | undefined;
4420
+ } | undefined;
4421
+ meta?: Record<string, unknown> | undefined;
4422
+ title?: string | undefined;
4423
+ detail?: string | undefined;
4424
+ source?: {
4425
+ pointer?: string | undefined;
4426
+ parameter?: string | undefined;
4427
+ } | undefined;
4428
+ }>, "many">;
4429
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4430
+ }, "strip", z.ZodTypeAny, {
4431
+ errors: {
4432
+ status?: string | undefined;
4433
+ code?: string | undefined;
4434
+ id?: string | undefined;
4435
+ links?: {
4436
+ about?: string | undefined;
4437
+ } | undefined;
4438
+ meta?: Record<string, unknown> | undefined;
4439
+ title?: string | undefined;
4440
+ detail?: string | undefined;
4441
+ source?: {
4442
+ pointer?: string | undefined;
4443
+ parameter?: string | undefined;
4444
+ } | undefined;
4445
+ }[];
4446
+ meta?: Record<string, unknown> | undefined;
4447
+ }, {
4448
+ errors: {
4449
+ status?: string | undefined;
4450
+ code?: string | undefined;
4451
+ id?: string | undefined;
4452
+ links?: {
4453
+ about?: string | undefined;
4454
+ } | undefined;
4455
+ meta?: Record<string, unknown> | undefined;
4456
+ title?: string | undefined;
4457
+ detail?: string | undefined;
4458
+ source?: {
4459
+ pointer?: string | undefined;
4460
+ parameter?: string | undefined;
4461
+ } | undefined;
4462
+ }[];
4463
+ meta?: Record<string, unknown> | undefined;
4464
+ }>;
4465
+ 403: z.ZodObject<{
4466
+ errors: z.ZodArray<z.ZodObject<{
4467
+ id: z.ZodOptional<z.ZodString>;
4468
+ links: z.ZodOptional<z.ZodObject<{
4469
+ about: z.ZodOptional<z.ZodString>;
4470
+ }, "strip", z.ZodTypeAny, {
4471
+ about?: string | undefined;
4472
+ }, {
4473
+ about?: string | undefined;
4474
+ }>>;
4475
+ status: z.ZodOptional<z.ZodString>;
4476
+ code: z.ZodOptional<z.ZodString>;
4477
+ title: z.ZodOptional<z.ZodString>;
4478
+ detail: z.ZodOptional<z.ZodString>;
4479
+ source: z.ZodOptional<z.ZodObject<{
4480
+ pointer: z.ZodOptional<z.ZodString>;
4481
+ parameter: z.ZodOptional<z.ZodString>;
4482
+ }, "strip", z.ZodTypeAny, {
4483
+ pointer?: string | undefined;
4484
+ parameter?: string | undefined;
4485
+ }, {
4486
+ pointer?: string | undefined;
4487
+ parameter?: string | undefined;
4488
+ }>>;
4489
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4490
+ }, "strip", z.ZodTypeAny, {
4491
+ status?: string | undefined;
4492
+ code?: string | undefined;
4493
+ id?: string | undefined;
4494
+ links?: {
4495
+ about?: string | undefined;
4496
+ } | undefined;
4497
+ meta?: Record<string, unknown> | undefined;
4498
+ title?: string | undefined;
4499
+ detail?: string | undefined;
4500
+ source?: {
4501
+ pointer?: string | undefined;
4502
+ parameter?: string | undefined;
4503
+ } | undefined;
4504
+ }, {
4505
+ status?: string | undefined;
4506
+ code?: string | undefined;
4507
+ id?: string | undefined;
4508
+ links?: {
4509
+ about?: string | undefined;
4510
+ } | undefined;
4511
+ meta?: Record<string, unknown> | undefined;
4512
+ title?: string | undefined;
4513
+ detail?: string | undefined;
4514
+ source?: {
4515
+ pointer?: string | undefined;
4516
+ parameter?: string | undefined;
4517
+ } | undefined;
4518
+ }>, "many">;
4519
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4520
+ }, "strip", z.ZodTypeAny, {
4521
+ errors: {
4522
+ status?: string | undefined;
4523
+ code?: string | undefined;
4524
+ id?: string | undefined;
4525
+ links?: {
4526
+ about?: string | undefined;
4527
+ } | undefined;
4528
+ meta?: Record<string, unknown> | undefined;
4529
+ title?: string | undefined;
4530
+ detail?: string | undefined;
4531
+ source?: {
4532
+ pointer?: string | undefined;
4533
+ parameter?: string | undefined;
4534
+ } | undefined;
4535
+ }[];
4536
+ meta?: Record<string, unknown> | undefined;
4537
+ }, {
4538
+ errors: {
4539
+ status?: string | undefined;
4540
+ code?: string | undefined;
4541
+ id?: string | undefined;
4542
+ links?: {
4543
+ about?: string | undefined;
4544
+ } | undefined;
4545
+ meta?: Record<string, unknown> | undefined;
4546
+ title?: string | undefined;
4547
+ detail?: string | undefined;
4548
+ source?: {
4549
+ pointer?: string | undefined;
4550
+ parameter?: string | undefined;
4551
+ } | undefined;
4552
+ }[];
4553
+ meta?: Record<string, unknown> | undefined;
4554
+ }>;
4555
+ 500: z.ZodObject<{
4556
+ errors: z.ZodArray<z.ZodObject<{
4557
+ id: z.ZodOptional<z.ZodString>;
4558
+ links: z.ZodOptional<z.ZodObject<{
4559
+ about: z.ZodOptional<z.ZodString>;
4560
+ }, "strip", z.ZodTypeAny, {
4561
+ about?: string | undefined;
4562
+ }, {
4563
+ about?: string | undefined;
4564
+ }>>;
4565
+ status: z.ZodOptional<z.ZodString>;
4566
+ code: z.ZodOptional<z.ZodString>;
4567
+ title: z.ZodOptional<z.ZodString>;
4568
+ detail: z.ZodOptional<z.ZodString>;
4569
+ source: z.ZodOptional<z.ZodObject<{
4570
+ pointer: z.ZodOptional<z.ZodString>;
4571
+ parameter: z.ZodOptional<z.ZodString>;
4572
+ }, "strip", z.ZodTypeAny, {
4573
+ pointer?: string | undefined;
4574
+ parameter?: string | undefined;
4575
+ }, {
4576
+ pointer?: string | undefined;
4577
+ parameter?: string | undefined;
4578
+ }>>;
4579
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4580
+ }, "strip", z.ZodTypeAny, {
4581
+ status?: string | undefined;
4582
+ code?: string | undefined;
4583
+ id?: string | undefined;
4584
+ links?: {
4585
+ about?: string | undefined;
4586
+ } | undefined;
4587
+ meta?: Record<string, unknown> | undefined;
4588
+ title?: string | undefined;
4589
+ detail?: string | undefined;
4590
+ source?: {
4591
+ pointer?: string | undefined;
4592
+ parameter?: string | undefined;
4593
+ } | undefined;
4594
+ }, {
4595
+ status?: string | undefined;
4596
+ code?: string | undefined;
4597
+ id?: string | undefined;
4598
+ links?: {
4599
+ about?: string | undefined;
4600
+ } | undefined;
4601
+ meta?: Record<string, unknown> | undefined;
4602
+ title?: string | undefined;
4603
+ detail?: string | undefined;
4604
+ source?: {
4605
+ pointer?: string | undefined;
4606
+ parameter?: string | undefined;
4607
+ } | undefined;
4608
+ }>, "many">;
4609
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4610
+ }, "strip", z.ZodTypeAny, {
4611
+ errors: {
4612
+ status?: string | undefined;
4613
+ code?: string | undefined;
4614
+ id?: string | undefined;
4615
+ links?: {
4616
+ about?: string | undefined;
4617
+ } | undefined;
4618
+ meta?: Record<string, unknown> | undefined;
4619
+ title?: string | undefined;
4620
+ detail?: string | undefined;
4621
+ source?: {
4622
+ pointer?: string | undefined;
4623
+ parameter?: string | undefined;
4624
+ } | undefined;
4625
+ }[];
4626
+ meta?: Record<string, unknown> | undefined;
4627
+ }, {
4628
+ errors: {
4629
+ status?: string | undefined;
4630
+ code?: string | undefined;
4631
+ id?: string | undefined;
4632
+ links?: {
4633
+ about?: string | undefined;
4634
+ } | undefined;
4635
+ meta?: Record<string, unknown> | undefined;
4636
+ title?: string | undefined;
4637
+ detail?: string | undefined;
4638
+ source?: {
4639
+ pointer?: string | undefined;
4640
+ parameter?: string | undefined;
4641
+ } | undefined;
4642
+ }[];
4643
+ meta?: Record<string, unknown> | undefined;
4644
+ }>;
4645
+ };
4646
+ };
4647
+ impersonateUser: {
4648
+ pathParams: z.ZodObject<{
4649
+ id: z.ZodString;
4650
+ }, "strip", z.ZodTypeAny, {
4651
+ id: string;
4652
+ }, {
4653
+ id: string;
4654
+ }>;
4655
+ summary: "Start impersonation session as target user";
4656
+ method: "POST";
4657
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4658
+ path: "/admin/users/:id/impersonate";
4659
+ responses: {
4660
+ 201: z.ZodObject<{
4661
+ data: z.ZodObject<{
4662
+ type: z.ZodLiteral<string>;
4663
+ id: z.ZodString;
4664
+ attributes: z.ZodObject<{
4665
+ accessToken: z.ZodString;
4666
+ refreshToken: z.ZodString;
4667
+ expiresIn: z.ZodNumber;
4668
+ tokenType: z.ZodLiteral<"Bearer">;
4669
+ targetUserId: z.ZodString;
4670
+ targetName: z.ZodString;
4671
+ targetEmail: z.ZodString;
4672
+ impersonatedBy: z.ZodString;
4673
+ }, "strip", z.ZodTypeAny, {
4674
+ refreshToken: string;
4675
+ accessToken: string;
4676
+ expiresIn: number;
4677
+ tokenType: "Bearer";
4678
+ targetUserId: string;
4679
+ targetName: string;
4680
+ targetEmail: string;
4681
+ impersonatedBy: string;
4682
+ }, {
4683
+ refreshToken: string;
4684
+ accessToken: string;
4685
+ expiresIn: number;
4686
+ tokenType: "Bearer";
4687
+ targetUserId: string;
4688
+ targetName: string;
4689
+ targetEmail: string;
4690
+ impersonatedBy: string;
4691
+ }>;
4692
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4693
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4694
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4695
+ }, "strip", z.ZodTypeAny, {
4696
+ type: string;
4697
+ id: string;
4698
+ attributes: {
4699
+ refreshToken: string;
4700
+ accessToken: string;
4701
+ expiresIn: number;
4702
+ tokenType: "Bearer";
4703
+ targetUserId: string;
4704
+ targetName: string;
4705
+ targetEmail: string;
4706
+ impersonatedBy: string;
4707
+ };
4708
+ relationships?: Record<string, unknown> | undefined;
4709
+ links?: Record<string, string> | undefined;
4710
+ meta?: Record<string, unknown> | undefined;
4711
+ }, {
4712
+ type: string;
4713
+ id: string;
4714
+ attributes: {
4715
+ refreshToken: string;
4716
+ accessToken: string;
4717
+ expiresIn: number;
4718
+ tokenType: "Bearer";
4719
+ targetUserId: string;
4720
+ targetName: string;
4721
+ targetEmail: string;
4722
+ impersonatedBy: string;
4723
+ };
4724
+ relationships?: Record<string, unknown> | undefined;
4725
+ links?: Record<string, string> | undefined;
4726
+ meta?: Record<string, unknown> | undefined;
4727
+ }>;
4728
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
4729
+ type: z.ZodString;
4730
+ id: z.ZodString;
4731
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4732
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4733
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4734
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4735
+ }, "strip", z.ZodTypeAny, {
4736
+ type: string;
4737
+ id: string;
4738
+ attributes?: Record<string, unknown> | undefined;
4739
+ relationships?: Record<string, unknown> | undefined;
4740
+ links?: Record<string, string> | undefined;
4741
+ meta?: Record<string, unknown> | undefined;
4742
+ }, {
4743
+ type: string;
4744
+ id: string;
4745
+ attributes?: Record<string, unknown> | undefined;
4746
+ relationships?: Record<string, unknown> | undefined;
4747
+ links?: Record<string, string> | undefined;
4748
+ meta?: Record<string, unknown> | undefined;
4749
+ }>, "many">>;
4750
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4751
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4752
+ }, "strip", z.ZodTypeAny, {
4753
+ data: {
4754
+ type: string;
4755
+ id: string;
4756
+ attributes: {
4757
+ refreshToken: string;
4758
+ accessToken: string;
4759
+ expiresIn: number;
4760
+ tokenType: "Bearer";
4761
+ targetUserId: string;
4762
+ targetName: string;
4763
+ targetEmail: string;
4764
+ impersonatedBy: string;
4765
+ };
4766
+ relationships?: Record<string, unknown> | undefined;
4767
+ links?: Record<string, string> | undefined;
4768
+ meta?: Record<string, unknown> | undefined;
4769
+ };
4770
+ links?: Record<string, string> | undefined;
4771
+ meta?: Record<string, unknown> | undefined;
4772
+ included?: {
4773
+ type: string;
4774
+ id: string;
4775
+ attributes?: Record<string, unknown> | undefined;
4776
+ relationships?: Record<string, unknown> | undefined;
4777
+ links?: Record<string, string> | undefined;
4778
+ meta?: Record<string, unknown> | undefined;
4779
+ }[] | undefined;
4780
+ }, {
4781
+ data: {
4782
+ type: string;
4783
+ id: string;
4784
+ attributes: {
4785
+ refreshToken: string;
4786
+ accessToken: string;
4787
+ expiresIn: number;
4788
+ tokenType: "Bearer";
4789
+ targetUserId: string;
4790
+ targetName: string;
4791
+ targetEmail: string;
4792
+ impersonatedBy: string;
4793
+ };
4794
+ relationships?: Record<string, unknown> | undefined;
4795
+ links?: Record<string, string> | undefined;
4796
+ meta?: Record<string, unknown> | undefined;
4797
+ };
4798
+ links?: Record<string, string> | undefined;
4799
+ meta?: Record<string, unknown> | undefined;
4800
+ included?: {
4801
+ type: string;
4802
+ id: string;
4803
+ attributes?: Record<string, unknown> | undefined;
4804
+ relationships?: Record<string, unknown> | undefined;
4805
+ links?: Record<string, string> | undefined;
4806
+ meta?: Record<string, unknown> | undefined;
4807
+ }[] | undefined;
4808
+ }>;
4809
+ 400: z.ZodObject<{
4810
+ errors: z.ZodArray<z.ZodObject<{
4811
+ id: z.ZodOptional<z.ZodString>;
4812
+ links: z.ZodOptional<z.ZodObject<{
4813
+ about: z.ZodOptional<z.ZodString>;
4814
+ }, "strip", z.ZodTypeAny, {
4815
+ about?: string | undefined;
4816
+ }, {
4817
+ about?: string | undefined;
4818
+ }>>;
4819
+ status: z.ZodOptional<z.ZodString>;
4820
+ code: z.ZodOptional<z.ZodString>;
4821
+ title: z.ZodOptional<z.ZodString>;
4822
+ detail: z.ZodOptional<z.ZodString>;
4823
+ source: z.ZodOptional<z.ZodObject<{
4824
+ pointer: z.ZodOptional<z.ZodString>;
4825
+ parameter: z.ZodOptional<z.ZodString>;
4826
+ }, "strip", z.ZodTypeAny, {
4827
+ pointer?: string | undefined;
4828
+ parameter?: string | undefined;
4829
+ }, {
4830
+ pointer?: string | undefined;
4831
+ parameter?: string | undefined;
4832
+ }>>;
4833
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4834
+ }, "strip", z.ZodTypeAny, {
4835
+ status?: string | undefined;
4836
+ code?: string | undefined;
4837
+ id?: string | undefined;
4838
+ links?: {
4839
+ about?: string | undefined;
4840
+ } | undefined;
4841
+ meta?: Record<string, unknown> | undefined;
4842
+ title?: string | undefined;
4843
+ detail?: string | undefined;
4844
+ source?: {
4845
+ pointer?: string | undefined;
4846
+ parameter?: string | undefined;
4847
+ } | undefined;
4848
+ }, {
4849
+ status?: string | undefined;
4850
+ code?: string | undefined;
4851
+ id?: string | undefined;
4852
+ links?: {
4853
+ about?: string | undefined;
4854
+ } | undefined;
4855
+ meta?: Record<string, unknown> | undefined;
4856
+ title?: string | undefined;
4857
+ detail?: string | undefined;
4858
+ source?: {
4859
+ pointer?: string | undefined;
4860
+ parameter?: string | undefined;
4861
+ } | undefined;
4862
+ }>, "many">;
4863
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4864
+ }, "strip", z.ZodTypeAny, {
4865
+ errors: {
4866
+ status?: string | undefined;
4867
+ code?: string | undefined;
4868
+ id?: string | undefined;
4869
+ links?: {
4870
+ about?: string | undefined;
4871
+ } | undefined;
4872
+ meta?: Record<string, unknown> | undefined;
4873
+ title?: string | undefined;
4874
+ detail?: string | undefined;
4875
+ source?: {
4876
+ pointer?: string | undefined;
4877
+ parameter?: string | undefined;
4878
+ } | undefined;
4879
+ }[];
4880
+ meta?: Record<string, unknown> | undefined;
4881
+ }, {
4882
+ errors: {
4883
+ status?: string | undefined;
4884
+ code?: string | undefined;
4885
+ id?: string | undefined;
4886
+ links?: {
4887
+ about?: string | undefined;
4888
+ } | undefined;
4889
+ meta?: Record<string, unknown> | undefined;
4890
+ title?: string | undefined;
4891
+ detail?: string | undefined;
4892
+ source?: {
4893
+ pointer?: string | undefined;
4894
+ parameter?: string | undefined;
4895
+ } | undefined;
4896
+ }[];
4897
+ meta?: Record<string, unknown> | undefined;
4898
+ }>;
4899
+ 401: z.ZodObject<{
4900
+ errors: z.ZodArray<z.ZodObject<{
4901
+ id: z.ZodOptional<z.ZodString>;
4902
+ links: z.ZodOptional<z.ZodObject<{
4903
+ about: z.ZodOptional<z.ZodString>;
4904
+ }, "strip", z.ZodTypeAny, {
4905
+ about?: string | undefined;
4906
+ }, {
4907
+ about?: string | undefined;
4908
+ }>>;
4909
+ status: z.ZodOptional<z.ZodString>;
4910
+ code: z.ZodOptional<z.ZodString>;
4911
+ title: z.ZodOptional<z.ZodString>;
4912
+ detail: z.ZodOptional<z.ZodString>;
4913
+ source: z.ZodOptional<z.ZodObject<{
4914
+ pointer: z.ZodOptional<z.ZodString>;
4915
+ parameter: z.ZodOptional<z.ZodString>;
4916
+ }, "strip", z.ZodTypeAny, {
4917
+ pointer?: string | undefined;
4918
+ parameter?: string | undefined;
4919
+ }, {
4920
+ pointer?: string | undefined;
4921
+ parameter?: string | undefined;
4922
+ }>>;
4923
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4924
+ }, "strip", z.ZodTypeAny, {
4925
+ status?: string | undefined;
4926
+ code?: string | undefined;
4927
+ id?: string | undefined;
4928
+ links?: {
4929
+ about?: string | undefined;
4930
+ } | undefined;
4931
+ meta?: Record<string, unknown> | undefined;
4932
+ title?: string | undefined;
4933
+ detail?: string | undefined;
4934
+ source?: {
4935
+ pointer?: string | undefined;
4936
+ parameter?: string | undefined;
4937
+ } | undefined;
4938
+ }, {
4939
+ status?: string | undefined;
4940
+ code?: string | undefined;
4941
+ id?: string | undefined;
4942
+ links?: {
4943
+ about?: string | undefined;
4944
+ } | undefined;
4945
+ meta?: Record<string, unknown> | undefined;
4946
+ title?: string | undefined;
4947
+ detail?: string | undefined;
4948
+ source?: {
4949
+ pointer?: string | undefined;
4950
+ parameter?: string | undefined;
4951
+ } | undefined;
4952
+ }>, "many">;
4953
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4954
+ }, "strip", z.ZodTypeAny, {
4955
+ errors: {
4956
+ status?: string | undefined;
4957
+ code?: string | undefined;
4958
+ id?: string | undefined;
4959
+ links?: {
4960
+ about?: string | undefined;
4961
+ } | undefined;
4962
+ meta?: Record<string, unknown> | undefined;
4963
+ title?: string | undefined;
4964
+ detail?: string | undefined;
4965
+ source?: {
4966
+ pointer?: string | undefined;
4967
+ parameter?: string | undefined;
4968
+ } | undefined;
4969
+ }[];
4970
+ meta?: Record<string, unknown> | undefined;
4971
+ }, {
4972
+ errors: {
4973
+ status?: string | undefined;
4974
+ code?: string | undefined;
4975
+ id?: string | undefined;
4976
+ links?: {
4977
+ about?: string | undefined;
4978
+ } | undefined;
4979
+ meta?: Record<string, unknown> | undefined;
4980
+ title?: string | undefined;
4981
+ detail?: string | undefined;
4982
+ source?: {
4983
+ pointer?: string | undefined;
4984
+ parameter?: string | undefined;
4985
+ } | undefined;
4986
+ }[];
4987
+ meta?: Record<string, unknown> | undefined;
4988
+ }>;
4989
+ 403: z.ZodObject<{
4990
+ errors: z.ZodArray<z.ZodObject<{
4991
+ id: z.ZodOptional<z.ZodString>;
4992
+ links: z.ZodOptional<z.ZodObject<{
4993
+ about: z.ZodOptional<z.ZodString>;
4994
+ }, "strip", z.ZodTypeAny, {
4995
+ about?: string | undefined;
4996
+ }, {
4997
+ about?: string | undefined;
4998
+ }>>;
4999
+ status: z.ZodOptional<z.ZodString>;
5000
+ code: z.ZodOptional<z.ZodString>;
5001
+ title: z.ZodOptional<z.ZodString>;
5002
+ detail: z.ZodOptional<z.ZodString>;
5003
+ source: z.ZodOptional<z.ZodObject<{
5004
+ pointer: z.ZodOptional<z.ZodString>;
5005
+ parameter: z.ZodOptional<z.ZodString>;
5006
+ }, "strip", z.ZodTypeAny, {
5007
+ pointer?: string | undefined;
5008
+ parameter?: string | undefined;
5009
+ }, {
5010
+ pointer?: string | undefined;
5011
+ parameter?: string | undefined;
5012
+ }>>;
5013
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5014
+ }, "strip", z.ZodTypeAny, {
5015
+ status?: string | undefined;
5016
+ code?: string | undefined;
5017
+ id?: string | undefined;
5018
+ links?: {
5019
+ about?: string | undefined;
5020
+ } | undefined;
5021
+ meta?: Record<string, unknown> | undefined;
5022
+ title?: string | undefined;
5023
+ detail?: string | undefined;
5024
+ source?: {
5025
+ pointer?: string | undefined;
5026
+ parameter?: string | undefined;
5027
+ } | undefined;
5028
+ }, {
5029
+ status?: string | undefined;
5030
+ code?: string | undefined;
5031
+ id?: string | undefined;
5032
+ links?: {
5033
+ about?: string | undefined;
5034
+ } | undefined;
5035
+ meta?: Record<string, unknown> | undefined;
5036
+ title?: string | undefined;
5037
+ detail?: string | undefined;
5038
+ source?: {
5039
+ pointer?: string | undefined;
5040
+ parameter?: string | undefined;
5041
+ } | undefined;
5042
+ }>, "many">;
5043
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5044
+ }, "strip", z.ZodTypeAny, {
5045
+ errors: {
5046
+ status?: string | undefined;
5047
+ code?: string | undefined;
5048
+ id?: string | undefined;
5049
+ links?: {
5050
+ about?: string | undefined;
5051
+ } | undefined;
5052
+ meta?: Record<string, unknown> | undefined;
5053
+ title?: string | undefined;
5054
+ detail?: string | undefined;
5055
+ source?: {
5056
+ pointer?: string | undefined;
5057
+ parameter?: string | undefined;
5058
+ } | undefined;
5059
+ }[];
5060
+ meta?: Record<string, unknown> | undefined;
5061
+ }, {
5062
+ errors: {
5063
+ status?: string | undefined;
5064
+ code?: string | undefined;
5065
+ id?: string | undefined;
5066
+ links?: {
5067
+ about?: string | undefined;
5068
+ } | undefined;
5069
+ meta?: Record<string, unknown> | undefined;
5070
+ title?: string | undefined;
5071
+ detail?: string | undefined;
5072
+ source?: {
5073
+ pointer?: string | undefined;
5074
+ parameter?: string | undefined;
5075
+ } | undefined;
5076
+ }[];
5077
+ meta?: Record<string, unknown> | undefined;
5078
+ }>;
5079
+ 404: z.ZodObject<{
5080
+ errors: z.ZodArray<z.ZodObject<{
5081
+ id: z.ZodOptional<z.ZodString>;
5082
+ links: z.ZodOptional<z.ZodObject<{
5083
+ about: z.ZodOptional<z.ZodString>;
5084
+ }, "strip", z.ZodTypeAny, {
5085
+ about?: string | undefined;
5086
+ }, {
5087
+ about?: string | undefined;
5088
+ }>>;
5089
+ status: z.ZodOptional<z.ZodString>;
5090
+ code: z.ZodOptional<z.ZodString>;
5091
+ title: z.ZodOptional<z.ZodString>;
5092
+ detail: z.ZodOptional<z.ZodString>;
5093
+ source: z.ZodOptional<z.ZodObject<{
5094
+ pointer: z.ZodOptional<z.ZodString>;
5095
+ parameter: z.ZodOptional<z.ZodString>;
5096
+ }, "strip", z.ZodTypeAny, {
5097
+ pointer?: string | undefined;
5098
+ parameter?: string | undefined;
5099
+ }, {
5100
+ pointer?: string | undefined;
5101
+ parameter?: string | undefined;
5102
+ }>>;
5103
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5104
+ }, "strip", z.ZodTypeAny, {
5105
+ status?: string | undefined;
5106
+ code?: string | undefined;
5107
+ id?: string | undefined;
5108
+ links?: {
5109
+ about?: string | undefined;
5110
+ } | undefined;
5111
+ meta?: Record<string, unknown> | undefined;
5112
+ title?: string | undefined;
5113
+ detail?: string | undefined;
5114
+ source?: {
5115
+ pointer?: string | undefined;
5116
+ parameter?: string | undefined;
5117
+ } | undefined;
5118
+ }, {
5119
+ status?: string | undefined;
5120
+ code?: string | undefined;
5121
+ id?: string | undefined;
5122
+ links?: {
5123
+ about?: string | undefined;
5124
+ } | undefined;
5125
+ meta?: Record<string, unknown> | undefined;
5126
+ title?: string | undefined;
5127
+ detail?: string | undefined;
5128
+ source?: {
5129
+ pointer?: string | undefined;
5130
+ parameter?: string | undefined;
5131
+ } | undefined;
5132
+ }>, "many">;
5133
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5134
+ }, "strip", z.ZodTypeAny, {
5135
+ errors: {
5136
+ status?: string | undefined;
5137
+ code?: string | undefined;
5138
+ id?: string | undefined;
5139
+ links?: {
5140
+ about?: string | undefined;
5141
+ } | undefined;
5142
+ meta?: Record<string, unknown> | undefined;
5143
+ title?: string | undefined;
5144
+ detail?: string | undefined;
5145
+ source?: {
5146
+ pointer?: string | undefined;
5147
+ parameter?: string | undefined;
5148
+ } | undefined;
5149
+ }[];
5150
+ meta?: Record<string, unknown> | undefined;
5151
+ }, {
5152
+ errors: {
5153
+ status?: string | undefined;
5154
+ code?: string | undefined;
5155
+ id?: string | undefined;
5156
+ links?: {
5157
+ about?: string | undefined;
5158
+ } | undefined;
5159
+ meta?: Record<string, unknown> | undefined;
5160
+ title?: string | undefined;
5161
+ detail?: string | undefined;
5162
+ source?: {
5163
+ pointer?: string | undefined;
5164
+ parameter?: string | undefined;
5165
+ } | undefined;
5166
+ }[];
5167
+ meta?: Record<string, unknown> | undefined;
5168
+ }>;
5169
+ 500: z.ZodObject<{
5170
+ errors: z.ZodArray<z.ZodObject<{
5171
+ id: z.ZodOptional<z.ZodString>;
5172
+ links: z.ZodOptional<z.ZodObject<{
5173
+ about: z.ZodOptional<z.ZodString>;
5174
+ }, "strip", z.ZodTypeAny, {
5175
+ about?: string | undefined;
5176
+ }, {
5177
+ about?: string | undefined;
5178
+ }>>;
5179
+ status: z.ZodOptional<z.ZodString>;
5180
+ code: z.ZodOptional<z.ZodString>;
5181
+ title: z.ZodOptional<z.ZodString>;
5182
+ detail: z.ZodOptional<z.ZodString>;
5183
+ source: z.ZodOptional<z.ZodObject<{
5184
+ pointer: z.ZodOptional<z.ZodString>;
5185
+ parameter: z.ZodOptional<z.ZodString>;
5186
+ }, "strip", z.ZodTypeAny, {
5187
+ pointer?: string | undefined;
5188
+ parameter?: string | undefined;
5189
+ }, {
5190
+ pointer?: string | undefined;
5191
+ parameter?: string | undefined;
5192
+ }>>;
5193
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5194
+ }, "strip", z.ZodTypeAny, {
5195
+ status?: string | undefined;
5196
+ code?: string | undefined;
5197
+ id?: string | undefined;
5198
+ links?: {
5199
+ about?: string | undefined;
5200
+ } | undefined;
5201
+ meta?: Record<string, unknown> | undefined;
5202
+ title?: string | undefined;
5203
+ detail?: string | undefined;
5204
+ source?: {
5205
+ pointer?: string | undefined;
5206
+ parameter?: string | undefined;
5207
+ } | undefined;
5208
+ }, {
5209
+ status?: string | undefined;
5210
+ code?: string | undefined;
5211
+ id?: string | undefined;
5212
+ links?: {
5213
+ about?: string | undefined;
5214
+ } | undefined;
5215
+ meta?: Record<string, unknown> | undefined;
5216
+ title?: string | undefined;
5217
+ detail?: string | undefined;
5218
+ source?: {
5219
+ pointer?: string | undefined;
5220
+ parameter?: string | undefined;
5221
+ } | undefined;
5222
+ }>, "many">;
5223
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5224
+ }, "strip", z.ZodTypeAny, {
5225
+ errors: {
5226
+ status?: string | undefined;
5227
+ code?: string | undefined;
5228
+ id?: string | undefined;
5229
+ links?: {
5230
+ about?: string | undefined;
5231
+ } | undefined;
5232
+ meta?: Record<string, unknown> | undefined;
5233
+ title?: string | undefined;
5234
+ detail?: string | undefined;
5235
+ source?: {
5236
+ pointer?: string | undefined;
5237
+ parameter?: string | undefined;
5238
+ } | undefined;
5239
+ }[];
5240
+ meta?: Record<string, unknown> | undefined;
5241
+ }, {
5242
+ errors: {
5243
+ status?: string | undefined;
5244
+ code?: string | undefined;
5245
+ id?: string | undefined;
5246
+ links?: {
5247
+ about?: string | undefined;
5248
+ } | undefined;
5249
+ meta?: Record<string, unknown> | undefined;
5250
+ title?: string | undefined;
5251
+ detail?: string | undefined;
5252
+ source?: {
5253
+ pointer?: string | undefined;
5254
+ parameter?: string | undefined;
5255
+ } | undefined;
5256
+ }[];
5257
+ meta?: Record<string, unknown> | undefined;
5258
+ }>;
5259
+ };
5260
+ };
2445
5261
  sendPlatformDigest: {
2446
5262
  summary: "Send platform digest now";
2447
- description: "Send the previous-month platform digest email. Restricted to ADMIN_EMAILS.";
5263
+ description: "Send the previous-month platform digest email. Restricted to super admins.";
2448
5264
  method: "POST";
2449
5265
  body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2450
5266
  path: "/admin/platform-digest/send";