@dakkitor/api-contracts 1.8.0 → 1.9.1

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 (82) hide show
  1. package/dist/abilities/abilities.contract.d.ts +1 -1
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -1
  3. package/dist/abilities/abilities.contract.js +1 -0
  4. package/dist/abilities/abilities.contract.spec.js +11 -0
  5. package/dist/abilities/second-agent.abilities.json +16 -0
  6. package/dist/actives/actives.contract.d.ts +6327 -6196
  7. package/dist/actives/actives.contract.d.ts.map +1 -1
  8. package/dist/agent-client-links/agent-client-links.contract.d.ts +1148 -1046
  9. package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
  10. package/dist/auth/auth.contract.d.ts +23 -23
  11. package/dist/bookings/bookings.contract.d.ts +9238 -9006
  12. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  13. package/dist/call-history/call-history.contract.d.ts +768 -731
  14. package/dist/call-history/call-history.contract.d.ts.map +1 -1
  15. package/dist/calls-feed/calls-feed.contract.d.ts +99 -92
  16. package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
  17. package/dist/candidate-calling/candidate-calling.contract.d.ts +13397 -0
  18. package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -0
  19. package/dist/candidate-calling/candidate-calling.contract.js +206 -0
  20. package/dist/candidate-calling/candidate-calling.contract.spec.d.ts +2 -0
  21. package/dist/candidate-calling/candidate-calling.contract.spec.d.ts.map +1 -0
  22. package/dist/candidate-calling/candidate-calling.contract.spec.js +193 -0
  23. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2738 -2634
  24. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
  25. package/dist/collaborations/collaborations.contract.d.ts +2281 -2184
  26. package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
  27. package/dist/cron-executions/cron-executions.contract.d.ts +7 -7
  28. package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
  29. package/dist/cron-executions/cron-executions.contract.js +1 -0
  30. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2663 -2045
  31. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
  32. package/dist/curated-worker-leads/candidate-coordination.contract.js +37 -4
  33. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +228 -228
  34. package/dist/curated-worker-leads/contact-history.spec.js +55 -0
  35. package/dist/curated-worker-leads/jobs-tab.contract.d.ts +1928 -1928
  36. package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
  37. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +36 -36
  38. package/dist/curated-workers/curated-workers.contract.d.ts +1195 -1195
  39. package/dist/dashboards/dashboard-widgets.contract.d.ts +396 -396
  40. package/dist/dashboards/dashboard.contract.d.ts +16 -16
  41. package/dist/export-jobs/export-jobs.contract.d.ts +675 -675
  42. package/dist/exports-events/exports-events.schemas.d.ts +4 -4
  43. package/dist/index.d.ts +4 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +4 -0
  46. package/dist/jobs/jobs.contract.d.ts +7903 -7645
  47. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  48. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +72 -72
  49. package/dist/lead-assignments/lead-assignments.contract.d.ts +999 -928
  50. package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
  51. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +244 -220
  52. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
  53. package/dist/leads/leads.contract.d.ts +259 -259
  54. package/dist/notifications/notifications.contract.d.ts +67 -67
  55. package/dist/outreach/__tests__/outreach-claim.test.js +33 -0
  56. package/dist/outreach/__tests__/outreach-routes.test.js +8 -0
  57. package/dist/outreach/outreach.contract.d.ts +583 -162
  58. package/dist/outreach/outreach.contract.d.ts.map +1 -1
  59. package/dist/outreach/outreach.contract.js +50 -1
  60. package/dist/outreach/relay-hub-outreach.contract.d.ts +299 -121
  61. package/dist/outreach/relay-hub-outreach.contract.d.ts.map +1 -1
  62. package/dist/outreach/relay-hub-outreach.contract.js +10 -0
  63. package/dist/outreach/relay-hub-outreach.contract.spec.js +26 -0
  64. package/dist/outreach/relay-hub-outreach.schemas.d.ts +94 -0
  65. package/dist/outreach/relay-hub-outreach.schemas.d.ts.map +1 -0
  66. package/dist/outreach/relay-hub-outreach.schemas.js +15 -0
  67. package/dist/own-research/check-phone-response.spec.d.ts +2 -0
  68. package/dist/own-research/check-phone-response.spec.d.ts.map +1 -0
  69. package/dist/own-research/check-phone-response.spec.js +54 -0
  70. package/dist/own-research/own-research.contract.d.ts +801 -716
  71. package/dist/own-research/own-research.contract.d.ts.map +1 -1
  72. package/dist/own-research/own-research.contract.js +6 -1
  73. package/dist/user-access-grants/user-access-grants.contract.d.ts +179 -179
  74. package/dist/users/users.contract.d.ts +227 -198
  75. package/dist/users/users.contract.d.ts.map +1 -1
  76. package/dist/users/users.contract.js +9 -1
  77. package/dist/users/users.contract.spec.js +39 -0
  78. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +124 -124
  79. package/dist/workers/workers.contract.d.ts +2761 -2717
  80. package/dist/workers/workers.contract.d.ts.map +1 -1
  81. package/dist/workers/workers.contract.js +12 -0
  82. package/package.json +1 -1
@@ -12,11 +12,11 @@ export declare const EffectiveUserAccessGrantScopeSchema: z.ZodObject<{
12
12
  targetUserIds: z.ZodArray<z.ZodString, "many">;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  action: "READ";
15
- resource: "ACTIVE" | "WORKER" | "BOOKING";
15
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
16
16
  targetUserIds: string[];
17
17
  }, {
18
18
  action: "READ";
19
- resource: "ACTIVE" | "WORKER" | "BOOKING";
19
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
20
20
  targetUserIds: string[];
21
21
  }>;
22
22
  export type EffectiveUserAccessGrantScope = z.infer<typeof EffectiveUserAccessGrantScopeSchema>;
@@ -27,25 +27,25 @@ export declare const AccessGrantScopesResponseSchema: z.ZodObject<{
27
27
  targetUserIds: z.ZodArray<z.ZodString, "many">;
28
28
  }, "strip", z.ZodTypeAny, {
29
29
  action: "READ";
30
- resource: "ACTIVE" | "WORKER" | "BOOKING";
30
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
31
31
  targetUserIds: string[];
32
32
  }, {
33
33
  action: "READ";
34
- resource: "ACTIVE" | "WORKER" | "BOOKING";
34
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
35
35
  targetUserIds: string[];
36
36
  }>, "many">;
37
37
  validUntil: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  scopes: {
40
40
  action: "READ";
41
- resource: "ACTIVE" | "WORKER" | "BOOKING";
41
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
42
42
  targetUserIds: string[];
43
43
  }[];
