@dakkitor/api-contracts 1.8.0 → 1.9.2

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 (139) hide show
  1. package/dist/abilities/abilities.contract.d.ts +28 -1
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -1
  3. package/dist/abilities/abilities.contract.js +32 -1
  4. package/dist/abilities/abilities.contract.spec.js +63 -3
  5. package/dist/abilities/admin-dashboard.abilities.test.js +1 -0
  6. package/dist/abilities/automatic-caller.abilities.json +1 -0
  7. package/dist/abilities/first-agent.abilities.json +14 -0
  8. package/dist/abilities/interconnection.abilities.json +17 -1
  9. package/dist/abilities/office-manager.abilities.json +4 -0
  10. package/dist/abilities/second-agent.abilities.json +48 -1
  11. package/dist/abilities/worker-curator.abilities.json +17 -1
  12. package/dist/actives/actives.contract.d.ts +6959 -6547
  13. package/dist/actives/actives.contract.d.ts.map +1 -1
  14. package/dist/agent-client-links/agent-client-links.contract.d.ts +1275 -1173
  15. package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
  16. package/dist/auth/auth.contract.d.ts +102 -102
  17. package/dist/bookings/backdate-guard.spec.js +24 -32
  18. package/dist/bookings/bookings.contract.d.ts +9963 -9305
  19. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  20. package/dist/bookings/bookings.contract.js +2 -16
  21. package/dist/call-history/call-history.contract.d.ts +1040 -828
  22. package/dist/call-history/call-history.contract.d.ts.map +1 -1
  23. package/dist/calls-feed/calls-feed.contract.d.ts +138 -98
  24. package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
  25. package/dist/candidate-calling/candidate-calling.contract.d.ts +18372 -0
  26. package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -0
  27. package/dist/candidate-calling/candidate-calling.contract.js +494 -0
  28. package/dist/candidate-calling/candidate-calling.contract.spec.d.ts +2 -0
  29. package/dist/candidate-calling/candidate-calling.contract.spec.d.ts.map +1 -0
  30. package/dist/candidate-calling/candidate-calling.contract.spec.js +357 -0
  31. package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts +10 -0
  32. package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts.map +1 -0
  33. package/dist/candidate-calling/candidate-dialpad-call.schemas.js +33 -0
  34. package/dist/client-contacts/client-contacts.contract.d.ts +622 -622
  35. package/dist/clients/clients.contract.d.ts +289 -289
  36. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3108 -3004
  37. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
  38. package/dist/collaborations/collaborations.contract.d.ts +2604 -2507
  39. package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
  40. package/dist/common/callback-slots.d.ts +4 -0
  41. package/dist/common/callback-slots.d.ts.map +1 -0
  42. package/dist/common/callback-slots.js +20 -0
  43. package/dist/common/common-schemas.d.ts +10 -4
  44. package/dist/common/common-schemas.d.ts.map +1 -1
  45. package/dist/common/common-schemas.js +6 -0
  46. package/dist/companies/companies.contract.d.ts +120 -120
  47. package/dist/crews/crews.contract.d.ts +278 -278
  48. package/dist/cron-executions/cron-executions.contract.d.ts +245 -245
  49. package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
  50. package/dist/cron-executions/cron-executions.contract.js +1 -0
  51. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +3830 -2354
  52. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
  53. package/dist/curated-worker-leads/candidate-coordination.contract.js +73 -7
  54. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +94 -94
  55. package/dist/curated-worker-leads/contact-history.spec.js +141 -0
  56. package/dist/curated-worker-leads/job-candidate-cards.spec.js +19 -0
  57. package/dist/curated-worker-leads/job-candidates.spec.js +179 -0
  58. package/dist/curated-worker-leads/jobs-tab.contract.d.ts +8185 -2106
  59. package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
  60. package/dist/curated-worker-leads/jobs-tab.contract.js +126 -1
  61. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +110 -110
  62. package/dist/curated-workers/curated-workers.contract.d.ts +2033 -1951
  63. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  64. package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts +2 -0
  65. package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts.map +1 -0
  66. package/dist/dashboards/dashboard-widgets.contact-history.spec.js +160 -0
  67. package/dist/dashboards/dashboard-widgets.contract.d.ts +1027 -284
  68. package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
  69. package/dist/dashboards/dashboard-widgets.contract.js +46 -1
  70. package/dist/dashboards/dashboard.contract.d.ts +8 -8
  71. package/dist/document-intake/document-intake.contract.d.ts +1145 -1145
  72. package/dist/export-jobs/export-jobs.contract.d.ts +755 -755
  73. package/dist/exports-events/exports-events.schemas.d.ts +6 -6
  74. package/dist/index.d.ts +5 -0
  75. package/dist/index.d.ts.map +1 -1
  76. package/dist/index.js +5 -0
  77. package/dist/jobs/jobs.contract.d.ts +8507 -6044
  78. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  79. package/dist/jobs/jobs.contract.js +95 -2
  80. package/dist/jobs/jobs.contract.spec.js +231 -1
  81. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +102 -102
  82. package/dist/lead-assignments/lead-assignments.contract.d.ts +2985 -1139
  83. package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
  84. package/dist/lead-assignments/lead-assignments.contract.js +102 -2
  85. package/dist/lead-assignments/lead-assignments.contract.spec.d.ts +2 -0
  86. package/dist/lead-assignments/lead-assignments.contract.spec.d.ts.map +1 -0
  87. package/dist/lead-assignments/lead-assignments.contract.spec.js +51 -0
  88. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +341 -317
  89. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
  90. package/dist/leads/leads.contract.d.ts +282 -282
  91. package/dist/locations/location-enrichment.contract.spec.d.ts +2 -0
  92. package/dist/locations/location-enrichment.contract.spec.d.ts.map +1 -0
  93. package/dist/locations/location-enrichment.contract.spec.js +50 -0
  94. package/dist/locations/locations.contract.d.ts +132 -98
  95. package/dist/locations/locations.contract.d.ts.map +1 -1
  96. package/dist/locations/locations.contract.js +10 -0
  97. package/dist/notifications/notifications.contract.d.ts +579 -107
  98. package/dist/notifications/notifications.contract.d.ts.map +1 -1
  99. package/dist/notifications/notifications.contract.js +36 -2
  100. package/dist/notifications/notifications.contract.spec.d.ts +2 -0
  101. package/dist/notifications/notifications.contract.spec.d.ts.map +1 -0
  102. package/dist/notifications/notifications.contract.spec.js +39 -0
  103. package/dist/outreach/__tests__/outreach-claim.test.js +33 -0
  104. package/dist/outreach/__tests__/outreach-routes.test.js +8 -0
  105. package/dist/outreach/outreach.contract.d.ts +583 -162
  106. package/dist/outreach/outreach.contract.d.ts.map +1 -1
  107. package/dist/outreach/outreach.contract.js +50 -1
  108. package/dist/outreach/relay-hub-outreach.contract.d.ts +299 -121
  109. package/dist/outreach/relay-hub-outreach.contract.d.ts.map +1 -1
  110. package/dist/outreach/relay-hub-outreach.contract.js +10 -0
  111. package/dist/outreach/relay-hub-outreach.contract.spec.js +26 -0
  112. package/dist/outreach/relay-hub-outreach.schemas.d.ts +94 -0
  113. package/dist/outreach/relay-hub-outreach.schemas.d.ts.map +1 -0
  114. package/dist/outreach/relay-hub-outreach.schemas.js +15 -0
  115. package/dist/own-research/check-phone-response.spec.d.ts +2 -0
  116. package/dist/own-research/check-phone-response.spec.d.ts.map +1 -0
  117. package/dist/own-research/check-phone-response.spec.js +54 -0
  118. package/dist/own-research/own-research.contract.d.ts +971 -820
  119. package/dist/own-research/own-research.contract.d.ts.map +1 -1
  120. package/dist/own-research/own-research.contract.js +6 -1
  121. package/dist/proofs/proofs.contract.d.ts +356 -356
  122. package/dist/proofs/proofs.dtos.d.ts +148 -148
  123. package/dist/realtime/job-call-priority-updated.d.ts +18 -0
  124. package/dist/realtime/job-call-priority-updated.d.ts.map +1 -0
  125. package/dist/realtime/job-call-priority-updated.js +17 -0
  126. package/dist/shared/summary-schemas.d.ts +36 -27
  127. package/dist/shared/summary-schemas.d.ts.map +1 -1
  128. package/dist/shared/summary-schemas.js +7 -0
  129. package/dist/sheets-sync/sheets-sync.contract.d.ts +683 -683
  130. package/dist/user-access-grants/user-access-grants.contract.d.ts +216 -216
  131. package/dist/users/users.contract.d.ts +365 -336
  132. package/dist/users/users.contract.d.ts.map +1 -1
  133. package/dist/users/users.contract.js +9 -1
  134. package/dist/users/users.contract.spec.js +39 -0
  135. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +150 -150
  136. package/dist/workers/workers.contract.d.ts +4505 -4261
  137. package/dist/workers/workers.contract.d.ts.map +1 -1
  138. package/dist/workers/workers.contract.js +12 -0
  139. package/package.json +1 -1
@@ -12,25 +12,25 @@ export declare const AgentLeadDistributionSchema: z.ZodObject<{
12
12
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
13
13
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
14
14
  }, "strip", z.ZodTypeAny, {
15
- id: string;
16
15
  name: string;
17
- updatedAt: string;
18
16
  createdAt: string;
19
- }, {
17
+ updatedAt: string;
20
18
  id: string;
19
+ }, {
21
20
  name: string;
22
- updatedAt: string | Date;
23
21
  createdAt: string | Date;
22
+ updatedAt: string | Date;
23
+ id: string;
24
24
  }>>>;
25
25
  }, "strip", z.ZodTypeAny, {
26
26
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
27
27
  agentId: string;
28
28
  companyId?: string | null | undefined;
29
29
  company?: {
30
- id: string;
31
30
  name: string;
32
- updatedAt: string;
33
31
  createdAt: string;
32
+ updatedAt: string;
33
+ id: string;
34
34
  } | null | undefined;
35
35
  leadDistributionConfigId?: string | null | undefined;
36
36
  }, {
@@ -38,10 +38,10 @@ export declare const AgentLeadDistributionSchema: z.ZodObject<{
38
38
  agentId: string;
39
39
  companyId?: string | null | undefined;
40
40
  company?: {
41
- id: string;
42
41
  name: string;
43
- updatedAt: string | Date;
44
42
  createdAt: string | Date;
43
+ updatedAt: string | Date;
44
+ id: string;
45
45
  } | null | undefined;
46
46
  leadDistributionConfigId?: string | null | undefined;
47
47
  }>;
@@ -55,12 +55,12 @@ export declare const AgentLeadDistributionConfigRefSchema: z.ZodOptional<z.ZodNu
55
55
  mediumMinWeight: z.ZodNumber;
56
56
  highMinWeight: z.ZodNumber;
57
57
  isActive: z.ZodBoolean;
58
- }, "id" | "name">, "strip", z.ZodTypeAny, {
59
- id: string;
58
+ }, "name" | "id">, "strip", z.ZodTypeAny, {
60
59
  name: string;
61
- }, {
62
60
  id: string;
61
+ }, {
63
62
  name: string;
63
+ id: string;
64
64
  }>>>;
