@dakkitor/api-contracts 1.1.133 → 1.1.135

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.
@@ -25,6 +25,8 @@ export declare const LeadSchema: z.ZodObject<{
25
25
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26
26
  source: z.ZodString;
27
27
  lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
28
+ cooldownUntil: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
29
+ lastCallNotes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
28
30
  qualityScore: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
29
31
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
30
32
  conversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -33,31 +35,35 @@ export declare const LeadSchema: z.ZodObject<{
33
35
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
34
36
  }, "strip", z.ZodTypeAny, {
35
37
  name: string;
36
- id: string;
37
38
  phoneNumber: string;
38
39
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
39
40
  source: string;
40
41
  createdAt: string;
41
42
  updatedAt: string;
43
+ id: string;
42
44
  lastCalledAt?: string | null | undefined;
43
- blacklistReason?: string | null | undefined;
44
45
  qualityScore?: number | null | undefined;
45
46
  conversionRate?: number | null | undefined;
46
47
  totalCalls?: number | null | undefined;
48
+ blacklistReason?: string | null | undefined;
49
+ cooldownUntil?: string | null | undefined;
50
+ lastCallNotes?: string | null | undefined;
47
51
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
48
52
  }, {
49
53
  name: string;
50
- id: string;
51
54
  phoneNumber: string;
52
55
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
53
56
  source: string;
54
57
  createdAt: string | Date;
55
58
  updatedAt: string | Date;
59
+ id: string;
56
60
  lastCalledAt?: string | Date | null | undefined;
57
- blacklistReason?: string | null | undefined;
58
61
  qualityScore?: number | null | undefined;
59
62
  conversionRate?: number | null | undefined;
60
63
  totalCalls?: number | null | undefined;
64
+ blacklistReason?: string | null | undefined;
65
+ cooldownUntil?: string | Date | null | undefined;
66
+ lastCallNotes?: string | null | undefined;
61
67
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
62
68
  }>;
63
69
  /**
@@ -162,11 +168,9 @@ export declare const FilterLeadSchema: z.ZodObject<{
162
168
  sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "phoneNumber", "status", "source", "lastCalledAt", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>>>;
163
169
  sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
164
170
  }, "strip", z.ZodTypeAny, {
165
- page: number;
166
171
  limit: number;
172
+ page: number;
167
173
  name?: string | null | undefined;
168
- sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "createdAt" | "updatedAt" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
169
- sortOrder?: "ASC" | "DESC" | null | undefined;
170
174
  phoneNumber?: string | null | undefined;
171
175
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
172
176
  source?: string | null | undefined;
@@ -174,17 +178,15 @@ export declare const FilterLeadSchema: z.ZodObject<{
174
178
  from?: string | null | undefined;
175
179
  to?: string | null | undefined;
176
180
  } | null | undefined;
177
- minTotalCalls?: number | null | undefined;
178
181
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
179
182
  minQualityScore?: number | null | undefined;
180
183
  maxQualityScore?: number | null | undefined;
181
184
  minConversionRate?: number | null | undefined;
185
+ minTotalCalls?: number | null | undefined;
186
+ sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
187
+ sortOrder?: "ASC" | "DESC" | null | undefined;
182
188
  }, {
183
189
  name?: string | null | undefined;
184
- sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "createdAt" | "updatedAt" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
185
- sortOrder?: "ASC" | "DESC" | null | undefined;
186
- page?: number | undefined;
187
- limit?: number | undefined;
188
190
  phoneNumber?: string | null | undefined;
189
191
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
190
192
  source?: string | null | undefined;
@@ -192,11 +194,15 @@ export declare const FilterLeadSchema: z.ZodObject<{
192
194
  from?: string | null | undefined;
193
195
  to?: string | null | undefined;
194
196
  } | null | undefined;
195
- minTotalCalls?: number | null | undefined;
196
197
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
198
+ limit?: number | undefined;
199
+ page?: number | undefined;
197
200
  minQualityScore?: number | null | undefined;
198
201
  maxQualityScore?: number | null | undefined;
199
202
  minConversionRate?: number | null | undefined;
203
+ minTotalCalls?: number | null | undefined;
204
+ sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
205
+ sortOrder?: "ASC" | "DESC" | null | undefined;
200
206
  }>;
201
207
  /**
202
208
  * Call History Response Schema for leads
@@ -214,27 +220,27 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
214
220
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
215
221
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
216
222
  }, "strip", z.ZodTypeAny, {
217
- id: string;
218
- agentId: string;
219
223
  createdAt: string;
220
224
  updatedAt: string;
221
- rating: import("../common/call-rating.schema").CallRating;
222
- leadId: string;
225
+ id: string;
223
226
  assignmentId: string;
227
+ leadId: string;
228
+ agentId: string;
224
229
  callDate: string;
225
230
  callType: import("../call-history/call-history.contract").CallType;
231
+ rating: import("../common/call-rating.schema").CallRating;
226
232
  ratingWeight: number;
227
233
  notes?: string | null | undefined;
228
234
  }, {
229
- id: string;
230
- agentId: string;
231
235
  createdAt: string | Date;
232
236
  updatedAt: string | Date;
233
- rating: import("../common/call-rating.schema").CallRating;
234
- leadId: string;
237
+ id: string;
235
238
  assignmentId: string;
239
+ leadId: string;
240
+ agentId: string;
236
241
  callDate: string | Date;
237
242
  callType: import("../call-history/call-history.contract").CallType;
243
+ rating: import("../common/call-rating.schema").CallRating;
238
244
  ratingWeight: number;
239
245
  notes?: string | null | undefined;
240
246
  }>;
@@ -310,6 +316,8 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
310
316
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
311
317
  source: z.ZodString;
312
318
  lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
319
+ cooldownUntil: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
320
+ lastCallNotes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
313
321
  qualityScore: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
314
322
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
315
323
  conversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -318,31 +326,35 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
318
326
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
319
327
  }, "strip", z.ZodTypeAny, {
320
328
  name: string;
321
- id: string;
322
329
  phoneNumber: string;
323
330
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
324
331
  source: string;
325
332
  createdAt: string;
326
333
  updatedAt: string;
334
+ id: string;
327
335
  lastCalledAt?: string | null | undefined;
328
- blacklistReason?: string | null | undefined;
329
336
  qualityScore?: number | null | undefined;
330
337
  conversionRate?: number | null | undefined;
331
338
  totalCalls?: number | null | undefined;
339
+ blacklistReason?: string | null | undefined;
340
+ cooldownUntil?: string | null | undefined;
341
+ lastCallNotes?: string | null | undefined;
332
342
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
333
343
  }, {
334
344
  name: string;
335
- id: string;
336
345
  phoneNumber: string;
337
346
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
338
347
  source: string;
339
348
  createdAt: string | Date;
340
349
  updatedAt: string | Date;
350
+ id: string;
341
351
  lastCalledAt?: string | Date | null | undefined;
342
- blacklistReason?: string | null | undefined;
343
352
  qualityScore?: number | null | undefined;
344
353
  conversionRate?: number | null | undefined;
345
354
  totalCalls?: number | null | undefined;
355
+ blacklistReason?: string | null | undefined;
356
+ cooldownUntil?: string | Date | null | undefined;
357
+ lastCallNotes?: string | null | undefined;
346
358
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
347
359
  }>, "many">;
348
360
  totalCount: z.ZodNumber;
@@ -354,17 +366,19 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
354
366
  limit: number;
355
367
  items: {
356
368
  name: string;
357
- id: string;
358
369
  phoneNumber: string;
359
370
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
360
371
  source: string;
361
372
  createdAt: string;
362
373
  updatedAt: string;
374
+ id: string;
363
375
  lastCalledAt?: string | null | undefined;
364
- blacklistReason?: string | null | undefined;
365
376
  qualityScore?: number | null | undefined;
366
377
  conversionRate?: number | null | undefined;
367
378
  totalCalls?: number | null | undefined;
379
+ blacklistReason?: string | null | undefined;
380
+ cooldownUntil?: string | null | undefined;
381
+ lastCallNotes?: string | null | undefined;
368
382
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
369
383
  }[];
370
384
  totalCount: number;
@@ -375,17 +389,19 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
375
389
  limit: number;
376
390
  items: {
377
391
  name: string;
378
- id: string;
379
392
  phoneNumber: string;
380
393
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
381
394
  source: string;
382
395
  createdAt: string | Date;
383
396
  updatedAt: string | Date;
397
+ id: string;
384
398
  lastCalledAt?: string | Date | null | undefined;
385
- blacklistReason?: string | null | undefined;
386
399
  qualityScore?: number | null | undefined;
387
400
  conversionRate?: number | null | undefined;
388
401
  totalCalls?: number | null | undefined;
402
+ blacklistReason?: string | null | undefined;
403
+ cooldownUntil?: string | Date | null | undefined;
404
+ lastCallNotes?: string | null | undefined;
389
405
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
390
406
  }[];
391
407
  totalCount: number;
@@ -449,7 +465,7 @@ export declare const leadsContractRouter: {
449
465
  }>;
450
466
  path: "/v2/leads";
451
467
  responses: {
452
- 400: z.ZodObject<{
468
+ 500: z.ZodObject<{
453
469
  statusCode: z.ZodNumber;
454
470
  message: z.ZodString;
455
471
  code: z.ZodString;
@@ -474,7 +490,7 @@ export declare const leadsContractRouter: {
474
490
  details?: unknown;
475
491
  correlationId?: string | undefined;
476
492
  }>;
477
- 401: z.ZodObject<{
493
+ 400: z.ZodObject<{
478
494
  statusCode: z.ZodNumber;
479
495
  message: z.ZodString;
480
496
  code: z.ZodString;
@@ -499,7 +515,7 @@ export declare const leadsContractRouter: {
499
515
  details?: unknown;
500
516
  correlationId?: string | undefined;
501
517
  }>;
502
- 403: z.ZodObject<{
518
+ 401: z.ZodObject<{
503
519
  statusCode: z.ZodNumber;
504
520
  message: z.ZodString;
505
521
  code: z.ZodString;
@@ -524,7 +540,7 @@ export declare const leadsContractRouter: {
524
540
  details?: unknown;
525
541
  correlationId?: string | undefined;
526
542
  }>;
527
- 500: z.ZodObject<{
543
+ 403: z.ZodObject<{
528
544
  statusCode: z.ZodNumber;
529
545
  message: z.ZodString;
530
546
  code: z.ZodString;
@@ -557,6 +573,8 @@ export declare const leadsContractRouter: {
557
573
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
558
574
  source: z.ZodString;
559
575
  lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
576
+ cooldownUntil: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
577
+ lastCallNotes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
560
578
  qualityScore: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
561
579
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
562
580
  conversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -565,31 +583,35 @@ export declare const leadsContractRouter: {
565
583
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
566
584
  }, "strip", z.ZodTypeAny, {
567
585
  name: string;
568
- id: string;
569
586
  phoneNumber: string;
570
587
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
571
588
  source: string;
572
589
  createdAt: string;
573
590
  updatedAt: string;
591
+ id: string;
574
592
  lastCalledAt?: string | null | undefined;
575
- blacklistReason?: string | null | undefined;
576
593
  qualityScore?: number | null | undefined;
577
594
  conversionRate?: number | null | undefined;
578
595
  totalCalls?: number | null | undefined;
596
+ blacklistReason?: string | null | undefined;
597
+ cooldownUntil?: string | null | undefined;
598
+ lastCallNotes?: string | null | undefined;
579
599
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
580
600
  }, {
581
601
  name: string;
582
- id: string;
583
602
  phoneNumber: string;
584
603
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
585
604
  source: string;
586
605
  createdAt: string | Date;
587
606
  updatedAt: string | Date;
607
+ id: string;
588
608
  lastCalledAt?: string | Date | null | undefined;
589
- blacklistReason?: string | null | undefined;
590
609
  qualityScore?: number | null | undefined;
591
610
  conversionRate?: number | null | undefined;
592
611
  totalCalls?: number | null | undefined;
612
+ blacklistReason?: string | null | undefined;
613
+ cooldownUntil?: string | Date | null | undefined;
614
+ lastCallNotes?: string | null | undefined;
593
615
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
594
616
  }>;
595
617
  409: z.ZodObject<{
@@ -620,6 +642,12 @@ export declare const leadsContractRouter: {
620
642
  };
621
643
  };
622
644
  findAll: {
645
+ metadata: {
646
+ tags: string[];
647
+ openApi: {
648
+ operationId: string;
649
+ };
650
+ };
623
651
  query: z.ZodObject<{
624
652
  limit: z.ZodDefault<z.ZodNumber>;
625
653
  page: z.ZodDefault<z.ZodNumber>;
@@ -646,11 +674,9 @@ export declare const leadsContractRouter: {
646
674
  sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "phoneNumber", "status", "source", "lastCalledAt", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>>>;
647
675
  sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
648
676
  }, "strip", z.ZodTypeAny, {
649
- page: number;
650
677
  limit: number;
678
+ page: number;
651
679
  name?: string | null | undefined;
652
- sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "createdAt" | "updatedAt" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
653
- sortOrder?: "ASC" | "DESC" | null | undefined;
654
680
  phoneNumber?: string | null | undefined;
655
681
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
656
682
  source?: string | null | undefined;
@@ -658,17 +684,15 @@ export declare const leadsContractRouter: {
658
684
  from?: string | null | undefined;
659
685
  to?: string | null | undefined;
660
686
  } | null | undefined;
661
- minTotalCalls?: number | null | undefined;
662
687
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
663
688
  minQualityScore?: number | null | undefined;
664
689
  maxQualityScore?: number | null | undefined;
665
690
  minConversionRate?: number | null | undefined;
691
+ minTotalCalls?: number | null | undefined;
692
+ sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
693
+ sortOrder?: "ASC" | "DESC" | null | undefined;
666
694
  }, {
667
695
  name?: string | null | undefined;
668
- sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "createdAt" | "updatedAt" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
669
- sortOrder?: "ASC" | "DESC" | null | undefined;
670
- page?: number | undefined;
671
- limit?: number | undefined;
672
696
  phoneNumber?: string | null | undefined;
673
697
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
674
698
  source?: string | null | undefined;
@@ -676,23 +700,21 @@ export declare const leadsContractRouter: {
676
700
  from?: string | null | undefined;
677
701
  to?: string | null | undefined;
678
702
  } | null | undefined;
679
- minTotalCalls?: number | null | undefined;
680
703
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
704
+ limit?: number | undefined;
705
+ page?: number | undefined;
681
706
  minQualityScore?: number | null | undefined;
682
707
  maxQualityScore?: number | null | undefined;
683
708
  minConversionRate?: number | null | undefined;
709
+ minTotalCalls?: number | null | undefined;
710
+ sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
711
+ sortOrder?: "ASC" | "DESC" | null | undefined;
684
712
  }>;
685
- metadata: {
686
- tags: string[];
687
- openApi: {
688
- operationId: string;
689
- };
690
- };
691
713
  summary: "Get all leads";
692
714
  method: "GET";
693
715
  path: "/v2/leads";
694
716
  responses: {
695
- 400: z.ZodObject<{
717
+ 500: z.ZodObject<{
696
718
  statusCode: z.ZodNumber;
697
719
  message: z.ZodString;
698
720
  code: z.ZodString;
@@ -717,7 +739,7 @@ export declare const leadsContractRouter: {
717
739
  details?: unknown;
718
740
  correlationId?: string | undefined;
719
741
  }>;
720
- 401: z.ZodObject<{
742
+ 400: z.ZodObject<{
721
743
  statusCode: z.ZodNumber;
722
744
  message: z.ZodString;
723
745
  code: z.ZodString;
@@ -742,7 +764,7 @@ export declare const leadsContractRouter: {
742
764
  details?: unknown;
743
765
  correlationId?: string | undefined;
744
766
  }>;
745
- 403: z.ZodObject<{
767
+ 401: z.ZodObject<{
746
768
  statusCode: z.ZodNumber;
747
769
  message: z.ZodString;
748
770
  code: z.ZodString;
@@ -767,7 +789,7 @@ export declare const leadsContractRouter: {
767
789
  details?: unknown;
768
790
  correlationId?: string | undefined;
769
791
  }>;
770
- 500: z.ZodObject<{
792
+ 403: z.ZodObject<{
771
793
  statusCode: z.ZodNumber;
772
794
  message: z.ZodString;
773
795
  code: z.ZodString;
@@ -801,6 +823,8 @@ export declare const leadsContractRouter: {
801
823
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
802
824
  source: z.ZodString;
803
825
  lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
826
+ cooldownUntil: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
827
+ lastCallNotes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
804
828
  qualityScore: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
805
829
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
806
830
  conversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -809,31 +833,35 @@ export declare const leadsContractRouter: {
809
833
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
810
834
  }, "strip", z.ZodTypeAny, {
811
835
  name: string;
812
- id: string;
813
836
  phoneNumber: string;
814
837
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
815
838
  source: string;
816
839
  createdAt: string;
817
840
  updatedAt: string;
841
+ id: string;
818
842
  lastCalledAt?: string | null | undefined;
819
- blacklistReason?: string | null | undefined;
820
843
  qualityScore?: number | null | undefined;
821
844
  conversionRate?: number | null | undefined;
822
845
  totalCalls?: number | null | undefined;
846
+ blacklistReason?: string | null | undefined;
847
+ cooldownUntil?: string | null | undefined;
848
+ lastCallNotes?: string | null | undefined;
823
849
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
824
850
  }, {
825
851
  name: string;
826
- id: string;
827
852
  phoneNumber: string;
828
853
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
829
854
  source: string;
830
855
  createdAt: string | Date;
831
856
  updatedAt: string | Date;
857
+ id: string;
832
858
  lastCalledAt?: string | Date | null | undefined;
833
- blacklistReason?: string | null | undefined;
834
859
  qualityScore?: number | null | undefined;
835
860
  conversionRate?: number | null | undefined;
836
861
  totalCalls?: number | null | undefined;
862
+ blacklistReason?: string | null | undefined;
863
+ cooldownUntil?: string | Date | null | undefined;
864
+ lastCallNotes?: string | null | undefined;
837
865
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
838
866
  }>, "many">;
839
867
  totalCount: z.ZodNumber;
@@ -845,17 +873,19 @@ export declare const leadsContractRouter: {
845
873
  limit: number;
846
874
  items: {
847
875
  name: string;
848
- id: string;
849
876
  phoneNumber: string;
850
877
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
851
878
  source: string;
852
879
  createdAt: string;
853
880
  updatedAt: string;
881
+ id: string;
854
882
  lastCalledAt?: string | null | undefined;
855
- blacklistReason?: string | null | undefined;
856
883
  qualityScore?: number | null | undefined;
857
884
  conversionRate?: number | null | undefined;
858
885
  totalCalls?: number | null | undefined;
886
+ blacklistReason?: string | null | undefined;
887
+ cooldownUntil?: string | null | undefined;
888
+ lastCallNotes?: string | null | undefined;
859
889
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
860
890
  }[];
861
891
  totalCount: number;
@@ -866,17 +896,19 @@ export declare const leadsContractRouter: {
866
896
  limit: number;
867
897
  items: {
868
898
  name: string;
869
- id: string;
870
899
  phoneNumber: string;
871
900
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
872
901
  source: string;
873
902
  createdAt: string | Date;
874
903
  updatedAt: string | Date;
904
+ id: string;
875
905
  lastCalledAt?: string | Date | null | undefined;
876
- blacklistReason?: string | null | undefined;
877
906
  qualityScore?: number | null | undefined;
878
907
  conversionRate?: number | null | undefined;
879
908
  totalCalls?: number | null | undefined;
909
+ blacklistReason?: string | null | undefined;
910
+ cooldownUntil?: string | Date | null | undefined;
911
+ lastCallNotes?: string | null | undefined;
880
912
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
881
913
  }[];
882
914
  totalCount: number;
@@ -904,7 +936,7 @@ export declare const leadsContractRouter: {
904
936
  method: "GET";
905
937
  path: "/v2/leads/:id";
906
938
  responses: {
907
- 400: z.ZodObject<{
939
+ 500: z.ZodObject<{
908
940
  statusCode: z.ZodNumber;
909
941
  message: z.ZodString;
910
942
  code: z.ZodString;
@@ -929,7 +961,7 @@ export declare const leadsContractRouter: {
929
961
  details?: unknown;
930
962
  correlationId?: string | undefined;
931
963
  }>;
932
- 401: z.ZodObject<{
964
+ 400: z.ZodObject<{
933
965
  statusCode: z.ZodNumber;
934
966
  message: z.ZodString;
935
967
  code: z.ZodString;
@@ -954,7 +986,7 @@ export declare const leadsContractRouter: {
954
986
  details?: unknown;
955
987
  correlationId?: string | undefined;
956
988
  }>;
957
- 403: z.ZodObject<{
989
+ 401: z.ZodObject<{
958
990
  statusCode: z.ZodNumber;
959
991
  message: z.ZodString;
960
992
  code: z.ZodString;
@@ -979,7 +1011,7 @@ export declare const leadsContractRouter: {
979
1011
  details?: unknown;
980
1012
  correlationId?: string | undefined;
981
1013
  }>;
982
- 500: z.ZodObject<{
1014
+ 403: z.ZodObject<{
983
1015
  statusCode: z.ZodNumber;
984
1016
  message: z.ZodString;
985
1017
  code: z.ZodString;
@@ -1012,6 +1044,8 @@ export declare const leadsContractRouter: {
1012
1044
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1013
1045
  source: z.ZodString;
1014
1046
  lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
1047
+ cooldownUntil: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
1048
+ lastCallNotes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1015
1049
  qualityScore: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1016
1050
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
1017
1051
  conversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -1020,31 +1054,35 @@ export declare const leadsContractRouter: {
1020
1054
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1021
1055
  }, "strip", z.ZodTypeAny, {
1022
1056
  name: string;
1023
- id: string;
1024
1057
  phoneNumber: string;
1025
1058
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1026
1059
  source: string;
1027
1060
  createdAt: string;
1028
1061
  updatedAt: string;
1062
+ id: string;
1029
1063
  lastCalledAt?: string | null | undefined;
1030
- blacklistReason?: string | null | undefined;
1031
1064
  qualityScore?: number | null | undefined;
1032
1065
  conversionRate?: number | null | undefined;
1033
1066
  totalCalls?: number | null | undefined;
1067
+ blacklistReason?: string | null | undefined;
1068
+ cooldownUntil?: string | null | undefined;
1069
+ lastCallNotes?: string | null | undefined;
1034
1070
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1035
1071
  }, {
1036
1072
  name: string;
1037
- id: string;
1038
1073
  phoneNumber: string;
1039
1074
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1040
1075
  source: string;
1041
1076
  createdAt: string | Date;
1042
1077
  updatedAt: string | Date;
1078
+ id: string;
1043
1079
  lastCalledAt?: string | Date | null | undefined;
1044
- blacklistReason?: string | null | undefined;
1045
1080
  qualityScore?: number | null | undefined;
1046
1081
  conversionRate?: number | null | undefined;
1047
1082
  totalCalls?: number | null | undefined;
1083
+ blacklistReason?: string | null | undefined;
1084
+ cooldownUntil?: string | Date | null | undefined;
1085
+ lastCallNotes?: string | null | undefined;
1048
1086
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1049
1087
  }>;
1050
1088
  404: z.ZodObject<{
@@ -1123,7 +1161,7 @@ export declare const leadsContractRouter: {
1123
1161
  }>;
1124
1162
  path: "/v2/leads/:id";
1125
1163
  responses: {
1126
- 400: z.ZodObject<{
1164
+ 500: z.ZodObject<{
1127
1165
  statusCode: z.ZodNumber;
1128
1166
  message: z.ZodString;
1129
1167
  code: z.ZodString;
@@ -1148,7 +1186,7 @@ export declare const leadsContractRouter: {
1148
1186
  details?: unknown;
1149
1187
  correlationId?: string | undefined;
1150
1188
  }>;
1151
- 401: z.ZodObject<{
1189
+ 400: z.ZodObject<{
1152
1190
  statusCode: z.ZodNumber;
1153
1191
  message: z.ZodString;
1154
1192
  code: z.ZodString;
@@ -1173,7 +1211,7 @@ export declare const leadsContractRouter: {
1173
1211
  details?: unknown;
1174
1212
  correlationId?: string | undefined;
1175
1213
  }>;
1176
- 403: z.ZodObject<{
1214
+ 401: z.ZodObject<{
1177
1215
  statusCode: z.ZodNumber;
1178
1216
  message: z.ZodString;
1179
1217
  code: z.ZodString;
@@ -1198,7 +1236,7 @@ export declare const leadsContractRouter: {
1198
1236
  details?: unknown;
1199
1237
  correlationId?: string | undefined;
1200
1238
  }>;
1201
- 500: z.ZodObject<{
1239
+ 403: z.ZodObject<{
1202
1240
  statusCode: z.ZodNumber;
1203
1241
  message: z.ZodString;
1204
1242
  code: z.ZodString;
@@ -1231,6 +1269,8 @@ export declare const leadsContractRouter: {
1231
1269
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1232
1270
  source: z.ZodString;
1233
1271
  lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
1272
+ cooldownUntil: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
1273
+ lastCallNotes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1234
1274
  qualityScore: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1235
1275
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
1236
1276
  conversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -1239,31 +1279,35 @@ export declare const leadsContractRouter: {
1239
1279
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1240
1280
  }, "strip", z.ZodTypeAny, {
1241
1281
  name: string;
1242
- id: string;
1243
1282
  phoneNumber: string;
1244
1283
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1245
1284
  source: string;
1246
1285
  createdAt: string;
1247
1286
  updatedAt: string;
1287
+ id: string;
1248
1288
  lastCalledAt?: string | null | undefined;
1249
- blacklistReason?: string | null | undefined;
1250
1289
  qualityScore?: number | null | undefined;
1251
1290
  conversionRate?: number | null | undefined;
1252
1291
  totalCalls?: number | null | undefined;
1292
+ blacklistReason?: string | null | undefined;
1293
+ cooldownUntil?: string | null | undefined;
1294
+ lastCallNotes?: string | null | undefined;
1253
1295
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1254
1296
  }, {
1255
1297
  name: string;
1256
- id: string;
1257
1298
  phoneNumber: string;
1258
1299
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1259
1300
  source: string;
1260
1301
  createdAt: string | Date;
1261
1302
  updatedAt: string | Date;
1303
+ id: string;
1262
1304
  lastCalledAt?: string | Date | null | undefined;
1263
- blacklistReason?: string | null | undefined;
1264
1305
  qualityScore?: number | null | undefined;
1265
1306
  conversionRate?: number | null | undefined;
1266
1307
  totalCalls?: number | null | undefined;
1308
+ blacklistReason?: string | null | undefined;
1309
+ cooldownUntil?: string | Date | null | undefined;
1310
+ lastCallNotes?: string | null | undefined;
1267
1311
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1268
1312
  }>;
1269
1313
  404: z.ZodObject<{
@@ -1337,7 +1381,7 @@ export declare const leadsContractRouter: {
1337
1381
  body: typeof import("@ts-rest/core").ContractNoBody;
1338
1382
  path: "/v2/leads/:id";
1339
1383
  responses: {
1340
- 400: z.ZodObject<{
1384
+ 500: z.ZodObject<{
1341
1385
  statusCode: z.ZodNumber;
1342
1386
  message: z.ZodString;
1343
1387
  code: z.ZodString;
@@ -1362,7 +1406,7 @@ export declare const leadsContractRouter: {
1362
1406
  details?: unknown;
1363
1407
  correlationId?: string | undefined;
1364
1408
  }>;
1365
- 401: z.ZodObject<{
1409
+ 400: z.ZodObject<{
1366
1410
  statusCode: z.ZodNumber;
1367
1411
  message: z.ZodString;
1368
1412
  code: z.ZodString;
@@ -1387,7 +1431,7 @@ export declare const leadsContractRouter: {
1387
1431
  details?: unknown;
1388
1432
  correlationId?: string | undefined;
1389
1433
  }>;
1390
- 403: z.ZodObject<{
1434
+ 401: z.ZodObject<{
1391
1435
  statusCode: z.ZodNumber;
1392
1436
  message: z.ZodString;
1393
1437
  code: z.ZodString;
@@ -1412,7 +1456,7 @@ export declare const leadsContractRouter: {
1412
1456
  details?: unknown;
1413
1457
  correlationId?: string | undefined;
1414
1458
  }>;
1415
- 500: z.ZodObject<{
1459
+ 403: z.ZodObject<{
1416
1460
  statusCode: z.ZodNumber;
1417
1461
  message: z.ZodString;
1418
1462
  code: z.ZodString;
@@ -1487,19 +1531,19 @@ export declare const leadsContractRouter: {
1487
1531
  notes: z.ZodOptional<z.ZodString>;
1488
1532
  callType: z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>;
1489
1533
  }, "strip", z.ZodTypeAny, {
1490
- rating: import("../common/call-rating.schema").CallRating;
1491
1534
  assignmentId: string;
1492
1535
  callType: import("../call-history/call-history.contract").CallType;
1536
+ rating: import("../common/call-rating.schema").CallRating;
1493
1537
  notes?: string | undefined;
1494
1538
  }, {
1495
- rating: import("../common/call-rating.schema").CallRating;
1496
1539
  assignmentId: string;
1497
1540
  callType: import("../call-history/call-history.contract").CallType;
1541
+ rating: import("../common/call-rating.schema").CallRating;
1498
1542
  notes?: string | undefined;
1499
1543
  }>;
1500
1544
  path: "/v2/leads/:id/call";
1501
1545
  responses: {
1502
- 400: z.ZodObject<{
1546
+ 500: z.ZodObject<{
1503
1547
  statusCode: z.ZodNumber;
1504
1548
  message: z.ZodString;
1505
1549
  code: z.ZodString;
@@ -1524,7 +1568,7 @@ export declare const leadsContractRouter: {
1524
1568
  details?: unknown;
1525
1569
  correlationId?: string | undefined;
1526
1570
  }>;
1527
- 401: z.ZodObject<{
1571
+ 400: z.ZodObject<{
1528
1572
  statusCode: z.ZodNumber;
1529
1573
  message: z.ZodString;
1530
1574
  code: z.ZodString;
@@ -1549,7 +1593,7 @@ export declare const leadsContractRouter: {
1549
1593
  details?: unknown;
1550
1594
  correlationId?: string | undefined;
1551
1595
  }>;
1552
- 403: z.ZodObject<{
1596
+ 401: z.ZodObject<{
1553
1597
  statusCode: z.ZodNumber;
1554
1598
  message: z.ZodString;
1555
1599
  code: z.ZodString;
@@ -1574,7 +1618,7 @@ export declare const leadsContractRouter: {
1574
1618
  details?: unknown;
1575
1619
  correlationId?: string | undefined;
1576
1620
  }>;
1577
- 500: z.ZodObject<{
1621
+ 403: z.ZodObject<{
1578
1622
  statusCode: z.ZodNumber;
1579
1623
  message: z.ZodString;
1580
1624
  code: z.ZodString;
@@ -1612,45 +1656,45 @@ export declare const leadsContractRouter: {
1612
1656
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1613
1657
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1614
1658
  }, "strip", z.ZodTypeAny, {
1615
- id: string;
1616
- agentId: string;
1617
1659
  createdAt: string;
1618
1660
  updatedAt: string;
1619
- rating: import("../common/call-rating.schema").CallRating;
1620
- leadId: string;
1661
+ id: string;
1621
1662
  assignmentId: string;
1663
+ leadId: string;
1664
+ agentId: string;
1622
1665
  callDate: string;
1623
1666
  callType: import("../call-history/call-history.contract").CallType;
1667
+ rating: import("../common/call-rating.schema").CallRating;
1624
1668
  ratingWeight: number;
1625
1669
  notes?: string | null | undefined;
1626
1670
  }, {
1627
- id: string;
1628
- agentId: string;
1629
1671
  createdAt: string | Date;
1630
1672
  updatedAt: string | Date;
1631
- rating: import("../common/call-rating.schema").CallRating;
1632
- leadId: string;
1673
+ id: string;
1633
1674
  assignmentId: string;
1675
+ leadId: string;
1676
+ agentId: string;
1634
1677
  callDate: string | Date;
1635
1678
  callType: import("../call-history/call-history.contract").CallType;
1679
+ rating: import("../common/call-rating.schema").CallRating;
1636
1680
  ratingWeight: number;
1637
1681
  notes?: string | null | undefined;
1638
1682
  }>;
1639
1683
  };
1640
1684
  };
1641
1685
  getQualityDashboard: {
1642
- query: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1643
1686
  metadata: {
1644
1687
  tags: string[];
1645
1688
  openApi: {
1646
1689
  operationId: string;
1647
1690
  };
1648
1691
  };
1692
+ query: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1649
1693
  summary: "Get lead quality analytics dashboard";
1650
1694
  method: "GET";
1651
1695
  path: "/v2/leads/analytics/quality-dashboard";
1652
1696
  responses: {
1653
- 400: z.ZodObject<{
1697
+ 500: z.ZodObject<{
1654
1698
  statusCode: z.ZodNumber;
1655
1699
  message: z.ZodString;
1656
1700
  code: z.ZodString;
@@ -1675,7 +1719,7 @@ export declare const leadsContractRouter: {
1675
1719
  details?: unknown;
1676
1720
  correlationId?: string | undefined;
1677
1721
  }>;
1678
- 401: z.ZodObject<{
1722
+ 400: z.ZodObject<{
1679
1723
  statusCode: z.ZodNumber;
1680
1724
  message: z.ZodString;
1681
1725
  code: z.ZodString;
@@ -1700,7 +1744,7 @@ export declare const leadsContractRouter: {
1700
1744
  details?: unknown;
1701
1745
  correlationId?: string | undefined;
1702
1746
  }>;
1703
- 403: z.ZodObject<{
1747
+ 401: z.ZodObject<{
1704
1748
  statusCode: z.ZodNumber;
1705
1749
  message: z.ZodString;
1706
1750
  code: z.ZodString;
@@ -1725,7 +1769,7 @@ export declare const leadsContractRouter: {
1725
1769
  details?: unknown;
1726
1770
  correlationId?: string | undefined;
1727
1771
  }>;
1728
- 500: z.ZodObject<{
1772
+ 403: z.ZodObject<{
1729
1773
  statusCode: z.ZodNumber;
1730
1774
  message: z.ZodString;
1731
1775
  code: z.ZodString;