44
44
  validUntil: string | null;
45
45
  }, {
46
46
  scopes: {
47
47
  action: "READ";
48
- resource: "ACTIVE" | "WORKER" | "BOOKING";
48
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
49
49
  targetUserIds: string[];
50
50
  }[];
51
51
  validUntil: string | Date | null;
@@ -238,8 +238,6 @@ export declare const UserAccessGrantSchema: z.ZodObject<{
238
238
  }>>;
239
239
  revocationReason: z.ZodNullable<z.ZodString>;
240
240
  }, "strip", z.ZodTypeAny, {
241
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
242
- id: string;
243
241
  createdAt: string;
244
242
  createdBy: {
245
243
  id: string;
@@ -253,10 +251,12 @@ export declare const UserAccessGrantSchema: z.ZodObject<{
253
251
  }[];
254
252
  deletedAt?: string | null | undefined;
255
253
  };
254
+ id: string;
255
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
256
256
  reason: string | null;
257
257
  expiresAt: string | null;
258
258
  action: "READ";
259
- resource: "ACTIVE" | "WORKER" | "BOOKING";
259
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
260
260
  grantee: {
261
261
  id: string;
262
262
  lastName: string;
@@ -296,8 +296,6 @@ export declare const UserAccessGrantSchema: z.ZodObject<{
296
296
  } | null;
297
297
  revocationReason: string | null;
298
298
  }, {
299
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
300
- id: string;
301
299
  createdAt: string | Date;
302
300
  createdBy: {
303
301
  id: string;
@@ -311,10 +309,12 @@ export declare const UserAccessGrantSchema: z.ZodObject<{
311
309
  }[] | undefined;
312
310
  deletedAt?: string | Date | null | undefined;
313
311
  };
312
+ id: string;
313
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
314
314
  reason: string | null;
315
315
  expiresAt: string | Date | null;
316
316
  action: "READ";
317
- resource: "ACTIVE" | "WORKER" | "BOOKING";
317
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
318
318
  grantee: {
319
319
  id: string;
320
320
  lastName: string;
@@ -364,12 +364,12 @@ export declare const CreateUserAccessGrantsSchema: z.ZodObject<{
364
364
  reason: string | null;
365
365
  expiresAt: string | null;
366
366
  targetUserIds: string[];
367
- resources: ("ACTIVE" | "WORKER" | "BOOKING")[];
367
+ resources: ("ACTIVE" | "BOOKING" | "WORKER")[];
368
368
  }, {
369
369
  reason: string | null;
370
370
  expiresAt: string | null;
371
371
  targetUserIds: string[];
372
- resources: ("ACTIVE" | "WORKER" | "BOOKING")[];
372
+ resources: ("ACTIVE" | "BOOKING" | "WORKER")[];
373
373
  }>;
374
374
  export type CreateUserAccessGrants = z.infer<typeof CreateUserAccessGrantsSchema>;
375
375
  export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
@@ -560,8 +560,6 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
560
560
  }>>;
561
561
  revocationReason: z.ZodNullable<z.ZodString>;
562
562
  }, "strip", z.ZodTypeAny, {
563
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
564
- id: string;
565
563
  createdAt: string;
566
564
  createdBy: {
567
565
  id: string;
@@ -575,10 +573,12 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
575
573
  }[];
576
574
  deletedAt?: string | null | undefined;
577
575
  };
576
+ id: string;
577
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
578
578
  reason: string | null;
579
579
  expiresAt: string | null;
580
580
  action: "READ";
581
- resource: "ACTIVE" | "WORKER" | "BOOKING";
581
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
582
582
  grantee: {
583
583
  id: string;
584
584
  lastName: string;
@@ -618,8 +618,6 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
618
618
  } | null;
619
619
  revocationReason: string | null;
620
620
  }, {
621
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
622
- id: string;
623
621
  createdAt: string | Date;
624
622
  createdBy: {
625
623
  id: string;
@@ -633,10 +631,12 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
633
631
  }[] | undefined;
634
632
  deletedAt?: string | Date | null | undefined;
635
633
  };
634
+ id: string;
635
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
636
636
  reason: string | null;
637
637
  expiresAt: string | Date | null;
638
638
  action: "READ";
639
- resource: "ACTIVE" | "WORKER" | "BOOKING";
639
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
640
640
  grantee: {
641
641
  id: string;
642
642
  lastName: string;
@@ -863,8 +863,6 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
863
863
  }>>;
864
864
  revocationReason: z.ZodNullable<z.ZodString>;
865
865
  }, "strip", z.ZodTypeAny, {
866
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
867
- id: string;
868
866
  createdAt: string;
869
867
  createdBy: {
870
868
  id: string;
@@ -878,10 +876,12 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
878
876
  }[];
879
877
  deletedAt?: string | null | undefined;
880
878
  };
879
+ id: string;
880
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
881
881
  reason: string | null;
882
882
  expiresAt: string | null;
883
883
  action: "READ";
884
- resource: "ACTIVE" | "WORKER" | "BOOKING";
884
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
885
885
  grantee: {
886
886
  id: string;
887
887
  lastName: string;
@@ -921,8 +921,6 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
921
921
  } | null;
922
922
  revocationReason: string | null;
923
923
  }, {
924
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
925
- id: string;
926
924
  createdAt: string | Date;
927
925
  createdBy: {
928
926
  id: string;
@@ -936,10 +934,12 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
936
934
  }[] | undefined;
937
935
  deletedAt?: string | Date | null | undefined;
938
936
  };
937
+ id: string;
938
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
939
939
  reason: string | null;
940
940
  expiresAt: string | Date | null;
941
941
  action: "READ";
942
- resource: "ACTIVE" | "WORKER" | "BOOKING";
942
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
943
943
  grantee: {
944
944
  id: string;
945
945
  lastName: string;
@@ -981,8 +981,6 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
981
981
  }>, "many">;