65
65
  export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
66
66
  agentId: z.ZodString;
@@ -73,15 +73,15 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
73
73
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
74
74
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
75
75
  }, "strip", z.ZodTypeAny, {
76
- id: string;
77
76
  name: string;
78
- updatedAt: string;
79
77
  createdAt: string;
80
- }, {
78
+ updatedAt: string;
81
79
  id: string;
80
+ }, {
82
81
  name: string;
83
- updatedAt: string | Date;
84
82
  createdAt: string | Date;
83
+ updatedAt: string | Date;
84
+ id: string;
85
85
  }>>>;
86
86
  } & {
87
87
  id: z.ZodString;
@@ -125,16 +125,16 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
125
125
  firstName: string;
126
126
  }>, "many">>;
127
127
  }, "strip", z.ZodTypeAny, {
128
- id: string;
129
128
  name: string;
129
+ id: string;
130
130
  managers?: {
131
131
  id: string;
132
132
  lastName: string;
133
133
  firstName: string;
134
134
  }[] | undefined;
135
135
  }, {
136
- id: string;
137
136
  name: string;
137
+ id: string;
138
138
  managers?: {
139
139
  id: string;
140
140
  lastName: string;
@@ -155,15 +155,16 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
155
155
  firstName: string;
156
156
  }>, "many">>;
157
157
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
158
+ dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
158
159
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
159
160
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
160
161
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
161
162
  }, "strip", z.ZodTypeAny, {
162
- status: "ACTIVE" | "INACTIVE";
163
- id: string;
164
- updatedAt: string;
165
- createdAt: string;
166
163
  email: string;
164
+ createdAt: string;
165
+ updatedAt: string;
166
+ id: string;
167
+ status: "ACTIVE" | "INACTIVE";
167
168
  lastName: string;
168
169
  firstName: string;
169
170
  phoneNumbers: {
@@ -175,33 +176,34 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
175
176
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
176
177
  officeId?: string | null | undefined;
177
178
  office?: {
178
- id: string;
179
179
  name: string;
180
+ id: string;
180
181
  managers?: {
181
182
  id: string;
182
183
  lastName: string;
183
184
  firstName: string;
184
185
  }[] | undefined;
185
186
  } | null | undefined;
187
+ deletedAt?: string | null | undefined;
186
188
  canImpersonateUsers?: {
187
189
  id: string;
188
190
  lastName: string;
189
191
  firstName: string;
190
192
  }[] | undefined;
191
- deletedAt?: string | null | undefined;
193
+ dialpadUserId?: string | null | undefined;
192
194
  }, {
193
- status: "ACTIVE" | "INACTIVE";
194
- id: string;
195
- updatedAt: string | Date;
196
- createdAt: string | Date;
197
195
  email: string;
196
+ createdAt: string | Date;
197
+ updatedAt: string | Date;
198
+ id: string;
199
+ status: "ACTIVE" | "INACTIVE";
198
200
  lastName: string;
199
201
  firstName: string;
200
202
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
201
203
  officeId?: string | null | undefined;
202
204
  office?: {
203
- id: string;
204
205
  name: string;
206
+ id: string;
205
207
  managers?: {
206
208
  id: string;
207
209
  lastName: string;
@@ -214,12 +216,13 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
214
216
  description?: string | null | undefined;
215
217
  isPrimary?: boolean | undefined;
216
218
  }[] | undefined;
219
+ deletedAt?: string | Date | null | undefined;
217
220
  canImpersonateUsers?: {
218
221
  id: string;
219
222
  lastName: string;
220
223
  firstName: string;
221
224
  }[] | undefined;
222
- deletedAt?: string | Date | null | undefined;
225
+ dialpadUserId?: string | null | undefined;
223
226
  }>;
224
227
  leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
225
228
  id: z.ZodString;
@@ -231,23 +234,23 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
231
234
  mediumMinWeight: z.ZodNumber;
232
235
  highMinWeight: z.ZodNumber;
233
236
  isActive: z.ZodBoolean;
234
- }, "id" | "name">, "strip", z.ZodTypeAny, {
235
- id: string;
237
+ }, "name" | "id">, "strip", z.ZodTypeAny, {
236
238
  name: string;
237
- }, {
238
239
  id: string;
240
+ }, {
239
241
  name: string;
242
+ id: string;
240
243
  }>>>;
241
244
  }, "strip", z.ZodTypeAny, {
242
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
243
245
  id: string;
246
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
244
247
  agentId: string;
245
248
  agent: {
246
- status: "ACTIVE" | "INACTIVE";
247
- id: string;
248
- updatedAt: string;
249
- createdAt: string;
250
249
  email: string;
250
+ createdAt: string;
251
+ updatedAt: string;
252
+ id: string;
253
+ status: "ACTIVE" | "INACTIVE";
251
254
  lastName: string;
252
255
  firstName: string;
253
256
  phoneNumbers: {
@@ -259,50 +262,51 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
259
262
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
260
263
  officeId?: string | null | undefined;
261
264
  office?: {
262
- id: string;
263
265
  name: string;
266
+ id: string;
264
267
  managers?: {
265
268
  id: string;
266
269
  lastName: string;
267
270
  firstName: string;
268
271
  }[] | undefined;
269
272
  } | null | undefined;
273
+ deletedAt?: string | null | undefined;
270
274
  canImpersonateUsers?: {
271
275
  id: string;
272
276
  lastName: string;
273
277
  firstName: string;
274
278
  }[] | undefined;
275
- deletedAt?: string | null | undefined;
279
+ dialpadUserId?: string | null | undefined;
276
280
  };
277
281
  companyId?: string | null | undefined;
278
282
  company?: {
279
- id: string;
280
283
  name: string;
281
- updatedAt: string;
282
284
  createdAt: string;
285
+ updatedAt: string;
286
+ id: string;
283
287
  } | null | undefined;
284
288
  leadDistributionConfigId?: string | null | undefined;
285
289
  leadDistributionConfig?: {
286
- id: string;
287
290
  name: string;
291
+ id: string;
288
292
  } | null | undefined;
289
293
  }, {
290
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
291
294
  id: string;
295
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
292
296
  agentId: string;
293
297
  agent: {
294
- status: "ACTIVE" | "INACTIVE";
295
- id: string;
296
- updatedAt: string | Date;
297
- createdAt: string | Date;
298
298
  email: string;
299
+ createdAt: string | Date;
300
+ updatedAt: string | Date;
301
+ id: string;
302
+ status: "ACTIVE" | "INACTIVE";
299
303
  lastName: string;
300
304
  firstName: string;
301
305
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
302
306
  officeId?: string | null | undefined;
303
307
  office?: {
304
- id: string;
305
308
  name: string;
309
+ id: string;
306
310
  managers?: {
307
311
  id: string;
308
312
  lastName: string;
@@ -315,24 +319,25 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
315
319
  description?: string | null | undefined;
316
320
  isPrimary?: boolean | undefined;
317
321
  }[] | undefined;
322
+ deletedAt?: string | Date | null | undefined;
318
323
  canImpersonateUsers?: {
319
324
  id: string;
320
325
  lastName: string;
321
326
  firstName: string;
322
327
  }[] | undefined;
323
- deletedAt?: string | Date | null | undefined;
328
+ dialpadUserId?: string | null | undefined;
324
329
  };
325
330
  companyId?: string | null | undefined;
326
331
  company?: {
327
- id: string;
328
332
  name: string;
329
- updatedAt: string | Date;
330
333
  createdAt: string | Date;
334
+ updatedAt: string | Date;
335
+ id: string;
331
336
  } | null | undefined;
332
337
  leadDistributionConfigId?: string | null | undefined;
333
338
  leadDistributionConfig?: {
334
- id: string;
335
339
  name: string;
340
+ id: string;
336
341
  } | null | undefined;
337
342
  }>;
338
343
  export declare const CreateAgentLeadDistributionSchema: z.ZodObject<{
@@ -376,15 +381,15 @@ export declare const FilterAgentLeadDistributionSchema: z.ZodObject<{
376
381
  page: number;
377
382
  limit: number;
378
383
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
379
- companyId?: string | undefined;
380
384
  agentId?: string | undefined;
385
+ companyId?: string | undefined;
381
386
  leadDistributionConfigId?: string | undefined;
382
387
  }, {
383
- status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
384
388
  page?: number | undefined;
385
389
  limit?: number | undefined;
386
- companyId?: string | undefined;
390
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
387
391
  agentId?: string | undefined;
392
+ companyId?: string | undefined;
388
393
  leadDistributionConfigId?: string | undefined;
389
394
  }>;
390
395
  export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
@@ -399,15 +404,15 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
399
404
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
400
405
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
401
406
  }, "strip", z.ZodTypeAny, {
402
- id: string;
403
407
  name: string;
404
- updatedAt: string;
405
408
  createdAt: string;
406
- }, {
409
+ updatedAt: string;
407
410
  id: string;
411
+ }, {
408
412
  name: string;
409
- updatedAt: string | Date;
410
413
  createdAt: string | Date;
414
+ updatedAt: string | Date;
415
+ id: string;
411
416
  }>>>;
412
417
  } & {
413
418
  id: z.ZodString;
@@ -451,16 +456,16 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
451
456
  firstName: string;
452
457
  }>, "many">>;
453
458
  }, "strip", z.ZodTypeAny, {
454
- id: string;
455
459
  name: string;
460
+ id: string;
456
461
  managers?: {
457
462
  id: string;
458
463
  lastName: string;
459
464
  firstName: string;
460
465
  }[] | undefined;
461
466
  }, {
462
- id: string;
463
467
  name: string;
468
+ id: string;
464
469
  managers?: {
465
470
  id: string;
466
471
  lastName: string;
@@ -481,15 +486,16 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
481
486
  firstName: string;
482
487
  }>, "many">>;
483
488
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
489
+ dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
484
490
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
485
491
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
486
492
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
487
493
  }, "strip", z.ZodTypeAny, {
488
- status: "ACTIVE" | "INACTIVE";
489
- id: string;
490
- updatedAt: string;
491
- createdAt: string;
492
494
  email: string;
495
+ createdAt: string;
496
+ updatedAt: string;
497
+ id: string;
498
+ status: "ACTIVE" | "INACTIVE";
493
499
  lastName: string;
494
500
  firstName: string;
495
501
  phoneNumbers: {
@@ -501,33 +507,34 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
501
507
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
502
508
  officeId?: string | null | undefined;
503
509
  office?: {
504
- id: string;
505
510
  name: string;
511
+ id: string;
506
512
  managers?: {
507
513
  id: string;
508
514
  lastName: string;
509
515
  firstName: string;
510
516
  }[] | undefined;
511
517
  } | null | undefined;
518
+ deletedAt?: string | null | undefined;
512
519
  canImpersonateUsers?: {
513
520
  id: string;
514
521
  lastName: string;
515
522
  firstName: string;
516
523
  }[] | undefined;
517
- deletedAt?: string | null | undefined;
524
+ dialpadUserId?: string | null | undefined;
518
525
  }, {
519
- status: "ACTIVE" | "INACTIVE";
520
- id: string;
521
- updatedAt: string | Date;
522
- createdAt: string | Date;
523
526
  email: string;
527
+ createdAt: string | Date;
528
+ updatedAt: string | Date;
529
+ id: string;
530
+ status: "ACTIVE" | "INACTIVE";
524
531
  lastName: string;
525
532
  firstName: string;
526
533
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
527
534
  officeId?: string | null | undefined;
528
535
  office?: {
529
- id: string;
530
536
  name: string;
537
+ id: string;
531
538
  managers?: {
532
539
  id: string;
533
540
  lastName: string;
@@ -540,12 +547,13 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
540
547
  description?: string | null | undefined;
541
548
  isPrimary?: boolean | undefined;
542
549
  }[] | undefined;
550
+ deletedAt?: string | Date | null | undefined;
543
551
  canImpersonateUsers?: {
544
552
  id: string;
545
553
  lastName: string;
546
554
  firstName: string;
547
555
  }[] | undefined;
548
- deletedAt?: string | Date | null | undefined;
556
+ dialpadUserId?: string | null | undefined;
549
557
  }>;
550
558
  leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
551
559
  id: z.ZodString;
@@ -557,23 +565,23 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
557
565
  mediumMinWeight: z.ZodNumber;
558
566
  highMinWeight: z.ZodNumber;
559
567
  isActive: z.ZodBoolean;
560
- }, "id" | "name">, "strip", z.ZodTypeAny, {
561
- id: string;
568
+ }, "name" | "id">, "strip", z.ZodTypeAny, {
562
569
  name: string;
563
- }, {
564
570
  id: string;
571
+ }, {
565
572
  name: string;
573
+ id: string;
566
574
  }>>>;
567
575
  }, "strip", z.ZodTypeAny, {
568
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
569
576
  id: string;
577
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
570
578
  agentId: string;
571
579
  agent: {
572
- status: "ACTIVE" | "INACTIVE";
573
- id: string;
574
- updatedAt: string;
575
- createdAt: string;
576
580
  email: string;
581
+ createdAt: string;
582
+ updatedAt: string;
583
+ id: string;
584
+ status: "ACTIVE" | "INACTIVE";
577
585
  lastName: string;
578
586
  firstName: string;
579
587
  phoneNumbers: {
@@ -585,50 +593,51 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
585
593
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
586
594
  officeId?: string | null | undefined;
587
595
  office?: {
588
- id: string;
589
596
  name: string;
597
+ id: string;
590
598
  managers?: {
591
599
  id: string;
592
600
  lastName: string;
593
601
  firstName: string;
594
602
  }[] | undefined;
595
603
  } | null | undefined;
604
+ deletedAt?: string | null | undefined;
596
605
  canImpersonateUsers?: {
597
606
  id: string;
598
607
  lastName: string;
599
608
  firstName: string;
600
609
  }[] | undefined;
601
- deletedAt?: string | null | undefined;
610
+ dialpadUserId?: string | null | undefined;
602
611
  };
603
612
  companyId?: string | null | undefined;
604
613
  company?: {
605
- id: string;
606
614
  name: string;
607
- updatedAt: string;
608
615
  createdAt: string;
616
+ updatedAt: string;
617
+ id: string;
609
618
  } | null | undefined;
610
619
  leadDistributionConfigId?: string | null | undefined;
611
620
  leadDistributionConfig?: {
612
- id: string;
613
621
  name: string;
622
+ id: string;
614
623
  } | null | undefined;
615
624
  }, {
616
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
617
625
  id: string;
626
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
618
627
  agentId: string;
619
628
  agent: {
620
- status: "ACTIVE" | "INACTIVE";
621
- id: string;
622
- updatedAt: string | Date;
623
- createdAt: string | Date;
624
629
  email: string;
630
+ createdAt: string | Date;
631
+ updatedAt: string | Date;
632
+ id: string;
633
+ status: "ACTIVE" | "INACTIVE";
625
634
  lastName: string;
626
635
  firstName: string;
627
636
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
628
637
  officeId?: string | null | undefined;
629
638
  office?: {
630
- id: string;
631
639
  name: string;
640
+ id: string;
632
641
  managers?: {
633
642
  id: string;
634
643
  lastName: string;
@@ -641,24 +650,25 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
641
650
  description?: string | null | undefined;
642
651
  isPrimary?: boolean | undefined;
643
652
  }[] | undefined;
653
+ deletedAt?: string | Date | null | undefined;
644
654
  canImpersonateUsers?: {
645
655
  id: string;
646
656
  lastName: string;
647
657
  firstName: string;
648
658
  }[] | undefined;
649
- deletedAt?: string | Date | null | undefined;
659
+ dialpadUserId?: string | null | undefined;
650
660
  };
651
661
  companyId?: string | null | undefined;
652
662
  company?: {
653
- id: string;
654
663
  name: string;
655
- updatedAt: string | Date;
656
664
  createdAt: string | Date;
665
+ updatedAt: string | Date;
666
+ id: string;
657
667
  } | null | undefined;
658
668
  leadDistributionConfigId?: string | null | undefined;
659
669
  leadDistributionConfig?: {
660
- id: string;
661
670
  name: string;
671
+ id: string;
662
672
  } | null | undefined;
663
673
  }>, "many">;
664
674
  totalCount: z.ZodNumber;
@@ -669,15 +679,15 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
669
679
  }, "strip", z.ZodTypeAny, {
670
680
  limit: number;
671
681
  items: {
672
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
673
682
  id: string;
683
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
674
684
  agentId: string;
675
685
  agent: {
676
- status: "ACTIVE" | "INACTIVE";
677
- id: string;
678
- updatedAt: string;
679
- createdAt: string;
680
686
  email: string;
687
+ createdAt: string;
688
+ updatedAt: string;
689
+ id: string;
690
+ status: "ACTIVE" | "INACTIVE";
681
691
  lastName: string;
682
692
  firstName: string;
683
693
  phoneNumbers: {
@@ -689,32 +699,33 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
689
699
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
690
700
  officeId?: string | null | undefined;
691
701
  office?: {
692
- id: string;
693
702
  name: string;
703
+ id: string;
694
704
  managers?: {
695
705
  id: string;
696
706
  lastName: string;
697
707
  firstName: string;
698
708
  }[] | undefined;
699
709
  } | null | undefined;
710
+ deletedAt?: string | null | undefined;
700
711
  canImpersonateUsers?: {
701
712
  id: string;
702
713
  lastName: string;
703
714
  firstName: string;
704
715
  }[] | undefined;
705
- deletedAt?: string | null | undefined;
716
+ dialpadUserId?: string | null | undefined;
706
717
  };
707
718
  companyId?: string | null | undefined;
708
719
  company?: {
709
- id: string;
710
720
  name: string;
711
- updatedAt: string;
712
721
  createdAt: string;
722
+ updatedAt: string;
723
+ id: string;
713
724
  } | null | undefined;
714
725
  leadDistributionConfigId?: string | null | undefined;
715
726
  leadDistributionConfig?: {
716
- id: string;
717
727
  name: string;
728
+ id: string;
718
729
  } | null | undefined;
719
730
  }[];
720
731
  totalCount: number;
@@ -724,22 +735,22 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
724
735
  }, {
725
736
  limit: number;
726
737
  items: {
727
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
728
738
  id: string;
739
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
729
740
  agentId: string;
730
741
  agent: {
731
- status: "ACTIVE" | "INACTIVE";
732
- id: string;
733
- updatedAt: string | Date;
734
- createdAt: string | Date;
735
742
  email: string;
743
+ createdAt: string | Date;
744
+ updatedAt: string | Date;
745
+ id: string;
746
+ status: "ACTIVE" | "INACTIVE";
736
747
  lastName: string;
737
748
  firstName: string;
738
749
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
739
750
  officeId?: string | null | undefined;
740
751
  office?: {
741
- id: string;
742
752
  name: string;
753
+ id: string;
743
754
  managers?: {
744
755
  id: string;
745
756
  lastName: string;
@@ -752,24 +763,25 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
752
763
  description?: string | null | undefined;
753
764
  isPrimary?: boolean | undefined;
754
765
  }[] | undefined;
766
+ deletedAt?: string | Date | null | undefined;
755
767
  canImpersonateUsers?: {
756
768
  id: string;
757
769
  lastName: string;
758
770
  firstName: string;
759
771
  }[] | undefined;
760
- deletedAt?: string | Date | null | undefined;
772
+ dialpadUserId?: string | null | undefined;
761
773
  };
762
774
  companyId?: string | null | undefined;
763
775
  company?: {
764
- id: string;
765
776
  name: string;
766
- updatedAt: string | Date;
767
777
  createdAt: string | Date;
778
+ updatedAt: string | Date;
779
+ id: string;
768
780
  } | null | undefined;
769
781
  leadDistributionConfigId?: string | null | undefined;
770
782
  leadDistributionConfig?: {
771
- id: string;
772
783
  name: string;
784
+ id: string;
773
785
  } | null | undefined;
774
786
  }[];
775
787
  totalCount: number;
@@ -859,15 +871,15 @@ export declare const agentLeadDistributionContract: {
859
871
  page: number;
860
872
  limit: number;
861
873
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
862
- companyId?: string | undefined;
863
874
  agentId?: string | undefined;
875
+ companyId?: string | undefined;
864
876
  leadDistributionConfigId?: string | undefined;
865
877
  }, {
866
- status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
867
878
  page?: number | undefined;
868
879
  limit?: number | undefined;
869
- companyId?: string | undefined;
880
+ status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
870
881
  agentId?: string | undefined;
882
+ companyId?: string | undefined;
871
883
  leadDistributionConfigId?: string | undefined;
872
884
  }>;
873
885
  metadata: {
@@ -877,7 +889,7 @@ export declare const agentLeadDistributionContract: {
877
889
  method: "GET";
878
890
  path: "/v2/agent-lead-distribution";
879
891
  responses: {
880
- 400: z.ZodObject<{
892
+ 401: z.ZodObject<{
881
893
  statusCode: z.ZodNumber;
882
894
  message: z.ZodString;
883
895
  code: z.ZodString;
@@ -886,23 +898,23 @@ export declare const agentLeadDistributionContract: {
886
898
  path: z.ZodString;
887
899
  correlationId: z.ZodOptional<z.ZodString>;
888
900
  }, "strip", z.ZodTypeAny, {
889
- message: string;
890
901
  code: string;
891
902
  path: string;
903
+ message: string;
892
904
  statusCode: number;
893
905
  timestamp: string;
894
906
  details?: unknown;
895
907
  correlationId?: string | undefined;
896
908
  }, {
897
- message: string;
898
909
  code: string;
899
910
  path: string;
911
+ message: string;
900
912
  statusCode: number;
901
913
  timestamp: string;
902
914
  details?: unknown;
903
915
  correlationId?: string | undefined;
904
916
  }>;
905
- 401: z.ZodObject<{
917
+ 400: z.ZodObject<{
906
918
  statusCode: z.ZodNumber;
907
919
  message: z.ZodString;
908
920
  code: z.ZodString;
@@ -911,17 +923,17 @@ export declare const agentLeadDistributionContract: {
911
923
  path: z.ZodString;
912
924
  correlationId: z.ZodOptional<z.ZodString>;
913
925
  }, "strip", z.ZodTypeAny, {
914
- message: string;
915
926
  code: string;
916
927
  path: string;
928
+ message: string;
917
929
  statusCode: number;
918
930
  timestamp: string;
919
931
  details?: unknown;
920
932
  correlationId?: string | undefined;
921
933
  }, {
922
- message: string;
923
934
  code: string;
924
935
  path: string;
936
+ message: string;
925
937
  statusCode: number;
926
938
  timestamp: string;
927
939
  details?: unknown;
@@ -936,17 +948,17 @@ export declare const agentLeadDistributionContract: {
936
948
  path: z.ZodString;
937
949
  correlationId: z.ZodOptional<z.ZodString>;
938
950
  }, "strip", z.ZodTypeAny, {
939
- message: string;
940
951
  code: string;
941
952
  path: string;
953
+ message: string;
942
954
  statusCode: number;
943
955
  timestamp: string;
944
956
  details?: unknown;
945
957
  correlationId?: string | undefined;
946
958
  }, {
947
- message: string;
948
959
  code: string;
949
960
  path: string;
961
+ message: string;
950
962
  statusCode: number;
951
963
  timestamp: string;
952
964
  details?: unknown;
@@ -964,15 +976,15 @@ export declare const agentLeadDistributionContract: {
964
976
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
965
977
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
966
978
  }, "strip", z.ZodTypeAny, {
967
- id: string;
968
979
  name: string;
969
- updatedAt: string;
970
980
  createdAt: string;
971
- }, {
981
+ updatedAt: string;
972
982
  id: string;
983
+ }, {
973
984
  name: string;
974
- updatedAt: string | Date;
975
985
  createdAt: string | Date;
986
+ updatedAt: string | Date;
987
+ id: string;
976
988
  }>>>;
977
989
  } & {
978
990
  id: z.ZodString;
@@ -1016,16 +1028,16 @@ export declare const agentLeadDistributionContract: {
1016
1028
  firstName: string;
1017
1029
  }>, "many">>;
1018
1030
  }, "strip", z.ZodTypeAny, {
1019
- id: string;
1020
1031
  name: string;
1032
+ id: string;
1021
1033
  managers?: {
1022
1034
  id: string;
1023
1035
  lastName: string;
1024
1036
  firstName: string;
1025
1037
  }[] | undefined;
1026
1038
  }, {
1027
- id: string;
1028
1039
  name: string;
1040
+ id: string;
1029
1041
  managers?: {
1030
1042
  id: string;
1031
1043
  lastName: string;
@@ -1046,15 +1058,16 @@ export declare const agentLeadDistributionContract: {
1046
1058
  firstName: string;
1047
1059
  }>, "many">>;
1048
1060
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
1061
+ dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
1049
1062
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1050
1063
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1051
1064
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1052
1065
  }, "strip", z.ZodTypeAny, {
1053
- status: "ACTIVE" | "INACTIVE";
1054
- id: string;
1055
- updatedAt: string;
1056
- createdAt: string;
1057
1066
  email: string;
1067
+ createdAt: string;
1068
+ updatedAt: string;
1069
+ id: string;
1070
+ status: "ACTIVE" | "INACTIVE";
1058
1071
  lastName: string;
1059
1072
  firstName: string;
1060
1073
  phoneNumbers: {
@@ -1066,33 +1079,34 @@ export declare const agentLeadDistributionContract: {
1066
1079
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1067
1080
  officeId?: string | null | undefined;
1068
1081
  office?: {
1069
- id: string;
1070
1082
  name: string;
1083
+ id: string;
1071
1084
  managers?: {
1072
1085
  id: string;
1073
1086
  lastName: string;
1074
1087
  firstName: string;
1075
1088
  }[] | undefined;
1076
1089
  } | null | undefined;
1090
+ deletedAt?: string | null | undefined;
1077
1091
  canImpersonateUsers?: {
1078
1092
  id: string;
1079
1093
  lastName: string;
1080
1094
  firstName: string;
1081
1095
  }[] | undefined;
1082
- deletedAt?: string | null | undefined;
1096
+ dialpadUserId?: string | null | undefined;
1083
1097
  }, {
1084
- status: "ACTIVE" | "INACTIVE";
1085
- id: string;
1086
- updatedAt: string | Date;
1087
- createdAt: string | Date;
1088
1098
  email: string;
1099
+ createdAt: string | Date;
1100
+ updatedAt: string | Date;
1101
+ id: string;
1102
+ status: "ACTIVE" | "INACTIVE";
1089
1103
  lastName: string;
1090
1104
  firstName: string;
1091
1105
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1092
1106
  officeId?: string | null | undefined;
1093
1107
  office?: {
1094
- id: string;
1095
1108
  name: string;
1109
+ id: string;
1096
1110
  managers?: {
1097
1111
  id: string;
1098
1112
  lastName: string;
@@ -1105,12 +1119,13 @@ export declare const agentLeadDistributionContract: {
1105
1119
  description?: string | null | undefined;
1106
1120
  isPrimary?: boolean | undefined;
1107
1121
  }[] | undefined;
1122
+ deletedAt?: string | Date | null | undefined;
1108
1123
  canImpersonateUsers?: {
1109
1124
  id: string;
1110
1125
  lastName: string;
1111
1126
  firstName: string;
1112
1127
  }[] | undefined;
1113
- deletedAt?: string | Date | null | undefined;
1128
+ dialpadUserId?: string | null | undefined;
1114
1129
  }>;
1115
1130
  leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
1116
1131
  id: z.ZodString;
@@ -1122,23 +1137,23 @@ export declare const agentLeadDistributionContract: {
1122
1137
  mediumMinWeight: z.ZodNumber;
1123
1138
  highMinWeight: z.ZodNumber;
1124
1139
  isActive: z.ZodBoolean;
1125
- }, "id" | "name">, "strip", z.ZodTypeAny, {
1126
- id: string;
1140
+ }, "name" | "id">, "strip", z.ZodTypeAny, {
1127
1141
  name: string;
1128
- }, {
1129
1142
  id: string;
1143
+ }, {
1130
1144
  name: string;
1145
+ id: string;
1131
1146
  }>>>;
1132
1147
  }, "strip", z.ZodTypeAny, {
1133
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1134
1148
  id: string;
1149
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1135
1150
  agentId: string;
1136
1151
  agent: {
1137
- status: "ACTIVE" | "INACTIVE";
1138
- id: string;
1139
- updatedAt: string;
1140
- createdAt: string;
1141
1152
  email: string;
1153
+ createdAt: string;
1154
+ updatedAt: string;
1155
+ id: string;
1156
+ status: "ACTIVE" | "INACTIVE";
1142
1157
  lastName: string;
1143
1158
  firstName: string;
1144
1159
  phoneNumbers: {
@@ -1150,50 +1165,51 @@ export declare const agentLeadDistributionContract: {
1150
1165
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1151
1166
  officeId?: string | null | undefined;
1152
1167
  office?: {
1153
- id: string;
1154
1168
  name: string;
1169
+ id: string;
1155
1170
  managers?: {
1156
1171
  id: string;
1157
1172
  lastName: string;
1158
1173
  firstName: string;
1159
1174
  }[] | undefined;
1160
1175
  } | null | undefined;
1176
+ deletedAt?: string | null | undefined;
1161
1177
  canImpersonateUsers?: {
1162
1178
  id: string;
1163
1179
  lastName: string;
1164
1180
  firstName: string;
1165
1181
  }[] | undefined;
1166
- deletedAt?: string | null | undefined;
1182
+ dialpadUserId?: string | null | undefined;
1167
1183
  };
1168
1184
  companyId?: string | null | undefined;
1169
1185
  company?: {
1170
- id: string;
1171
1186
  name: string;
1172
- updatedAt: string;
1173
1187
  createdAt: string;
1188
+ updatedAt: string;
1189
+ id: string;
1174
1190
  } | null | undefined;
1175
1191
  leadDistributionConfigId?: string | null | undefined;
1176
1192
  leadDistributionConfig?: {
1177
- id: string;
1178
1193
  name: string;
1194
+ id: string;
1179
1195
  } | null | undefined;
1180
1196
  }, {
1181
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1182
1197
  id: string;
1198
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1183
1199
  agentId: string;
1184
1200
  agent: {
1185
- status: "ACTIVE" | "INACTIVE";
1186
- id: string;
1187
- updatedAt: string | Date;
1188
- createdAt: string | Date;
1189
1201
  email: string;
1202
+ createdAt: string | Date;
1203
+ updatedAt: string | Date;
1204
+ id: string;
1205
+ status: "ACTIVE" | "INACTIVE";
1190
1206
  lastName: string;
1191
1207
  firstName: string;
1192
1208
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1193
1209
  officeId?: string | null | undefined;
1194
1210
  office?: {
1195
- id: string;
1196
1211
  name: string;
1212
+ id: string;
1197
1213
  managers?: {
1198
1214
  id: string;
1199
1215
  lastName: string;
@@ -1206,24 +1222,25 @@ export declare const agentLeadDistributionContract: {
1206
1222
  description?: string | null | undefined;
1207
1223
  isPrimary?: boolean | undefined;
1208
1224
  }[] | undefined;
1225
+ deletedAt?: string | Date | null | undefined;
1209
1226
  canImpersonateUsers?: {
1210
1227
  id: string;
1211
1228
  lastName: string;
1212
1229
  firstName: string;
1213
1230
  }[] | undefined;
1214
- deletedAt?: string | Date | null | undefined;
1231
+ dialpadUserId?: string | null | undefined;
1215
1232
  };
1216
1233
  companyId?: string | null | undefined;
1217
1234
  company?: {
1218
- id: string;
1219
1235
  name: string;
1220
- updatedAt: string | Date;
1221
1236
  createdAt: string | Date;
1237
+ updatedAt: string | Date;
1238
+ id: string;
1222
1239
  } | null | undefined;
1223
1240
  leadDistributionConfigId?: string | null | undefined;
1224
1241
  leadDistributionConfig?: {
1225
- id: string;
1226
1242
  name: string;
1243
+ id: string;
1227
1244
  } | null | undefined;
1228
1245
  }>, "many">;
1229
1246
  totalCount: z.ZodNumber;
@@ -1234,15 +1251,15 @@ export declare const agentLeadDistributionContract: {
1234
1251
  }, "strip", z.ZodTypeAny, {
1235
1252
  limit: number;
1236
1253
  items: {
1237
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1238
1254
  id: string;
1255
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1239
1256
  agentId: string;
1240
1257
  agent: {
1241
- status: "ACTIVE" | "INACTIVE";
1242
- id: string;
1243
- updatedAt: string;
1244
- createdAt: string;
1245
1258
  email: string;
1259
+ createdAt: string;
1260
+ updatedAt: string;
1261
+ id: string;
1262
+ status: "ACTIVE" | "INACTIVE";
1246
1263
  lastName: string;
1247
1264
  firstName: string;
1248
1265
  phoneNumbers: {
@@ -1254,32 +1271,33 @@ export declare const agentLeadDistributionContract: {
1254
1271
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1255
1272
  officeId?: string | null | undefined;
1256
1273
  office?: {
1257
- id: string;
1258
1274
  name: string;
1275
+ id: string;
1259
1276
  managers?: {
1260
1277
  id: string;
1261
1278
  lastName: string;
1262
1279
  firstName: string;
1263
1280
  }[] | undefined;
1264
1281
  } | null | undefined;
1282
+ deletedAt?: string | null | undefined;
1265
1283
  canImpersonateUsers?: {
1266
1284
  id: string;
1267
1285
  lastName: string;
1268
1286
  firstName: string;
1269
1287
  }[] | undefined;
1270
- deletedAt?: string | null | undefined;
1288
+ dialpadUserId?: string | null | undefined;
1271
1289
  };
1272
1290
  companyId?: string | null | undefined;
1273
1291
  company?: {
1274
- id: string;
1275
1292
  name: string;
1276
- updatedAt: string;
1277
1293
  createdAt: string;
1294
+ updatedAt: string;
1295
+ id: string;
1278
1296
  } | null | undefined;
1279
1297
  leadDistributionConfigId?: string | null | undefined;
1280
1298
  leadDistributionConfig?: {
1281
- id: string;
1282
1299
  name: string;
1300
+ id: string;
1283
1301
  } | null | undefined;
1284
1302
  }[];
1285
1303
  totalCount: number;
@@ -1289,22 +1307,22 @@ export declare const agentLeadDistributionContract: {
1289
1307
  }, {
1290
1308
  limit: number;
1291
1309
  items: {
1292
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1293
1310
  id: string;
1311
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1294
1312
  agentId: string;
1295
1313
  agent: {
1296
- status: "ACTIVE" | "INACTIVE";
1297
- id: string;
1298
- updatedAt: string | Date;
1299
- createdAt: string | Date;
1300
1314
  email: string;
1315
+ createdAt: string | Date;
1316
+ updatedAt: string | Date;
1317
+ id: string;
1318
+ status: "ACTIVE" | "INACTIVE";
1301
1319
  lastName: string;
1302
1320
  firstName: string;
1303
1321
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1304
1322
  officeId?: string | null | undefined;
1305
1323
  office?: {
1306
- id: string;
1307
1324
  name: string;
1325
+ id: string;
1308
1326
  managers?: {
1309
1327
  id: string;
1310
1328
  lastName: string;
@@ -1317,24 +1335,25 @@ export declare const agentLeadDistributionContract: {
1317
1335
  description?: string | null | undefined;
1318
1336
  isPrimary?: boolean | undefined;
1319
1337
  }[] | undefined;
1338
+ deletedAt?: string | Date | null | undefined;
1320
1339
  canImpersonateUsers?: {
1321
1340
  id: string;
1322
1341
  lastName: string;
1323
1342
  firstName: string;
1324
1343
  }[] | undefined;
1325
- deletedAt?: string | Date | null | undefined;
1344
+ dialpadUserId?: string | null | undefined;
1326
1345
  };
1327
1346
  companyId?: string | null | undefined;
1328
1347
  company?: {
1329
- id: string;
1330
1348
  name: string;
1331
- updatedAt: string | Date;
1332
1349
  createdAt: string | Date;
1350
+ updatedAt: string | Date;
1351
+ id: string;
1333
1352
  } | null | undefined;
1334
1353
  leadDistributionConfigId?: string | null | undefined;
1335
1354
  leadDistributionConfig?: {
1336
- id: string;
1337
1355
  name: string;
1356
+ id: string;
1338
1357
  } | null | undefined;
1339
1358
  }[];
1340
1359
  totalCount: number;
@@ -1351,17 +1370,17 @@ export declare const agentLeadDistributionContract: {
1351
1370
  path: z.ZodString;
1352
1371
  correlationId: z.ZodOptional<z.ZodString>;
1353
1372
  }, "strip", z.ZodTypeAny, {
1354
- message: string;
1355
1373
  code: string;
1356
1374
  path: string;
1375
+ message: string;
1357
1376
  statusCode: number;
1358
1377
  timestamp: string;
1359
1378
  details?: unknown;
1360
1379
  correlationId?: string | undefined;
1361
1380
  }, {
1362
- message: string;
1363
1381
  code: string;
1364
1382
  path: string;
1383
+ message: string;
1365
1384
  statusCode: number;
1366
1385
  timestamp: string;
1367
1386
  details?: unknown;
@@ -1384,7 +1403,7 @@ export declare const agentLeadDistributionContract: {
1384
1403
  method: "GET";
1385
1404
  path: "/v2/agent-lead-distribution/:id";
1386
1405
  responses: {
1387
- 400: z.ZodObject<{
1406
+ 401: z.ZodObject<{
1388
1407
  statusCode: z.ZodNumber;
1389
1408
  message: z.ZodString;
1390
1409
  code: z.ZodString;
@@ -1393,23 +1412,23 @@ export declare const agentLeadDistributionContract: {
1393
1412
  path: z.ZodString;
1394
1413
  correlationId: z.ZodOptional<z.ZodString>;
1395
1414
  }, "strip", z.ZodTypeAny, {
1396
- message: string;
1397
1415
  code: string;
1398
1416
  path: string;
1417
+ message: string;
1399
1418
  statusCode: number;
1400
1419
  timestamp: string;
1401
1420
  details?: unknown;
1402
1421
  correlationId?: string | undefined;
1403
1422
  }, {
1404
- message: string;
1405
1423
  code: string;
1406
1424
  path: string;
1425
+ message: string;
1407
1426
  statusCode: number;
1408
1427
  timestamp: string;
1409
1428
  details?: unknown;
1410
1429
  correlationId?: string | undefined;
1411
1430
  }>;
1412
- 401: z.ZodObject<{
1431
+ 400: z.ZodObject<{
1413
1432
  statusCode: z.ZodNumber;
1414
1433
  message: z.ZodString;
1415
1434
  code: z.ZodString;
@@ -1418,17 +1437,17 @@ export declare const agentLeadDistributionContract: {
1418
1437
  path: z.ZodString;
1419
1438
  correlationId: z.ZodOptional<z.ZodString>;
1420
1439
  }, "strip", z.ZodTypeAny, {
1421
- message: string;
1422
1440
  code: string;
1423
1441
  path: string;
1442
+ message: string;
1424
1443
  statusCode: number;
1425
1444
  timestamp: string;
1426
1445
  details?: unknown;
1427
1446
  correlationId?: string | undefined;
1428
1447
  }, {
1429
- message: string;
1430
1448
  code: string;
1431
1449
  path: string;
1450
+ message: string;
1432
1451
  statusCode: number;
1433
1452
  timestamp: string;
1434
1453
  details?: unknown;
@@ -1443,17 +1462,17 @@ export declare const agentLeadDistributionContract: {
1443
1462
  path: z.ZodString;
1444
1463
  correlationId: z.ZodOptional<z.ZodString>;
1445
1464
  }, "strip", z.ZodTypeAny, {
1446
- message: string;
1447
1465
  code: string;
1448
1466
  path: string;
1467
+ message: string;
1449
1468
  statusCode: number;
1450
1469
  timestamp: string;
1451
1470
  details?: unknown;
1452
1471
  correlationId?: string | undefined;
1453
1472
  }, {
1454
- message: string;
1455
1473
  code: string;
1456
1474
  path: string;
1475
+ message: string;
1457
1476
  statusCode: number;
1458
1477
  timestamp: string;
1459
1478
  details?: unknown;
@@ -1470,15 +1489,15 @@ export declare const agentLeadDistributionContract: {
1470
1489
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1471
1490
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1472
1491
  }, "strip", z.ZodTypeAny, {
1473
- id: string;
1474
1492
  name: string;
1475
- updatedAt: string;
1476
1493
  createdAt: string;
1477
- }, {
1494
+ updatedAt: string;
1478
1495
  id: string;
1496
+ }, {
1479
1497
  name: string;
1480
- updatedAt: string | Date;
1481
1498
  createdAt: string | Date;
1499
+ updatedAt: string | Date;
1500
+ id: string;
1482
1501
  }>>>;
1483
1502
  } & {
1484
1503
  id: z.ZodString;
@@ -1522,16 +1541,16 @@ export declare const agentLeadDistributionContract: {
1522
1541
  firstName: string;
1523
1542
  }>, "many">>;
1524
1543
  }, "strip", z.ZodTypeAny, {
1525
- id: string;
1526
1544
  name: string;
1545
+ id: string;
1527
1546
  managers?: {
1528
1547
  id: string;
1529
1548
  lastName: string;
1530
1549
  firstName: string;
1531
1550
  }[] | undefined;
1532
1551
  }, {
1533
- id: string;
1534
1552
  name: string;
1553
+ id: string;
1535
1554
  managers?: {
1536
1555
  id: string;
1537
1556
  lastName: string;
@@ -1552,15 +1571,16 @@ export declare const agentLeadDistributionContract: {
1552
1571
  firstName: string;
1553
1572
  }>, "many">>;
1554
1573
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
1574
+ dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
1555
1575
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1556
1576
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1557
1577
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1558
1578
  }, "strip", z.ZodTypeAny, {
1559
- status: "ACTIVE" | "INACTIVE";
1560
- id: string;
1561
- updatedAt: string;
1562
- createdAt: string;
1563
1579
  email: string;
1580
+ createdAt: string;
1581
+ updatedAt: string;
1582
+ id: string;
1583
+ status: "ACTIVE" | "INACTIVE";
1564
1584
  lastName: string;
1565
1585
  firstName: string;
1566
1586
  phoneNumbers: {
@@ -1572,33 +1592,34 @@ export declare const agentLeadDistributionContract: {
1572
1592
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1573
1593
  officeId?: string | null | undefined;
1574
1594
  office?: {
1575
- id: string;
1576
1595
  name: string;
1596
+ id: string;
1577
1597
  managers?: {
1578
1598
  id: string;
1579
1599
  lastName: string;
1580
1600
  firstName: string;
1581
1601
  }[] | undefined;
1582
1602
  } | null | undefined;
1603
+ deletedAt?: string | null | undefined;
1583
1604
  canImpersonateUsers?: {
1584
1605
  id: string;
1585
1606
  lastName: string;
1586
1607
  firstName: string;
1587
1608
  }[] | undefined;
1588
- deletedAt?: string | null | undefined;
1609
+ dialpadUserId?: string | null | undefined;
1589
1610
  }, {
1590
- status: "ACTIVE" | "INACTIVE";
1591
- id: string;
1592
- updatedAt: string | Date;
1593
- createdAt: string | Date;
1594
1611
  email: string;
1612
+ createdAt: string | Date;
1613
+ updatedAt: string | Date;
1614
+ id: string;
1615
+ status: "ACTIVE" | "INACTIVE";
1595
1616
  lastName: string;
1596
1617
  firstName: string;
1597
1618
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1598
1619
  officeId?: string | null | undefined;
1599
1620
  office?: {
1600
- id: string;
1601
1621
  name: string;
1622
+ id: string;
1602
1623
  managers?: {
1603
1624
  id: string;
1604
1625
  lastName: string;
@@ -1611,12 +1632,13 @@ export declare const agentLeadDistributionContract: {
1611
1632
  description?: string | null | undefined;
1612
1633
  isPrimary?: boolean | undefined;
1613
1634
  }[] | undefined;
1635
+ deletedAt?: string | Date | null | undefined;
1614
1636
  canImpersonateUsers?: {
1615
1637
  id: string;
1616
1638
  lastName: string;
1617
1639
  firstName: string;
1618
1640
  }[] | undefined;
1619
- deletedAt?: string | Date | null | undefined;
1641
+ dialpadUserId?: string | null | undefined;
1620
1642
  }>;
1621
1643
  leadDistributionConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
1622
1644
  id: z.ZodString;
@@ -1628,23 +1650,23 @@ export declare const agentLeadDistributionContract: {
1628
1650
  mediumMinWeight: z.ZodNumber;
1629
1651
  highMinWeight: z.ZodNumber;
1630
1652
  isActive: z.ZodBoolean;
1631
- }, "id" | "name">, "strip", z.ZodTypeAny, {
1632
- id: string;
1653
+ }, "name" | "id">, "strip", z.ZodTypeAny, {
1633
1654
  name: string;
1634
- }, {
1635
1655
  id: string;
1656
+ }, {
1636
1657
  name: string;
1658
+ id: string;
1637
1659
  }>>>;
1638
1660
  }, "strip", z.ZodTypeAny, {
1639
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1640
1661
  id: string;
1662
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1641
1663
  agentId: string;
1642
1664
  agent: {
1643
- status: "ACTIVE" | "INACTIVE";
1644
- id: string;
1645
- updatedAt: string;
1646
- createdAt: string;
1647
1665
  email: string;
1666
+ createdAt: string;
1667
+ updatedAt: string;
1668
+ id: string;
1669
+ status: "ACTIVE" | "INACTIVE";
1648
1670
  lastName: string;
1649
1671
  firstName: string;
1650
1672
  phoneNumbers: {
@@ -1656,50 +1678,51 @@ export declare const agentLeadDistributionContract: {
1656
1678
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1657
1679
  officeId?: string | null | undefined;
1658
1680
  office?: {
1659
- id: string;
1660
1681
  name: string;
1682
+ id: string;
1661
1683
  managers?: {
1662
1684
  id: string;
1663
1685
  lastName: string;
1664
1686
  firstName: string;
1665
1687
  }[] | undefined;
1666
1688
  } | null | undefined;
1689
+ deletedAt?: string | null | undefined;
1667
1690
  canImpersonateUsers?: {
1668
1691
  id: string;
1669
1692
  lastName: string;
1670
1693
  firstName: string;
1671
1694
  }[] | undefined;
1672
- deletedAt?: string | null | undefined;
1695
+ dialpadUserId?: string | null | undefined;
1673
1696
  };
1674
1697
  companyId?: string | null | undefined;
1675
1698
  company?: {
1676
- id: string;
1677
1699
  name: string;
1678
- updatedAt: string;
1679
1700
  createdAt: string;
1701
+ updatedAt: string;
1702
+ id: string;
1680
1703
  } | null | undefined;
1681
1704
  leadDistributionConfigId?: string | null | undefined;
1682
1705
  leadDistributionConfig?: {
1683
- id: string;
1684
1706
  name: string;
1707
+ id: string;
1685
1708
  } | null | undefined;
1686
1709
  }, {
1687
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1688
1710
  id: string;
1711
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1689
1712
  agentId: string;
1690
1713
  agent: {
1691
- status: "ACTIVE" | "INACTIVE";
1692
- id: string;
1693
- updatedAt: string | Date;
1694
- createdAt: string | Date;
1695
1714
  email: string;
1715
+ createdAt: string | Date;
1716
+ updatedAt: string | Date;
1717
+ id: string;
1718
+ status: "ACTIVE" | "INACTIVE";
1696
1719
  lastName: string;
1697
1720
  firstName: string;
1698
1721
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1699
1722
  officeId?: string | null | undefined;
1700
1723
  office?: {
1701
- id: string;
1702
1724
  name: string;
1725
+ id: string;
1703
1726
  managers?: {
1704
1727
  id: string;
1705
1728
  lastName: string;
@@ -1712,24 +1735,25 @@ export declare const agentLeadDistributionContract: {
1712
1735
  description?: string | null | undefined;
1713
1736
  isPrimary?: boolean | undefined;
1714
1737
  }[] | undefined;
1738
+ deletedAt?: string | Date | null | undefined;
1715
1739
  canImpersonateUsers?: {
1716
1740
  id: string;
1717
1741
  lastName: string;
1718
1742
  firstName: string;
1719
1743
  }[] | undefined;
1720
- deletedAt?: string | Date | null | undefined;
1744
+ dialpadUserId?: string | null | undefined;
1721
1745
  };
1722
1746
  companyId?: string | null | undefined;
1723
1747
  company?: {
1724
- id: string;
1725
1748
  name: string;
1726
- updatedAt: string | Date;
1727
1749
  createdAt: string | Date;
1750
+ updatedAt: string | Date;
1751
+ id: string;
1728
1752
  } | null | undefined;
1729
1753
  leadDistributionConfigId?: string | null | undefined;
1730
1754
  leadDistributionConfig?: {
1731
- id: string;
1732
1755
  name: string;
1756
+ id: string;
1733
1757
  } | null | undefined;
1734
1758
  }>;
1735
1759
  404: z.ZodObject<{
@@ -1741,17 +1765,17 @@ export declare const agentLeadDistributionContract: {
1741
1765
  path: z.ZodString;
1742
1766
  correlationId: z.ZodOptional<z.ZodString>;
1743
1767
  }, "strip", z.ZodTypeAny, {
1744
- message: string;
1745
1768
  code: string;
1746
1769
  path: string;
1770
+ message: string;
1747
1771
  statusCode: number;
1748
1772
  timestamp: string;
1749
1773
  details?: unknown;
1750
1774
  correlationId?: string | undefined;
1751
1775
  }, {
1752
- message: string;
1753
1776
  code: string;
1754
1777
  path: string;
1778
+ message: string;
1755
1779
  statusCode: number;
1756
1780
  timestamp: string;
1757
1781
  details?: unknown;
@@ -1766,17 +1790,17 @@ export declare const agentLeadDistributionContract: {
1766
1790
  path: z.ZodString;
1767
1791
  correlationId: z.ZodOptional<z.ZodString>;
1768
1792
  }, "strip", z.ZodTypeAny, {
1769
- message: string;
1770
1793
  code: string;
1771
1794
  path: string;
1795
+ message: string;
1772
1796
  statusCode: number;
1773
1797
  timestamp: string;
1774
1798
  details?: unknown;
1775
1799
  correlationId?: string | undefined;
1776
1800
  }, {
1777
- message: string;
1778
1801
  code: string;
1779
1802
  path: string;
1803
+ message: string;
1780
1804
  statusCode: number;
1781
1805
  timestamp: string;
1782
1806
  details?: unknown;
@@ -1808,7 +1832,7 @@ export declare const agentLeadDistributionContract: {
1808
1832
  }>;
1809
1833
  path: "/v2/agent-lead-distribution";
1810
1834
  responses: {
1811
- 400: z.ZodObject<{
1835
+ 401: z.ZodObject<{
1812
1836
  statusCode: z.ZodNumber;
1813
1837
  message: z.ZodString;
1814
1838
  code: z.ZodString;
@@ -1817,23 +1841,23 @@ export declare const agentLeadDistributionContract: {
1817
1841
  path: z.ZodString;
1818
1842
  correlationId: z.ZodOptional<z.ZodString>;
1819
1843
  }, "strip", z.ZodTypeAny, {
1820
- message: string;
1821
1844
  code: string;
1822
1845
  path: string;
1846
+ message: string;
1823
1847
  statusCode: number;
1824
1848
  timestamp: string;
1825
1849
  details?: unknown;
1826
1850
  correlationId?: string | undefined;
1827
1851
  }, {
1828
- message: string;
1829
1852
  code: string;
1830
1853
  path: string;
1854
+ message: string;
1831
1855
  statusCode: number;
1832
1856
  timestamp: string;
1833
1857
  details?: unknown;
1834
1858
  correlationId?: string | undefined;
1835
1859
  }>;
1836
- 401: z.ZodObject<{
1860
+ 400: z.ZodObject<{
1837
1861
  statusCode: z.ZodNumber;
1838
1862
  message: z.ZodString;
1839
1863
  code: z.ZodString;
@@ -1842,17 +1866,17 @@ export declare const agentLeadDistributionContract: {
1842
1866
  path: z.ZodString;
1843
1867
  correlationId: z.ZodOptional<z.ZodString>;
1844
1868
  }, "strip", z.ZodTypeAny, {
1845
- message: string;
1846
1869
  code: string;
1847
1870
  path: string;
1871
+ message: string;
1848
1872
  statusCode: number;
1849
1873
  timestamp: string;
1850
1874
  details?: unknown;
1851
1875
  correlationId?: string | undefined;
1852
1876
  }, {
1853
- message: string;
1854
1877
  code: string;
1855
1878
  path: string;
1879
+ message: string;
1856
1880
  statusCode: number;
1857
1881
  timestamp: string;
1858
1882
  details?: unknown;
@@ -1867,17 +1891,17 @@ export declare const agentLeadDistributionContract: {
1867
1891
  path: z.ZodString;
1868
1892
  correlationId: z.ZodOptional<z.ZodString>;
1869
1893
  }, "strip", z.ZodTypeAny, {
1870
- message: string;
1871
1894
  code: string;
1872
1895
  path: string;
1896
+ message: string;
1873
1897
  statusCode: number;
1874
1898
  timestamp: string;
1875
1899
  details?: unknown;
1876
1900
  correlationId?: string | undefined;
1877
1901
  }, {
1878
- message: string;
1879
1902
  code: string;
1880
1903
  path: string;
1904
+ message: string;
1881
1905
  statusCode: number;
1882
1906
  timestamp: string;
1883
1907
  details?: unknown;
@@ -1894,25 +1918,25 @@ export declare const agentLeadDistributionContract: {
1894
1918
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1895
1919
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1896
1920
  }, "strip", z.ZodTypeAny, {
1897
- id: string;
1898
1921
  name: string;
1899
- updatedAt: string;
1900
1922
  createdAt: string;
1901
- }, {
1923
+ updatedAt: string;
1902
1924
  id: string;
1925
+ }, {
1903
1926
  name: string;
1904
- updatedAt: string | Date;
1905
1927
  createdAt: string | Date;
1928
+ updatedAt: string | Date;
1929
+ id: string;
1906
1930
  }>>>;
1907
1931
  }, "strip", z.ZodTypeAny, {
1908
1932
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1909
1933
  agentId: string;
1910
1934
  companyId?: string | null | undefined;
1911
1935
  company?: {
1912
- id: string;
1913
1936
  name: string;
1914
- updatedAt: string;
1915
1937
  createdAt: string;
1938
+ updatedAt: string;
1939
+ id: string;
1916
1940
  } | null | undefined;
1917
1941
  leadDistributionConfigId?: string | null | undefined;
1918
1942
  }, {
@@ -1920,10 +1944,10 @@ export declare const agentLeadDistributionContract: {
1920
1944
  agentId: string;
1921
1945
  companyId?: string | null | undefined;
1922
1946
  company?: {
1923
- id: string;
1924
1947
  name: string;
1925
- updatedAt: string | Date;
1926
1948
  createdAt: string | Date;
1949
+ updatedAt: string | Date;
1950
+ id: string;
1927
1951
  } | null | undefined;
1928
1952
  leadDistributionConfigId?: string | null | undefined;
1929
1953
  }>;
@@ -1936,17 +1960,17 @@ export declare const agentLeadDistributionContract: {
1936
1960
  path: z.ZodString;
1937
1961
  correlationId: z.ZodOptional<z.ZodString>;
1938
1962
  }, "strip", z.ZodTypeAny, {
1939
- message: string;
1940
1963
  code: string;
1941
1964
  path: string;
1965
+ message: string;
1942
1966
  statusCode: number;
1943
1967
  timestamp: string;
1944
1968
  details?: unknown;
1945
1969
  correlationId?: string | undefined;
1946
1970
  }, {
1947
- message: string;
1948
1971
  code: string;
1949
1972
  path: string;
1973
+ message: string;
1950
1974
  statusCode: number;
1951
1975
  timestamp: string;
1952
1976
  details?: unknown;
@@ -1982,7 +2006,7 @@ export declare const agentLeadDistributionContract: {
1982
2006
  }>;
1983
2007
  path: "/v2/agent-lead-distribution/:agentId";
1984
2008
  responses: {
1985
- 400: z.ZodObject<{
2009
+ 401: z.ZodObject<{
1986
2010
  statusCode: z.ZodNumber;
1987
2011
  message: z.ZodString;
1988
2012
  code: z.ZodString;
@@ -1991,23 +2015,23 @@ export declare const agentLeadDistributionContract: {
1991
2015
  path: z.ZodString;
1992
2016
  correlationId: z.ZodOptional<z.ZodString>;
1993
2017
  }, "strip", z.ZodTypeAny, {
1994
- message: string;
1995
2018
  code: string;
1996
2019
  path: string;
2020
+ message: string;
1997
2021
  statusCode: number;
1998
2022
  timestamp: string;
1999
2023
  details?: unknown;
2000
2024
  correlationId?: string | undefined;
2001
2025
  }, {
2002
- message: string;
2003
2026
  code: string;
2004
2027
  path: string;
2028
+ message: string;
2005
2029
  statusCode: number;
2006
2030
  timestamp: string;
2007
2031
  details?: unknown;
2008
2032
  correlationId?: string | undefined;
2009
2033
  }>;
2010
- 401: z.ZodObject<{
2034
+ 400: z.ZodObject<{
2011
2035
  statusCode: z.ZodNumber;
2012
2036
  message: z.ZodString;
2013
2037
  code: z.ZodString;
@@ -2016,17 +2040,17 @@ export declare const agentLeadDistributionContract: {
2016
2040
  path: z.ZodString;
2017
2041
  correlationId: z.ZodOptional<z.ZodString>;
2018
2042
  }, "strip", z.ZodTypeAny, {
2019
- message: string;
2020
2043
  code: string;
2021
2044
  path: string;
2045
+ message: string;
2022
2046
  statusCode: number;
2023
2047
  timestamp: string;
2024
2048
  details?: unknown;
2025
2049
  correlationId?: string | undefined;
2026
2050
  }, {
2027
- message: string;
2028
2051
  code: string;
2029
2052
  path: string;
2053
+ message: string;
2030
2054
  statusCode: number;
2031
2055
  timestamp: string;
2032
2056
  details?: unknown;
@@ -2041,17 +2065,17 @@ export declare const agentLeadDistributionContract: {
2041
2065
  path: z.ZodString;
2042
2066
  correlationId: z.ZodOptional<z.ZodString>;
2043
2067
  }, "strip", z.ZodTypeAny, {
2044
- message: string;
2045
2068
  code: string;
2046
2069
  path: string;
2070
+ message: string;
2047
2071
  statusCode: number;
2048
2072
  timestamp: string;
2049
2073
  details?: unknown;
2050
2074
  correlationId?: string | undefined;
2051
2075
  }, {
2052
- message: string;
2053
2076
  code: string;
2054
2077
  path: string;
2078
+ message: string;
2055
2079
  statusCode: number;
2056
2080
  timestamp: string;
2057
2081
  details?: unknown;
@@ -2068,25 +2092,25 @@ export declare const agentLeadDistributionContract: {
2068
2092
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2069
2093
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2070
2094
  }, "strip", z.ZodTypeAny, {
2071
- id: string;
2072
2095
  name: string;
2073
- updatedAt: string;
2074
2096
  createdAt: string;
2075
- }, {
2097
+ updatedAt: string;
2076
2098
  id: string;
2099
+ }, {
2077
2100
  name: string;
2078
- updatedAt: string | Date;
2079
2101
  createdAt: string | Date;
2102
+ updatedAt: string | Date;
2103
+ id: string;
2080
2104
  }>>>;
2081
2105
  }, "strip", z.ZodTypeAny, {
2082
2106
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
2083
2107
  agentId: string;
2084
2108
  companyId?: string | null | undefined;
2085
2109
  company?: {
2086
- id: string;
2087
2110
  name: string;
2088
- updatedAt: string;
2089
2111
  createdAt: string;
2112
+ updatedAt: string;
2113
+ id: string;
2090
2114
  } | null | undefined;
2091
2115
  leadDistributionConfigId?: string | null | undefined;
2092
2116
  }, {
@@ -2094,10 +2118,10 @@ export declare const agentLeadDistributionContract: {
2094
2118
  agentId: string;
2095
2119
  companyId?: string | null | undefined;
2096
2120
  company?: {
2097
- id: string;
2098
2121
  name: string;
2099
- updatedAt: string | Date;
2100
2122
  createdAt: string | Date;
2123
+ updatedAt: string | Date;
2124
+ id: string;
2101
2125
  } | null | undefined;
2102
2126
  leadDistributionConfigId?: string | null | undefined;
2103
2127
  }>;
@@ -2110,17 +2134,17 @@ export declare const agentLeadDistributionContract: {
2110
2134
  path: z.ZodString;
2111
2135
  correlationId: z.ZodOptional<z.ZodString>;
2112
2136
  }, "strip", z.ZodTypeAny, {
2113
- message: string;
2114
2137
  code: string;
2115
2138
  path: string;
2139
+ message: string;
2116
2140
  statusCode: number;
2117
2141
  timestamp: string;
2118
2142
  details?: unknown;
2119
2143
  correlationId?: string | undefined;
2120
2144
  }, {
2121
- message: string;
2122
2145
  code: string;
2123
2146
  path: string;
2147
+ message: string;
2124
2148
  statusCode: number;
2125
2149
  timestamp: string;
2126
2150
  details?: unknown;
@@ -2135,17 +2159,17 @@ export declare const agentLeadDistributionContract: {
2135
2159
  path: z.ZodString;
2136
2160
  correlationId: z.ZodOptional<z.ZodString>;
2137
2161
  }, "strip", z.ZodTypeAny, {
2138
- message: string;
2139
2162
  code: string;
2140
2163
  path: string;
2164
+ message: string;
2141
2165
  statusCode: number;
2142
2166
  timestamp: string;
2143
2167
  details?: unknown;
2144
2168
  correlationId?: string | undefined;
2145
2169
  }, {
2146
- message: string;
2147
2170
  code: string;
2148
2171
  path: string;
2172
+ message: string;
2149
2173
  statusCode: number;
2150
2174
  timestamp: string;
2151
2175
  details?: unknown;
@@ -2169,7 +2193,7 @@ export declare const agentLeadDistributionContract: {
2169
2193
  body: typeof import("@ts-rest/core").ContractNoBody;
2170
2194
  path: "/v2/agent-lead-distribution/:agentId";
2171
2195
  responses: {
2172
- 400: z.ZodObject<{
2196
+ 401: z.ZodObject<{
2173
2197
  statusCode: z.ZodNumber;
2174
2198
  message: z.ZodString;
2175
2199
  code: z.ZodString;
@@ -2178,23 +2202,23 @@ export declare const agentLeadDistributionContract: {
2178
2202
  path: z.ZodString;
2179
2203
  correlationId: z.ZodOptional<z.ZodString>;
2180
2204
  }, "strip", z.ZodTypeAny, {
2181
- message: string;
2182
2205
  code: string;
2183
2206
  path: string;
2207
+ message: string;
2184
2208
  statusCode: number;
2185
2209
  timestamp: string;
2186
2210
  details?: unknown;
2187
2211
  correlationId?: string | undefined;
2188
2212
  }, {
2189
- message: string;
2190
2213
  code: string;
2191
2214
  path: string;
2215
+ message: string;
2192
2216
  statusCode: number;
2193
2217
  timestamp: string;
2194
2218
  details?: unknown;
2195
2219
  correlationId?: string | undefined;
2196
2220
  }>;
2197
- 401: z.ZodObject<{
2221
+ 400: z.ZodObject<{
2198
2222
  statusCode: z.ZodNumber;
2199
2223
  message: z.ZodString;
2200
2224
  code: z.ZodString;
@@ -2203,17 +2227,17 @@ export declare const agentLeadDistributionContract: {
2203
2227
  path: z.ZodString;
2204
2228
  correlationId: z.ZodOptional<z.ZodString>;
2205
2229
  }, "strip", z.ZodTypeAny, {
2206
- message: string;
2207
2230
  code: string;
2208
2231
  path: string;
2232
+ message: string;
2209
2233
  statusCode: number;
2210
2234
  timestamp: string;
2211
2235
  details?: unknown;
2212
2236
  correlationId?: string | undefined;
2213
2237
  }, {
2214
- message: string;
2215
2238
  code: string;
2216
2239
  path: string;
2240
+ message: string;
2217
2241
  statusCode: number;
2218
2242
  timestamp: string;
2219
2243
  details?: unknown;
@@ -2228,17 +2252,17 @@ export declare const agentLeadDistributionContract: {
2228
2252
  path: z.ZodString;
2229
2253
  correlationId: z.ZodOptional<z.ZodString>;
2230
2254
  }, "strip", z.ZodTypeAny, {
2231
- message: string;
2232
2255
  code: string;
2233
2256
  path: string;
2257
+ message: string;
2234
2258
  statusCode: number;
2235
2259
  timestamp: string;
2236
2260
  details?: unknown;
2237
2261
  correlationId?: string | undefined;
2238
2262
  }, {
2239
- message: string;
2240
2263
  code: string;
2241
2264
  path: string;
2265
+ message: string;
2242
2266
  statusCode: number;
2243
2267
  timestamp: string;
2244
2268
  details?: unknown;
@@ -2254,17 +2278,17 @@ export declare const agentLeadDistributionContract: {
2254
2278
  path: z.ZodString;
2255
2279
  correlationId: z.ZodOptional<z.ZodString>;
2256
2280
  }, "strip", z.ZodTypeAny, {
2257
- message: string;
2258
2281
  code: string;
2259
2282
  path: string;
2283
+ message: string;
2260
2284
  statusCode: number;
2261
2285
  timestamp: string;
2262
2286
  details?: unknown;
2263
2287
  correlationId?: string | undefined;
2264
2288
  }, {
2265
- message: string;
2266
2289
  code: string;
2267
2290
  path: string;
2291
+ message: string;
2268
2292
  statusCode: number;
2269
2293
  timestamp: string;
2270
2294
  details?: unknown;
@@ -2279,17 +2303,17 @@ export declare const agentLeadDistributionContract: {
2279
2303
  path: z.ZodString;
2280
2304
  correlationId: z.ZodOptional<z.ZodString>;
2281
2305
  }, "strip", z.ZodTypeAny, {
2282
- message: string;
2283
2306
  code: string;
2284
2307
  path: string;
2308
+ message: string;
2285
2309
  statusCode: number;
2286
2310
  timestamp: string;
2287
2311
  details?: unknown;
2288
2312
  correlationId?: string | undefined;
2289
2313
  }, {
2290
- message: string;
2291
2314
  code: string;
2292
2315
  path: string;
2316
+ message: string;
2293
2317
  statusCode: number;
2294
2318
  timestamp: string;
2295
2319
  details?: unknown;
@@ -2349,7 +2373,7 @@ export declare const agentLeadDistributionContract: {
2349
2373
  }>;
2350
2374
  path: "/v2/agent-lead-distribution/batch";
2351
2375
  responses: {
2352
- 400: z.ZodObject<{
2376
+ 401: z.ZodObject<{
2353
2377
  statusCode: z.ZodNumber;
2354
2378
  message: z.ZodString;
2355
2379
  code: z.ZodString;
@@ -2358,23 +2382,23 @@ export declare const agentLeadDistributionContract: {
2358
2382
  path: z.ZodString;
2359
2383
  correlationId: z.ZodOptional<z.ZodString>;
2360
2384
  }, "strip", z.ZodTypeAny, {
2361
- message: string;
2362
2385
  code: string;
2363
2386
  path: string;
2387
+ message: string;
2364
2388
  statusCode: number;
2365
2389
  timestamp: string;
2366
2390
  details?: unknown;
2367
2391
  correlationId?: string | undefined;
2368
2392
  }, {
2369
- message: string;
2370
2393
  code: string;
2371
2394
  path: string;
2395
+ message: string;
2372
2396
  statusCode: number;
2373
2397
  timestamp: string;
2374
2398
  details?: unknown;
2375
2399
  correlationId?: string | undefined;
2376
2400
  }>;
2377
- 401: z.ZodObject<{
2401
+ 400: z.ZodObject<{
2378
2402
  statusCode: z.ZodNumber;
2379
2403
  message: z.ZodString;
2380
2404
  code: z.ZodString;
@@ -2383,17 +2407,17 @@ export declare const agentLeadDistributionContract: {
2383
2407
  path: z.ZodString;
2384
2408
  correlationId: z.ZodOptional<z.ZodString>;
2385
2409
  }, "strip", z.ZodTypeAny, {
2386
- message: string;
2387
2410
  code: string;
2388
2411
  path: string;
2412
+ message: string;
2389
2413
  statusCode: number;
2390
2414
  timestamp: string;
2391
2415
  details?: unknown;
2392
2416
  correlationId?: string | undefined;
2393
2417
  }, {
2394
- message: string;
2395
2418
  code: string;
2396
2419
  path: string;
2420
+ message: string;
2397
2421
  statusCode: number;
2398
2422
  timestamp: string;
2399
2423
  details?: unknown;
@@ -2408,17 +2432,17 @@ export declare const agentLeadDistributionContract: {
2408
2432
  path: z.ZodString;
2409
2433
  correlationId: z.ZodOptional<z.ZodString>;
2410
2434
  }, "strip", z.ZodTypeAny, {
2411
- message: string;
2412
2435
  code: string;
2413
2436
  path: string;
2437
+ message: string;
2414
2438
  statusCode: number;
2415
2439
  timestamp: string;
2416
2440
  details?: unknown;
2417
2441
  correlationId?: string | undefined;
2418
2442
  }, {
2419
- message: string;
2420
2443
  code: string;
2421
2444
  path: string;
2445
+ message: string;
2422
2446
  statusCode: number;
2423
2447
  timestamp: string;
2424
2448
  details?: unknown;
@@ -2440,17 +2464,17 @@ export declare const agentLeadDistributionContract: {
2440
2464
  path: z.ZodString;
2441
2465
  correlationId: z.ZodOptional<z.ZodString>;
2442
2466
  }, "strip", z.ZodTypeAny, {
2443
- message: string;
2444
2467
  code: string;
2445
2468
  path: string;
2469
+ message: string;
2446
2470
  statusCode: number;
2447
2471
  timestamp: string;
2448
2472
  details?: unknown;
2449
2473
  correlationId?: string | undefined;
2450
2474
  }, {
2451
- message: string;
2452
2475
  code: string;
2453
2476
  path: string;
2477
+ message: string;
2454
2478
  statusCode: number;
2455
2479
  timestamp: string;
2456
2480
  details?: unknown;
@@ -2465,17 +2489,17 @@ export declare const agentLeadDistributionContract: {
2465
2489
  path: z.ZodString;
2466
2490
  correlationId: z.ZodOptional<z.ZodString>;
2467
2491
  }, "strip", z.ZodTypeAny, {
2468
- message: string;
2469
2492
  code: string;
2470
2493
  path: string;
2494
+ message: string;
2471
2495
  statusCode: number;
2472
2496
  timestamp: string;
2473
2497
  details?: unknown;
2474
2498
  correlationId?: string | undefined;
2475
2499
  }, {
2476
- message: string;
2477
2500
  code: string;
2478
2501
  path: string;
2502
+ message: string;
2479
2503
  statusCode: number;
2480
2504
  timestamp: string;
2481
2505
  details?: unknown;
@@ -2498,7 +2522,7 @@ export declare const agentLeadDistributionContract: {
2498
2522
  }>;
2499
2523
  path: "/v2/agent-lead-distribution/batch";
2500
2524
  responses: {
2501
- 400: z.ZodObject<{
2525
+ 401: z.ZodObject<{
2502
2526
  statusCode: z.ZodNumber;
2503
2527
  message: z.ZodString;
2504
2528
  code: z.ZodString;
@@ -2507,23 +2531,23 @@ export declare const agentLeadDistributionContract: {
2507
2531
  path: z.ZodString;
2508
2532
  correlationId: z.ZodOptional<z.ZodString>;
2509
2533
  }, "strip", z.ZodTypeAny, {
2510
- message: string;
2511
2534
  code: string;
2512
2535
  path: string;
2536
+ message: string;
2513
2537
  statusCode: number;
2514
2538
  timestamp: string;
2515
2539
  details?: unknown;
2516
2540
  correlationId?: string | undefined;
2517
2541
  }, {
2518
- message: string;
2519
2542
  code: string;
2520
2543
  path: string;
2544
+ message: string;
2521
2545
  statusCode: number;
2522
2546
  timestamp: string;
2523
2547
  details?: unknown;
2524
2548
  correlationId?: string | undefined;
2525
2549
  }>;
2526
- 401: z.ZodObject<{
2550
+ 400: z.ZodObject<{
2527
2551
  statusCode: z.ZodNumber;
2528
2552
  message: z.ZodString;
2529
2553
  code: z.ZodString;
@@ -2532,17 +2556,17 @@ export declare const agentLeadDistributionContract: {
2532
2556
  path: z.ZodString;
2533
2557
  correlationId: z.ZodOptional<z.ZodString>;
2534
2558
  }, "strip", z.ZodTypeAny, {
2535
- message: string;
2536
2559
  code: string;
2537
2560
  path: string;
2561
+ message: string;
2538
2562
  statusCode: number;
2539
2563
  timestamp: string;
2540
2564
  details?: unknown;
2541
2565
  correlationId?: string | undefined;
2542
2566
  }, {
2543
- message: string;
2544
2567
  code: string;
2545
2568
  path: string;
2569
+ message: string;
2546
2570
  statusCode: number;
2547
2571
  timestamp: string;
2548
2572
  details?: unknown;
@@ -2557,17 +2581,17 @@ export declare const agentLeadDistributionContract: {
2557
2581
  path: z.ZodString;
2558
2582
  correlationId: z.ZodOptional<z.ZodString>;
2559
2583
  }, "strip", z.ZodTypeAny, {
2560
- message: string;
2561
2584
  code: string;
2562
2585
  path: string;
2586
+ message: string;
2563
2587
  statusCode: number;
2564
2588
  timestamp: string;
2565
2589
  details?: unknown;
2566
2590
  correlationId?: string | undefined;
2567
2591
  }, {
2568
- message: string;
2569
2592
  code: string;
2570
2593
  path: string;
2594
+ message: string;
2571
2595
  statusCode: number;
2572
2596
  timestamp: string;
2573
2597
  details?: unknown;
@@ -2589,17 +2613,17 @@ export declare const agentLeadDistributionContract: {
2589
2613
  path: z.ZodString;
2590
2614
  correlationId: z.ZodOptional<z.ZodString>;
2591
2615
  }, "strip", z.ZodTypeAny, {
2592
- message: string;
2593
2616
  code: string;
2594
2617
  path: string;
2618
+ message: string;
2595
2619
  statusCode: number;
2596
2620
  timestamp: string;
2597
2621
  details?: unknown;
2598
2622
  correlationId?: string | undefined;
2599
2623
  }, {
2600
- message: string;
2601
2624
  code: string;
2602
2625
  path: string;
2626
+ message: string;
2603
2627
  statusCode: number;
2604
2628
  timestamp: string;
2605
2629
  details?: unknown;
@@ -2614,17 +2638,17 @@ export declare const agentLeadDistributionContract: {
2614
2638
  path: z.ZodString;
2615
2639
  correlationId: z.ZodOptional<z.ZodString>;
2616
2640
  }, "strip", z.ZodTypeAny, {
2617
- message: string;
2618
2641
  code: string;
2619
2642
  path: string;
2643
+ message: string;
2620
2644
  statusCode: number;
2621
2645
  timestamp: string;
2622
2646
  details?: unknown;
2623
2647
  correlationId?: string | undefined;
2624
2648
  }, {
2625
- message: string;
2626
2649
  code: string;
2627
2650
  path: string;
2651
+ message: string;
2628
2652
  statusCode: number;
2629
2653
  timestamp: string;
2630
2654
  details?: unknown;