@dakkitor/api-contracts 1.1.100 → 1.1.102

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.
@@ -31,26 +31,26 @@ export declare const LeadSchema: z.ZodObject<{
31
31
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
32
32
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
33
33
  }, "strip", z.ZodTypeAny, {
34
- name: string;
34
+ id: string;
35
35
  phoneNumber: string;
36
36
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
37
- source: string;
38
37
  createdAt: string;
39
38
  updatedAt: string;
40
- id: string;
39
+ name: string;
40
+ source: string;
41
41
  qualityScore?: number | null | undefined;
42
42
  conversionRate?: number | null | undefined;
43
43
  totalCalls?: number | null | undefined;
44
44
  blacklistReason?: string | null | undefined;
45
45
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
46
46
  }, {
47
- name: string;
47
+ id: string;
48
48
  phoneNumber: string;
49
49
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
50
- source: string;
51
50
  createdAt: string | Date;
52
51
  updatedAt: string | Date;
53
- id: string;
52
+ name: string;
53
+ source: string;
54
54
  qualityScore?: number | null | undefined;
55
55
  conversionRate?: number | null | undefined;
56
56
  totalCalls?: number | null | undefined;
@@ -68,29 +68,29 @@ export declare const CreateLeadSchema: z.ZodEffects<z.ZodObject<{
68
68
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
69
69
  source: z.ZodString;
70
70
  }, "strip", z.ZodTypeAny, {
71
- name: string;
72
71
  phoneNumber: string;
72
+ name: string;
73
73
  source: string;
74
74
  isBlacklisted: boolean;
75
75
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
76
76
  blacklistReason?: string | null | undefined;
77
77
  }, {
78
- name: string;
79
78
  phoneNumber: string;
79
+ name: string;
80
80
  source: string;
81
81
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
82
82
  blacklistReason?: string | null | undefined;
83
83
  isBlacklisted?: boolean | undefined;
84
84
  }>, {
85
- name: string;
86
85
  phoneNumber: string;
86
+ name: string;
87
87
  source: string;
88
88
  isBlacklisted: boolean;
89
89
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
90
90
  blacklistReason?: string | null | undefined;
91
91
  }, {
92
- name: string;
93
92
  phoneNumber: string;
93
+ name: string;
94
94
  source: string;
95
95
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
96
96
  blacklistReason?: string | null | undefined;
@@ -106,27 +106,27 @@ export declare const UpdateLeadSchema: z.ZodEffects<z.ZodObject<{
106
106
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
107
107
  source: z.ZodOptional<z.ZodString>;
108
108
  }, "strip", z.ZodTypeAny, {
109
- name?: string | undefined;
110
109
  phoneNumber?: string | undefined;
111
110
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
111
+ name?: string | undefined;
112
112
  source?: string | undefined;
113
113
  blacklistReason?: string | null | undefined;
114
114
  }, {
115
- name?: string | undefined;
116
115
  phoneNumber?: string | undefined;
117
116
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
117
+ name?: string | undefined;
118
118
  source?: string | undefined;
119
119
  blacklistReason?: string | null | undefined;
120
120
  }>, {
121
- name?: string | undefined;
122
121
  phoneNumber?: string | undefined;
123
122
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
123
+ name?: string | undefined;
124
124
  source?: string | undefined;
125
125
  blacklistReason?: string | null | undefined;
126
126
  }, {
127
- name?: string | undefined;
128
127
  phoneNumber?: string | undefined;
129
128
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
129
+ name?: string | undefined;
130
130
  source?: string | undefined;
131
131
  blacklistReason?: string | null | undefined;
132
132
  }>;
@@ -151,30 +151,30 @@ export declare const FilterLeadSchema: z.ZodObject<{
151
151
  }, "strip", z.ZodTypeAny, {
152
152
  limit: number;
153
153
  page: number;
154
- name?: string | null | undefined;
155
154
  phoneNumber?: string | null | undefined;
156
155
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
156
+ name?: string | null | undefined;
157
157
  source?: string | null | undefined;
158
158
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
159
159
  minQualityScore?: number | null | undefined;
160
160
  maxQualityScore?: number | null | undefined;
161
161
  minConversionRate?: number | null | undefined;
162
162
  minTotalCalls?: number | null | undefined;
163
- sortBy?: "name" | "phoneNumber" | "status" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
163
+ sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
164
164
  sortOrder?: "ASC" | "DESC" | null | undefined;
165
165
  }, {
166
- name?: string | null | undefined;
167
166
  phoneNumber?: string | null | undefined;
168
167
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
169
- source?: string | null | undefined;
170
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
171
168
  limit?: number | undefined;
172
169
  page?: number | undefined;
170
+ name?: string | null | undefined;
171
+ source?: string | null | undefined;
172
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
173
173
  minQualityScore?: number | null | undefined;
174
174
  maxQualityScore?: number | null | undefined;
175
175
  minConversionRate?: number | null | undefined;
176
176
  minTotalCalls?: number | null | undefined;
177
- sortBy?: "name" | "phoneNumber" | "status" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
177
+ sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
178
178
  sortOrder?: "ASC" | "DESC" | null | undefined;
179
179
  }>;
180
180
  /**
@@ -193,9 +193,9 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
193
193
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
194
194
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
195
195
  }, "strip", z.ZodTypeAny, {
196
+ id: string;
196
197
  createdAt: string;
197
198
  updatedAt: string;
198
- id: string;
199
199
  assignmentId: string;
200
200
  leadId: string;
201
201
  agentId: string;
@@ -205,9 +205,9 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
205
205
  ratingWeight: number;
206
206
  notes?: string | null | undefined;
207
207
  }, {
208
+ id: string;
208
209
  createdAt: string | Date;
209
210
  updatedAt: string | Date;
210
- id: string;
211
211
  assignmentId: string;
212
212
  leadId: string;
213
213
  agentId: string;
@@ -295,26 +295,26 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
295
295
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
296
296
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
297
297
  }, "strip", z.ZodTypeAny, {
298
- name: string;
298
+ id: string;
299
299
  phoneNumber: string;
300
300
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
301
- source: string;
302
301
  createdAt: string;
303
302
  updatedAt: string;
304
- id: string;
303
+ name: string;
304
+ source: string;
305
305
  qualityScore?: number | null | undefined;
306
306
  conversionRate?: number | null | undefined;
307
307
  totalCalls?: number | null | undefined;
308
308
  blacklistReason?: string | null | undefined;
309
309
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
310
310
  }, {
311
- name: string;
311
+ id: string;
312
312
  phoneNumber: string;
313
313
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
314
- source: string;
315
314
  createdAt: string | Date;
316
315
  updatedAt: string | Date;
317
- id: string;
316
+ name: string;
317
+ source: string;
318
318
  qualityScore?: number | null | undefined;
319
319
  conversionRate?: number | null | undefined;
320
320
  totalCalls?: number | null | undefined;
@@ -329,13 +329,13 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
329
329
  }, "strip", z.ZodTypeAny, {
330
330
  limit: number;
331
331
  items: {
332
- name: string;
332
+ id: string;
333
333
  phoneNumber: string;
334
334
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
335
- source: string;
336
335
  createdAt: string;
337
336
  updatedAt: string;
338
- id: string;
337
+ name: string;
338
+ source: string;
339
339
  qualityScore?: number | null | undefined;
340
340
  conversionRate?: number | null | undefined;
341
341
  totalCalls?: number | null | undefined;
@@ -349,13 +349,13 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
349
349
  }, {
350
350
  limit: number;
351
351
  items: {
352
- name: string;
352
+ id: string;
353
353
  phoneNumber: string;
354
354
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
355
- source: string;
356
355
  createdAt: string | Date;
357
356
  updatedAt: string | Date;
358
- id: string;
357
+ name: string;
358
+ source: string;
359
359
  qualityScore?: number | null | undefined;
360
360
  conversionRate?: number | null | undefined;
361
361
  totalCalls?: number | null | undefined;
@@ -393,29 +393,29 @@ export declare const leadsContractRouter: {
393
393
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
394
394
  source: z.ZodString;
395
395
  }, "strip", z.ZodTypeAny, {
396
- name: string;
397
396
  phoneNumber: string;
397
+ name: string;
398
398
  source: string;
399
399
  isBlacklisted: boolean;
400
400
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
401
401
  blacklistReason?: string | null | undefined;
402
402
  }, {
403
- name: string;
404
403
  phoneNumber: string;
404
+ name: string;
405
405
  source: string;
406
406
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
407
407
  blacklistReason?: string | null | undefined;
408
408
  isBlacklisted?: boolean | undefined;
409
409
  }>, {
410
- name: string;
411
410
  phoneNumber: string;
411
+ name: string;
412
412
  source: string;
413
413
  isBlacklisted: boolean;
414
414
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
415
415
  blacklistReason?: string | null | undefined;
416
416
  }, {
417
- name: string;
418
417
  phoneNumber: string;
418
+ name: string;
419
419
  source: string;
420
420
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
421
421
  blacklistReason?: string | null | undefined;
@@ -423,7 +423,7 @@ export declare const leadsContractRouter: {
423
423
  }>;
424
424
  path: "/v2/leads";
425
425
  responses: {
426
- 500: z.ZodObject<{
426
+ 400: z.ZodObject<{
427
427
  statusCode: z.ZodNumber;
428
428
  message: z.ZodString;
429
429
  code: z.ZodString;
@@ -448,7 +448,7 @@ export declare const leadsContractRouter: {
448
448
  details?: unknown;
449
449
  correlationId?: string | undefined;
450
450
  }>;
451
- 400: z.ZodObject<{
451
+ 401: z.ZodObject<{
452
452
  statusCode: z.ZodNumber;
453
453
  message: z.ZodString;
454
454
  code: z.ZodString;
@@ -473,7 +473,7 @@ export declare const leadsContractRouter: {
473
473
  details?: unknown;
474
474
  correlationId?: string | undefined;
475
475
  }>;
476
- 401: z.ZodObject<{
476
+ 403: z.ZodObject<{
477
477
  statusCode: z.ZodNumber;
478
478
  message: z.ZodString;
479
479
  code: z.ZodString;
@@ -498,7 +498,7 @@ export declare const leadsContractRouter: {
498
498
  details?: unknown;
499
499
  correlationId?: string | undefined;
500
500
  }>;
501
- 403: z.ZodObject<{
501
+ 500: z.ZodObject<{
502
502
  statusCode: z.ZodNumber;
503
503
  message: z.ZodString;
504
504
  code: z.ZodString;
@@ -537,26 +537,26 @@ export declare const leadsContractRouter: {
537
537
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
538
538
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
539
539
  }, "strip", z.ZodTypeAny, {
540
- name: string;
540
+ id: string;
541
541
  phoneNumber: string;
542
542
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
543
- source: string;
544
543
  createdAt: string;
545
544
  updatedAt: string;
546
- id: string;
545
+ name: string;
546
+ source: string;
547
547
  qualityScore?: number | null | undefined;
548
548
  conversionRate?: number | null | undefined;
549
549
  totalCalls?: number | null | undefined;
550
550
  blacklistReason?: string | null | undefined;
551
551
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
552
552
  }, {
553
- name: string;
553
+ id: string;
554
554
  phoneNumber: string;
555
555
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
556
- source: string;
557
556
  createdAt: string | Date;
558
557
  updatedAt: string | Date;
559
- id: string;
558
+ name: string;
559
+ source: string;
560
560
  qualityScore?: number | null | undefined;
561
561
  conversionRate?: number | null | undefined;
562
562
  totalCalls?: number | null | undefined;
@@ -591,12 +591,6 @@ export declare const leadsContractRouter: {
591
591
  };
592
592
  };
593
593
  findAll: {
594
- metadata: {
595
- tags: string[];
596
- openApi: {
597
- operationId: string;
598
- };
599
- };
600
594
  query: z.ZodObject<{
601
595
  limit: z.ZodDefault<z.ZodNumber>;
602
596
  page: z.ZodDefault<z.ZodNumber>;
@@ -615,37 +609,43 @@ export declare const leadsContractRouter: {
615
609
  }, "strip", z.ZodTypeAny, {
616
610
  limit: number;
617
611
  page: number;
618
- name?: string | null | undefined;
619
612
  phoneNumber?: string | null | undefined;
620
613
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
614
+ name?: string | null | undefined;
621
615
  source?: string | null | undefined;
622
616
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
623
617
  minQualityScore?: number | null | undefined;
624
618
  maxQualityScore?: number | null | undefined;
625
619
  minConversionRate?: number | null | undefined;
626
620
  minTotalCalls?: number | null | undefined;
627
- sortBy?: "name" | "phoneNumber" | "status" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
621
+ sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
628
622
  sortOrder?: "ASC" | "DESC" | null | undefined;
629
623
  }, {
630
- name?: string | null | undefined;
631
624
  phoneNumber?: string | null | undefined;
632
625
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
633
- source?: string | null | undefined;
634
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
635
626
  limit?: number | undefined;
636
627
  page?: number | undefined;
628
+ name?: string | null | undefined;
629
+ source?: string | null | undefined;
630
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
637
631
  minQualityScore?: number | null | undefined;
638
632
  maxQualityScore?: number | null | undefined;
639
633
  minConversionRate?: number | null | undefined;
640
634
  minTotalCalls?: number | null | undefined;
641
- sortBy?: "name" | "phoneNumber" | "status" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
635
+ sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
642
636
  sortOrder?: "ASC" | "DESC" | null | undefined;
643
637
  }>;
638
+ metadata: {
639
+ tags: string[];
640
+ openApi: {
641
+ operationId: string;
642
+ };
643
+ };
644
644
  summary: "Get all leads";
645
645
  method: "GET";
646
646
  path: "/v2/leads";
647
647
  responses: {
648
- 500: z.ZodObject<{
648
+ 400: z.ZodObject<{
649
649
  statusCode: z.ZodNumber;
650
650
  message: z.ZodString;
651
651
  code: z.ZodString;
@@ -670,7 +670,7 @@ export declare const leadsContractRouter: {
670
670
  details?: unknown;
671
671
  correlationId?: string | undefined;
672
672
  }>;
673
- 400: z.ZodObject<{
673
+ 401: z.ZodObject<{
674
674
  statusCode: z.ZodNumber;
675
675
  message: z.ZodString;
676
676
  code: z.ZodString;
@@ -695,7 +695,7 @@ export declare const leadsContractRouter: {
695
695
  details?: unknown;
696
696
  correlationId?: string | undefined;
697
697
  }>;
698
- 401: z.ZodObject<{
698
+ 403: z.ZodObject<{
699
699
  statusCode: z.ZodNumber;
700
700
  message: z.ZodString;
701
701
  code: z.ZodString;
@@ -720,7 +720,7 @@ export declare const leadsContractRouter: {
720
720
  details?: unknown;
721
721
  correlationId?: string | undefined;
722
722
  }>;
723
- 403: z.ZodObject<{
723
+ 500: z.ZodObject<{
724
724
  statusCode: z.ZodNumber;
725
725
  message: z.ZodString;
726
726
  code: z.ZodString;
@@ -760,26 +760,26 @@ export declare const leadsContractRouter: {
760
760
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
761
761
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
762
762
  }, "strip", z.ZodTypeAny, {
763
- name: string;
763
+ id: string;
764
764
  phoneNumber: string;
765
765
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
766
- source: string;
767
766
  createdAt: string;
768
767
  updatedAt: string;
769
- id: string;
768
+ name: string;
769
+ source: string;
770
770
  qualityScore?: number | null | undefined;
771
771
  conversionRate?: number | null | undefined;
772
772
  totalCalls?: number | null | undefined;
773
773
  blacklistReason?: string | null | undefined;
774
774
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
775
775
  }, {
776
- name: string;
776
+ id: string;
777
777
  phoneNumber: string;
778
778
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
779
- source: string;
780
779
  createdAt: string | Date;
781
780
  updatedAt: string | Date;
782
- id: string;
781
+ name: string;
782
+ source: string;
783
783
  qualityScore?: number | null | undefined;
784
784
  conversionRate?: number | null | undefined;
785
785
  totalCalls?: number | null | undefined;
@@ -794,13 +794,13 @@ export declare const leadsContractRouter: {
794
794
  }, "strip", z.ZodTypeAny, {
795
795
  limit: number;
796
796
  items: {
797
- name: string;
797
+ id: string;
798
798
  phoneNumber: string;
799
799
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
800
- source: string;
801
800
  createdAt: string;
802
801
  updatedAt: string;
803
- id: string;
802
+ name: string;
803
+ source: string;
804
804
  qualityScore?: number | null | undefined;
805
805
  conversionRate?: number | null | undefined;
806
806
  totalCalls?: number | null | undefined;
@@ -814,13 +814,13 @@ export declare const leadsContractRouter: {
814
814
  }, {
815
815
  limit: number;
816
816
  items: {
817
- name: string;
817
+ id: string;
818
818
  phoneNumber: string;
819
819
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
820
- source: string;
821
820
  createdAt: string | Date;
822
821
  updatedAt: string | Date;
823
- id: string;
822
+ name: string;
823
+ source: string;
824
824
  qualityScore?: number | null | undefined;
825
825
  conversionRate?: number | null | undefined;
826
826
  totalCalls?: number | null | undefined;
@@ -852,7 +852,7 @@ export declare const leadsContractRouter: {
852
852
  method: "GET";
853
853
  path: "/v2/leads/:id";
854
854
  responses: {
855
- 500: z.ZodObject<{
855
+ 400: z.ZodObject<{
856
856
  statusCode: z.ZodNumber;
857
857
  message: z.ZodString;
858
858
  code: z.ZodString;
@@ -877,7 +877,7 @@ export declare const leadsContractRouter: {
877
877
  details?: unknown;
878
878
  correlationId?: string | undefined;
879
879
  }>;
880
- 400: z.ZodObject<{
880
+ 401: z.ZodObject<{
881
881
  statusCode: z.ZodNumber;
882
882
  message: z.ZodString;
883
883
  code: z.ZodString;
@@ -902,7 +902,7 @@ export declare const leadsContractRouter: {
902
902
  details?: unknown;
903
903
  correlationId?: string | undefined;
904
904
  }>;
905
- 401: z.ZodObject<{
905
+ 403: z.ZodObject<{
906
906
  statusCode: z.ZodNumber;
907
907
  message: z.ZodString;
908
908
  code: z.ZodString;
@@ -927,7 +927,7 @@ export declare const leadsContractRouter: {
927
927
  details?: unknown;
928
928
  correlationId?: string | undefined;
929
929
  }>;
930
- 403: z.ZodObject<{
930
+ 500: z.ZodObject<{
931
931
  statusCode: z.ZodNumber;
932
932
  message: z.ZodString;
933
933
  code: z.ZodString;
@@ -966,26 +966,26 @@ export declare const leadsContractRouter: {
966
966
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
967
967
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
968
968
  }, "strip", z.ZodTypeAny, {
969
- name: string;
969
+ id: string;
970
970
  phoneNumber: string;
971
971
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
972
- source: string;
973
972
  createdAt: string;
974
973
  updatedAt: string;
975
- id: string;
974
+ name: string;
975
+ source: string;
976
976
  qualityScore?: number | null | undefined;
977
977
  conversionRate?: number | null | undefined;
978
978
  totalCalls?: number | null | undefined;
979
979
  blacklistReason?: string | null | undefined;
980
980
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
981
981
  }, {
982
- name: string;
982
+ id: string;
983
983
  phoneNumber: string;
984
984
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
985
- source: string;
986
985
  createdAt: string | Date;
987
986
  updatedAt: string | Date;
988
- id: string;
987
+ name: string;
988
+ source: string;
989
989
  qualityScore?: number | null | undefined;
990
990
  conversionRate?: number | null | undefined;
991
991
  totalCalls?: number | null | undefined;
@@ -1042,33 +1042,33 @@ export declare const leadsContractRouter: {
1042
1042
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1043
1043
  source: z.ZodOptional<z.ZodString>;
1044
1044
  }, "strip", z.ZodTypeAny, {
1045
- name?: string | undefined;
1046
1045
  phoneNumber?: string | undefined;
1047
1046
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1047
+ name?: string | undefined;
1048
1048
  source?: string | undefined;
1049
1049
  blacklistReason?: string | null | undefined;
1050
1050
  }, {
1051
- name?: string | undefined;
1052
1051
  phoneNumber?: string | undefined;
1053
1052
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1053
+ name?: string | undefined;
1054
1054
  source?: string | undefined;
1055
1055
  blacklistReason?: string | null | undefined;
1056
1056
  }>, {
1057
- name?: string | undefined;
1058
1057
  phoneNumber?: string | undefined;
1059
1058
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1059
+ name?: string | undefined;
1060
1060
  source?: string | undefined;
1061
1061
  blacklistReason?: string | null | undefined;
1062
1062
  }, {
1063
- name?: string | undefined;
1064
1063
  phoneNumber?: string | undefined;
1065
1064
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1065
+ name?: string | undefined;
1066
1066
  source?: string | undefined;
1067
1067
  blacklistReason?: string | null | undefined;
1068
1068
  }>;
1069
1069
  path: "/v2/leads/:id";
1070
1070
  responses: {
1071
- 500: z.ZodObject<{
1071
+ 400: z.ZodObject<{
1072
1072
  statusCode: z.ZodNumber;
1073
1073
  message: z.ZodString;
1074
1074
  code: z.ZodString;
@@ -1093,7 +1093,7 @@ export declare const leadsContractRouter: {
1093
1093
  details?: unknown;
1094
1094
  correlationId?: string | undefined;
1095
1095
  }>;
1096
- 400: z.ZodObject<{
1096
+ 401: z.ZodObject<{
1097
1097
  statusCode: z.ZodNumber;
1098
1098
  message: z.ZodString;
1099
1099
  code: z.ZodString;
@@ -1118,7 +1118,7 @@ export declare const leadsContractRouter: {
1118
1118
  details?: unknown;
1119
1119
  correlationId?: string | undefined;
1120
1120
  }>;
1121
- 401: z.ZodObject<{
1121
+ 403: z.ZodObject<{
1122
1122
  statusCode: z.ZodNumber;
1123
1123
  message: z.ZodString;
1124
1124
  code: z.ZodString;
@@ -1143,7 +1143,7 @@ export declare const leadsContractRouter: {
1143
1143
  details?: unknown;
1144
1144
  correlationId?: string | undefined;
1145
1145
  }>;
1146
- 403: z.ZodObject<{
1146
+ 500: z.ZodObject<{
1147
1147
  statusCode: z.ZodNumber;
1148
1148
  message: z.ZodString;
1149
1149
  code: z.ZodString;
@@ -1182,26 +1182,26 @@ export declare const leadsContractRouter: {
1182
1182
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1183
1183
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1184
1184
  }, "strip", z.ZodTypeAny, {
1185
- name: string;
1185
+ id: string;
1186
1186
  phoneNumber: string;
1187
1187
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1188
- source: string;
1189
1188
  createdAt: string;
1190
1189
  updatedAt: string;
1191
- id: string;
1190
+ name: string;
1191
+ source: string;
1192
1192
  qualityScore?: number | null | undefined;
1193
1193
  conversionRate?: number | null | undefined;
1194
1194
  totalCalls?: number | null | undefined;
1195
1195
  blacklistReason?: string | null | undefined;
1196
1196
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1197
1197
  }, {
1198
- name: string;
1198
+ id: string;
1199
1199
  phoneNumber: string;
1200
1200
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1201
- source: string;
1202
1201
  createdAt: string | Date;
1203
1202
  updatedAt: string | Date;
1204
- id: string;
1203
+ name: string;
1204
+ source: string;
1205
1205
  qualityScore?: number | null | undefined;
1206
1206
  conversionRate?: number | null | undefined;
1207
1207
  totalCalls?: number | null | undefined;
@@ -1279,7 +1279,7 @@ export declare const leadsContractRouter: {
1279
1279
  body: typeof import("@ts-rest/core").ContractNoBody;
1280
1280
  path: "/v2/leads/:id";
1281
1281
  responses: {
1282
- 500: z.ZodObject<{
1282
+ 400: z.ZodObject<{
1283
1283
  statusCode: z.ZodNumber;
1284
1284
  message: z.ZodString;
1285
1285
  code: z.ZodString;
@@ -1304,7 +1304,7 @@ export declare const leadsContractRouter: {
1304
1304
  details?: unknown;
1305
1305
  correlationId?: string | undefined;
1306
1306
  }>;
1307
- 400: z.ZodObject<{
1307
+ 401: z.ZodObject<{
1308
1308
  statusCode: z.ZodNumber;
1309
1309
  message: z.ZodString;
1310
1310
  code: z.ZodString;
@@ -1329,7 +1329,7 @@ export declare const leadsContractRouter: {
1329
1329
  details?: unknown;
1330
1330
  correlationId?: string | undefined;
1331
1331
  }>;
1332
- 401: z.ZodObject<{
1332
+ 403: z.ZodObject<{
1333
1333
  statusCode: z.ZodNumber;
1334
1334
  message: z.ZodString;
1335
1335
  code: z.ZodString;
@@ -1354,7 +1354,7 @@ export declare const leadsContractRouter: {
1354
1354
  details?: unknown;
1355
1355
  correlationId?: string | undefined;
1356
1356
  }>;
1357
- 403: z.ZodObject<{
1357
+ 500: z.ZodObject<{
1358
1358
  statusCode: z.ZodNumber;
1359
1359
  message: z.ZodString;
1360
1360
  code: z.ZodString;
@@ -1441,7 +1441,7 @@ export declare const leadsContractRouter: {
1441
1441
  }>;
1442
1442
  path: "/v2/leads/:id/call";
1443
1443
  responses: {
1444
- 500: z.ZodObject<{
1444
+ 400: z.ZodObject<{
1445
1445
  statusCode: z.ZodNumber;
1446
1446
  message: z.ZodString;
1447
1447
  code: z.ZodString;
@@ -1466,7 +1466,7 @@ export declare const leadsContractRouter: {
1466
1466
  details?: unknown;
1467
1467
  correlationId?: string | undefined;
1468
1468
  }>;
1469
- 400: z.ZodObject<{
1469
+ 401: z.ZodObject<{
1470
1470
  statusCode: z.ZodNumber;
1471
1471
  message: z.ZodString;
1472
1472
  code: z.ZodString;
@@ -1491,7 +1491,7 @@ export declare const leadsContractRouter: {
1491
1491
  details?: unknown;
1492
1492
  correlationId?: string | undefined;
1493
1493
  }>;
1494
- 401: z.ZodObject<{
1494
+ 403: z.ZodObject<{
1495
1495
  statusCode: z.ZodNumber;
1496
1496
  message: z.ZodString;
1497
1497
  code: z.ZodString;
@@ -1516,7 +1516,7 @@ export declare const leadsContractRouter: {
1516
1516
  details?: unknown;
1517
1517
  correlationId?: string | undefined;
1518
1518
  }>;
1519
- 403: z.ZodObject<{
1519
+ 500: z.ZodObject<{
1520
1520
  statusCode: z.ZodNumber;
1521
1521
  message: z.ZodString;
1522
1522
  code: z.ZodString;
@@ -1554,9 +1554,9 @@ export declare const leadsContractRouter: {
1554
1554
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1555
1555
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1556
1556
  }, "strip", z.ZodTypeAny, {
1557
+ id: string;
1557
1558
  createdAt: string;
1558
1559
  updatedAt: string;
1559
- id: string;
1560
1560
  assignmentId: string;
1561
1561
  leadId: string;
1562
1562
  agentId: string;
@@ -1566,9 +1566,9 @@ export declare const leadsContractRouter: {
1566
1566
  ratingWeight: number;
1567
1567
  notes?: string | null | undefined;
1568
1568
  }, {
1569
+ id: string;
1569
1570
  createdAt: string | Date;
1570
1571
  updatedAt: string | Date;
1571
- id: string;
1572
1572
  assignmentId: string;
1573
1573
  leadId: string;
1574
1574
  agentId: string;
@@ -1581,18 +1581,18 @@ export declare const leadsContractRouter: {
1581
1581
  };
1582
1582
  };
1583
1583
  getQualityDashboard: {
1584
+ query: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1584
1585
  metadata: {
1585
1586
  tags: string[];
1586
1587
  openApi: {
1587
1588
  operationId: string;
1588
1589
  };
1589
1590
  };
1590
- query: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1591
1591
  summary: "Get lead quality analytics dashboard";
1592
1592
  method: "GET";
1593
1593
  path: "/v2/leads/analytics/quality-dashboard";
1594
1594
  responses: {
1595
- 500: z.ZodObject<{
1595
+ 400: z.ZodObject<{
1596
1596
  statusCode: z.ZodNumber;
1597
1597
  message: z.ZodString;
1598
1598
  code: z.ZodString;
@@ -1617,7 +1617,7 @@ export declare const leadsContractRouter: {
1617
1617
  details?: unknown;
1618
1618
  correlationId?: string | undefined;
1619
1619
  }>;
1620
- 400: z.ZodObject<{
1620
+ 401: z.ZodObject<{
1621
1621
  statusCode: z.ZodNumber;
1622
1622
  message: z.ZodString;
1623
1623
  code: z.ZodString;
@@ -1642,7 +1642,7 @@ export declare const leadsContractRouter: {
1642
1642
  details?: unknown;
1643
1643
  correlationId?: string | undefined;
1644
1644
  }>;
1645
- 401: z.ZodObject<{
1645
+ 403: z.ZodObject<{
1646
1646
  statusCode: z.ZodNumber;
1647
1647
  message: z.ZodString;
1648
1648
  code: z.ZodString;
@@ -1667,7 +1667,7 @@ export declare const leadsContractRouter: {
1667
1667
  details?: unknown;
1668
1668
  correlationId?: string | undefined;
1669
1669
  }>;
1670
- 403: z.ZodObject<{
1670
+ 500: z.ZodObject<{
1671
1671
  statusCode: z.ZodNumber;
1672
1672
  message: z.ZodString;
1673
1673
  code: z.ZodString;