982
982
  }, "strip", z.ZodTypeAny, {
983
983
  created: {
984
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
985
- id: string;
986
984
  createdAt: string;
987
985
  createdBy: {
988
986
  id: string;
@@ -996,10 +994,12 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
996
994
  }[];
997
995
  deletedAt?: string | null | undefined;
998
996
  };
997
+ id: string;
998
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
999
999
  reason: string | null;
1000
1000
  expiresAt: string | null;
1001
1001
  action: "READ";
1002
- resource: "ACTIVE" | "WORKER" | "BOOKING";
1002
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
1003
1003
  grantee: {
1004
1004
  id: string;
1005
1005
  lastName: string;
@@ -1040,8 +1040,6 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
1040
1040
  revocationReason: string | null;
1041
1041
  }[];
1042
1042
  alreadyActive: {
1043
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
1044
- id: string;
1045
1043
  createdAt: string;
1046
1044
  createdBy: {
1047
1045
  id: string;
@@ -1055,10 +1053,12 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
1055
1053
  }[];
1056
1054
  deletedAt?: string | null | undefined;
1057
1055
  };
1056
+ id: string;
1057
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
1058
1058
  reason: string | null;
1059
1059
  expiresAt: string | null;
1060
1060
  action: "READ";
1061
- resource: "ACTIVE" | "WORKER" | "BOOKING";
1061
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
1062
1062
  grantee: {
1063
1063
  id: string;
1064
1064
  lastName: string;
@@ -1100,8 +1100,6 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
1100
1100
  }[];
1101
1101
  }, {
1102
1102
  created: {
1103
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
1104
- id: string;
1105
1103
  createdAt: string | Date;
1106
1104
  createdBy: {
1107
1105
  id: string;
@@ -1115,10 +1113,12 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
1115
1113
  }[] | undefined;
1116
1114
  deletedAt?: string | Date | null | undefined;
1117
1115
  };
1116
+ id: string;
1117
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
1118
1118
  reason: string | null;
1119
1119
  expiresAt: string | Date | null;
1120
1120
  action: "READ";
1121
- resource: "ACTIVE" | "WORKER" | "BOOKING";
1121
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
1122
1122
  grantee: {
1123
1123
  id: string;
1124
1124
  lastName: string;
@@ -1159,8 +1159,6 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
1159
1159
  revocationReason: string | null;
1160
1160
  }[];
1161
1161
  alreadyActive: {
1162
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
1163
- id: string;
1164
1162
  createdAt: string | Date;
1165
1163
  createdBy: {
1166
1164
  id: string;
@@ -1174,10 +1172,12 @@ export declare const CreateUserAccessGrantsResultSchema: z.ZodObject<{
1174
1172
  }[] | undefined;
1175
1173
  deletedAt?: string | Date | null | undefined;
1176
1174
  };
1175
+ id: string;
1176
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
1177
1177
  reason: string | null;
1178
1178
  expiresAt: string | Date | null;
1179
1179
  action: "READ";
1180
- resource: "ACTIVE" | "WORKER" | "BOOKING";
1180
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
1181
1181
  grantee: {
1182
1182
  id: string;
1183
1183
  lastName: string;
@@ -1230,11 +1230,11 @@ export declare const UserAccessGrantGranteeOfficeSchema: z.ZodObject<{
1230
1230
  id: z.ZodString;
1231
1231
  name: z.ZodString;
1232
1232
  }, "strip", z.ZodTypeAny, {
1233
- id: string;
1234
1233
  name: string;
1235
- }, {
1236
1234
  id: string;
1235
+ }, {
1237
1236
  name: string;
1237
+ id: string;
1238
1238
  }>;
1239
1239
  export declare const UserAccessGrantGranteeIdentitySchema: z.ZodObject<{
1240
1240
  id: z.ZodString;
@@ -1246,34 +1246,34 @@ export declare const UserAccessGrantGranteeIdentitySchema: z.ZodObject<{
1246
1246
  id: z.ZodString;
1247
1247
  name: z.ZodString;
1248
1248
  }, "strip", z.ZodTypeAny, {
1249
- id: string;
1250
1249
  name: string;
1251
- }, {
1252
1250
  id: string;
1251
+ }, {
1253
1252
  name: string;
1253
+ id: string;
1254
1254
  }>>;
1255
1255
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
1256
1256
  }, "strip", z.ZodTypeAny, {
1257
- status: "ACTIVE" | "INACTIVE";
1258
- id: string;
1259
1257
  email: string;
1258
+ id: string;
1259
+ status: "ACTIVE" | "INACTIVE";
1260
1260
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
1261
1261
  lastName: string;
1262
1262
  firstName: string;
1263
1263
  office: {
1264
- id: string;
1265
1264
  name: string;
1265
+ id: string;
1266
1266
  } | null;
1267
1267
  }, {
1268
- status: "ACTIVE" | "INACTIVE";
1269
- id: string;
1270
1268
  email: string;
1269
+ id: string;
1270
+ status: "ACTIVE" | "INACTIVE";
1271
1271
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
1272
1272
  lastName: string;
1273
1273
  firstName: string;
1274
1274
  office: {
1275
- id: string;
1276
1275
  name: string;
1276
+ id: string;
1277
1277
  } | null;
1278
1278
  }>;
1279
1279
  export type UserAccessGrantGranteeIdentity = z.infer<typeof UserAccessGrantGranteeIdentitySchema>;
@@ -1288,34 +1288,34 @@ export declare const UserAccessGrantGranteeSummarySchema: z.ZodObject<{
1288
1288
  id: z.ZodString;
1289
1289
  name: z.ZodString;
1290
1290
  }, "strip", z.ZodTypeAny, {
1291
- id: string;
1292
1291
  name: string;
1293
- }, {
1294
1292
  id: string;
1293
+ }, {
1295
1294
  name: string;
1295
+ id: string;
1296
1296
  }>>;
1297
1297
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
1298
1298
  }, "strip", z.ZodTypeAny, {
1299
- status: "ACTIVE" | "INACTIVE";
1300
- id: string;
1301
1299
  email: string;
1300
+ id: string;
1301
+ status: "ACTIVE" | "INACTIVE";
1302
1302
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
1303
1303
  lastName: string;
1304
1304
  firstName: string;
1305
1305
  office: {
1306
- id: string;
1307
1306
  name: string;
1307
+ id: string;
1308
1308
  } | null;
1309
1309
  }, {
1310
- status: "ACTIVE" | "INACTIVE";
1311
- id: string;
1312
1310
  email: string;
1311
+ id: string;
1312
+ status: "ACTIVE" | "INACTIVE";
1313
1313
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
1314
1314
  lastName: string;
1315
1315
  firstName: string;
1316
1316
  office: {
1317
- id: string;
1318
1317
  name: string;
1318
+ id: string;
1319
1319
  } | null;
1320
1320
  }>;
1321
1321
  activeResources: z.ZodArray<z.ZodEnum<["BOOKING", "ACTIVE", "WORKER"]>, "many">;
@@ -1325,36 +1325,36 @@ export declare const UserAccessGrantGranteeSummarySchema: z.ZodObject<{
1325
1325
  lastActivityAt: z.ZodNullable<z.ZodString>;
1326
1326
  }, "strip", z.ZodTypeAny, {
1327
1327
  grantee: {
1328
- status: "ACTIVE" | "INACTIVE";
1329
- id: string;
1330
1328
  email: string;
1329
+ id: string;
1330
+ status: "ACTIVE" | "INACTIVE";
1331
1331
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
1332
1332
  lastName: string;
1333
1333
  firstName: string;
1334
1334
  office: {
1335
- id: string;
1336
1335
  name: string;
1336
+ id: string;
1337
1337
  } | null;
1338
1338
  };
1339
- activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
1339
+ activeResources: ("ACTIVE" | "BOOKING" | "WORKER")[];
1340
1340
  activeTargetCount: number;
1341
1341
  activeGrantCount: number;
1342
1342
  nearestExpiry: string | null;
1343
1343
  lastActivityAt: string | null;
1344
1344
  }, {
1345
1345
  grantee: {
1346
- status: "ACTIVE" | "INACTIVE";
1347
- id: string;
1348
1346
  email: string;
1347
+ id: string;
1348
+ status: "ACTIVE" | "INACTIVE";
1349
1349
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
1350
1350
  lastName: string;
1351
1351
  firstName: string;
1352
1352
  office: {
1353
- id: string;
1354
1353
  name: string;
1354
+ id: string;
1355
1355
  } | null;
1356
1356
  };
1357
- activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
1357
+ activeResources: ("ACTIVE" | "BOOKING" | "WORKER")[];
1358
1358
  activeTargetCount: number;
1359
1359
  activeGrantCount: number;
1360
1360
  nearestExpiry: string | null;
@@ -1390,18 +1390,18 @@ export declare const FilterUserAccessGrantGranteesSchema: z.ZodObject<{
1390
1390
  limit: number;
1391
1391
  status?: "ACTIVE" | "INACTIVE" | undefined;
1392
1392
  query?: string | undefined;
1393
- resource?: "ACTIVE" | "WORKER" | "BOOKING" | undefined;
1393
+ resource?: "ACTIVE" | "BOOKING" | "WORKER" | undefined;
1394
1394
  grantState?: "HAS_ACTIVE" | "NO_ACTIVE" | undefined;
1395
1395
  }, {
1396
- status?: "ACTIVE" | "INACTIVE" | undefined;
1397
1396
  sort?: {
1398
1397
  field: "name" | "activeGrantCount" | "nearestExpiry" | "lastActivityAt";
1399
1398
  order: "ASC" | "DESC";
1400
1399
  }[] | null | undefined;
1401
1400
  page?: number | undefined;
1402
1401
  limit?: number | undefined;
1402
+ status?: "ACTIVE" | "INACTIVE" | undefined;
1403
1403
  query?: string | undefined;
1404
- resource?: "ACTIVE" | "WORKER" | "BOOKING" | undefined;
1404
+ resource?: "ACTIVE" | "BOOKING" | "WORKER" | undefined;
1405
1405
  grantState?: "HAS_ACTIVE" | "NO_ACTIVE" | undefined;
1406
1406
  }>;
1407
1407
  export type FilterUserAccessGrantGrantees = z.infer<typeof FilterUserAccessGrantGranteesSchema>;
@@ -1417,34 +1417,34 @@ export declare const PaginatedUserAccessGrantGranteesSchema: z.ZodObject<{
1417
1417
  id: z.ZodString;
1418
1418
  name: z.ZodString;
1419
1419
  }, "strip", z.ZodTypeAny, {
1420
- id: string;
1421
1420
  name: string;
1422
- }, {
1423
1421
  id: string;
1422
+ }, {
1424
1423
  name: string;
1424
+ id: string;
1425
1425
  }>>;
1426
1426
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
1427
1427
  }, "strip", z.ZodTypeAny, {
1428
- status: "ACTIVE" | "INACTIVE";
1429
- id: string;
1430
1428
  email: string;
1429
+ id: string;
1430
+ status: "ACTIVE" | "INACTIVE";
1431
1431
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
1432
1432
  lastName: string;
1433
1433
  firstName: string;
1434
1434
  office: {
1435
- id: string;
1436
1435
  name: string;
1436
+ id: string;
1437
1437
  } | null;
1438
1438
  }, {
1439
- status: "ACTIVE" | "INACTIVE";
1440
- id: string;
1441
1439
  email: string;
1440
+ id: string;
1441
+ status: "ACTIVE" | "INACTIVE";
1442
1442
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
1443
1443
  lastName: string;
1444
1444
  firstName: string;
1445
1445
  office: {
1446
- id: string;
1447
1446
  name: string;
1447
+ id: string;
1448
1448
  } | null;
1449
1449
  }>;
1450
1450
  activeResources: z.ZodArray<z.ZodEnum<["BOOKING", "ACTIVE", "WORKER"]>, "many">;
@@ -1454,36 +1454,36 @@ export declare const PaginatedUserAccessGrantGranteesSchema: z.ZodObject<{
1454
1454
  lastActivityAt: z.ZodNullable<z.ZodString>;
1455
1455
  }, "strip", z.ZodTypeAny, {
1456
1456
  grantee: {
1457
- status: "ACTIVE" | "INACTIVE";
1458
- id: string;
1459
1457
  email: string;
1458
+ id: string;
1459
+ status: "ACTIVE" | "INACTIVE";
1460
1460
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
1461
1461
  lastName: string;
1462
1462
  firstName: string;
1463
1463
  office: {
1464
- id: string;
1465
1464
  name: string;
1465
+ id: string;
1466
1466
  } | null;
1467
1467
  };
1468
- activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
1468
+ activeResources: ("ACTIVE" | "BOOKING" | "WORKER")[];
1469
1469
  activeTargetCount: number;
1470
1470
  activeGrantCount: number;
1471
1471
  nearestExpiry: string | null;
1472
1472
  lastActivityAt: string | null;
1473
1473
  }, {
1474
1474
  grantee: {
1475
- status: "ACTIVE" | "INACTIVE";
1476
- id: string;
1477
1475
  email: string;
1476
+ id: string;
1477
+ status: "ACTIVE" | "INACTIVE";
1478
1478
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
1479
1479
  lastName: string;
1480
1480
  firstName: string;
1481
1481
  office: {
1482
- id: string;
1483
1482
  name: string;
1483
+ id: string;
1484
1484
  } | null;
1485
1485
  };
1486
- activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
1486
+ activeResources: ("ACTIVE" | "BOOKING" | "WORKER")[];
1487
1487
  activeTargetCount: number;
1488
1488
  activeGrantCount: number;
1489
1489
  nearestExpiry: string | null;
@@ -1498,18 +1498,18 @@ export declare const PaginatedUserAccessGrantGranteesSchema: z.ZodObject<{
1498
1498
  limit: number;
1499
1499
  items: {
1500
1500
  grantee: {
1501
- status: "ACTIVE" | "INACTIVE";
1502
- id: string;
1503
1501
  email: string;
1502
+ id: string;
1503
+ status: "ACTIVE" | "INACTIVE";
1504
1504
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
1505
1505
  lastName: string;
1506
1506
  firstName: string;
1507
1507
  office: {
1508
- id: string;
1509
1508
  name: string;
1509
+ id: string;
1510
1510
  } | null;
1511
1511
  };
1512
- activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
1512
+ activeResources: ("ACTIVE" | "BOOKING" | "WORKER")[];
1513
1513
  activeTargetCount: number;
1514
1514
  activeGrantCount: number;
1515
1515
  nearestExpiry: string | null;
@@ -1523,18 +1523,18 @@ export declare const PaginatedUserAccessGrantGranteesSchema: z.ZodObject<{
1523
1523
  limit: number;
1524
1524
  items: {
1525
1525
  grantee: {
1526
- status: "ACTIVE" | "INACTIVE";
1527
- id: string;
1528
1526
  email: string;
1527
+ id: string;
1528
+ status: "ACTIVE" | "INACTIVE";
1529
1529
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
1530
1530
  lastName: string;
1531
1531
  firstName: string;
1532
1532
  office: {
1533
- id: string;
1534
1533
  name: string;
1534
+ id: string;
1535
1535
  } | null;
1536
1536
  };
1537
- activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
1537
+ activeResources: ("ACTIVE" | "BOOKING" | "WORKER")[];
1538
1538
  activeTargetCount: number;
1539
1539
  activeGrantCount: number;
1540
1540
  nearestExpiry: string | null;
@@ -1551,13 +1551,13 @@ export declare const UserAccessGrantListQuerySchema: z.ZodObject<{
1551
1551
  limit: z.ZodDefault<z.ZodNumber>;
1552
1552
  status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ACTIVE", "EXPIRED", "REVOKED", "ALL"]>>>;
1553
1553
  }, "strip", z.ZodTypeAny, {
1554
- status: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL";
1555
1554
  page: number;
1556
1555
  limit: number;
1556
+ status: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL";
1557
1557
  }, {
1558
- status?: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL" | undefined;
1559
1558
  page?: number | undefined;
1560
1559
  limit?: number | undefined;
1560
+ status?: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL" | undefined;
1561
1561
  }>;
1562
1562
  export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
1563
1563
  items: z.ZodArray<z.ZodObject<{
@@ -1747,8 +1747,6 @@ export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
1747
1747
  }>>;
1748
1748
  revocationReason: z.ZodNullable<z.ZodString>;
1749
1749
  }, "strip", z.ZodTypeAny, {
1750
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
1751
- id: string;
1752
1750
  createdAt: string;
1753
1751
  createdBy: {
1754
1752
  id: string;
@@ -1762,10 +1760,12 @@ export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
1762
1760
  }[];
1763
1761
  deletedAt?: string | null | undefined;
1764
1762
  };
1763
+ id: string;
1764
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
1765
1765
  reason: string | null;
1766
1766
  expiresAt: string | null;
1767
1767
  action: "READ";
1768
- resource: "ACTIVE" | "WORKER" | "BOOKING";
1768
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
1769
1769
  grantee: {
1770
1770
  id: string;
1771
1771
  lastName: string;
@@ -1805,8 +1805,6 @@ export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
1805
1805
  } | null;
1806
1806
  revocationReason: string | null;
1807
1807
  }, {
1808
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
1809
- id: string;
1810
1808
  createdAt: string | Date;
1811
1809
  createdBy: {
1812
1810
  id: string;
@@ -1820,10 +1818,12 @@ export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
1820
1818
  }[] | undefined;
1821
1819
  deletedAt?: string | Date | null | undefined;
1822
1820
  };
1821
+ id: string;
1822
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
1823
1823
  reason: string | null;
1824
1824
  expiresAt: string | Date | null;
1825
1825
  action: "READ";
1826
- resource: "ACTIVE" | "WORKER" | "BOOKING";
1826
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
1827
1827
  grantee: {
1828
1828
  id: string;
1829
1829
  lastName: string;
@@ -1871,8 +1871,6 @@ export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
1871
1871
  }, "strip", z.ZodTypeAny, {
1872
1872
  limit: number;
1873
1873
  items: {
1874
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
1875
- id: string;
1876
1874
  createdAt: string;
1877
1875
  createdBy: {
1878
1876
  id: string;
@@ -1886,10 +1884,12 @@ export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
1886
1884
  }[];
1887
1885
  deletedAt?: string | null | undefined;
1888
1886
  };
1887
+ id: string;
1888
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
1889
1889
  reason: string | null;
1890
1890
  expiresAt: string | null;
1891
1891
  action: "READ";
1892
- resource: "ACTIVE" | "WORKER" | "BOOKING";
1892
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
1893
1893
  grantee: {
1894
1894
  id: string;
1895
1895
  lastName: string;
@@ -1936,8 +1936,6 @@ export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
1936
1936
  }, {
1937
1937
  limit: number;
1938
1938
  items: {
1939
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
1940
- id: string;
1941
1939
  createdAt: string | Date;
1942
1940
  createdBy: {
1943
1941
  id: string;
@@ -1951,10 +1949,12 @@ export declare const PaginatedUserAccessGrantsSchema: z.ZodObject<{
1951
1949
  }[] | undefined;
1952
1950
  deletedAt?: string | Date | null | undefined;
1953
1951
  };
1952
+ id: string;
1953
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
1954
1954
  reason: string | null;
1955
1955
  expiresAt: string | Date | null;
1956
1956
  action: "READ";
1957
- resource: "ACTIVE" | "WORKER" | "BOOKING";
1957
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
1958
1958
  grantee: {
1959
1959
  id: string;
1960
1960
  lastName: string;
@@ -2028,18 +2028,18 @@ export declare const userAccessGrantsContract: {
2028
2028
  limit: number;
2029
2029
  status?: "ACTIVE" | "INACTIVE" | undefined;
2030
2030
  query?: string | undefined;
2031
- resource?: "ACTIVE" | "WORKER" | "BOOKING" | undefined;
2031
+ resource?: "ACTIVE" | "BOOKING" | "WORKER" | undefined;
2032
2032
  grantState?: "HAS_ACTIVE" | "NO_ACTIVE" | undefined;
2033
2033
  }, {
2034
- status?: "ACTIVE" | "INACTIVE" | undefined;
2035
2034
  sort?: {
2036
2035
  field: "name" | "activeGrantCount" | "nearestExpiry" | "lastActivityAt";
2037
2036
  order: "ASC" | "DESC";
2038
2037
  }[] | null | undefined;
2039
2038
  page?: number | undefined;
2040
2039
  limit?: number | undefined;
2040
+ status?: "ACTIVE" | "INACTIVE" | undefined;
2041
2041
  query?: string | undefined;
2042
- resource?: "ACTIVE" | "WORKER" | "BOOKING" | undefined;
2042
+ resource?: "ACTIVE" | "BOOKING" | "WORKER" | undefined;
2043
2043
  grantState?: "HAS_ACTIVE" | "NO_ACTIVE" | undefined;
2044
2044
  }>;
2045
2045
  summary: "List users with aggregate access-grant administration status";
@@ -2058,34 +2058,34 @@ export declare const userAccessGrantsContract: {
2058
2058
  id: z.ZodString;
2059
2059
  name: z.ZodString;
2060
2060
  }, "strip", z.ZodTypeAny, {
2061
- id: string;
2062
2061
  name: string;
2063
- }, {
2064
2062
  id: string;
2063
+ }, {
2065
2064
  name: string;
2065
+ id: string;
2066
2066
  }>>;
2067
2067
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
2068
2068
  }, "strip", z.ZodTypeAny, {
2069
- status: "ACTIVE" | "INACTIVE";
2070
- id: string;
2071
2069
  email: string;
2070
+ id: string;
2071
+ status: "ACTIVE" | "INACTIVE";
2072
2072
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
2073
2073
  lastName: string;
2074
2074
  firstName: string;
2075
2075
  office: {
2076
- id: string;
2077
2076
  name: string;
2077
+ id: string;
2078
2078
  } | null;
2079
2079
  }, {
2080
- status: "ACTIVE" | "INACTIVE";
2081
- id: string;
2082
2080
  email: string;
2081
+ id: string;
2082
+ status: "ACTIVE" | "INACTIVE";
2083
2083
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
2084
2084
  lastName: string;
2085
2085
  firstName: string;
2086
2086
  office: {
2087
- id: string;
2088
2087
  name: string;
2088
+ id: string;
2089
2089
  } | null;
2090
2090
  }>;
2091
2091
  activeResources: z.ZodArray<z.ZodEnum<["BOOKING", "ACTIVE", "WORKER"]>, "many">;
@@ -2095,36 +2095,36 @@ export declare const userAccessGrantsContract: {
2095
2095
  lastActivityAt: z.ZodNullable<z.ZodString>;
2096
2096
  }, "strip", z.ZodTypeAny, {
2097
2097
  grantee: {
2098
- status: "ACTIVE" | "INACTIVE";
2099
- id: string;
2100
2098
  email: string;
2099
+ id: string;
2100
+ status: "ACTIVE" | "INACTIVE";
2101
2101
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
2102
2102
  lastName: string;
2103
2103
  firstName: string;
2104
2104
  office: {
2105
- id: string;
2106
2105
  name: string;
2106
+ id: string;
2107
2107
  } | null;
2108
2108
  };
2109
- activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
2109
+ activeResources: ("ACTIVE" | "BOOKING" | "WORKER")[];
2110
2110
  activeTargetCount: number;
2111
2111
  activeGrantCount: number;
2112
2112
  nearestExpiry: string | null;
2113
2113
  lastActivityAt: string | null;
2114
2114
  }, {
2115
2115
  grantee: {
2116
- status: "ACTIVE" | "INACTIVE";
2117
- id: string;
2118
2116
  email: string;
2117
+ id: string;
2118
+ status: "ACTIVE" | "INACTIVE";
2119
2119
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
2120
2120
  lastName: string;
2121
2121
  firstName: string;
2122
2122
  office: {
2123
- id: string;
2124
2123
  name: string;
2124
+ id: string;
2125
2125
  } | null;
2126
2126
  };
2127
- activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
2127
+ activeResources: ("ACTIVE" | "BOOKING" | "WORKER")[];
2128
2128
  activeTargetCount: number;
2129
2129
  activeGrantCount: number;
2130
2130
  nearestExpiry: string | null;
@@ -2139,18 +2139,18 @@ export declare const userAccessGrantsContract: {
2139
2139
  limit: number;
2140
2140
  items: {
2141
2141
  grantee: {
2142
- status: "ACTIVE" | "INACTIVE";
2143
- id: string;
2144
2142
  email: string;
2143
+ id: string;
2144
+ status: "ACTIVE" | "INACTIVE";
2145
2145
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
2146
2146
  lastName: string;
2147
2147
  firstName: string;
2148
2148
  office: {
2149
- id: string;
2150
2149
  name: string;
2150
+ id: string;
2151
2151
  } | null;
2152
2152
  };
2153
- activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
2153
+ activeResources: ("ACTIVE" | "BOOKING" | "WORKER")[];
2154
2154
  activeTargetCount: number;
2155
2155
  activeGrantCount: number;
2156
2156
  nearestExpiry: string | null;
@@ -2164,18 +2164,18 @@ export declare const userAccessGrantsContract: {
2164
2164
  limit: number;
2165
2165
  items: {
2166
2166
  grantee: {
2167
- status: "ACTIVE" | "INACTIVE";
2168
- id: string;
2169
2167
  email: string;
2168
+ id: string;
2169
+ status: "ACTIVE" | "INACTIVE";
2170
2170
  roles: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[];
2171
2171
  lastName: string;
2172
2172
  firstName: string;
2173
2173
  office: {
2174
- id: string;
2175
2174
  name: string;
2175
+ id: string;
2176
2176
  } | null;
2177
2177
  };
2178
- activeResources: ("ACTIVE" | "WORKER" | "BOOKING")[];
2178
+ activeResources: ("ACTIVE" | "BOOKING" | "WORKER")[];
2179
2179
  activeTargetCount: number;
2180
2180
  activeGrantCount: number;
2181
2181
  nearestExpiry: string | null;
@@ -2239,26 +2239,26 @@ export declare const userAccessGrantsContract: {
2239
2239
  };
2240
2240
  };
2241
2241
  list: {
2242
+ pathParams: z.ZodObject<{
2243
+ granteeUserId: z.ZodString;
2244
+ }, "strip", z.ZodTypeAny, {
2245
+ granteeUserId: string;
2246
+ }, {
2247
+ granteeUserId: string;
2248
+ }>;
2242
2249
  query: z.ZodObject<{
2243
2250
  page: z.ZodDefault<z.ZodNumber>;
2244
2251
  } & {
2245
2252
  limit: z.ZodDefault<z.ZodNumber>;
2246
2253
  status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ACTIVE", "EXPIRED", "REVOKED", "ALL"]>>>;
2247
2254
  }, "strip", z.ZodTypeAny, {
2248
- status: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL";
2249
2255
  page: number;
2250
2256
  limit: number;
2257
+ status: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL";
2251
2258
  }, {
2252
- status?: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL" | undefined;
2253
2259
  page?: number | undefined;
2254
2260
  limit?: number | undefined;
2255
- }>;
2256
- pathParams: z.ZodObject<{
2257
- granteeUserId: z.ZodString;
2258
- }, "strip", z.ZodTypeAny, {
2259
- granteeUserId: string;
2260
- }, {
2261
- granteeUserId: string;
2261
+ status?: "ACTIVE" | "EXPIRED" | "REVOKED" | "ALL" | undefined;
2262
2262
  }>;
2263
2263
  summary: "List access grants (audit history) for a grantee";
2264
2264
  method: "GET";
@@ -2452,8 +2452,6 @@ export declare const userAccessGrantsContract: {
2452
2452
  }>>;
2453
2453
  revocationReason: z.ZodNullable<z.ZodString>;
2454
2454
  }, "strip", z.ZodTypeAny, {
2455
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
2456
- id: string;
2457
2455
  createdAt: string;
2458
2456
  createdBy: {
2459
2457
  id: string;
@@ -2467,10 +2465,12 @@ export declare const userAccessGrantsContract: {
2467
2465
  }[];
2468
2466
  deletedAt?: string | null | undefined;
2469
2467
  };
2468
+ id: string;
2469
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
2470
2470
  reason: string | null;
2471
2471
  expiresAt: string | null;
2472
2472
  action: "READ";
2473
- resource: "ACTIVE" | "WORKER" | "BOOKING";
2473
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
2474
2474
  grantee: {
2475
2475
  id: string;
2476
2476
  lastName: string;
@@ -2510,8 +2510,6 @@ export declare const userAccessGrantsContract: {
2510
2510
  } | null;
2511
2511
  revocationReason: string | null;
2512
2512
  }, {
2513
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
2514
- id: string;
2515
2513
  createdAt: string | Date;
2516
2514
  createdBy: {
2517
2515
  id: string;
@@ -2525,10 +2523,12 @@ export declare const userAccessGrantsContract: {
2525
2523
  }[] | undefined;
2526
2524
  deletedAt?: string | Date | null | undefined;
2527
2525
  };
2526
+ id: string;
2527
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
2528
2528
  reason: string | null;
2529
2529
  expiresAt: string | Date | null;
2530
2530
  action: "READ";
2531
- resource: "ACTIVE" | "WORKER" | "BOOKING";
2531
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
2532
2532
  grantee: {
2533
2533
  id: string;
2534
2534
  lastName: string;
@@ -2576,8 +2576,6 @@ export declare const userAccessGrantsContract: {
2576
2576
  }, "strip", z.ZodTypeAny, {
2577
2577
  limit: number;
2578
2578
  items: {
2579
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
2580
- id: string;
2581
2579
  createdAt: string;
2582
2580
  createdBy: {
2583
2581
  id: string;
@@ -2591,10 +2589,12 @@ export declare const userAccessGrantsContract: {
2591
2589
  }[];
2592
2590
  deletedAt?: string | null | undefined;
2593
2591
  };
2592
+ id: string;
2593
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
2594
2594
  reason: string | null;
2595
2595
  expiresAt: string | null;
2596
2596
  action: "READ";
2597
- resource: "ACTIVE" | "WORKER" | "BOOKING";
2597
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
2598
2598
  grantee: {
2599
2599
  id: string;
2600
2600
  lastName: string;
@@ -2641,8 +2641,6 @@ export declare const userAccessGrantsContract: {
2641
2641
  }, {
2642
2642
  limit: number;
2643
2643
  items: {
2644
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
2645
- id: string;
2646
2644
  createdAt: string | Date;
2647
2645
  createdBy: {
2648
2646
  id: string;
@@ -2656,10 +2654,12 @@ export declare const userAccessGrantsContract: {
2656
2654
  }[] | undefined;
2657
2655
  deletedAt?: string | Date | null | undefined;
2658
2656
  };
2657
+ id: string;
2658
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
2659
2659
  reason: string | null;
2660
2660
  expiresAt: string | Date | null;
2661
2661
  action: "READ";
2662
- resource: "ACTIVE" | "WORKER" | "BOOKING";
2662
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
2663
2663
  grantee: {
2664
2664
  id: string;
2665
2665
  lastName: string;
@@ -2800,12 +2800,12 @@ export declare const userAccessGrantsContract: {
2800
2800
  reason: string | null;
2801
2801
  expiresAt: string | null;
2802
2802
  targetUserIds: string[];
2803
- resources: ("ACTIVE" | "WORKER" | "BOOKING")[];
2803
+ resources: ("ACTIVE" | "BOOKING" | "WORKER")[];
2804
2804
  }, {
2805
2805
  reason: string | null;
2806
2806
  expiresAt: string | null;
2807
2807
  targetUserIds: string[];
2808
- resources: ("ACTIVE" | "WORKER" | "BOOKING")[];
2808
+ resources: ("ACTIVE" | "BOOKING" | "WORKER")[];
2809
2809
  }>;
2810
2810
  path: "/v2/users/:granteeUserId/access-grants";
2811
2811
  responses: {
@@ -2997,8 +2997,6 @@ export declare const userAccessGrantsContract: {
2997
2997
  }>>;
2998
2998
  revocationReason: z.ZodNullable<z.ZodString>;
2999
2999
  }, "strip", z.ZodTypeAny, {
3000
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
3001
- id: string;
3002
3000
  createdAt: string;
3003
3001
  createdBy: {
3004
3002
  id: string;
@@ -3012,10 +3010,12 @@ export declare const userAccessGrantsContract: {
3012
3010
  }[];
3013
3011
  deletedAt?: string | null | undefined;
3014
3012
  };
3013
+ id: string;
3014
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
3015
3015
  reason: string | null;
3016
3016
  expiresAt: string | null;
3017
3017
  action: "READ";
3018
- resource: "ACTIVE" | "WORKER" | "BOOKING";
3018
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
3019
3019
  grantee: {
3020
3020
  id: string;
3021
3021
  lastName: string;
@@ -3055,8 +3055,6 @@ export declare const userAccessGrantsContract: {
3055
3055
  } | null;
3056
3056
  revocationReason: string | null;
3057
3057
  }, {
3058
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
3059
- id: string;
3060
3058
  createdAt: string | Date;
3061
3059
  createdBy: {
3062
3060
  id: string;
@@ -3070,10 +3068,12 @@ export declare const userAccessGrantsContract: {
3070
3068
  }[] | undefined;
3071
3069
  deletedAt?: string | Date | null | undefined;
3072
3070
  };
3071
+ id: string;
3072
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
3073
3073
  reason: string | null;
3074
3074
  expiresAt: string | Date | null;
3075
3075
  action: "READ";
3076
- resource: "ACTIVE" | "WORKER" | "BOOKING";
3076
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
3077
3077
  grantee: {
3078
3078
  id: string;
3079
3079
  lastName: string;
@@ -3300,8 +3300,6 @@ export declare const userAccessGrantsContract: {
3300
3300
  }>>;
3301
3301
  revocationReason: z.ZodNullable<z.ZodString>;
3302
3302
  }, "strip", z.ZodTypeAny, {
3303
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
3304
- id: string;
3305
3303
  createdAt: string;
3306
3304
  createdBy: {
3307
3305
  id: string;
@@ -3315,10 +3313,12 @@ export declare const userAccessGrantsContract: {
3315
3313
  }[];
3316
3314
  deletedAt?: string | null | undefined;
3317
3315
  };
3316
+ id: string;
3317
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
3318
3318
  reason: string | null;
3319
3319
  expiresAt: string | null;
3320
3320
  action: "READ";
3321
- resource: "ACTIVE" | "WORKER" | "BOOKING";
3321
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
3322
3322
  grantee: {
3323
3323
  id: string;
3324
3324
  lastName: string;
@@ -3358,8 +3358,6 @@ export declare const userAccessGrantsContract: {
3358
3358
  } | null;
3359
3359
  revocationReason: string | null;
3360
3360
  }, {
3361
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
3362
- id: string;
3363
3361
  createdAt: string | Date;
3364
3362
  createdBy: {
3365
3363
  id: string;
@@ -3373,10 +3371,12 @@ export declare const userAccessGrantsContract: {
3373
3371
  }[] | undefined;
3374
3372
  deletedAt?: string | Date | null | undefined;
3375
3373
  };
3374
+ id: string;
3375
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
3376
3376
  reason: string | null;
3377
3377
  expiresAt: string | Date | null;
3378
3378
  action: "READ";
3379
- resource: "ACTIVE" | "WORKER" | "BOOKING";
3379
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
3380
3380
  grantee: {
3381
3381
  id: string;
3382
3382
  lastName: string;
@@ -3418,8 +3418,6 @@ export declare const userAccessGrantsContract: {
3418
3418
  }>, "many">;
3419
3419
  }, "strip", z.ZodTypeAny, {
3420
3420
  created: {
3421
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
3422
- id: string;
3423
3421
  createdAt: string;
3424
3422
  createdBy: {
3425
3423
  id: string;
@@ -3433,10 +3431,12 @@ export declare const userAccessGrantsContract: {
3433
3431
  }[];
3434
3432
  deletedAt?: string | null | undefined;
3435
3433
  };
3434
+ id: string;
3435
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
3436
3436
  reason: string | null;
3437
3437
  expiresAt: string | null;
3438
3438
  action: "READ";
3439
- resource: "ACTIVE" | "WORKER" | "BOOKING";
3439
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
3440
3440
  grantee: {
3441
3441
  id: string;
3442
3442
  lastName: string;
@@ -3477,8 +3477,6 @@ export declare const userAccessGrantsContract: {
3477
3477
  revocationReason: string | null;
3478
3478
  }[];
3479
3479
  alreadyActive: {
3480
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
3481
- id: string;
3482
3480
  createdAt: string;
3483
3481
  createdBy: {
3484
3482
  id: string;
@@ -3492,10 +3490,12 @@ export declare const userAccessGrantsContract: {
3492
3490
  }[];
3493
3491
  deletedAt?: string | null | undefined;
3494
3492
  };
3493
+ id: string;
3494
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
3495
3495
  reason: string | null;
3496
3496
  expiresAt: string | null;
3497
3497
  action: "READ";
3498
- resource: "ACTIVE" | "WORKER" | "BOOKING";
3498
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
3499
3499
  grantee: {
3500
3500
  id: string;
3501
3501
  lastName: string;
@@ -3537,8 +3537,6 @@ export declare const userAccessGrantsContract: {
3537
3537
  }[];
3538
3538
  }, {
3539
3539
  created: {
3540
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
3541
- id: string;
3542
3540
  createdAt: string | Date;
3543
3541
  createdBy: {
3544
3542
  id: string;
@@ -3552,10 +3550,12 @@ export declare const userAccessGrantsContract: {
3552
3550
  }[] | undefined;
3553
3551
  deletedAt?: string | Date | null | undefined;
3554
3552
  };
3553
+ id: string;
3554
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
3555
3555
  reason: string | null;
3556
3556
  expiresAt: string | Date | null;
3557
3557
  action: "READ";
3558
- resource: "ACTIVE" | "WORKER" | "BOOKING";
3558
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
3559
3559
  grantee: {
3560
3560
  id: string;
3561
3561
  lastName: string;
@@ -3596,8 +3596,6 @@ export declare const userAccessGrantsContract: {
3596
3596
  revocationReason: string | null;
3597
3597
  }[];
3598
3598
  alreadyActive: {
3599
- status: "ACTIVE" | "EXPIRED" | "REVOKED";
3600
- id: string;
3601
3599
  createdAt: string | Date;
3602
3600
  createdBy: {
3603
3601
  id: string;
@@ -3611,10 +3609,12 @@ export declare const userAccessGrantsContract: {
3611
3609
  }[] | undefined;
3612
3610
  deletedAt?: string | Date | null | undefined;
3613
3611
  };
3612
+ id: string;
3613
+ status: "ACTIVE" | "EXPIRED" | "REVOKED";
3614
3614
  reason: string | null;
3615
3615
  expiresAt: string | Date | null;
3616
3616
  action: "READ";
3617
- resource: "ACTIVE" | "WORKER" | "BOOKING";
3617
+ resource: "ACTIVE" | "BOOKING" | "WORKER";
3618
3618
  grantee: {
3619
3619
  id: string;
3620
3620
  lastName: string;