@deepintel-ltd/farmpro-contracts 1.11.3 → 1.11.5

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 +2591 -59
  2. package/dist/routes/admin.routes.d.ts.map +1 -1
  3. package/dist/routes/admin.routes.js +68 -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 +470 -84
  39. package/dist/schemas/admin.schemas.d.ts.map +1 -1
  40. package/dist/schemas/admin.schemas.js +46 -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: {
@@ -749,17 +749,20 @@ export declare const adminRouter: {
749
749
  'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
750
750
  } & {
751
751
  q: z.ZodOptional<z.ZodString>;
752
+ 'filter[platformRole]': z.ZodOptional<z.ZodEnum<["super_admin"]>>;
752
753
  }, "strip", z.ZodTypeAny, {
753
754
  'page[number]'?: number | undefined;
754
755
  'page[size]'?: number | undefined;
755
756
  q?: string | undefined;
757
+ 'filter[platformRole]'?: "super_admin" | undefined;
756
758
  }, {
757
759
  'page[number]'?: number | undefined;
758
760
  'page[size]'?: number | undefined;
759
761
  q?: string | undefined;
762
+ 'filter[platformRole]'?: "super_admin" | undefined;
760
763
  }>;
761
764
  summary: "List users (platform admin)";
762
- description: "Search and paginate platform users. Restricted to ADMIN_EMAILS.";
765
+ description: "Search and paginate platform users. Optional filter[platformRole]=super_admin. Restricted to super admins.";
763
766
  method: "GET";
764
767
  path: "/admin/users";
765
768
  responses: {
@@ -773,6 +776,8 @@ export declare const adminRouter: {
773
776
  phone: z.ZodNullable<z.ZodString>;
774
777
  emailVerified: z.ZodBoolean;
775
778
  isPlatformAdmin: z.ZodBoolean;
779
+ platformRole: z.ZodNullable<z.ZodEnum<["super_admin"]>>;
780
+ hasPassword: z.ZodOptional<z.ZodBoolean>;
776
781
  } & {
777
782
  createdAt: z.ZodString;
778
783
  updatedAt: z.ZodString;
@@ -784,6 +789,8 @@ export declare const adminRouter: {
784
789
  phone: string | null;
785
790
  emailVerified: boolean;
786
791
  isPlatformAdmin: boolean;
792
+ platformRole: "super_admin" | null;
793
+ hasPassword?: boolean | undefined;
787
794
  }, {
788
795
  email: string;
789
796
  createdAt: string;
@@ -792,6 +799,8 @@ export declare const adminRouter: {
792
799
  phone: string | null;
793
800
  emailVerified: boolean;
794
801
  isPlatformAdmin: boolean;
802
+ platformRole: "super_admin" | null;
803
+ hasPassword?: boolean | undefined;
795
804
  }>;
796
805
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
797
806
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -807,6 +816,8 @@ export declare const adminRouter: {
807
816
  phone: string | null;
808
817
  emailVerified: boolean;
809
818
  isPlatformAdmin: boolean;
819
+ platformRole: "super_admin" | null;
820
+ hasPassword?: boolean | undefined;
810
821
  };
811
822
  relationships?: Record<string, unknown> | undefined;
812
823
  links?: Record<string, string> | undefined;
@@ -822,6 +833,8 @@ export declare const adminRouter: {
822
833
  phone: string | null;
823
834
  emailVerified: boolean;
824
835
  isPlatformAdmin: boolean;
836
+ platformRole: "super_admin" | null;
837
+ hasPassword?: boolean | undefined;
825
838
  };
826
839
  relationships?: Record<string, unknown> | undefined;
827
840
  links?: Record<string, string> | undefined;
@@ -879,6 +892,8 @@ export declare const adminRouter: {
879
892
  phone: string | null;
880
893
  emailVerified: boolean;
881
894
  isPlatformAdmin: boolean;
895
+ platformRole: "super_admin" | null;
896
+ hasPassword?: boolean | undefined;
882
897
  };
883
898
  relationships?: Record<string, unknown> | undefined;
884
899
  links?: Record<string, string> | undefined;
@@ -911,6 +926,8 @@ export declare const adminRouter: {
911
926
  phone: string | null;
912
927
  emailVerified: boolean;
913
928
  isPlatformAdmin: boolean;
929
+ platformRole: "super_admin" | null;
930
+ hasPassword?: boolean | undefined;
914
931
  };
915
932
  relationships?: Record<string, unknown> | undefined;
916
933
  links?: Record<string, string> | undefined;
@@ -1206,7 +1223,7 @@ export declare const adminRouter: {
1206
1223
  };
1207
1224
  createUser: {
1208
1225
  summary: "Create user (platform admin)";
1209
- description: "Provision a platform user with email and password. Restricted to ADMIN_EMAILS.";
1226
+ description: "Provision a platform user with email and password. Restricted to super admins.";
1210
1227
  method: "POST";
1211
1228
  body: z.ZodObject<{
1212
1229
  data: z.ZodObject<{
@@ -1278,6 +1295,7 @@ export declare const adminRouter: {
1278
1295
  emailVerified: z.ZodBoolean;
1279
1296
  avatar: z.ZodNullable<z.ZodString>;
1280
1297
  isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
1298
+ platformRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["super_admin"]>>>;
1281
1299
  } & {
1282
1300
  createdAt: z.ZodString;
1283
1301
  updatedAt: z.ZodString;
@@ -1290,6 +1308,7 @@ export declare const adminRouter: {
1290
1308
  emailVerified: boolean;
1291
1309
  avatar: string | null;
1292
1310
  isPlatformAdmin?: boolean | undefined;
1311
+ platformRole?: "super_admin" | null | undefined;
1293
1312
  }, {
1294
1313
  email: string;
1295
1314
  createdAt: string;
@@ -1299,6 +1318,7 @@ export declare const adminRouter: {
1299
1318
  emailVerified: boolean;
1300
1319
  avatar: string | null;
1301
1320
  isPlatformAdmin?: boolean | undefined;
1321
+ platformRole?: "super_admin" | null | undefined;
1302
1322
  }>;
1303
1323
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1304
1324
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1315,6 +1335,7 @@ export declare const adminRouter: {
1315
1335
  emailVerified: boolean;
1316
1336
  avatar: string | null;
1317
1337
  isPlatformAdmin?: boolean | undefined;
1338
+ platformRole?: "super_admin" | null | undefined;
1318
1339
  };
1319
1340
  relationships?: Record<string, unknown> | undefined;
1320
1341
  links?: Record<string, string> | undefined;
@@ -1331,6 +1352,7 @@ export declare const adminRouter: {
1331
1352
  emailVerified: boolean;
1332
1353
  avatar: string | null;
1333
1354
  isPlatformAdmin?: boolean | undefined;
1355
+ platformRole?: "super_admin" | null | undefined;
1334
1356
  };
1335
1357
  relationships?: Record<string, unknown> | undefined;
1336
1358
  links?: Record<string, string> | undefined;
@@ -1373,6 +1395,7 @@ export declare const adminRouter: {
1373
1395
  emailVerified: boolean;
1374
1396
  avatar: string | null;
1375
1397
  isPlatformAdmin?: boolean | undefined;
1398
+ platformRole?: "super_admin" | null | undefined;
1376
1399
  };
1377
1400
  relationships?: Record<string, unknown> | undefined;
1378
1401
  links?: Record<string, string> | undefined;
@@ -1401,6 +1424,7 @@ export declare const adminRouter: {
1401
1424
  emailVerified: boolean;
1402
1425
  avatar: string | null;
1403
1426
  isPlatformAdmin?: boolean | undefined;
1427
+ platformRole?: "super_admin" | null | undefined;
1404
1428
  };
1405
1429
  relationships?: Record<string, unknown> | undefined;
1406
1430
  links?: Record<string, string> | undefined;
@@ -1959,33 +1983,97 @@ export declare const adminRouter: {
1959
1983
  }>;
1960
1984
  };
1961
1985
  };
1962
- createLoginLink: {
1963
- pathParams: z.ZodObject<{
1964
- id: z.ZodString;
1986
+ inviteUser: {
1987
+ summary: "Invite a user (no password)";
1988
+ description: "Invite by name+email. Optionally grant platformRole (e.g. super_admin). Invitee sets password via email.";
1989
+ method: "POST";
1990
+ body: z.ZodObject<{
1991
+ data: z.ZodObject<{
1992
+ type: z.ZodLiteral<"user-invites">;
1993
+ attributes: z.ZodObject<{
1994
+ name: z.ZodString;
1995
+ email: z.ZodString;
1996
+ platformRole: z.ZodDefault<z.ZodEnum<["super_admin"]>>;
1997
+ }, "strip", z.ZodTypeAny, {
1998
+ email: string;
1999
+ name: string;
2000
+ platformRole: "super_admin";
2001
+ }, {
2002
+ email: string;
2003
+ name: string;
2004
+ platformRole?: "super_admin" | undefined;
2005
+ }>;
2006
+ }, "strip", z.ZodTypeAny, {
2007
+ type: "user-invites";
2008
+ attributes: {
2009
+ email: string;
2010
+ name: string;
2011
+ platformRole: "super_admin";
2012
+ };
2013
+ }, {
2014
+ type: "user-invites";
2015
+ attributes: {
2016
+ email: string;
2017
+ name: string;
2018
+ platformRole?: "super_admin" | undefined;
2019
+ };
2020
+ }>;
1965
2021
  }, "strip", z.ZodTypeAny, {
1966
- id: string;
2022
+ data: {
2023
+ type: "user-invites";
2024
+ attributes: {
2025
+ email: string;
2026
+ name: string;
2027
+ platformRole: "super_admin";
2028
+ };
2029
+ };
1967
2030
  }, {
1968
- id: string;
2031
+ data: {
2032
+ type: "user-invites";
2033
+ attributes: {
2034
+ email: string;
2035
+ name: string;
2036
+ platformRole?: "super_admin" | undefined;
2037
+ };
2038
+ };
1969
2039
  }>;
1970
- 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.";
1972
- method: "POST";
1973
- body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1974
- path: "/admin/users/:id/login-link";
2040
+ path: "/admin/users/invites";
1975
2041
  responses: {
1976
2042
  201: z.ZodObject<{
1977
2043
  data: z.ZodObject<{
1978
2044
  type: z.ZodLiteral<string>;
1979
2045
  id: z.ZodString;
1980
2046
  attributes: z.ZodObject<{
1981
- loginUrl: z.ZodString;
1982
- expiresAt: z.ZodString;
2047
+ name: z.ZodString;
2048
+ email: z.ZodString;
2049
+ phone: z.ZodNullable<z.ZodString>;
2050
+ emailVerified: z.ZodBoolean;
2051
+ avatar: z.ZodNullable<z.ZodString>;
2052
+ isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
2053
+ platformRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["super_admin"]>>>;
2054
+ } & {
2055
+ createdAt: z.ZodString;
2056
+ updatedAt: z.ZodString;
1983
2057
  }, "strip", z.ZodTypeAny, {
1984
- loginUrl: string;
1985
- expiresAt: string;
2058
+ email: string;
2059
+ createdAt: string;
2060
+ updatedAt: string;
2061
+ name: string;
2062
+ phone: string | null;
2063
+ emailVerified: boolean;
2064
+ avatar: string | null;
2065
+ isPlatformAdmin?: boolean | undefined;
2066
+ platformRole?: "super_admin" | null | undefined;
1986
2067
  }, {
1987
- loginUrl: string;
1988
- expiresAt: string;
2068
+ email: string;
2069
+ createdAt: string;
2070
+ updatedAt: string;
2071
+ name: string;
2072
+ phone: string | null;
2073
+ emailVerified: boolean;
2074
+ avatar: string | null;
2075
+ isPlatformAdmin?: boolean | undefined;
2076
+ platformRole?: "super_admin" | null | undefined;
1989
2077
  }>;
1990
2078
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1991
2079
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1994,8 +2082,15 @@ export declare const adminRouter: {
1994
2082
  type: string;
1995
2083
  id: string;
1996
2084
  attributes: {
1997
- loginUrl: string;
1998
- expiresAt: string;
2085
+ email: string;
2086
+ createdAt: string;
2087
+ updatedAt: string;
2088
+ name: string;
2089
+ phone: string | null;
2090
+ emailVerified: boolean;
2091
+ avatar: string | null;
2092
+ isPlatformAdmin?: boolean | undefined;
2093
+ platformRole?: "super_admin" | null | undefined;
1999
2094
  };
2000
2095
  relationships?: Record<string, unknown> | undefined;
2001
2096
  links?: Record<string, string> | undefined;
@@ -2004,8 +2099,15 @@ export declare const adminRouter: {
2004
2099
  type: string;
2005
2100
  id: string;
2006
2101
  attributes: {
2007
- loginUrl: string;
2008
- expiresAt: string;
2102
+ email: string;
2103
+ createdAt: string;
2104
+ updatedAt: string;
2105
+ name: string;
2106
+ phone: string | null;
2107
+ emailVerified: boolean;
2108
+ avatar: string | null;
2109
+ isPlatformAdmin?: boolean | undefined;
2110
+ platformRole?: "super_admin" | null | undefined;
2009
2111
  };
2010
2112
  relationships?: Record<string, unknown> | undefined;
2011
2113
  links?: Record<string, string> | undefined;
@@ -2040,8 +2142,15 @@ export declare const adminRouter: {
2040
2142
  type: string;
2041
2143
  id: string;
2042
2144
  attributes: {
2043
- loginUrl: string;
2044
- expiresAt: string;
2145
+ email: string;
2146
+ createdAt: string;
2147
+ updatedAt: string;
2148
+ name: string;
2149
+ phone: string | null;
2150
+ emailVerified: boolean;
2151
+ avatar: string | null;
2152
+ isPlatformAdmin?: boolean | undefined;
2153
+ platformRole?: "super_admin" | null | undefined;
2045
2154
  };
2046
2155
  relationships?: Record<string, unknown> | undefined;
2047
2156
  links?: Record<string, string> | undefined;
@@ -2062,8 +2171,15 @@ export declare const adminRouter: {
2062
2171
  type: string;
2063
2172
  id: string;
2064
2173
  attributes: {
2065
- loginUrl: string;
2066
- expiresAt: string;
2174
+ email: string;
2175
+ createdAt: string;
2176
+ updatedAt: string;
2177
+ name: string;
2178
+ phone: string | null;
2179
+ emailVerified: boolean;
2180
+ avatar: string | null;
2181
+ isPlatformAdmin?: boolean | undefined;
2182
+ platformRole?: "super_admin" | null | undefined;
2067
2183
  };
2068
2184
  relationships?: Record<string, unknown> | undefined;
2069
2185
  links?: Record<string, string> | undefined;
@@ -2080,6 +2196,2422 @@ export declare const adminRouter: {
2080
2196
  meta?: Record<string, unknown> | undefined;
2081
2197
  }[] | undefined;
2082
2198
  }>;
2199
+ 400: z.ZodObject<{
2200
+ errors: z.ZodArray<z.ZodObject<{
2201
+ id: z.ZodOptional<z.ZodString>;
2202
+ links: z.ZodOptional<z.ZodObject<{
2203
+ about: z.ZodOptional<z.ZodString>;
2204
+ }, "strip", z.ZodTypeAny, {
2205
+ about?: string | undefined;
2206
+ }, {
2207
+ about?: string | undefined;
2208
+ }>>;
2209
+ status: z.ZodOptional<z.ZodString>;
2210
+ code: z.ZodOptional<z.ZodString>;
2211
+ title: z.ZodOptional<z.ZodString>;
2212
+ detail: z.ZodOptional<z.ZodString>;
2213
+ source: z.ZodOptional<z.ZodObject<{
2214
+ pointer: z.ZodOptional<z.ZodString>;
2215
+ parameter: z.ZodOptional<z.ZodString>;
2216
+ }, "strip", z.ZodTypeAny, {
2217
+ pointer?: string | undefined;
2218
+ parameter?: string | undefined;
2219
+ }, {
2220
+ pointer?: string | undefined;
2221
+ parameter?: string | undefined;
2222
+ }>>;
2223
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2224
+ }, "strip", z.ZodTypeAny, {
2225
+ status?: string | undefined;
2226
+ code?: string | undefined;
2227
+ id?: string | undefined;
2228
+ links?: {
2229
+ about?: string | undefined;
2230
+ } | undefined;
2231
+ meta?: Record<string, unknown> | undefined;
2232
+ title?: string | undefined;
2233
+ detail?: string | undefined;
2234
+ source?: {
2235
+ pointer?: string | undefined;
2236
+ parameter?: string | undefined;
2237
+ } | undefined;
2238
+ }, {
2239
+ status?: string | undefined;
2240
+ code?: string | undefined;
2241
+ id?: string | undefined;
2242
+ links?: {
2243
+ about?: string | undefined;
2244
+ } | undefined;
2245
+ meta?: Record<string, unknown> | undefined;
2246
+ title?: string | undefined;
2247
+ detail?: string | undefined;
2248
+ source?: {
2249
+ pointer?: string | undefined;
2250
+ parameter?: string | undefined;
2251
+ } | undefined;
2252
+ }>, "many">;
2253
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2254
+ }, "strip", z.ZodTypeAny, {
2255
+ errors: {
2256
+ status?: string | undefined;
2257
+ code?: string | undefined;
2258
+ id?: string | undefined;
2259
+ links?: {
2260
+ about?: string | undefined;
2261
+ } | undefined;
2262
+ meta?: Record<string, unknown> | undefined;
2263
+ title?: string | undefined;
2264
+ detail?: string | undefined;
2265
+ source?: {
2266
+ pointer?: string | undefined;
2267
+ parameter?: string | undefined;
2268
+ } | undefined;
2269
+ }[];
2270
+ meta?: Record<string, unknown> | undefined;
2271
+ }, {
2272
+ errors: {
2273
+ status?: string | undefined;
2274
+ code?: string | undefined;
2275
+ id?: string | undefined;
2276
+ links?: {
2277
+ about?: string | undefined;
2278
+ } | undefined;
2279
+ meta?: Record<string, unknown> | undefined;
2280
+ title?: string | undefined;
2281
+ detail?: string | undefined;
2282
+ source?: {
2283
+ pointer?: string | undefined;
2284
+ parameter?: string | undefined;
2285
+ } | undefined;
2286
+ }[];
2287
+ meta?: Record<string, unknown> | undefined;
2288
+ }>;
2289
+ 401: z.ZodObject<{
2290
+ errors: z.ZodArray<z.ZodObject<{
2291
+ id: z.ZodOptional<z.ZodString>;
2292
+ links: z.ZodOptional<z.ZodObject<{
2293
+ about: z.ZodOptional<z.ZodString>;
2294
+ }, "strip", z.ZodTypeAny, {
2295
+ about?: string | undefined;
2296
+ }, {
2297
+ about?: string | undefined;
2298
+ }>>;
2299
+ status: z.ZodOptional<z.ZodString>;
2300
+ code: z.ZodOptional<z.ZodString>;
2301
+ title: z.ZodOptional<z.ZodString>;
2302
+ detail: z.ZodOptional<z.ZodString>;
2303
+ source: z.ZodOptional<z.ZodObject<{
2304
+ pointer: z.ZodOptional<z.ZodString>;
2305
+ parameter: z.ZodOptional<z.ZodString>;
2306
+ }, "strip", z.ZodTypeAny, {
2307
+ pointer?: string | undefined;
2308
+ parameter?: string | undefined;
2309
+ }, {
2310
+ pointer?: string | undefined;
2311
+ parameter?: string | undefined;
2312
+ }>>;
2313
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2314
+ }, "strip", z.ZodTypeAny, {
2315
+ status?: string | undefined;
2316
+ code?: string | undefined;
2317
+ id?: string | undefined;
2318
+ links?: {
2319
+ about?: string | undefined;
2320
+ } | undefined;
2321
+ meta?: Record<string, unknown> | undefined;
2322
+ title?: string | undefined;
2323
+ detail?: string | undefined;
2324
+ source?: {
2325
+ pointer?: string | undefined;
2326
+ parameter?: string | undefined;
2327
+ } | undefined;
2328
+ }, {
2329
+ status?: string | undefined;
2330
+ code?: string | undefined;
2331
+ id?: string | undefined;
2332
+ links?: {
2333
+ about?: string | undefined;
2334
+ } | undefined;
2335
+ meta?: Record<string, unknown> | undefined;
2336
+ title?: string | undefined;
2337
+ detail?: string | undefined;
2338
+ source?: {
2339
+ pointer?: string | undefined;
2340
+ parameter?: string | undefined;
2341
+ } | undefined;
2342
+ }>, "many">;
2343
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2344
+ }, "strip", z.ZodTypeAny, {
2345
+ errors: {
2346
+ status?: string | undefined;
2347
+ code?: string | undefined;
2348
+ id?: string | undefined;
2349
+ links?: {
2350
+ about?: string | undefined;
2351
+ } | undefined;
2352
+ meta?: Record<string, unknown> | undefined;
2353
+ title?: string | undefined;
2354
+ detail?: string | undefined;
2355
+ source?: {
2356
+ pointer?: string | undefined;
2357
+ parameter?: string | undefined;
2358
+ } | undefined;
2359
+ }[];
2360
+ meta?: Record<string, unknown> | undefined;
2361
+ }, {
2362
+ errors: {
2363
+ status?: string | undefined;
2364
+ code?: string | undefined;
2365
+ id?: string | undefined;
2366
+ links?: {
2367
+ about?: string | undefined;
2368
+ } | undefined;
2369
+ meta?: Record<string, unknown> | undefined;
2370
+ title?: string | undefined;
2371
+ detail?: string | undefined;
2372
+ source?: {
2373
+ pointer?: string | undefined;
2374
+ parameter?: string | undefined;
2375
+ } | undefined;
2376
+ }[];
2377
+ meta?: Record<string, unknown> | undefined;
2378
+ }>;
2379
+ 403: z.ZodObject<{
2380
+ errors: z.ZodArray<z.ZodObject<{
2381
+ id: z.ZodOptional<z.ZodString>;
2382
+ links: z.ZodOptional<z.ZodObject<{
2383
+ about: z.ZodOptional<z.ZodString>;
2384
+ }, "strip", z.ZodTypeAny, {
2385
+ about?: string | undefined;
2386
+ }, {
2387
+ about?: string | undefined;
2388
+ }>>;
2389
+ status: z.ZodOptional<z.ZodString>;
2390
+ code: z.ZodOptional<z.ZodString>;
2391
+ title: z.ZodOptional<z.ZodString>;
2392
+ detail: z.ZodOptional<z.ZodString>;
2393
+ source: z.ZodOptional<z.ZodObject<{
2394
+ pointer: z.ZodOptional<z.ZodString>;
2395
+ parameter: z.ZodOptional<z.ZodString>;
2396
+ }, "strip", z.ZodTypeAny, {
2397
+ pointer?: string | undefined;
2398
+ parameter?: string | undefined;
2399
+ }, {
2400
+ pointer?: string | undefined;
2401
+ parameter?: string | undefined;
2402
+ }>>;
2403
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2404
+ }, "strip", z.ZodTypeAny, {
2405
+ status?: string | undefined;
2406
+ code?: string | undefined;
2407
+ id?: string | undefined;
2408
+ links?: {
2409
+ about?: string | undefined;
2410
+ } | undefined;
2411
+ meta?: Record<string, unknown> | undefined;
2412
+ title?: string | undefined;
2413
+ detail?: string | undefined;
2414
+ source?: {
2415
+ pointer?: string | undefined;
2416
+ parameter?: string | undefined;
2417
+ } | undefined;
2418
+ }, {
2419
+ status?: string | undefined;
2420
+ code?: string | undefined;
2421
+ id?: string | undefined;
2422
+ links?: {
2423
+ about?: string | undefined;
2424
+ } | undefined;
2425
+ meta?: Record<string, unknown> | undefined;
2426
+ title?: string | undefined;
2427
+ detail?: string | undefined;
2428
+ source?: {
2429
+ pointer?: string | undefined;
2430
+ parameter?: string | undefined;
2431
+ } | undefined;
2432
+ }>, "many">;
2433
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2434
+ }, "strip", z.ZodTypeAny, {
2435
+ errors: {
2436
+ status?: string | undefined;
2437
+ code?: string | undefined;
2438
+ id?: string | undefined;
2439
+ links?: {
2440
+ about?: string | undefined;
2441
+ } | undefined;
2442
+ meta?: Record<string, unknown> | undefined;
2443
+ title?: string | undefined;
2444
+ detail?: string | undefined;
2445
+ source?: {
2446
+ pointer?: string | undefined;
2447
+ parameter?: string | undefined;
2448
+ } | undefined;
2449
+ }[];
2450
+ meta?: Record<string, unknown> | undefined;
2451
+ }, {
2452
+ errors: {
2453
+ status?: string | undefined;
2454
+ code?: string | undefined;
2455
+ id?: string | undefined;
2456
+ links?: {
2457
+ about?: string | undefined;
2458
+ } | undefined;
2459
+ meta?: Record<string, unknown> | undefined;
2460
+ title?: string | undefined;
2461
+ detail?: string | undefined;
2462
+ source?: {
2463
+ pointer?: string | undefined;
2464
+ parameter?: string | undefined;
2465
+ } | undefined;
2466
+ }[];
2467
+ meta?: Record<string, unknown> | undefined;
2468
+ }>;
2469
+ 409: z.ZodObject<{
2470
+ errors: z.ZodArray<z.ZodObject<{
2471
+ id: z.ZodOptional<z.ZodString>;
2472
+ links: z.ZodOptional<z.ZodObject<{
2473
+ about: z.ZodOptional<z.ZodString>;
2474
+ }, "strip", z.ZodTypeAny, {
2475
+ about?: string | undefined;
2476
+ }, {
2477
+ about?: string | undefined;
2478
+ }>>;
2479
+ status: z.ZodOptional<z.ZodString>;
2480
+ code: z.ZodOptional<z.ZodString>;
2481
+ title: z.ZodOptional<z.ZodString>;
2482
+ detail: z.ZodOptional<z.ZodString>;
2483
+ source: z.ZodOptional<z.ZodObject<{
2484
+ pointer: z.ZodOptional<z.ZodString>;
2485
+ parameter: z.ZodOptional<z.ZodString>;
2486
+ }, "strip", z.ZodTypeAny, {
2487
+ pointer?: string | undefined;
2488
+ parameter?: string | undefined;
2489
+ }, {
2490
+ pointer?: string | undefined;
2491
+ parameter?: string | undefined;
2492
+ }>>;
2493
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2494
+ }, "strip", z.ZodTypeAny, {
2495
+ status?: string | undefined;
2496
+ code?: string | undefined;
2497
+ id?: string | undefined;
2498
+ links?: {
2499
+ about?: string | undefined;
2500
+ } | undefined;
2501
+ meta?: Record<string, unknown> | undefined;
2502
+ title?: string | undefined;
2503
+ detail?: string | undefined;
2504
+ source?: {
2505
+ pointer?: string | undefined;
2506
+ parameter?: string | undefined;
2507
+ } | undefined;
2508
+ }, {
2509
+ status?: string | undefined;
2510
+ code?: string | undefined;
2511
+ id?: string | undefined;
2512
+ links?: {
2513
+ about?: string | undefined;
2514
+ } | undefined;
2515
+ meta?: Record<string, unknown> | undefined;
2516
+ title?: string | undefined;
2517
+ detail?: string | undefined;
2518
+ source?: {
2519
+ pointer?: string | undefined;
2520
+ parameter?: string | undefined;
2521
+ } | undefined;
2522
+ }>, "many">;
2523
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2524
+ }, "strip", z.ZodTypeAny, {
2525
+ errors: {
2526
+ status?: string | undefined;
2527
+ code?: string | undefined;
2528
+ id?: string | undefined;
2529
+ links?: {
2530
+ about?: string | undefined;
2531
+ } | undefined;
2532
+ meta?: Record<string, unknown> | undefined;
2533
+ title?: string | undefined;
2534
+ detail?: string | undefined;
2535
+ source?: {
2536
+ pointer?: string | undefined;
2537
+ parameter?: string | undefined;
2538
+ } | undefined;
2539
+ }[];
2540
+ meta?: Record<string, unknown> | undefined;
2541
+ }, {
2542
+ errors: {
2543
+ status?: string | undefined;
2544
+ code?: string | undefined;
2545
+ id?: string | undefined;
2546
+ links?: {
2547
+ about?: string | undefined;
2548
+ } | undefined;
2549
+ meta?: Record<string, unknown> | undefined;
2550
+ title?: string | undefined;
2551
+ detail?: string | undefined;
2552
+ source?: {
2553
+ pointer?: string | undefined;
2554
+ parameter?: string | undefined;
2555
+ } | undefined;
2556
+ }[];
2557
+ meta?: Record<string, unknown> | undefined;
2558
+ }>;
2559
+ 422: z.ZodObject<{
2560
+ errors: z.ZodArray<z.ZodObject<{
2561
+ id: z.ZodOptional<z.ZodString>;
2562
+ links: z.ZodOptional<z.ZodObject<{
2563
+ about: z.ZodOptional<z.ZodString>;
2564
+ }, "strip", z.ZodTypeAny, {
2565
+ about?: string | undefined;
2566
+ }, {
2567
+ about?: string | undefined;
2568
+ }>>;
2569
+ status: z.ZodOptional<z.ZodString>;
2570
+ code: z.ZodOptional<z.ZodString>;
2571
+ title: z.ZodOptional<z.ZodString>;
2572
+ detail: z.ZodOptional<z.ZodString>;
2573
+ source: z.ZodOptional<z.ZodObject<{
2574
+ pointer: z.ZodOptional<z.ZodString>;
2575
+ parameter: z.ZodOptional<z.ZodString>;
2576
+ }, "strip", z.ZodTypeAny, {
2577
+ pointer?: string | undefined;
2578
+ parameter?: string | undefined;
2579
+ }, {
2580
+ pointer?: string | undefined;
2581
+ parameter?: string | undefined;
2582
+ }>>;
2583
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2584
+ }, "strip", z.ZodTypeAny, {
2585
+ status?: string | undefined;
2586
+ code?: string | undefined;
2587
+ id?: string | undefined;
2588
+ links?: {
2589
+ about?: string | undefined;
2590
+ } | undefined;
2591
+ meta?: Record<string, unknown> | undefined;
2592
+ title?: string | undefined;
2593
+ detail?: string | undefined;
2594
+ source?: {
2595
+ pointer?: string | undefined;
2596
+ parameter?: string | undefined;
2597
+ } | undefined;
2598
+ }, {
2599
+ status?: string | undefined;
2600
+ code?: string | undefined;
2601
+ id?: string | undefined;
2602
+ links?: {
2603
+ about?: string | undefined;
2604
+ } | undefined;
2605
+ meta?: Record<string, unknown> | undefined;
2606
+ title?: string | undefined;
2607
+ detail?: string | undefined;
2608
+ source?: {
2609
+ pointer?: string | undefined;
2610
+ parameter?: string | undefined;
2611
+ } | undefined;
2612
+ }>, "many">;
2613
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2614
+ }, "strip", z.ZodTypeAny, {
2615
+ errors: {
2616
+ status?: string | undefined;
2617
+ code?: string | undefined;
2618
+ id?: string | undefined;
2619
+ links?: {
2620
+ about?: string | undefined;
2621
+ } | undefined;
2622
+ meta?: Record<string, unknown> | undefined;
2623
+ title?: string | undefined;
2624
+ detail?: string | undefined;
2625
+ source?: {
2626
+ pointer?: string | undefined;
2627
+ parameter?: string | undefined;
2628
+ } | undefined;
2629
+ }[];
2630
+ meta?: Record<string, unknown> | undefined;
2631
+ }, {
2632
+ errors: {
2633
+ status?: string | undefined;
2634
+ code?: string | undefined;
2635
+ id?: string | undefined;
2636
+ links?: {
2637
+ about?: string | undefined;
2638
+ } | undefined;
2639
+ meta?: Record<string, unknown> | undefined;
2640
+ title?: string | undefined;
2641
+ detail?: string | undefined;
2642
+ source?: {
2643
+ pointer?: string | undefined;
2644
+ parameter?: string | undefined;
2645
+ } | undefined;
2646
+ }[];
2647
+ meta?: Record<string, unknown> | undefined;
2648
+ }>;
2649
+ 500: z.ZodObject<{
2650
+ errors: z.ZodArray<z.ZodObject<{
2651
+ id: z.ZodOptional<z.ZodString>;
2652
+ links: z.ZodOptional<z.ZodObject<{
2653
+ about: z.ZodOptional<z.ZodString>;
2654
+ }, "strip", z.ZodTypeAny, {
2655
+ about?: string | undefined;
2656
+ }, {
2657
+ about?: string | undefined;
2658
+ }>>;
2659
+ status: z.ZodOptional<z.ZodString>;
2660
+ code: z.ZodOptional<z.ZodString>;
2661
+ title: z.ZodOptional<z.ZodString>;
2662
+ detail: z.ZodOptional<z.ZodString>;
2663
+ source: z.ZodOptional<z.ZodObject<{
2664
+ pointer: z.ZodOptional<z.ZodString>;
2665
+ parameter: z.ZodOptional<z.ZodString>;
2666
+ }, "strip", z.ZodTypeAny, {
2667
+ pointer?: string | undefined;
2668
+ parameter?: string | undefined;
2669
+ }, {
2670
+ pointer?: string | undefined;
2671
+ parameter?: string | undefined;
2672
+ }>>;
2673
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2674
+ }, "strip", z.ZodTypeAny, {
2675
+ status?: string | undefined;
2676
+ code?: string | undefined;
2677
+ id?: string | undefined;
2678
+ links?: {
2679
+ about?: string | undefined;
2680
+ } | undefined;
2681
+ meta?: Record<string, unknown> | undefined;
2682
+ title?: string | undefined;
2683
+ detail?: string | undefined;
2684
+ source?: {
2685
+ pointer?: string | undefined;
2686
+ parameter?: string | undefined;
2687
+ } | undefined;
2688
+ }, {
2689
+ status?: string | undefined;
2690
+ code?: string | undefined;
2691
+ id?: string | undefined;
2692
+ links?: {
2693
+ about?: string | undefined;
2694
+ } | undefined;
2695
+ meta?: Record<string, unknown> | undefined;
2696
+ title?: string | undefined;
2697
+ detail?: string | undefined;
2698
+ source?: {
2699
+ pointer?: string | undefined;
2700
+ parameter?: string | undefined;
2701
+ } | undefined;
2702
+ }>, "many">;
2703
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2704
+ }, "strip", z.ZodTypeAny, {
2705
+ errors: {
2706
+ status?: string | undefined;
2707
+ code?: string | undefined;
2708
+ id?: string | undefined;
2709
+ links?: {
2710
+ about?: string | undefined;
2711
+ } | undefined;
2712
+ meta?: Record<string, unknown> | undefined;
2713
+ title?: string | undefined;
2714
+ detail?: string | undefined;
2715
+ source?: {
2716
+ pointer?: string | undefined;
2717
+ parameter?: string | undefined;
2718
+ } | undefined;
2719
+ }[];
2720
+ meta?: Record<string, unknown> | undefined;
2721
+ }, {
2722
+ errors: {
2723
+ status?: string | undefined;
2724
+ code?: string | undefined;
2725
+ id?: string | undefined;
2726
+ links?: {
2727
+ about?: string | undefined;
2728
+ } | undefined;
2729
+ meta?: Record<string, unknown> | undefined;
2730
+ title?: string | undefined;
2731
+ detail?: string | undefined;
2732
+ source?: {
2733
+ pointer?: string | undefined;
2734
+ parameter?: string | undefined;
2735
+ } | undefined;
2736
+ }[];
2737
+ meta?: Record<string, unknown> | undefined;
2738
+ }>;
2739
+ };
2740
+ };
2741
+ resendInvite: {
2742
+ pathParams: z.ZodObject<{
2743
+ id: z.ZodString;
2744
+ }, "strip", z.ZodTypeAny, {
2745
+ id: string;
2746
+ }, {
2747
+ id: string;
2748
+ }>;
2749
+ summary: "Resend pending invite email";
2750
+ method: "POST";
2751
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2752
+ path: "/admin/users/:id/resend-invite";
2753
+ responses: {
2754
+ 200: z.ZodObject<{
2755
+ meta: z.ZodObject<{
2756
+ message: z.ZodString;
2757
+ }, "strip", z.ZodTypeAny, {
2758
+ message: string;
2759
+ }, {
2760
+ message: string;
2761
+ }>;
2762
+ }, "strip", z.ZodTypeAny, {
2763
+ meta: {
2764
+ message: string;
2765
+ };
2766
+ }, {
2767
+ meta: {
2768
+ message: string;
2769
+ };
2770
+ }>;
2771
+ 400: z.ZodObject<{
2772
+ errors: z.ZodArray<z.ZodObject<{
2773
+ id: z.ZodOptional<z.ZodString>;
2774
+ links: z.ZodOptional<z.ZodObject<{
2775
+ about: z.ZodOptional<z.ZodString>;
2776
+ }, "strip", z.ZodTypeAny, {
2777
+ about?: string | undefined;
2778
+ }, {
2779
+ about?: string | undefined;
2780
+ }>>;
2781
+ status: z.ZodOptional<z.ZodString>;
2782
+ code: z.ZodOptional<z.ZodString>;
2783
+ title: z.ZodOptional<z.ZodString>;
2784
+ detail: z.ZodOptional<z.ZodString>;
2785
+ source: z.ZodOptional<z.ZodObject<{
2786
+ pointer: z.ZodOptional<z.ZodString>;
2787
+ parameter: z.ZodOptional<z.ZodString>;
2788
+ }, "strip", z.ZodTypeAny, {
2789
+ pointer?: string | undefined;
2790
+ parameter?: string | undefined;
2791
+ }, {
2792
+ pointer?: string | undefined;
2793
+ parameter?: string | undefined;
2794
+ }>>;
2795
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2796
+ }, "strip", z.ZodTypeAny, {
2797
+ status?: string | undefined;
2798
+ code?: string | undefined;
2799
+ id?: string | undefined;
2800
+ links?: {
2801
+ about?: string | undefined;
2802
+ } | undefined;
2803
+ meta?: Record<string, unknown> | undefined;
2804
+ title?: string | undefined;
2805
+ detail?: string | undefined;
2806
+ source?: {
2807
+ pointer?: string | undefined;
2808
+ parameter?: string | undefined;
2809
+ } | undefined;
2810
+ }, {
2811
+ status?: string | undefined;
2812
+ code?: string | undefined;
2813
+ id?: string | undefined;
2814
+ links?: {
2815
+ about?: string | undefined;
2816
+ } | undefined;
2817
+ meta?: Record<string, unknown> | undefined;
2818
+ title?: string | undefined;
2819
+ detail?: string | undefined;
2820
+ source?: {
2821
+ pointer?: string | undefined;
2822
+ parameter?: string | undefined;
2823
+ } | undefined;
2824
+ }>, "many">;
2825
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2826
+ }, "strip", z.ZodTypeAny, {
2827
+ errors: {
2828
+ status?: string | undefined;
2829
+ code?: string | undefined;
2830
+ id?: string | undefined;
2831
+ links?: {
2832
+ about?: string | undefined;
2833
+ } | undefined;
2834
+ meta?: Record<string, unknown> | undefined;
2835
+ title?: string | undefined;
2836
+ detail?: string | undefined;
2837
+ source?: {
2838
+ pointer?: string | undefined;
2839
+ parameter?: string | undefined;
2840
+ } | undefined;
2841
+ }[];
2842
+ meta?: Record<string, unknown> | undefined;
2843
+ }, {
2844
+ errors: {
2845
+ status?: string | undefined;
2846
+ code?: string | undefined;
2847
+ id?: string | undefined;
2848
+ links?: {
2849
+ about?: string | undefined;
2850
+ } | undefined;
2851
+ meta?: Record<string, unknown> | undefined;
2852
+ title?: string | undefined;
2853
+ detail?: string | undefined;
2854
+ source?: {
2855
+ pointer?: string | undefined;
2856
+ parameter?: string | undefined;
2857
+ } | undefined;
2858
+ }[];
2859
+ meta?: Record<string, unknown> | undefined;
2860
+ }>;
2861
+ 401: z.ZodObject<{
2862
+ errors: z.ZodArray<z.ZodObject<{
2863
+ id: z.ZodOptional<z.ZodString>;
2864
+ links: z.ZodOptional<z.ZodObject<{
2865
+ about: z.ZodOptional<z.ZodString>;
2866
+ }, "strip", z.ZodTypeAny, {
2867
+ about?: string | undefined;
2868
+ }, {
2869
+ about?: string | undefined;
2870
+ }>>;
2871
+ status: z.ZodOptional<z.ZodString>;
2872
+ code: z.ZodOptional<z.ZodString>;
2873
+ title: z.ZodOptional<z.ZodString>;
2874
+ detail: z.ZodOptional<z.ZodString>;
2875
+ source: z.ZodOptional<z.ZodObject<{
2876
+ pointer: z.ZodOptional<z.ZodString>;
2877
+ parameter: z.ZodOptional<z.ZodString>;
2878
+ }, "strip", z.ZodTypeAny, {
2879
+ pointer?: string | undefined;
2880
+ parameter?: string | undefined;
2881
+ }, {
2882
+ pointer?: string | undefined;
2883
+ parameter?: string | undefined;
2884
+ }>>;
2885
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2886
+ }, "strip", z.ZodTypeAny, {
2887
+ status?: string | undefined;
2888
+ code?: string | undefined;
2889
+ id?: string | undefined;
2890
+ links?: {
2891
+ about?: string | undefined;
2892
+ } | undefined;
2893
+ meta?: Record<string, unknown> | undefined;
2894
+ title?: string | undefined;
2895
+ detail?: string | undefined;
2896
+ source?: {
2897
+ pointer?: string | undefined;
2898
+ parameter?: string | undefined;
2899
+ } | undefined;
2900
+ }, {
2901
+ status?: string | undefined;
2902
+ code?: string | undefined;
2903
+ id?: string | undefined;
2904
+ links?: {
2905
+ about?: string | undefined;
2906
+ } | undefined;
2907
+ meta?: Record<string, unknown> | undefined;
2908
+ title?: string | undefined;
2909
+ detail?: string | undefined;
2910
+ source?: {
2911
+ pointer?: string | undefined;
2912
+ parameter?: string | undefined;
2913
+ } | undefined;
2914
+ }>, "many">;
2915
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2916
+ }, "strip", z.ZodTypeAny, {
2917
+ errors: {
2918
+ status?: string | undefined;
2919
+ code?: string | undefined;
2920
+ id?: string | undefined;
2921
+ links?: {
2922
+ about?: string | undefined;
2923
+ } | undefined;
2924
+ meta?: Record<string, unknown> | undefined;
2925
+ title?: string | undefined;
2926
+ detail?: string | undefined;
2927
+ source?: {
2928
+ pointer?: string | undefined;
2929
+ parameter?: string | undefined;
2930
+ } | undefined;
2931
+ }[];
2932
+ meta?: Record<string, unknown> | undefined;
2933
+ }, {
2934
+ errors: {
2935
+ status?: string | undefined;
2936
+ code?: string | undefined;
2937
+ id?: string | undefined;
2938
+ links?: {
2939
+ about?: string | undefined;
2940
+ } | undefined;
2941
+ meta?: Record<string, unknown> | undefined;
2942
+ title?: string | undefined;
2943
+ detail?: string | undefined;
2944
+ source?: {
2945
+ pointer?: string | undefined;
2946
+ parameter?: string | undefined;
2947
+ } | undefined;
2948
+ }[];
2949
+ meta?: Record<string, unknown> | undefined;
2950
+ }>;
2951
+ 403: z.ZodObject<{
2952
+ errors: z.ZodArray<z.ZodObject<{
2953
+ id: z.ZodOptional<z.ZodString>;
2954
+ links: z.ZodOptional<z.ZodObject<{
2955
+ about: z.ZodOptional<z.ZodString>;
2956
+ }, "strip", z.ZodTypeAny, {
2957
+ about?: string | undefined;
2958
+ }, {
2959
+ about?: string | undefined;
2960
+ }>>;
2961
+ status: z.ZodOptional<z.ZodString>;
2962
+ code: z.ZodOptional<z.ZodString>;
2963
+ title: z.ZodOptional<z.ZodString>;
2964
+ detail: z.ZodOptional<z.ZodString>;
2965
+ source: z.ZodOptional<z.ZodObject<{
2966
+ pointer: z.ZodOptional<z.ZodString>;
2967
+ parameter: z.ZodOptional<z.ZodString>;
2968
+ }, "strip", z.ZodTypeAny, {
2969
+ pointer?: string | undefined;
2970
+ parameter?: string | undefined;
2971
+ }, {
2972
+ pointer?: string | undefined;
2973
+ parameter?: string | undefined;
2974
+ }>>;
2975
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2976
+ }, "strip", z.ZodTypeAny, {
2977
+ status?: string | undefined;
2978
+ code?: string | undefined;
2979
+ id?: string | undefined;
2980
+ links?: {
2981
+ about?: string | undefined;
2982
+ } | undefined;
2983
+ meta?: Record<string, unknown> | undefined;
2984
+ title?: string | undefined;
2985
+ detail?: string | undefined;
2986
+ source?: {
2987
+ pointer?: string | undefined;
2988
+ parameter?: string | undefined;
2989
+ } | undefined;
2990
+ }, {
2991
+ status?: string | undefined;
2992
+ code?: string | undefined;
2993
+ id?: string | undefined;
2994
+ links?: {
2995
+ about?: string | undefined;
2996
+ } | undefined;
2997
+ meta?: Record<string, unknown> | undefined;
2998
+ title?: string | undefined;
2999
+ detail?: string | undefined;
3000
+ source?: {
3001
+ pointer?: string | undefined;
3002
+ parameter?: string | undefined;
3003
+ } | undefined;
3004
+ }>, "many">;
3005
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3006
+ }, "strip", z.ZodTypeAny, {
3007
+ errors: {
3008
+ status?: string | undefined;
3009
+ code?: string | undefined;
3010
+ id?: string | undefined;
3011
+ links?: {
3012
+ about?: string | undefined;
3013
+ } | undefined;
3014
+ meta?: Record<string, unknown> | undefined;
3015
+ title?: string | undefined;
3016
+ detail?: string | undefined;
3017
+ source?: {
3018
+ pointer?: string | undefined;
3019
+ parameter?: string | undefined;
3020
+ } | undefined;
3021
+ }[];
3022
+ meta?: Record<string, unknown> | undefined;
3023
+ }, {
3024
+ errors: {
3025
+ status?: string | undefined;
3026
+ code?: string | undefined;
3027
+ id?: string | undefined;
3028
+ links?: {
3029
+ about?: string | undefined;
3030
+ } | undefined;
3031
+ meta?: Record<string, unknown> | undefined;
3032
+ title?: string | undefined;
3033
+ detail?: string | undefined;
3034
+ source?: {
3035
+ pointer?: string | undefined;
3036
+ parameter?: string | undefined;
3037
+ } | undefined;
3038
+ }[];
3039
+ meta?: Record<string, unknown> | undefined;
3040
+ }>;
3041
+ 404: z.ZodObject<{
3042
+ errors: z.ZodArray<z.ZodObject<{
3043
+ id: z.ZodOptional<z.ZodString>;
3044
+ links: z.ZodOptional<z.ZodObject<{
3045
+ about: z.ZodOptional<z.ZodString>;
3046
+ }, "strip", z.ZodTypeAny, {
3047
+ about?: string | undefined;
3048
+ }, {
3049
+ about?: string | undefined;
3050
+ }>>;
3051
+ status: z.ZodOptional<z.ZodString>;
3052
+ code: z.ZodOptional<z.ZodString>;
3053
+ title: z.ZodOptional<z.ZodString>;
3054
+ detail: z.ZodOptional<z.ZodString>;
3055
+ source: z.ZodOptional<z.ZodObject<{
3056
+ pointer: z.ZodOptional<z.ZodString>;
3057
+ parameter: z.ZodOptional<z.ZodString>;
3058
+ }, "strip", z.ZodTypeAny, {
3059
+ pointer?: string | undefined;
3060
+ parameter?: string | undefined;
3061
+ }, {
3062
+ pointer?: string | undefined;
3063
+ parameter?: string | undefined;
3064
+ }>>;
3065
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3066
+ }, "strip", z.ZodTypeAny, {
3067
+ status?: string | undefined;
3068
+ code?: string | undefined;
3069
+ id?: string | undefined;
3070
+ links?: {
3071
+ about?: string | undefined;
3072
+ } | undefined;
3073
+ meta?: Record<string, unknown> | undefined;
3074
+ title?: string | undefined;
3075
+ detail?: string | undefined;
3076
+ source?: {
3077
+ pointer?: string | undefined;
3078
+ parameter?: string | undefined;
3079
+ } | undefined;
3080
+ }, {
3081
+ status?: string | undefined;
3082
+ code?: string | undefined;
3083
+ id?: string | undefined;
3084
+ links?: {
3085
+ about?: string | undefined;
3086
+ } | undefined;
3087
+ meta?: Record<string, unknown> | undefined;
3088
+ title?: string | undefined;
3089
+ detail?: string | undefined;
3090
+ source?: {
3091
+ pointer?: string | undefined;
3092
+ parameter?: string | undefined;
3093
+ } | undefined;
3094
+ }>, "many">;
3095
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3096
+ }, "strip", z.ZodTypeAny, {
3097
+ errors: {
3098
+ status?: string | undefined;
3099
+ code?: string | undefined;
3100
+ id?: string | undefined;
3101
+ links?: {
3102
+ about?: string | undefined;
3103
+ } | undefined;
3104
+ meta?: Record<string, unknown> | undefined;
3105
+ title?: string | undefined;
3106
+ detail?: string | undefined;
3107
+ source?: {
3108
+ pointer?: string | undefined;
3109
+ parameter?: string | undefined;
3110
+ } | undefined;
3111
+ }[];
3112
+ meta?: Record<string, unknown> | undefined;
3113
+ }, {
3114
+ errors: {
3115
+ status?: string | undefined;
3116
+ code?: string | undefined;
3117
+ id?: string | undefined;
3118
+ links?: {
3119
+ about?: string | undefined;
3120
+ } | undefined;
3121
+ meta?: Record<string, unknown> | undefined;
3122
+ title?: string | undefined;
3123
+ detail?: string | undefined;
3124
+ source?: {
3125
+ pointer?: string | undefined;
3126
+ parameter?: string | undefined;
3127
+ } | undefined;
3128
+ }[];
3129
+ meta?: Record<string, unknown> | undefined;
3130
+ }>;
3131
+ 500: z.ZodObject<{
3132
+ errors: z.ZodArray<z.ZodObject<{
3133
+ id: z.ZodOptional<z.ZodString>;
3134
+ links: z.ZodOptional<z.ZodObject<{
3135
+ about: z.ZodOptional<z.ZodString>;
3136
+ }, "strip", z.ZodTypeAny, {
3137
+ about?: string | undefined;
3138
+ }, {
3139
+ about?: string | undefined;
3140
+ }>>;
3141
+ status: z.ZodOptional<z.ZodString>;
3142
+ code: z.ZodOptional<z.ZodString>;
3143
+ title: z.ZodOptional<z.ZodString>;
3144
+ detail: z.ZodOptional<z.ZodString>;
3145
+ source: z.ZodOptional<z.ZodObject<{
3146
+ pointer: z.ZodOptional<z.ZodString>;
3147
+ parameter: z.ZodOptional<z.ZodString>;
3148
+ }, "strip", z.ZodTypeAny, {
3149
+ pointer?: string | undefined;
3150
+ parameter?: string | undefined;
3151
+ }, {
3152
+ pointer?: string | undefined;
3153
+ parameter?: string | undefined;
3154
+ }>>;
3155
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3156
+ }, "strip", z.ZodTypeAny, {
3157
+ status?: string | undefined;
3158
+ code?: string | undefined;
3159
+ id?: string | undefined;
3160
+ links?: {
3161
+ about?: string | undefined;
3162
+ } | undefined;
3163
+ meta?: Record<string, unknown> | undefined;
3164
+ title?: string | undefined;
3165
+ detail?: string | undefined;
3166
+ source?: {
3167
+ pointer?: string | undefined;
3168
+ parameter?: string | undefined;
3169
+ } | undefined;
3170
+ }, {
3171
+ status?: string | undefined;
3172
+ code?: string | undefined;
3173
+ id?: string | undefined;
3174
+ links?: {
3175
+ about?: string | undefined;
3176
+ } | undefined;
3177
+ meta?: Record<string, unknown> | undefined;
3178
+ title?: string | undefined;
3179
+ detail?: string | undefined;
3180
+ source?: {
3181
+ pointer?: string | undefined;
3182
+ parameter?: string | undefined;
3183
+ } | undefined;
3184
+ }>, "many">;
3185
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3186
+ }, "strip", z.ZodTypeAny, {
3187
+ errors: {
3188
+ status?: string | undefined;
3189
+ code?: string | undefined;
3190
+ id?: string | undefined;
3191
+ links?: {
3192
+ about?: string | undefined;
3193
+ } | undefined;
3194
+ meta?: Record<string, unknown> | undefined;
3195
+ title?: string | undefined;
3196
+ detail?: string | undefined;
3197
+ source?: {
3198
+ pointer?: string | undefined;
3199
+ parameter?: string | undefined;
3200
+ } | undefined;
3201
+ }[];
3202
+ meta?: Record<string, unknown> | undefined;
3203
+ }, {
3204
+ errors: {
3205
+ status?: string | undefined;
3206
+ code?: string | undefined;
3207
+ id?: string | undefined;
3208
+ links?: {
3209
+ about?: string | undefined;
3210
+ } | undefined;
3211
+ meta?: Record<string, unknown> | undefined;
3212
+ title?: string | undefined;
3213
+ detail?: string | undefined;
3214
+ source?: {
3215
+ pointer?: string | undefined;
3216
+ parameter?: string | undefined;
3217
+ } | undefined;
3218
+ }[];
3219
+ meta?: Record<string, unknown> | undefined;
3220
+ }>;
3221
+ };
3222
+ };
3223
+ updatePlatformRole: {
3224
+ pathParams: z.ZodObject<{
3225
+ id: z.ZodString;
3226
+ }, "strip", z.ZodTypeAny, {
3227
+ id: string;
3228
+ }, {
3229
+ id: string;
3230
+ }>;
3231
+ summary: "Set or clear a user platform role";
3232
+ method: "PATCH";
3233
+ body: z.ZodObject<{
3234
+ data: z.ZodObject<{
3235
+ type: z.ZodLiteral<"users">;
3236
+ attributes: z.ZodObject<{
3237
+ platformRole: z.ZodNullable<z.ZodEnum<["super_admin"]>>;
3238
+ }, "strip", z.ZodTypeAny, {
3239
+ platformRole: "super_admin" | null;
3240
+ }, {
3241
+ platformRole: "super_admin" | null;
3242
+ }>;
3243
+ }, "strip", z.ZodTypeAny, {
3244
+ type: "users";
3245
+ attributes: {
3246
+ platformRole: "super_admin" | null;
3247
+ };
3248
+ }, {
3249
+ type: "users";
3250
+ attributes: {
3251
+ platformRole: "super_admin" | null;
3252
+ };
3253
+ }>;
3254
+ }, "strip", z.ZodTypeAny, {
3255
+ data: {
3256
+ type: "users";
3257
+ attributes: {
3258
+ platformRole: "super_admin" | null;
3259
+ };
3260
+ };
3261
+ }, {
3262
+ data: {
3263
+ type: "users";
3264
+ attributes: {
3265
+ platformRole: "super_admin" | null;
3266
+ };
3267
+ };
3268
+ }>;
3269
+ path: "/admin/users/:id/platform-role";
3270
+ responses: {
3271
+ 200: z.ZodObject<{
3272
+ data: z.ZodObject<{
3273
+ type: z.ZodLiteral<string>;
3274
+ id: z.ZodString;
3275
+ attributes: z.ZodObject<{
3276
+ name: z.ZodString;
3277
+ email: z.ZodString;
3278
+ phone: z.ZodNullable<z.ZodString>;
3279
+ emailVerified: z.ZodBoolean;
3280
+ avatar: z.ZodNullable<z.ZodString>;
3281
+ isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
3282
+ platformRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["super_admin"]>>>;
3283
+ } & {
3284
+ createdAt: z.ZodString;
3285
+ updatedAt: z.ZodString;
3286
+ }, "strip", z.ZodTypeAny, {
3287
+ email: string;
3288
+ createdAt: string;
3289
+ updatedAt: string;
3290
+ name: string;
3291
+ phone: string | null;
3292
+ emailVerified: boolean;
3293
+ avatar: string | null;
3294
+ isPlatformAdmin?: boolean | undefined;
3295
+ platformRole?: "super_admin" | null | undefined;
3296
+ }, {
3297
+ email: string;
3298
+ createdAt: string;
3299
+ updatedAt: string;
3300
+ name: string;
3301
+ phone: string | null;
3302
+ emailVerified: boolean;
3303
+ avatar: string | null;
3304
+ isPlatformAdmin?: boolean | undefined;
3305
+ platformRole?: "super_admin" | null | undefined;
3306
+ }>;
3307
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3308
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3309
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3310
+ }, "strip", z.ZodTypeAny, {
3311
+ type: string;
3312
+ id: string;
3313
+ attributes: {
3314
+ email: string;
3315
+ createdAt: string;
3316
+ updatedAt: string;
3317
+ name: string;
3318
+ phone: string | null;
3319
+ emailVerified: boolean;
3320
+ avatar: string | null;
3321
+ isPlatformAdmin?: boolean | undefined;
3322
+ platformRole?: "super_admin" | null | undefined;
3323
+ };
3324
+ relationships?: Record<string, unknown> | undefined;
3325
+ links?: Record<string, string> | undefined;
3326
+ meta?: Record<string, unknown> | undefined;
3327
+ }, {
3328
+ type: string;
3329
+ id: string;
3330
+ attributes: {
3331
+ email: string;
3332
+ createdAt: string;
3333
+ updatedAt: string;
3334
+ name: string;
3335
+ phone: string | null;
3336
+ emailVerified: boolean;
3337
+ avatar: string | null;
3338
+ isPlatformAdmin?: boolean | undefined;
3339
+ platformRole?: "super_admin" | null | undefined;
3340
+ };
3341
+ relationships?: Record<string, unknown> | undefined;
3342
+ links?: Record<string, string> | undefined;
3343
+ meta?: Record<string, unknown> | undefined;
3344
+ }>;
3345
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
3346
+ type: z.ZodString;
3347
+ id: z.ZodString;
3348
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3349
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3350
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3351
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3352
+ }, "strip", z.ZodTypeAny, {
3353
+ type: string;
3354
+ id: string;
3355
+ attributes?: Record<string, unknown> | undefined;
3356
+ relationships?: Record<string, unknown> | undefined;
3357
+ links?: Record<string, string> | undefined;
3358
+ meta?: Record<string, unknown> | undefined;
3359
+ }, {
3360
+ type: string;
3361
+ id: string;
3362
+ attributes?: Record<string, unknown> | undefined;
3363
+ relationships?: Record<string, unknown> | undefined;
3364
+ links?: Record<string, string> | undefined;
3365
+ meta?: Record<string, unknown> | undefined;
3366
+ }>, "many">>;
3367
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3368
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3369
+ }, "strip", z.ZodTypeAny, {
3370
+ data: {
3371
+ type: string;
3372
+ id: string;
3373
+ attributes: {
3374
+ email: string;
3375
+ createdAt: string;
3376
+ updatedAt: string;
3377
+ name: string;
3378
+ phone: string | null;
3379
+ emailVerified: boolean;
3380
+ avatar: string | null;
3381
+ isPlatformAdmin?: boolean | undefined;
3382
+ platformRole?: "super_admin" | null | undefined;
3383
+ };
3384
+ relationships?: Record<string, unknown> | undefined;
3385
+ links?: Record<string, string> | undefined;
3386
+ meta?: Record<string, unknown> | undefined;
3387
+ };
3388
+ links?: Record<string, string> | undefined;
3389
+ meta?: Record<string, unknown> | undefined;
3390
+ included?: {
3391
+ type: string;
3392
+ id: string;
3393
+ attributes?: Record<string, unknown> | undefined;
3394
+ relationships?: Record<string, unknown> | undefined;
3395
+ links?: Record<string, string> | undefined;
3396
+ meta?: Record<string, unknown> | undefined;
3397
+ }[] | undefined;
3398
+ }, {
3399
+ data: {
3400
+ type: string;
3401
+ id: string;
3402
+ attributes: {
3403
+ email: string;
3404
+ createdAt: string;
3405
+ updatedAt: string;
3406
+ name: string;
3407
+ phone: string | null;
3408
+ emailVerified: boolean;
3409
+ avatar: string | null;
3410
+ isPlatformAdmin?: boolean | undefined;
3411
+ platformRole?: "super_admin" | null | undefined;
3412
+ };
3413
+ relationships?: Record<string, unknown> | undefined;
3414
+ links?: Record<string, string> | undefined;
3415
+ meta?: Record<string, unknown> | undefined;
3416
+ };
3417
+ links?: Record<string, string> | undefined;
3418
+ meta?: Record<string, unknown> | undefined;
3419
+ included?: {
3420
+ type: string;
3421
+ id: string;
3422
+ attributes?: Record<string, unknown> | undefined;
3423
+ relationships?: Record<string, unknown> | undefined;
3424
+ links?: Record<string, string> | undefined;
3425
+ meta?: Record<string, unknown> | undefined;
3426
+ }[] | undefined;
3427
+ }>;
3428
+ 400: z.ZodObject<{
3429
+ errors: z.ZodArray<z.ZodObject<{
3430
+ id: z.ZodOptional<z.ZodString>;
3431
+ links: z.ZodOptional<z.ZodObject<{
3432
+ about: z.ZodOptional<z.ZodString>;
3433
+ }, "strip", z.ZodTypeAny, {
3434
+ about?: string | undefined;
3435
+ }, {
3436
+ about?: string | undefined;
3437
+ }>>;
3438
+ status: z.ZodOptional<z.ZodString>;
3439
+ code: z.ZodOptional<z.ZodString>;
3440
+ title: z.ZodOptional<z.ZodString>;
3441
+ detail: z.ZodOptional<z.ZodString>;
3442
+ source: z.ZodOptional<z.ZodObject<{
3443
+ pointer: z.ZodOptional<z.ZodString>;
3444
+ parameter: z.ZodOptional<z.ZodString>;
3445
+ }, "strip", z.ZodTypeAny, {
3446
+ pointer?: string | undefined;
3447
+ parameter?: string | undefined;
3448
+ }, {
3449
+ pointer?: string | undefined;
3450
+ parameter?: string | undefined;
3451
+ }>>;
3452
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3453
+ }, "strip", z.ZodTypeAny, {
3454
+ status?: string | undefined;
3455
+ code?: string | undefined;
3456
+ id?: string | undefined;
3457
+ links?: {
3458
+ about?: string | undefined;
3459
+ } | undefined;
3460
+ meta?: Record<string, unknown> | undefined;
3461
+ title?: string | undefined;
3462
+ detail?: string | undefined;
3463
+ source?: {
3464
+ pointer?: string | undefined;
3465
+ parameter?: string | undefined;
3466
+ } | undefined;
3467
+ }, {
3468
+ status?: string | undefined;
3469
+ code?: string | undefined;
3470
+ id?: string | undefined;
3471
+ links?: {
3472
+ about?: string | undefined;
3473
+ } | undefined;
3474
+ meta?: Record<string, unknown> | undefined;
3475
+ title?: string | undefined;
3476
+ detail?: string | undefined;
3477
+ source?: {
3478
+ pointer?: string | undefined;
3479
+ parameter?: string | undefined;
3480
+ } | undefined;
3481
+ }>, "many">;
3482
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3483
+ }, "strip", z.ZodTypeAny, {
3484
+ errors: {
3485
+ status?: string | undefined;
3486
+ code?: string | undefined;
3487
+ id?: string | undefined;
3488
+ links?: {
3489
+ about?: string | undefined;
3490
+ } | undefined;
3491
+ meta?: Record<string, unknown> | undefined;
3492
+ title?: string | undefined;
3493
+ detail?: string | undefined;
3494
+ source?: {
3495
+ pointer?: string | undefined;
3496
+ parameter?: string | undefined;
3497
+ } | undefined;
3498
+ }[];
3499
+ meta?: Record<string, unknown> | undefined;
3500
+ }, {
3501
+ errors: {
3502
+ status?: string | undefined;
3503
+ code?: string | undefined;
3504
+ id?: string | undefined;
3505
+ links?: {
3506
+ about?: string | undefined;
3507
+ } | undefined;
3508
+ meta?: Record<string, unknown> | undefined;
3509
+ title?: string | undefined;
3510
+ detail?: string | undefined;
3511
+ source?: {
3512
+ pointer?: string | undefined;
3513
+ parameter?: string | undefined;
3514
+ } | undefined;
3515
+ }[];
3516
+ meta?: Record<string, unknown> | undefined;
3517
+ }>;
3518
+ 401: z.ZodObject<{
3519
+ errors: z.ZodArray<z.ZodObject<{
3520
+ id: z.ZodOptional<z.ZodString>;
3521
+ links: z.ZodOptional<z.ZodObject<{
3522
+ about: z.ZodOptional<z.ZodString>;
3523
+ }, "strip", z.ZodTypeAny, {
3524
+ about?: string | undefined;
3525
+ }, {
3526
+ about?: string | undefined;
3527
+ }>>;
3528
+ status: z.ZodOptional<z.ZodString>;
3529
+ code: z.ZodOptional<z.ZodString>;
3530
+ title: z.ZodOptional<z.ZodString>;
3531
+ detail: z.ZodOptional<z.ZodString>;
3532
+ source: z.ZodOptional<z.ZodObject<{
3533
+ pointer: z.ZodOptional<z.ZodString>;
3534
+ parameter: z.ZodOptional<z.ZodString>;
3535
+ }, "strip", z.ZodTypeAny, {
3536
+ pointer?: string | undefined;
3537
+ parameter?: string | undefined;
3538
+ }, {
3539
+ pointer?: string | undefined;
3540
+ parameter?: string | undefined;
3541
+ }>>;
3542
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3543
+ }, "strip", z.ZodTypeAny, {
3544
+ status?: string | undefined;
3545
+ code?: string | undefined;
3546
+ id?: string | undefined;
3547
+ links?: {
3548
+ about?: string | undefined;
3549
+ } | undefined;
3550
+ meta?: Record<string, unknown> | undefined;
3551
+ title?: string | undefined;
3552
+ detail?: string | undefined;
3553
+ source?: {
3554
+ pointer?: string | undefined;
3555
+ parameter?: string | undefined;
3556
+ } | undefined;
3557
+ }, {
3558
+ status?: string | undefined;
3559
+ code?: string | undefined;
3560
+ id?: string | undefined;
3561
+ links?: {
3562
+ about?: string | undefined;
3563
+ } | undefined;
3564
+ meta?: Record<string, unknown> | undefined;
3565
+ title?: string | undefined;
3566
+ detail?: string | undefined;
3567
+ source?: {
3568
+ pointer?: string | undefined;
3569
+ parameter?: string | undefined;
3570
+ } | undefined;
3571
+ }>, "many">;
3572
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3573
+ }, "strip", z.ZodTypeAny, {
3574
+ errors: {
3575
+ status?: string | undefined;
3576
+ code?: string | undefined;
3577
+ id?: string | undefined;
3578
+ links?: {
3579
+ about?: string | undefined;
3580
+ } | undefined;
3581
+ meta?: Record<string, unknown> | undefined;
3582
+ title?: string | undefined;
3583
+ detail?: string | undefined;
3584
+ source?: {
3585
+ pointer?: string | undefined;
3586
+ parameter?: string | undefined;
3587
+ } | undefined;
3588
+ }[];
3589
+ meta?: Record<string, unknown> | undefined;
3590
+ }, {
3591
+ errors: {
3592
+ status?: string | undefined;
3593
+ code?: string | undefined;
3594
+ id?: string | undefined;
3595
+ links?: {
3596
+ about?: string | undefined;
3597
+ } | undefined;
3598
+ meta?: Record<string, unknown> | undefined;
3599
+ title?: string | undefined;
3600
+ detail?: string | undefined;
3601
+ source?: {
3602
+ pointer?: string | undefined;
3603
+ parameter?: string | undefined;
3604
+ } | undefined;
3605
+ }[];
3606
+ meta?: Record<string, unknown> | undefined;
3607
+ }>;
3608
+ 403: z.ZodObject<{
3609
+ errors: z.ZodArray<z.ZodObject<{
3610
+ id: z.ZodOptional<z.ZodString>;
3611
+ links: z.ZodOptional<z.ZodObject<{
3612
+ about: z.ZodOptional<z.ZodString>;
3613
+ }, "strip", z.ZodTypeAny, {
3614
+ about?: string | undefined;
3615
+ }, {
3616
+ about?: string | undefined;
3617
+ }>>;
3618
+ status: z.ZodOptional<z.ZodString>;
3619
+ code: z.ZodOptional<z.ZodString>;
3620
+ title: z.ZodOptional<z.ZodString>;
3621
+ detail: z.ZodOptional<z.ZodString>;
3622
+ source: z.ZodOptional<z.ZodObject<{
3623
+ pointer: z.ZodOptional<z.ZodString>;
3624
+ parameter: z.ZodOptional<z.ZodString>;
3625
+ }, "strip", z.ZodTypeAny, {
3626
+ pointer?: string | undefined;
3627
+ parameter?: string | undefined;
3628
+ }, {
3629
+ pointer?: string | undefined;
3630
+ parameter?: string | undefined;
3631
+ }>>;
3632
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3633
+ }, "strip", z.ZodTypeAny, {
3634
+ status?: string | undefined;
3635
+ code?: string | undefined;
3636
+ id?: string | undefined;
3637
+ links?: {
3638
+ about?: string | undefined;
3639
+ } | undefined;
3640
+ meta?: Record<string, unknown> | undefined;
3641
+ title?: string | undefined;
3642
+ detail?: string | undefined;
3643
+ source?: {
3644
+ pointer?: string | undefined;
3645
+ parameter?: string | undefined;
3646
+ } | undefined;
3647
+ }, {
3648
+ status?: string | undefined;
3649
+ code?: string | undefined;
3650
+ id?: string | undefined;
3651
+ links?: {
3652
+ about?: string | undefined;
3653
+ } | undefined;
3654
+ meta?: Record<string, unknown> | undefined;
3655
+ title?: string | undefined;
3656
+ detail?: string | undefined;
3657
+ source?: {
3658
+ pointer?: string | undefined;
3659
+ parameter?: string | undefined;
3660
+ } | undefined;
3661
+ }>, "many">;
3662
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3663
+ }, "strip", z.ZodTypeAny, {
3664
+ errors: {
3665
+ status?: string | undefined;
3666
+ code?: string | undefined;
3667
+ id?: string | undefined;
3668
+ links?: {
3669
+ about?: string | undefined;
3670
+ } | undefined;
3671
+ meta?: Record<string, unknown> | undefined;
3672
+ title?: string | undefined;
3673
+ detail?: string | undefined;
3674
+ source?: {
3675
+ pointer?: string | undefined;
3676
+ parameter?: string | undefined;
3677
+ } | undefined;
3678
+ }[];
3679
+ meta?: Record<string, unknown> | undefined;
3680
+ }, {
3681
+ errors: {
3682
+ status?: string | undefined;
3683
+ code?: string | undefined;
3684
+ id?: string | undefined;
3685
+ links?: {
3686
+ about?: string | undefined;
3687
+ } | undefined;
3688
+ meta?: Record<string, unknown> | undefined;
3689
+ title?: string | undefined;
3690
+ detail?: string | undefined;
3691
+ source?: {
3692
+ pointer?: string | undefined;
3693
+ parameter?: string | undefined;
3694
+ } | undefined;
3695
+ }[];
3696
+ meta?: Record<string, unknown> | undefined;
3697
+ }>;
3698
+ 404: z.ZodObject<{
3699
+ errors: z.ZodArray<z.ZodObject<{
3700
+ id: z.ZodOptional<z.ZodString>;
3701
+ links: z.ZodOptional<z.ZodObject<{
3702
+ about: z.ZodOptional<z.ZodString>;
3703
+ }, "strip", z.ZodTypeAny, {
3704
+ about?: string | undefined;
3705
+ }, {
3706
+ about?: string | undefined;
3707
+ }>>;
3708
+ status: z.ZodOptional<z.ZodString>;
3709
+ code: z.ZodOptional<z.ZodString>;
3710
+ title: z.ZodOptional<z.ZodString>;
3711
+ detail: z.ZodOptional<z.ZodString>;
3712
+ source: z.ZodOptional<z.ZodObject<{
3713
+ pointer: z.ZodOptional<z.ZodString>;
3714
+ parameter: z.ZodOptional<z.ZodString>;
3715
+ }, "strip", z.ZodTypeAny, {
3716
+ pointer?: string | undefined;
3717
+ parameter?: string | undefined;
3718
+ }, {
3719
+ pointer?: string | undefined;
3720
+ parameter?: string | undefined;
3721
+ }>>;
3722
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3723
+ }, "strip", z.ZodTypeAny, {
3724
+ status?: string | undefined;
3725
+ code?: string | undefined;
3726
+ id?: string | undefined;
3727
+ links?: {
3728
+ about?: string | undefined;
3729
+ } | undefined;
3730
+ meta?: Record<string, unknown> | undefined;
3731
+ title?: string | undefined;
3732
+ detail?: string | undefined;
3733
+ source?: {
3734
+ pointer?: string | undefined;
3735
+ parameter?: string | undefined;
3736
+ } | undefined;
3737
+ }, {
3738
+ status?: string | undefined;
3739
+ code?: string | undefined;
3740
+ id?: string | undefined;
3741
+ links?: {
3742
+ about?: string | undefined;
3743
+ } | undefined;
3744
+ meta?: Record<string, unknown> | undefined;
3745
+ title?: string | undefined;
3746
+ detail?: string | undefined;
3747
+ source?: {
3748
+ pointer?: string | undefined;
3749
+ parameter?: string | undefined;
3750
+ } | undefined;
3751
+ }>, "many">;
3752
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3753
+ }, "strip", z.ZodTypeAny, {
3754
+ errors: {
3755
+ status?: string | undefined;
3756
+ code?: string | undefined;
3757
+ id?: string | undefined;
3758
+ links?: {
3759
+ about?: string | undefined;
3760
+ } | undefined;
3761
+ meta?: Record<string, unknown> | undefined;
3762
+ title?: string | undefined;
3763
+ detail?: string | undefined;
3764
+ source?: {
3765
+ pointer?: string | undefined;
3766
+ parameter?: string | undefined;
3767
+ } | undefined;
3768
+ }[];
3769
+ meta?: Record<string, unknown> | undefined;
3770
+ }, {
3771
+ errors: {
3772
+ status?: string | undefined;
3773
+ code?: string | undefined;
3774
+ id?: string | undefined;
3775
+ links?: {
3776
+ about?: string | undefined;
3777
+ } | undefined;
3778
+ meta?: Record<string, unknown> | undefined;
3779
+ title?: string | undefined;
3780
+ detail?: string | undefined;
3781
+ source?: {
3782
+ pointer?: string | undefined;
3783
+ parameter?: string | undefined;
3784
+ } | undefined;
3785
+ }[];
3786
+ meta?: Record<string, unknown> | undefined;
3787
+ }>;
3788
+ 500: z.ZodObject<{
3789
+ errors: z.ZodArray<z.ZodObject<{
3790
+ id: z.ZodOptional<z.ZodString>;
3791
+ links: z.ZodOptional<z.ZodObject<{
3792
+ about: z.ZodOptional<z.ZodString>;
3793
+ }, "strip", z.ZodTypeAny, {
3794
+ about?: string | undefined;
3795
+ }, {
3796
+ about?: string | undefined;
3797
+ }>>;
3798
+ status: z.ZodOptional<z.ZodString>;
3799
+ code: z.ZodOptional<z.ZodString>;
3800
+ title: z.ZodOptional<z.ZodString>;
3801
+ detail: z.ZodOptional<z.ZodString>;
3802
+ source: z.ZodOptional<z.ZodObject<{
3803
+ pointer: z.ZodOptional<z.ZodString>;
3804
+ parameter: z.ZodOptional<z.ZodString>;
3805
+ }, "strip", z.ZodTypeAny, {
3806
+ pointer?: string | undefined;
3807
+ parameter?: string | undefined;
3808
+ }, {
3809
+ pointer?: string | undefined;
3810
+ parameter?: string | undefined;
3811
+ }>>;
3812
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3813
+ }, "strip", z.ZodTypeAny, {
3814
+ status?: string | undefined;
3815
+ code?: string | undefined;
3816
+ id?: string | undefined;
3817
+ links?: {
3818
+ about?: string | undefined;
3819
+ } | undefined;
3820
+ meta?: Record<string, unknown> | undefined;
3821
+ title?: string | undefined;
3822
+ detail?: string | undefined;
3823
+ source?: {
3824
+ pointer?: string | undefined;
3825
+ parameter?: string | undefined;
3826
+ } | undefined;
3827
+ }, {
3828
+ status?: string | undefined;
3829
+ code?: string | undefined;
3830
+ id?: string | undefined;
3831
+ links?: {
3832
+ about?: string | undefined;
3833
+ } | undefined;
3834
+ meta?: Record<string, unknown> | undefined;
3835
+ title?: string | undefined;
3836
+ detail?: string | undefined;
3837
+ source?: {
3838
+ pointer?: string | undefined;
3839
+ parameter?: string | undefined;
3840
+ } | undefined;
3841
+ }>, "many">;
3842
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3843
+ }, "strip", z.ZodTypeAny, {
3844
+ errors: {
3845
+ status?: string | undefined;
3846
+ code?: string | undefined;
3847
+ id?: string | undefined;
3848
+ links?: {
3849
+ about?: string | undefined;
3850
+ } | undefined;
3851
+ meta?: Record<string, unknown> | undefined;
3852
+ title?: string | undefined;
3853
+ detail?: string | undefined;
3854
+ source?: {
3855
+ pointer?: string | undefined;
3856
+ parameter?: string | undefined;
3857
+ } | undefined;
3858
+ }[];
3859
+ meta?: Record<string, unknown> | undefined;
3860
+ }, {
3861
+ errors: {
3862
+ status?: string | undefined;
3863
+ code?: string | undefined;
3864
+ id?: string | undefined;
3865
+ links?: {
3866
+ about?: string | undefined;
3867
+ } | undefined;
3868
+ meta?: Record<string, unknown> | undefined;
3869
+ title?: string | undefined;
3870
+ detail?: string | undefined;
3871
+ source?: {
3872
+ pointer?: string | undefined;
3873
+ parameter?: string | undefined;
3874
+ } | undefined;
3875
+ }[];
3876
+ meta?: Record<string, unknown> | undefined;
3877
+ }>;
3878
+ };
3879
+ };
3880
+ createLoginLink: {
3881
+ pathParams: z.ZodObject<{
3882
+ id: z.ZodString;
3883
+ }, "strip", z.ZodTypeAny, {
3884
+ id: string;
3885
+ }, {
3886
+ id: string;
3887
+ }>;
3888
+ summary: "Create one-time login link (platform admin)";
3889
+ description: "Mint a short-lived, single-use login URL for a user. Restricted to super admins.";
3890
+ method: "POST";
3891
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3892
+ path: "/admin/users/:id/login-link";
3893
+ responses: {
3894
+ 201: z.ZodObject<{
3895
+ data: z.ZodObject<{
3896
+ type: z.ZodLiteral<string>;
3897
+ id: z.ZodString;
3898
+ attributes: z.ZodObject<{
3899
+ loginUrl: z.ZodString;
3900
+ expiresAt: z.ZodString;
3901
+ }, "strip", z.ZodTypeAny, {
3902
+ loginUrl: string;
3903
+ expiresAt: string;
3904
+ }, {
3905
+ loginUrl: string;
3906
+ expiresAt: string;
3907
+ }>;
3908
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3909
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3910
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3911
+ }, "strip", z.ZodTypeAny, {
3912
+ type: string;
3913
+ id: string;
3914
+ attributes: {
3915
+ loginUrl: string;
3916
+ expiresAt: string;
3917
+ };
3918
+ relationships?: Record<string, unknown> | undefined;
3919
+ links?: Record<string, string> | undefined;
3920
+ meta?: Record<string, unknown> | undefined;
3921
+ }, {
3922
+ type: string;
3923
+ id: string;
3924
+ attributes: {
3925
+ loginUrl: string;
3926
+ expiresAt: string;
3927
+ };
3928
+ relationships?: Record<string, unknown> | undefined;
3929
+ links?: Record<string, string> | undefined;
3930
+ meta?: Record<string, unknown> | undefined;
3931
+ }>;
3932
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
3933
+ type: z.ZodString;
3934
+ id: z.ZodString;
3935
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3936
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3937
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3938
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3939
+ }, "strip", z.ZodTypeAny, {
3940
+ type: string;
3941
+ id: string;
3942
+ attributes?: Record<string, unknown> | undefined;
3943
+ relationships?: Record<string, unknown> | undefined;
3944
+ links?: Record<string, string> | undefined;
3945
+ meta?: Record<string, unknown> | undefined;
3946
+ }, {
3947
+ type: string;
3948
+ id: string;
3949
+ attributes?: Record<string, unknown> | undefined;
3950
+ relationships?: Record<string, unknown> | undefined;
3951
+ links?: Record<string, string> | undefined;
3952
+ meta?: Record<string, unknown> | undefined;
3953
+ }>, "many">>;
3954
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3955
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3956
+ }, "strip", z.ZodTypeAny, {
3957
+ data: {
3958
+ type: string;
3959
+ id: string;
3960
+ attributes: {
3961
+ loginUrl: string;
3962
+ expiresAt: string;
3963
+ };
3964
+ relationships?: Record<string, unknown> | undefined;
3965
+ links?: Record<string, string> | undefined;
3966
+ meta?: Record<string, unknown> | undefined;
3967
+ };
3968
+ links?: Record<string, string> | undefined;
3969
+ meta?: Record<string, unknown> | undefined;
3970
+ included?: {
3971
+ type: string;
3972
+ id: string;
3973
+ attributes?: Record<string, unknown> | undefined;
3974
+ relationships?: Record<string, unknown> | undefined;
3975
+ links?: Record<string, string> | undefined;
3976
+ meta?: Record<string, unknown> | undefined;
3977
+ }[] | undefined;
3978
+ }, {
3979
+ data: {
3980
+ type: string;
3981
+ id: string;
3982
+ attributes: {
3983
+ loginUrl: string;
3984
+ expiresAt: string;
3985
+ };
3986
+ relationships?: Record<string, unknown> | undefined;
3987
+ links?: Record<string, string> | undefined;
3988
+ meta?: Record<string, unknown> | undefined;
3989
+ };
3990
+ links?: Record<string, string> | undefined;
3991
+ meta?: Record<string, unknown> | undefined;
3992
+ included?: {
3993
+ type: string;
3994
+ id: string;
3995
+ attributes?: Record<string, unknown> | undefined;
3996
+ relationships?: Record<string, unknown> | undefined;
3997
+ links?: Record<string, string> | undefined;
3998
+ meta?: Record<string, unknown> | undefined;
3999
+ }[] | undefined;
4000
+ }>;
4001
+ 401: z.ZodObject<{
4002
+ errors: z.ZodArray<z.ZodObject<{
4003
+ id: z.ZodOptional<z.ZodString>;
4004
+ links: z.ZodOptional<z.ZodObject<{
4005
+ about: z.ZodOptional<z.ZodString>;
4006
+ }, "strip", z.ZodTypeAny, {
4007
+ about?: string | undefined;
4008
+ }, {
4009
+ about?: string | undefined;
4010
+ }>>;
4011
+ status: z.ZodOptional<z.ZodString>;
4012
+ code: z.ZodOptional<z.ZodString>;
4013
+ title: z.ZodOptional<z.ZodString>;
4014
+ detail: z.ZodOptional<z.ZodString>;
4015
+ source: z.ZodOptional<z.ZodObject<{
4016
+ pointer: z.ZodOptional<z.ZodString>;
4017
+ parameter: z.ZodOptional<z.ZodString>;
4018
+ }, "strip", z.ZodTypeAny, {
4019
+ pointer?: string | undefined;
4020
+ parameter?: string | undefined;
4021
+ }, {
4022
+ pointer?: string | undefined;
4023
+ parameter?: string | undefined;
4024
+ }>>;
4025
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4026
+ }, "strip", z.ZodTypeAny, {
4027
+ status?: string | undefined;
4028
+ code?: string | undefined;
4029
+ id?: string | undefined;
4030
+ links?: {
4031
+ about?: string | undefined;
4032
+ } | undefined;
4033
+ meta?: Record<string, unknown> | undefined;
4034
+ title?: string | undefined;
4035
+ detail?: string | undefined;
4036
+ source?: {
4037
+ pointer?: string | undefined;
4038
+ parameter?: string | undefined;
4039
+ } | undefined;
4040
+ }, {
4041
+ status?: string | undefined;
4042
+ code?: string | undefined;
4043
+ id?: string | undefined;
4044
+ links?: {
4045
+ about?: string | undefined;
4046
+ } | undefined;
4047
+ meta?: Record<string, unknown> | undefined;
4048
+ title?: string | undefined;
4049
+ detail?: string | undefined;
4050
+ source?: {
4051
+ pointer?: string | undefined;
4052
+ parameter?: string | undefined;
4053
+ } | undefined;
4054
+ }>, "many">;
4055
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4056
+ }, "strip", z.ZodTypeAny, {
4057
+ errors: {
4058
+ status?: string | undefined;
4059
+ code?: string | undefined;
4060
+ id?: string | undefined;
4061
+ links?: {
4062
+ about?: string | undefined;
4063
+ } | undefined;
4064
+ meta?: Record<string, unknown> | undefined;
4065
+ title?: string | undefined;
4066
+ detail?: string | undefined;
4067
+ source?: {
4068
+ pointer?: string | undefined;
4069
+ parameter?: string | undefined;
4070
+ } | undefined;
4071
+ }[];
4072
+ meta?: Record<string, unknown> | undefined;
4073
+ }, {
4074
+ errors: {
4075
+ status?: string | undefined;
4076
+ code?: string | undefined;
4077
+ id?: string | undefined;
4078
+ links?: {
4079
+ about?: string | undefined;
4080
+ } | undefined;
4081
+ meta?: Record<string, unknown> | undefined;
4082
+ title?: string | undefined;
4083
+ detail?: string | undefined;
4084
+ source?: {
4085
+ pointer?: string | undefined;
4086
+ parameter?: string | undefined;
4087
+ } | undefined;
4088
+ }[];
4089
+ meta?: Record<string, unknown> | undefined;
4090
+ }>;
4091
+ 403: z.ZodObject<{
4092
+ errors: z.ZodArray<z.ZodObject<{
4093
+ id: z.ZodOptional<z.ZodString>;
4094
+ links: z.ZodOptional<z.ZodObject<{
4095
+ about: z.ZodOptional<z.ZodString>;
4096
+ }, "strip", z.ZodTypeAny, {
4097
+ about?: string | undefined;
4098
+ }, {
4099
+ about?: string | undefined;
4100
+ }>>;
4101
+ status: z.ZodOptional<z.ZodString>;
4102
+ code: z.ZodOptional<z.ZodString>;
4103
+ title: z.ZodOptional<z.ZodString>;
4104
+ detail: z.ZodOptional<z.ZodString>;
4105
+ source: z.ZodOptional<z.ZodObject<{
4106
+ pointer: z.ZodOptional<z.ZodString>;
4107
+ parameter: z.ZodOptional<z.ZodString>;
4108
+ }, "strip", z.ZodTypeAny, {
4109
+ pointer?: string | undefined;
4110
+ parameter?: string | undefined;
4111
+ }, {
4112
+ pointer?: string | undefined;
4113
+ parameter?: string | undefined;
4114
+ }>>;
4115
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4116
+ }, "strip", z.ZodTypeAny, {
4117
+ status?: string | undefined;
4118
+ code?: string | undefined;
4119
+ id?: string | undefined;
4120
+ links?: {
4121
+ about?: string | undefined;
4122
+ } | undefined;
4123
+ meta?: Record<string, unknown> | undefined;
4124
+ title?: string | undefined;
4125
+ detail?: string | undefined;
4126
+ source?: {
4127
+ pointer?: string | undefined;
4128
+ parameter?: string | undefined;
4129
+ } | undefined;
4130
+ }, {
4131
+ status?: string | undefined;
4132
+ code?: string | undefined;
4133
+ id?: string | undefined;
4134
+ links?: {
4135
+ about?: string | undefined;
4136
+ } | undefined;
4137
+ meta?: Record<string, unknown> | undefined;
4138
+ title?: string | undefined;
4139
+ detail?: string | undefined;
4140
+ source?: {
4141
+ pointer?: string | undefined;
4142
+ parameter?: string | undefined;
4143
+ } | undefined;
4144
+ }>, "many">;
4145
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4146
+ }, "strip", z.ZodTypeAny, {
4147
+ errors: {
4148
+ status?: string | undefined;
4149
+ code?: string | undefined;
4150
+ id?: string | undefined;
4151
+ links?: {
4152
+ about?: string | undefined;
4153
+ } | undefined;
4154
+ meta?: Record<string, unknown> | undefined;
4155
+ title?: string | undefined;
4156
+ detail?: string | undefined;
4157
+ source?: {
4158
+ pointer?: string | undefined;
4159
+ parameter?: string | undefined;
4160
+ } | undefined;
4161
+ }[];
4162
+ meta?: Record<string, unknown> | undefined;
4163
+ }, {
4164
+ errors: {
4165
+ status?: string | undefined;
4166
+ code?: string | undefined;
4167
+ id?: string | undefined;
4168
+ links?: {
4169
+ about?: string | undefined;
4170
+ } | undefined;
4171
+ meta?: Record<string, unknown> | undefined;
4172
+ title?: string | undefined;
4173
+ detail?: string | undefined;
4174
+ source?: {
4175
+ pointer?: string | undefined;
4176
+ parameter?: string | undefined;
4177
+ } | undefined;
4178
+ }[];
4179
+ meta?: Record<string, unknown> | undefined;
4180
+ }>;
4181
+ 404: z.ZodObject<{
4182
+ errors: z.ZodArray<z.ZodObject<{
4183
+ id: z.ZodOptional<z.ZodString>;
4184
+ links: z.ZodOptional<z.ZodObject<{
4185
+ about: z.ZodOptional<z.ZodString>;
4186
+ }, "strip", z.ZodTypeAny, {
4187
+ about?: string | undefined;
4188
+ }, {
4189
+ about?: string | undefined;
4190
+ }>>;
4191
+ status: z.ZodOptional<z.ZodString>;
4192
+ code: z.ZodOptional<z.ZodString>;
4193
+ title: z.ZodOptional<z.ZodString>;
4194
+ detail: z.ZodOptional<z.ZodString>;
4195
+ source: z.ZodOptional<z.ZodObject<{
4196
+ pointer: z.ZodOptional<z.ZodString>;
4197
+ parameter: z.ZodOptional<z.ZodString>;
4198
+ }, "strip", z.ZodTypeAny, {
4199
+ pointer?: string | undefined;
4200
+ parameter?: string | undefined;
4201
+ }, {
4202
+ pointer?: string | undefined;
4203
+ parameter?: string | undefined;
4204
+ }>>;
4205
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4206
+ }, "strip", z.ZodTypeAny, {
4207
+ status?: string | undefined;
4208
+ code?: string | undefined;
4209
+ id?: string | undefined;
4210
+ links?: {
4211
+ about?: string | undefined;
4212
+ } | undefined;
4213
+ meta?: Record<string, unknown> | undefined;
4214
+ title?: string | undefined;
4215
+ detail?: string | undefined;
4216
+ source?: {
4217
+ pointer?: string | undefined;
4218
+ parameter?: string | undefined;
4219
+ } | undefined;
4220
+ }, {
4221
+ status?: string | undefined;
4222
+ code?: string | undefined;
4223
+ id?: string | undefined;
4224
+ links?: {
4225
+ about?: string | undefined;
4226
+ } | undefined;
4227
+ meta?: Record<string, unknown> | undefined;
4228
+ title?: string | undefined;
4229
+ detail?: string | undefined;
4230
+ source?: {
4231
+ pointer?: string | undefined;
4232
+ parameter?: string | undefined;
4233
+ } | undefined;
4234
+ }>, "many">;
4235
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4236
+ }, "strip", z.ZodTypeAny, {
4237
+ errors: {
4238
+ status?: string | undefined;
4239
+ code?: string | undefined;
4240
+ id?: string | undefined;
4241
+ links?: {
4242
+ about?: string | undefined;
4243
+ } | undefined;
4244
+ meta?: Record<string, unknown> | undefined;
4245
+ title?: string | undefined;
4246
+ detail?: string | undefined;
4247
+ source?: {
4248
+ pointer?: string | undefined;
4249
+ parameter?: string | undefined;
4250
+ } | undefined;
4251
+ }[];
4252
+ meta?: Record<string, unknown> | undefined;
4253
+ }, {
4254
+ errors: {
4255
+ status?: string | undefined;
4256
+ code?: string | undefined;
4257
+ id?: string | undefined;
4258
+ links?: {
4259
+ about?: string | undefined;
4260
+ } | undefined;
4261
+ meta?: Record<string, unknown> | undefined;
4262
+ title?: string | undefined;
4263
+ detail?: string | undefined;
4264
+ source?: {
4265
+ pointer?: string | undefined;
4266
+ parameter?: string | undefined;
4267
+ } | undefined;
4268
+ }[];
4269
+ meta?: Record<string, unknown> | undefined;
4270
+ }>;
4271
+ 500: z.ZodObject<{
4272
+ errors: z.ZodArray<z.ZodObject<{
4273
+ id: z.ZodOptional<z.ZodString>;
4274
+ links: z.ZodOptional<z.ZodObject<{
4275
+ about: z.ZodOptional<z.ZodString>;
4276
+ }, "strip", z.ZodTypeAny, {
4277
+ about?: string | undefined;
4278
+ }, {
4279
+ about?: string | undefined;
4280
+ }>>;
4281
+ status: z.ZodOptional<z.ZodString>;
4282
+ code: z.ZodOptional<z.ZodString>;
4283
+ title: z.ZodOptional<z.ZodString>;
4284
+ detail: z.ZodOptional<z.ZodString>;
4285
+ source: z.ZodOptional<z.ZodObject<{
4286
+ pointer: z.ZodOptional<z.ZodString>;
4287
+ parameter: z.ZodOptional<z.ZodString>;
4288
+ }, "strip", z.ZodTypeAny, {
4289
+ pointer?: string | undefined;
4290
+ parameter?: string | undefined;
4291
+ }, {
4292
+ pointer?: string | undefined;
4293
+ parameter?: string | undefined;
4294
+ }>>;
4295
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4296
+ }, "strip", z.ZodTypeAny, {
4297
+ status?: string | undefined;
4298
+ code?: string | undefined;
4299
+ id?: string | undefined;
4300
+ links?: {
4301
+ about?: string | undefined;
4302
+ } | undefined;
4303
+ meta?: Record<string, unknown> | undefined;
4304
+ title?: string | undefined;
4305
+ detail?: string | undefined;
4306
+ source?: {
4307
+ pointer?: string | undefined;
4308
+ parameter?: string | undefined;
4309
+ } | undefined;
4310
+ }, {
4311
+ status?: string | undefined;
4312
+ code?: string | undefined;
4313
+ id?: string | undefined;
4314
+ links?: {
4315
+ about?: string | undefined;
4316
+ } | undefined;
4317
+ meta?: Record<string, unknown> | undefined;
4318
+ title?: string | undefined;
4319
+ detail?: string | undefined;
4320
+ source?: {
4321
+ pointer?: string | undefined;
4322
+ parameter?: string | undefined;
4323
+ } | undefined;
4324
+ }>, "many">;
4325
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4326
+ }, "strip", z.ZodTypeAny, {
4327
+ errors: {
4328
+ status?: string | undefined;
4329
+ code?: string | undefined;
4330
+ id?: string | undefined;
4331
+ links?: {
4332
+ about?: string | undefined;
4333
+ } | undefined;
4334
+ meta?: Record<string, unknown> | undefined;
4335
+ title?: string | undefined;
4336
+ detail?: string | undefined;
4337
+ source?: {
4338
+ pointer?: string | undefined;
4339
+ parameter?: string | undefined;
4340
+ } | undefined;
4341
+ }[];
4342
+ meta?: Record<string, unknown> | undefined;
4343
+ }, {
4344
+ errors: {
4345
+ status?: string | undefined;
4346
+ code?: string | undefined;
4347
+ id?: string | undefined;
4348
+ links?: {
4349
+ about?: string | undefined;
4350
+ } | undefined;
4351
+ meta?: Record<string, unknown> | undefined;
4352
+ title?: string | undefined;
4353
+ detail?: string | undefined;
4354
+ source?: {
4355
+ pointer?: string | undefined;
4356
+ parameter?: string | undefined;
4357
+ } | undefined;
4358
+ }[];
4359
+ meta?: Record<string, unknown> | undefined;
4360
+ }>;
4361
+ };
4362
+ };
4363
+ impersonateUser: {
4364
+ pathParams: z.ZodObject<{
4365
+ id: z.ZodString;
4366
+ }, "strip", z.ZodTypeAny, {
4367
+ id: string;
4368
+ }, {
4369
+ id: string;
4370
+ }>;
4371
+ summary: "Start impersonation session as target user";
4372
+ method: "POST";
4373
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4374
+ path: "/admin/users/:id/impersonate";
4375
+ responses: {
4376
+ 201: z.ZodObject<{
4377
+ data: z.ZodObject<{
4378
+ type: z.ZodLiteral<string>;
4379
+ id: z.ZodString;
4380
+ attributes: z.ZodObject<{
4381
+ accessToken: z.ZodString;
4382
+ refreshToken: z.ZodString;
4383
+ expiresIn: z.ZodNumber;
4384
+ tokenType: z.ZodLiteral<"Bearer">;
4385
+ targetUserId: z.ZodString;
4386
+ targetName: z.ZodString;
4387
+ targetEmail: z.ZodString;
4388
+ impersonatedBy: z.ZodString;
4389
+ }, "strip", z.ZodTypeAny, {
4390
+ refreshToken: string;
4391
+ accessToken: string;
4392
+ expiresIn: number;
4393
+ tokenType: "Bearer";
4394
+ targetUserId: string;
4395
+ targetName: string;
4396
+ targetEmail: string;
4397
+ impersonatedBy: string;
4398
+ }, {
4399
+ refreshToken: string;
4400
+ accessToken: string;
4401
+ expiresIn: number;
4402
+ tokenType: "Bearer";
4403
+ targetUserId: string;
4404
+ targetName: string;
4405
+ targetEmail: string;
4406
+ impersonatedBy: string;
4407
+ }>;
4408
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4409
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4410
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4411
+ }, "strip", z.ZodTypeAny, {
4412
+ type: string;
4413
+ id: string;
4414
+ attributes: {
4415
+ refreshToken: string;
4416
+ accessToken: string;
4417
+ expiresIn: number;
4418
+ tokenType: "Bearer";
4419
+ targetUserId: string;
4420
+ targetName: string;
4421
+ targetEmail: string;
4422
+ impersonatedBy: string;
4423
+ };
4424
+ relationships?: Record<string, unknown> | undefined;
4425
+ links?: Record<string, string> | undefined;
4426
+ meta?: Record<string, unknown> | undefined;
4427
+ }, {
4428
+ type: string;
4429
+ id: string;
4430
+ attributes: {
4431
+ refreshToken: string;
4432
+ accessToken: string;
4433
+ expiresIn: number;
4434
+ tokenType: "Bearer";
4435
+ targetUserId: string;
4436
+ targetName: string;
4437
+ targetEmail: string;
4438
+ impersonatedBy: string;
4439
+ };
4440
+ relationships?: Record<string, unknown> | undefined;
4441
+ links?: Record<string, string> | undefined;
4442
+ meta?: Record<string, unknown> | undefined;
4443
+ }>;
4444
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
4445
+ type: z.ZodString;
4446
+ id: z.ZodString;
4447
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4448
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4449
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4450
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4451
+ }, "strip", z.ZodTypeAny, {
4452
+ type: string;
4453
+ id: string;
4454
+ attributes?: Record<string, unknown> | undefined;
4455
+ relationships?: Record<string, unknown> | undefined;
4456
+ links?: Record<string, string> | undefined;
4457
+ meta?: Record<string, unknown> | undefined;
4458
+ }, {
4459
+ type: string;
4460
+ id: string;
4461
+ attributes?: Record<string, unknown> | undefined;
4462
+ relationships?: Record<string, unknown> | undefined;
4463
+ links?: Record<string, string> | undefined;
4464
+ meta?: Record<string, unknown> | undefined;
4465
+ }>, "many">>;
4466
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4467
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4468
+ }, "strip", z.ZodTypeAny, {
4469
+ data: {
4470
+ type: string;
4471
+ id: string;
4472
+ attributes: {
4473
+ refreshToken: string;
4474
+ accessToken: string;
4475
+ expiresIn: number;
4476
+ tokenType: "Bearer";
4477
+ targetUserId: string;
4478
+ targetName: string;
4479
+ targetEmail: string;
4480
+ impersonatedBy: string;
4481
+ };
4482
+ relationships?: Record<string, unknown> | undefined;
4483
+ links?: Record<string, string> | undefined;
4484
+ meta?: Record<string, unknown> | undefined;
4485
+ };
4486
+ links?: Record<string, string> | undefined;
4487
+ meta?: Record<string, unknown> | undefined;
4488
+ included?: {
4489
+ type: string;
4490
+ id: string;
4491
+ attributes?: Record<string, unknown> | undefined;
4492
+ relationships?: Record<string, unknown> | undefined;
4493
+ links?: Record<string, string> | undefined;
4494
+ meta?: Record<string, unknown> | undefined;
4495
+ }[] | undefined;
4496
+ }, {
4497
+ data: {
4498
+ type: string;
4499
+ id: string;
4500
+ attributes: {
4501
+ refreshToken: string;
4502
+ accessToken: string;
4503
+ expiresIn: number;
4504
+ tokenType: "Bearer";
4505
+ targetUserId: string;
4506
+ targetName: string;
4507
+ targetEmail: string;
4508
+ impersonatedBy: string;
4509
+ };
4510
+ relationships?: Record<string, unknown> | undefined;
4511
+ links?: Record<string, string> | undefined;
4512
+ meta?: Record<string, unknown> | undefined;
4513
+ };
4514
+ links?: Record<string, string> | undefined;
4515
+ meta?: Record<string, unknown> | undefined;
4516
+ included?: {
4517
+ type: string;
4518
+ id: string;
4519
+ attributes?: Record<string, unknown> | undefined;
4520
+ relationships?: Record<string, unknown> | undefined;
4521
+ links?: Record<string, string> | undefined;
4522
+ meta?: Record<string, unknown> | undefined;
4523
+ }[] | undefined;
4524
+ }>;
4525
+ 400: z.ZodObject<{
4526
+ errors: z.ZodArray<z.ZodObject<{
4527
+ id: z.ZodOptional<z.ZodString>;
4528
+ links: z.ZodOptional<z.ZodObject<{
4529
+ about: z.ZodOptional<z.ZodString>;
4530
+ }, "strip", z.ZodTypeAny, {
4531
+ about?: string | undefined;
4532
+ }, {
4533
+ about?: string | undefined;
4534
+ }>>;
4535
+ status: z.ZodOptional<z.ZodString>;
4536
+ code: z.ZodOptional<z.ZodString>;
4537
+ title: z.ZodOptional<z.ZodString>;
4538
+ detail: z.ZodOptional<z.ZodString>;
4539
+ source: z.ZodOptional<z.ZodObject<{
4540
+ pointer: z.ZodOptional<z.ZodString>;
4541
+ parameter: z.ZodOptional<z.ZodString>;
4542
+ }, "strip", z.ZodTypeAny, {
4543
+ pointer?: string | undefined;
4544
+ parameter?: string | undefined;
4545
+ }, {
4546
+ pointer?: string | undefined;
4547
+ parameter?: string | undefined;
4548
+ }>>;
4549
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4550
+ }, "strip", z.ZodTypeAny, {
4551
+ status?: string | undefined;
4552
+ code?: string | undefined;
4553
+ id?: string | undefined;
4554
+ links?: {
4555
+ about?: string | undefined;
4556
+ } | undefined;
4557
+ meta?: Record<string, unknown> | undefined;
4558
+ title?: string | undefined;
4559
+ detail?: string | undefined;
4560
+ source?: {
4561
+ pointer?: string | undefined;
4562
+ parameter?: string | undefined;
4563
+ } | undefined;
4564
+ }, {
4565
+ status?: string | undefined;
4566
+ code?: string | undefined;
4567
+ id?: string | undefined;
4568
+ links?: {
4569
+ about?: string | undefined;
4570
+ } | undefined;
4571
+ meta?: Record<string, unknown> | undefined;
4572
+ title?: string | undefined;
4573
+ detail?: string | undefined;
4574
+ source?: {
4575
+ pointer?: string | undefined;
4576
+ parameter?: string | undefined;
4577
+ } | undefined;
4578
+ }>, "many">;
4579
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4580
+ }, "strip", z.ZodTypeAny, {
4581
+ errors: {
4582
+ status?: string | undefined;
4583
+ code?: string | undefined;
4584
+ id?: string | undefined;
4585
+ links?: {
4586
+ about?: string | undefined;
4587
+ } | undefined;
4588
+ meta?: Record<string, unknown> | undefined;
4589
+ title?: string | undefined;
4590
+ detail?: string | undefined;
4591
+ source?: {
4592
+ pointer?: string | undefined;
4593
+ parameter?: string | undefined;
4594
+ } | undefined;
4595
+ }[];
4596
+ meta?: Record<string, unknown> | undefined;
4597
+ }, {
4598
+ errors: {
4599
+ status?: string | undefined;
4600
+ code?: string | undefined;
4601
+ id?: string | undefined;
4602
+ links?: {
4603
+ about?: string | undefined;
4604
+ } | undefined;
4605
+ meta?: Record<string, unknown> | undefined;
4606
+ title?: string | undefined;
4607
+ detail?: string | undefined;
4608
+ source?: {
4609
+ pointer?: string | undefined;
4610
+ parameter?: string | undefined;
4611
+ } | undefined;
4612
+ }[];
4613
+ meta?: Record<string, unknown> | undefined;
4614
+ }>;
2083
4615
  401: z.ZodObject<{
2084
4616
  errors: z.ZodArray<z.ZodObject<{
2085
4617
  id: z.ZodOptional<z.ZodString>;
@@ -2444,7 +4976,7 @@ export declare const adminRouter: {
2444
4976
  };
2445
4977
  sendPlatformDigest: {
2446
4978
  summary: "Send platform digest now";
2447
- description: "Send the previous-month platform digest email. Restricted to ADMIN_EMAILS.";
4979
+ description: "Send the previous-month platform digest email. Restricted to super admins.";
2448
4980
  method: "POST";
2449
4981
  body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2450
4982
  path: "/admin/platform-digest/send";