@dakkitor/api-contracts 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,14 +1,129 @@
1
1
  export * from './client-contacts/client-contacts.contract';
2
2
  export * from './clients/clients.contract';
3
3
  export * from './common/error-schemas';
4
+ export * from './common/openapi-metadata';
4
5
  export * from './common/pagination.schema';
5
- declare const apiContractConfig: {
6
- readonly clients: {
7
- readonly create: {
8
- readonly method: "POST";
9
- readonly path: "/v2/clients";
10
- readonly responses: {
11
- readonly 201: import("zod").ZodObject<{
6
+ export declare const apiContractRouter: {
7
+ Clients: {
8
+ create: {
9
+ summary: "Create a new client";
10
+ method: "POST";
11
+ body: import("zod").ZodObject<{
12
+ name: import("zod").ZodString;
13
+ govLink: import("zod").ZodString;
14
+ director: import("zod").ZodString;
15
+ }, "strip", import("zod").ZodTypeAny, {
16
+ name: string;
17
+ director: string;
18
+ govLink: string;
19
+ }, {
20
+ name: string;
21
+ director: string;
22
+ govLink: string;
23
+ }>;
24
+ path: "/v2/clients";
25
+ responses: {
26
+ 400: import("zod").ZodObject<{
27
+ statusCode: import("zod").ZodNumber;
28
+ message: import("zod").ZodString;
29
+ code: import("zod").ZodString;
30
+ details: import("zod").ZodOptional<import("zod").ZodUnknown>;
31
+ timestamp: import("zod").ZodString;
32
+ path: import("zod").ZodString;
33
+ correlationId: import("zod").ZodOptional<import("zod").ZodString>;
34
+ }, "strip", import("zod").ZodTypeAny, {
35
+ statusCode: number;
36
+ message: string;
37
+ code: string;
38
+ timestamp: string;
39
+ path: string;
40
+ details?: unknown;
41
+ correlationId?: string | undefined;
42
+ }, {
43
+ statusCode: number;
44
+ message: string;
45
+ code: string;
46
+ timestamp: string;
47
+ path: string;
48
+ details?: unknown;
49
+ correlationId?: string | undefined;
50
+ }>;
51
+ 401: import("zod").ZodObject<{
52
+ statusCode: import("zod").ZodNumber;
53
+ message: import("zod").ZodString;
54
+ code: import("zod").ZodString;
55
+ details: import("zod").ZodOptional<import("zod").ZodUnknown>;
56
+ timestamp: import("zod").ZodString;
57
+ path: import("zod").ZodString;
58
+ correlationId: import("zod").ZodOptional<import("zod").ZodString>;
59
+ }, "strip", import("zod").ZodTypeAny, {
60
+ statusCode: number;
61
+ message: string;
62
+ code: string;
63
+ timestamp: string;
64
+ path: string;
65
+ details?: unknown;
66
+ correlationId?: string | undefined;
67
+ }, {
68
+ statusCode: number;
69
+ message: string;
70
+ code: string;
71
+ timestamp: string;
72
+ path: string;
73
+ details?: unknown;
74
+ correlationId?: string | undefined;
75
+ }>;
76
+ 403: import("zod").ZodObject<{
77
+ statusCode: import("zod").ZodNumber;
78
+ message: import("zod").ZodString;
79
+ code: import("zod").ZodString;
80
+ details: import("zod").ZodOptional<import("zod").ZodUnknown>;
81
+ timestamp: import("zod").ZodString;
82
+ path: import("zod").ZodString;
83
+ correlationId: import("zod").ZodOptional<import("zod").ZodString>;
84
+ }, "strip", import("zod").ZodTypeAny, {
85
+ statusCode: number;
86
+ message: string;
87
+ code: string;
88
+ timestamp: string;
89
+ path: string;
90
+ details?: unknown;
91
+ correlationId?: string | undefined;
92
+ }, {
93
+ statusCode: number;
94
+ message: string;
95
+ code: string;
96
+ timestamp: string;
97
+ path: string;
98
+ details?: unknown;
99
+ correlationId?: string | undefined;
100
+ }>;
101
+ 500: import("zod").ZodObject<{
102
+ statusCode: import("zod").ZodNumber;
103
+ message: import("zod").ZodString;
104
+ code: import("zod").ZodString;
105
+ details: import("zod").ZodOptional<import("zod").ZodUnknown>;
106
+ timestamp: import("zod").ZodString;
107
+ path: import("zod").ZodString;
108
+ correlationId: import("zod").ZodOptional<import("zod").ZodString>;
109
+ }, "strip", import("zod").ZodTypeAny, {
110
+ statusCode: number;
111
+ message: string;
112
+ code: string;
113
+ timestamp: string;
114
+ path: string;
115
+ details?: unknown;
116
+ correlationId?: string | undefined;
117
+ }, {
118
+ statusCode: number;
119
+ message: string;
120
+ code: string;
121
+ timestamp: string;
122
+ path: string;
123
+ details?: unknown;
124
+ correlationId?: string | undefined;
125
+ }>;
126
+ 201: import("zod").ZodObject<{
12
127
  id: import("zod").ZodString;
13
128
  name: import("zod").ZodString;
14
129
  crn: import("zod").ZodString;
@@ -44,19 +159,19 @@ declare const apiContractConfig: {
44
159
  }>;
45
160
  }, "strip", import("zod").ZodTypeAny, {
46
161
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
47
- id: string;
48
162
  name: string;
163
+ director: string;
164
+ createdAt: string;
165
+ updatedAt: string;
166
+ id: string;
49
167
  crn: string;
50
168
  govLink: string;
51
- director: string;
52
169
  lastUpdatedBy: {
53
170
  id: string;
54
171
  firstName: string;
55
172
  lastName: string;
56
173
  email: string;
57
174
  };
58
- createdAt: string;
59
- updatedAt: string;
60
175
  version: number;
61
176
  agentClientLinks: {
62
177
  agentId: string;
@@ -64,26 +179,26 @@ declare const apiContractConfig: {
64
179
  blacklistReason?: string | null | undefined;
65
180
  }, {
66
181
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
67
- id: string;
68
182
  name: string;
183
+ director: string;
184
+ createdAt: string;
185
+ updatedAt: string;
186
+ id: string;
69
187
  crn: string;
70
188
  govLink: string;
71
- director: string;
72
189
  lastUpdatedBy: {
73
190
  id: string;
74
191
  firstName: string;
75
192
  lastName: string;
76
193
  email: string;
77
194
  };
78
- createdAt: string;
79
- updatedAt: string;
80
195
  version: number;
81
196
  agentClientLinks: {
82
197
  agentId: string;
83
198
  };
84
199
  blacklistReason?: string | null | undefined;
85
200
  }>;
86
- readonly 400: import("zod").ZodObject<{
201
+ 409: import("zod").ZodObject<{
87
202
  statusCode: import("zod").ZodNumber;
88
203
  message: import("zod").ZodString;
89
204
  code: import("zod").ZodString;
@@ -108,7 +223,57 @@ declare const apiContractConfig: {
108
223
  details?: unknown;
109
224
  correlationId?: string | undefined;
110
225
  }>;
111
- readonly 401: import("zod").ZodObject<{
226
+ };
227
+ };
228
+ findAll: {
229
+ query: import("zod").ZodObject<{
230
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
231
+ page: import("zod").ZodDefault<import("zod").ZodNumber>;
232
+ name: import("zod").ZodOptional<import("zod").ZodString>;
233
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
234
+ director: import("zod").ZodOptional<import("zod").ZodString>;
235
+ createdAt: import("zod").ZodOptional<import("zod").ZodObject<{
236
+ from: import("zod").ZodOptional<import("zod").ZodString>;
237
+ to: import("zod").ZodOptional<import("zod").ZodString>;
238
+ }, "strip", import("zod").ZodTypeAny, {
239
+ from?: string | undefined;
240
+ to?: string | undefined;
241
+ }, {
242
+ from?: string | undefined;
243
+ to?: string | undefined;
244
+ }>>;
245
+ sortBy: import("zod").ZodOptional<import("zod").ZodEnum<["name", "director", "createdAt", "updatedAt"]>>;
246
+ sortOrder: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
247
+ }, "strip", import("zod").ZodTypeAny, {
248
+ limit: number;
249
+ page: number;
250
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
251
+ name?: string | undefined;
252
+ director?: string | undefined;
253
+ createdAt?: {
254
+ from?: string | undefined;
255
+ to?: string | undefined;
256
+ } | undefined;
257
+ sortBy?: "name" | "director" | "createdAt" | "updatedAt" | undefined;
258
+ sortOrder?: "ASC" | "DESC" | undefined;
259
+ }, {
260
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
261
+ limit?: number | undefined;
262
+ name?: string | undefined;
263
+ director?: string | undefined;
264
+ createdAt?: {
265
+ from?: string | undefined;
266
+ to?: string | undefined;
267
+ } | undefined;
268
+ page?: number | undefined;
269
+ sortBy?: "name" | "director" | "createdAt" | "updatedAt" | undefined;
270
+ sortOrder?: "ASC" | "DESC" | undefined;
271
+ }>;
272
+ summary: "Get all clients";
273
+ method: "GET";
274
+ path: "/v2/clients";
275
+ responses: {
276
+ 400: import("zod").ZodObject<{
112
277
  statusCode: import("zod").ZodNumber;
113
278
  message: import("zod").ZodString;
114
279
  code: import("zod").ZodString;
@@ -133,7 +298,7 @@ declare const apiContractConfig: {
133
298
  details?: unknown;
134
299
  correlationId?: string | undefined;
135
300
  }>;
136
- readonly 403: import("zod").ZodObject<{
301
+ 401: import("zod").ZodObject<{
137
302
  statusCode: import("zod").ZodNumber;
138
303
  message: import("zod").ZodString;
139
304
  code: import("zod").ZodString;
@@ -158,7 +323,7 @@ declare const apiContractConfig: {
158
323
  details?: unknown;
159
324
  correlationId?: string | undefined;
160
325
  }>;
161
- readonly 409: import("zod").ZodObject<{
326
+ 403: import("zod").ZodObject<{
162
327
  statusCode: import("zod").ZodNumber;
163
328
  message: import("zod").ZodString;
164
329
  code: import("zod").ZodString;
@@ -183,7 +348,7 @@ declare const apiContractConfig: {
183
348
  details?: unknown;
184
349
  correlationId?: string | undefined;
185
350
  }>;
186
- readonly 500: import("zod").ZodObject<{
351
+ 500: import("zod").ZodObject<{
187
352
  statusCode: import("zod").ZodNumber;
188
353
  message: import("zod").ZodString;
189
354
  code: import("zod").ZodString;
@@ -208,28 +373,8 @@ declare const apiContractConfig: {
208
373
  details?: unknown;
209
374
  correlationId?: string | undefined;
210
375
  }>;
211
- };
212
- readonly body: import("zod").ZodObject<{
213
- name: import("zod").ZodString;
214
- govLink: import("zod").ZodString;
215
- director: import("zod").ZodString;
216
- }, "strip", import("zod").ZodTypeAny, {
217
- name: string;
218
- govLink: string;
219
- director: string;
220
- }, {
221
- name: string;
222
- govLink: string;
223
- director: string;
224
- }>;
225
- readonly summary: "Create a new client";
226
- };
227
- readonly findAll: {
228
- readonly method: "GET";
229
- readonly path: "/v2/clients";
230
- readonly responses: {
231
- readonly 200: import("zod").ZodObject<{
232
- data: import("zod").ZodArray<import("zod").ZodObject<{
376
+ 200: import("zod").ZodObject<{
377
+ items: import("zod").ZodArray<import("zod").ZodObject<{
233
378
  id: import("zod").ZodString;
234
379
  name: import("zod").ZodString;
235
380
  crn: import("zod").ZodString;
@@ -265,19 +410,19 @@ declare const apiContractConfig: {
265
410
  }>;
266
411
  }, "strip", import("zod").ZodTypeAny, {
267
412
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
268
- id: string;
269
413
  name: string;
414
+ director: string;
415
+ createdAt: string;
416
+ updatedAt: string;
417
+ id: string;
270
418
  crn: string;
271
419
  govLink: string;
272
- director: string;
273
420
  lastUpdatedBy: {
274
421
  id: string;
275
422
  firstName: string;
276
423
  lastName: string;
277
424
  email: string;
278
425
  };
279
- createdAt: string;
280
- updatedAt: string;
281
426
  version: number;
282
427
  agentClientLinks: {
283
428
  agentId: string;
@@ -285,80 +430,103 @@ declare const apiContractConfig: {
285
430
  blacklistReason?: string | null | undefined;
286
431
  }, {
287
432
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
288
- id: string;
289
433
  name: string;
434
+ director: string;
435
+ createdAt: string;
436
+ updatedAt: string;
437
+ id: string;
290
438
  crn: string;
291
439
  govLink: string;
292
- director: string;
293
440
  lastUpdatedBy: {
294
441
  id: string;
295
442
  firstName: string;
296
443
  lastName: string;
297
444
  email: string;
298
445
  };
299
- createdAt: string;
300
- updatedAt: string;
301
446
  version: number;
302
447
  agentClientLinks: {
303
448
  agentId: string;
304
449
  };
305
450
  blacklistReason?: string | null | undefined;
306
451
  }>, "many">;
307
- total: import("zod").ZodNumber;
452
+ totalCount: import("zod").ZodNumber;
308
453
  limit: import("zod").ZodNumber;
309
454
  skip: import("zod").ZodNumber;
455
+ currentPage: import("zod").ZodNumber;
456
+ totalPages: import("zod").ZodNumber;
310
457
  }, "strip", import("zod").ZodTypeAny, {
311
- data: {
458
+ items: {
312
459
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
313
- id: string;
314
460
  name: string;
461
+ director: string;
462
+ createdAt: string;
463
+ updatedAt: string;
464
+ id: string;
315
465
  crn: string;
316
466
  govLink: string;
317
- director: string;
318
467
  lastUpdatedBy: {
319
468
  id: string;
320
469
  firstName: string;
321
470
  lastName: string;
322
471
  email: string;
323
472
  };
324
- createdAt: string;
325
- updatedAt: string;
326
473
  version: number;
327
474
  agentClientLinks: {
328
475
  agentId: string;
329
476
  };
330
477
  blacklistReason?: string | null | undefined;
331
478
  }[];
332
- total: number;
479
+ totalCount: number;
333
480
  limit: number;
334
481
  skip: number;
482
+ currentPage: number;
483
+ totalPages: number;
335
484
  }, {
336
- data: {
485
+ items: {
337
486
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
338
- id: string;
339
487
  name: string;
488
+ director: string;
489
+ createdAt: string;
490
+ updatedAt: string;
491
+ id: string;
340
492
  crn: string;
341
493
  govLink: string;
342
- director: string;
343
494
  lastUpdatedBy: {
344
495
  id: string;
345
496
  firstName: string;
346
497
  lastName: string;
347
498
  email: string;
348
499
  };
349
- createdAt: string;
350
- updatedAt: string;
351
500
  version: number;
352
501
  agentClientLinks: {
353
502
  agentId: string;
354
503
  };
355
504
  blacklistReason?: string | null | undefined;
356
505
  }[];
357
- total: number;
506
+ totalCount: number;
358
507
  limit: number;
359
508
  skip: number;
509
+ currentPage: number;
510
+ totalPages: number;
360
511
  }>;
361
- readonly 400: import("zod").ZodObject<{
512
+ };
513
+ };
514
+ autocomplete: {
515
+ query: import("zod").ZodObject<{
516
+ query: import("zod").ZodOptional<import("zod").ZodString>;
517
+ id: import("zod").ZodOptional<import("zod").ZodString>;
518
+ }, "strip", import("zod").ZodTypeAny, {
519
+ id?: string | undefined;
520
+ query?: string | undefined;
521
+ }, {
522
+ id?: string | undefined;
523
+ query?: string | undefined;
524
+ }>;
525
+ summary: "Get clients for autocomplete";
526
+ method: "GET";
527
+ path: "/v2/clients/autocomplete";
528
+ responses: {
529
+ 400: import("zod").ZodObject<{
362
530
  statusCode: import("zod").ZodNumber;
363
531
  message: import("zod").ZodString;
364
532
  code: import("zod").ZodString;
@@ -383,7 +551,7 @@ declare const apiContractConfig: {
383
551
  details?: unknown;
384
552
  correlationId?: string | undefined;
385
553
  }>;
386
- readonly 401: import("zod").ZodObject<{
554
+ 401: import("zod").ZodObject<{
387
555
  statusCode: import("zod").ZodNumber;
388
556
  message: import("zod").ZodString;
389
557
  code: import("zod").ZodString;
@@ -408,7 +576,7 @@ declare const apiContractConfig: {
408
576
  details?: unknown;
409
577
  correlationId?: string | undefined;
410
578
  }>;
411
- readonly 403: import("zod").ZodObject<{
579
+ 403: import("zod").ZodObject<{
412
580
  statusCode: import("zod").ZodNumber;
413
581
  message: import("zod").ZodString;
414
582
  code: import("zod").ZodString;
@@ -433,7 +601,7 @@ declare const apiContractConfig: {
433
601
  details?: unknown;
434
602
  correlationId?: string | undefined;
435
603
  }>;
436
- readonly 500: import("zod").ZodObject<{
604
+ 500: import("zod").ZodObject<{
437
605
  statusCode: import("zod").ZodNumber;
438
606
  message: import("zod").ZodString;
439
607
  code: import("zod").ZodString;
@@ -458,40 +626,31 @@ declare const apiContractConfig: {
458
626
  details?: unknown;
459
627
  correlationId?: string | undefined;
460
628
  }>;
461
- };
462
- readonly query: import("zod").ZodObject<{
463
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
464
- page: import("zod").ZodDefault<import("zod").ZodNumber>;
465
- search: import("zod").ZodOptional<import("zod").ZodString>;
466
- status: import("zod").ZodOptional<import("zod").ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
467
- }, "strip", import("zod").ZodTypeAny, {
468
- limit: number;
469
- page: number;
470
- status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
471
- search?: string | undefined;
472
- }, {
473
- status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
474
- limit?: number | undefined;
475
- page?: number | undefined;
476
- search?: string | undefined;
477
- }>;
478
- readonly summary: "Get all clients";
479
- };
480
- readonly autocomplete: {
481
- readonly method: "GET";
482
- readonly path: "/v2/clients/autocomplete";
483
- readonly responses: {
484
- readonly 200: import("zod").ZodArray<import("zod").ZodObject<{
629
+ 200: import("zod").ZodArray<import("zod").ZodObject<{
485
630
  id: import("zod").ZodString;
486
631
  name: import("zod").ZodString;
487
632
  }, "strip", import("zod").ZodTypeAny, {
488
- id: string;
489
633
  name: string;
490
- }, {
491
634
  id: string;
635
+ }, {
492
636
  name: string;
637
+ id: string;
493
638
  }>, "many">;
494
- readonly 400: import("zod").ZodObject<{
639
+ };
640
+ };
641
+ findOne: {
642
+ pathParams: import("zod").ZodObject<{
643
+ id: import("zod").ZodString;
644
+ }, "strip", import("zod").ZodTypeAny, {
645
+ id: string;
646
+ }, {
647
+ id: string;
648
+ }>;
649
+ summary: "Get a client by ID";
650
+ method: "GET";
651
+ path: "/v2/clients/:id";
652
+ responses: {
653
+ 400: import("zod").ZodObject<{
495
654
  statusCode: import("zod").ZodNumber;
496
655
  message: import("zod").ZodString;
497
656
  code: import("zod").ZodString;
@@ -516,7 +675,7 @@ declare const apiContractConfig: {
516
675
  details?: unknown;
517
676
  correlationId?: string | undefined;
518
677
  }>;
519
- readonly 401: import("zod").ZodObject<{
678
+ 401: import("zod").ZodObject<{
520
679
  statusCode: import("zod").ZodNumber;
521
680
  message: import("zod").ZodString;
522
681
  code: import("zod").ZodString;
@@ -541,7 +700,7 @@ declare const apiContractConfig: {
541
700
  details?: unknown;
542
701
  correlationId?: string | undefined;
543
702
  }>;
544
- readonly 403: import("zod").ZodObject<{
703
+ 403: import("zod").ZodObject<{
545
704
  statusCode: import("zod").ZodNumber;
546
705
  message: import("zod").ZodString;
547
706
  code: import("zod").ZodString;
@@ -566,7 +725,7 @@ declare const apiContractConfig: {
566
725
  details?: unknown;
567
726
  correlationId?: string | undefined;
568
727
  }>;
569
- readonly 500: import("zod").ZodObject<{
728
+ 500: import("zod").ZodObject<{
570
729
  statusCode: import("zod").ZodNumber;
571
730
  message: import("zod").ZodString;
572
731
  code: import("zod").ZodString;
@@ -591,21 +750,7 @@ declare const apiContractConfig: {
591
750
  details?: unknown;
592
751
  correlationId?: string | undefined;
593
752
  }>;
594
- };
595
- readonly query: import("zod").ZodObject<{
596
- search: import("zod").ZodOptional<import("zod").ZodString>;
597
- }, "strip", import("zod").ZodTypeAny, {
598
- search?: string | undefined;
599
- }, {
600
- search?: string | undefined;
601
- }>;
602
- readonly summary: "Get clients for autocomplete";
603
- };
604
- readonly findOne: {
605
- readonly method: "GET";
606
- readonly path: "/v2/clients/:id";
607
- readonly responses: {
608
- readonly 200: import("zod").ZodObject<{
753
+ 200: import("zod").ZodObject<{
609
754
  id: import("zod").ZodString;
610
755
  name: import("zod").ZodString;
611
756
  crn: import("zod").ZodString;
@@ -641,19 +786,19 @@ declare const apiContractConfig: {
641
786
  }>;
642
787
  }, "strip", import("zod").ZodTypeAny, {
643
788
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
644
- id: string;
645
789
  name: string;
790
+ director: string;
791
+ createdAt: string;
792
+ updatedAt: string;
793
+ id: string;
646
794
  crn: string;
647
795
  govLink: string;
648
- director: string;
649
796
  lastUpdatedBy: {
650
797
  id: string;
651
798
  firstName: string;
652
799
  lastName: string;
653
800
  email: string;
654
801
  };
655
- createdAt: string;
656
- updatedAt: string;
657
802
  version: number;
658
803
  agentClientLinks: {
659
804
  agentId: string;
@@ -661,26 +806,26 @@ declare const apiContractConfig: {
661
806
  blacklistReason?: string | null | undefined;
662
807
  }, {
663
808
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
664
- id: string;
665
809
  name: string;
810
+ director: string;
811
+ createdAt: string;
812
+ updatedAt: string;
813
+ id: string;
666
814
  crn: string;
667
815
  govLink: string;
668
- director: string;
669
816
  lastUpdatedBy: {
670
817
  id: string;
671
818
  firstName: string;
672
819
  lastName: string;
673
820
  email: string;
674
821
  };
675
- createdAt: string;
676
- updatedAt: string;
677
822
  version: number;
678
823
  agentClientLinks: {
679
824
  agentId: string;
680
825
  };
681
826
  blacklistReason?: string | null | undefined;
682
827
  }>;
683
- readonly 400: import("zod").ZodObject<{
828
+ 404: import("zod").ZodObject<{
684
829
  statusCode: import("zod").ZodNumber;
685
830
  message: import("zod").ZodString;
686
831
  code: import("zod").ZodString;
@@ -705,16 +850,61 @@ declare const apiContractConfig: {
705
850
  details?: unknown;
706
851
  correlationId?: string | undefined;
707
852
  }>;
708
- readonly 401: import("zod").ZodObject<{
709
- statusCode: import("zod").ZodNumber;
710
- message: import("zod").ZodString;
711
- code: import("zod").ZodString;
712
- details: import("zod").ZodOptional<import("zod").ZodUnknown>;
713
- timestamp: import("zod").ZodString;
714
- path: import("zod").ZodString;
715
- correlationId: import("zod").ZodOptional<import("zod").ZodString>;
716
- }, "strip", import("zod").ZodTypeAny, {
717
- statusCode: number;
853
+ };
854
+ };
855
+ update: {
856
+ pathParams: import("zod").ZodObject<{
857
+ id: import("zod").ZodString;
858
+ }, "strip", import("zod").ZodTypeAny, {
859
+ id: string;
860
+ }, {
861
+ id: string;
862
+ }>;
863
+ summary: "Update a client";
864
+ method: "PATCH";
865
+ body: import("zod").ZodEffects<import("zod").ZodObject<{
866
+ name: import("zod").ZodOptional<import("zod").ZodString>;
867
+ govLink: import("zod").ZodOptional<import("zod").ZodString>;
868
+ director: import("zod").ZodOptional<import("zod").ZodString>;
869
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
870
+ blacklistReason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
871
+ }, "strip", import("zod").ZodTypeAny, {
872
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
873
+ name?: string | undefined;
874
+ director?: string | undefined;
875
+ govLink?: string | undefined;
876
+ blacklistReason?: string | null | undefined;
877
+ }, {
878
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
879
+ name?: string | undefined;
880
+ director?: string | undefined;
881
+ govLink?: string | undefined;
882
+ blacklistReason?: string | null | undefined;
883
+ }>, {
884
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
885
+ name?: string | undefined;
886
+ director?: string | undefined;
887
+ govLink?: string | undefined;
888
+ blacklistReason?: string | null | undefined;
889
+ }, {
890
+ status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
891
+ name?: string | undefined;
892
+ director?: string | undefined;
893
+ govLink?: string | undefined;
894
+ blacklistReason?: string | null | undefined;
895
+ }>;
896
+ path: "/v2/clients/:id";
897
+ responses: {
898
+ 400: import("zod").ZodObject<{
899
+ statusCode: import("zod").ZodNumber;
900
+ message: import("zod").ZodString;
901
+ code: import("zod").ZodString;
902
+ details: import("zod").ZodOptional<import("zod").ZodUnknown>;
903
+ timestamp: import("zod").ZodString;
904
+ path: import("zod").ZodString;
905
+ correlationId: import("zod").ZodOptional<import("zod").ZodString>;
906
+ }, "strip", import("zod").ZodTypeAny, {
907
+ statusCode: number;
718
908
  message: string;
719
909
  code: string;
720
910
  timestamp: string;
@@ -730,7 +920,7 @@ declare const apiContractConfig: {
730
920
  details?: unknown;
731
921
  correlationId?: string | undefined;
732
922
  }>;
733
- readonly 403: import("zod").ZodObject<{
923
+ 401: import("zod").ZodObject<{
734
924
  statusCode: import("zod").ZodNumber;
735
925
  message: import("zod").ZodString;
736
926
  code: import("zod").ZodString;
@@ -755,7 +945,7 @@ declare const apiContractConfig: {
755
945
  details?: unknown;
756
946
  correlationId?: string | undefined;
757
947
  }>;
758
- readonly 404: import("zod").ZodObject<{
948
+ 403: import("zod").ZodObject<{
759
949
  statusCode: import("zod").ZodNumber;
760
950
  message: import("zod").ZodString;
761
951
  code: import("zod").ZodString;
@@ -780,7 +970,7 @@ declare const apiContractConfig: {
780
970
  details?: unknown;
781
971
  correlationId?: string | undefined;
782
972
  }>;
783
- readonly 500: import("zod").ZodObject<{
973
+ 500: import("zod").ZodObject<{
784
974
  statusCode: import("zod").ZodNumber;
785
975
  message: import("zod").ZodString;
786
976
  code: import("zod").ZodString;
@@ -805,21 +995,7 @@ declare const apiContractConfig: {
805
995
  details?: unknown;
806
996
  correlationId?: string | undefined;
807
997
  }>;
808
- };
809
- readonly pathParams: import("zod").ZodObject<{
810
- id: import("zod").ZodString;
811
- }, "strip", import("zod").ZodTypeAny, {
812
- id: string;
813
- }, {
814
- id: string;
815
- }>;
816
- readonly summary: "Get a client by ID";
817
- };
818
- readonly update: {
819
- readonly method: "PATCH";
820
- readonly path: "/v2/clients/:id";
821
- readonly responses: {
822
- readonly 200: import("zod").ZodObject<{
998
+ 200: import("zod").ZodObject<{
823
999
  id: import("zod").ZodString;
824
1000
  name: import("zod").ZodString;
825
1001
  crn: import("zod").ZodString;
@@ -855,19 +1031,19 @@ declare const apiContractConfig: {
855
1031
  }>;
856
1032
  }, "strip", import("zod").ZodTypeAny, {
857
1033
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
858
- id: string;
859
1034
  name: string;
1035
+ director: string;
1036
+ createdAt: string;
1037
+ updatedAt: string;
1038
+ id: string;
860
1039
  crn: string;
861
1040
  govLink: string;
862
- director: string;
863
1041
  lastUpdatedBy: {
864
1042
  id: string;
865
1043
  firstName: string;
866
1044
  lastName: string;
867
1045
  email: string;
868
1046
  };
869
- createdAt: string;
870
- updatedAt: string;
871
1047
  version: number;
872
1048
  agentClientLinks: {
873
1049
  agentId: string;
@@ -875,26 +1051,26 @@ declare const apiContractConfig: {
875
1051
  blacklistReason?: string | null | undefined;
876
1052
  }, {
877
1053
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
878
- id: string;
879
1054
  name: string;
1055
+ director: string;
1056
+ createdAt: string;
1057
+ updatedAt: string;
1058
+ id: string;
880
1059
  crn: string;
881
1060
  govLink: string;
882
- director: string;
883
1061
  lastUpdatedBy: {
884
1062
  id: string;
885
1063
  firstName: string;
886
1064
  lastName: string;
887
1065
  email: string;
888
1066
  };
889
- createdAt: string;
890
- updatedAt: string;
891
1067
  version: number;
892
1068
  agentClientLinks: {
893
1069
  agentId: string;
894
1070
  };
895
1071
  blacklistReason?: string | null | undefined;
896
1072
  }>;
897
- readonly 400: import("zod").ZodObject<{
1073
+ 404: import("zod").ZodObject<{
898
1074
  statusCode: import("zod").ZodNumber;
899
1075
  message: import("zod").ZodString;
900
1076
  code: import("zod").ZodString;
@@ -919,7 +1095,7 @@ declare const apiContractConfig: {
919
1095
  details?: unknown;
920
1096
  correlationId?: string | undefined;
921
1097
  }>;
922
- readonly 401: import("zod").ZodObject<{
1098
+ 409: import("zod").ZodObject<{
923
1099
  statusCode: import("zod").ZodNumber;
924
1100
  message: import("zod").ZodString;
925
1101
  code: import("zod").ZodString;
@@ -944,7 +1120,22 @@ declare const apiContractConfig: {
944
1120
  details?: unknown;
945
1121
  correlationId?: string | undefined;
946
1122
  }>;
947
- readonly 403: import("zod").ZodObject<{
1123
+ };
1124
+ };
1125
+ remove: {
1126
+ pathParams: import("zod").ZodObject<{
1127
+ id: import("zod").ZodString;
1128
+ }, "strip", import("zod").ZodTypeAny, {
1129
+ id: string;
1130
+ }, {
1131
+ id: string;
1132
+ }>;
1133
+ summary: "Delete a client";
1134
+ method: "DELETE";
1135
+ body: typeof import("@ts-rest/core").ContractNoBody;
1136
+ path: "/v2/clients/:id";
1137
+ responses: {
1138
+ 400: import("zod").ZodObject<{
948
1139
  statusCode: import("zod").ZodNumber;
949
1140
  message: import("zod").ZodString;
950
1141
  code: import("zod").ZodString;
@@ -969,7 +1160,7 @@ declare const apiContractConfig: {
969
1160
  details?: unknown;
970
1161
  correlationId?: string | undefined;
971
1162
  }>;
972
- readonly 404: import("zod").ZodObject<{
1163
+ 401: import("zod").ZodObject<{
973
1164
  statusCode: import("zod").ZodNumber;
974
1165
  message: import("zod").ZodString;
975
1166
  code: import("zod").ZodString;
@@ -994,7 +1185,7 @@ declare const apiContractConfig: {
994
1185
  details?: unknown;
995
1186
  correlationId?: string | undefined;
996
1187
  }>;
997
- readonly 409: import("zod").ZodObject<{
1188
+ 403: import("zod").ZodObject<{
998
1189
  statusCode: import("zod").ZodNumber;
999
1190
  message: import("zod").ZodString;
1000
1191
  code: import("zod").ZodString;
@@ -1019,7 +1210,7 @@ declare const apiContractConfig: {
1019
1210
  details?: unknown;
1020
1211
  correlationId?: string | undefined;
1021
1212
  }>;
1022
- readonly 500: import("zod").ZodObject<{
1213
+ 500: import("zod").ZodObject<{
1023
1214
  statusCode: import("zod").ZodNumber;
1024
1215
  message: import("zod").ZodString;
1025
1216
  code: import("zod").ZodString;
@@ -1044,53 +1235,8 @@ declare const apiContractConfig: {
1044
1235
  details?: unknown;
1045
1236
  correlationId?: string | undefined;
1046
1237
  }>;
1047
- };
1048
- readonly pathParams: import("zod").ZodObject<{
1049
- id: import("zod").ZodString;
1050
- }, "strip", import("zod").ZodTypeAny, {
1051
- id: string;
1052
- }, {
1053
- id: string;
1054
- }>;
1055
- readonly body: import("zod").ZodEffects<import("zod").ZodObject<{
1056
- name: import("zod").ZodOptional<import("zod").ZodString>;
1057
- govLink: import("zod").ZodOptional<import("zod").ZodString>;
1058
- director: import("zod").ZodOptional<import("zod").ZodString>;
1059
- status: import("zod").ZodOptional<import("zod").ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
1060
- blacklistReason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1061
- }, "strip", import("zod").ZodTypeAny, {
1062
- status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
1063
- name?: string | undefined;
1064
- govLink?: string | undefined;
1065
- director?: string | undefined;
1066
- blacklistReason?: string | null | undefined;
1067
- }, {
1068
- status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
1069
- name?: string | undefined;
1070
- govLink?: string | undefined;
1071
- director?: string | undefined;
1072
- blacklistReason?: string | null | undefined;
1073
- }>, {
1074
- status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
1075
- name?: string | undefined;
1076
- govLink?: string | undefined;
1077
- director?: string | undefined;
1078
- blacklistReason?: string | null | undefined;
1079
- }, {
1080
- status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
1081
- name?: string | undefined;
1082
- govLink?: string | undefined;
1083
- director?: string | undefined;
1084
- blacklistReason?: string | null | undefined;
1085
- }>;
1086
- readonly summary: "Update a client";
1087
- };
1088
- readonly remove: {
1089
- readonly method: "DELETE";
1090
- readonly path: "/v2/clients/:id";
1091
- readonly responses: {
1092
- readonly 204: import("zod").ZodNull;
1093
- readonly 400: import("zod").ZodObject<{
1238
+ 204: import("zod").ZodUndefined;
1239
+ 404: import("zod").ZodObject<{
1094
1240
  statusCode: import("zod").ZodNumber;
1095
1241
  message: import("zod").ZodString;
1096
1242
  code: import("zod").ZodString;
@@ -1115,7 +1261,48 @@ declare const apiContractConfig: {
1115
1261
  details?: unknown;
1116
1262
  correlationId?: string | undefined;
1117
1263
  }>;
1118
- readonly 401: import("zod").ZodObject<{
1264
+ };
1265
+ };
1266
+ };
1267
+ ClientContacts: {
1268
+ create: {
1269
+ summary: "Create a new client contact";
1270
+ method: "POST";
1271
+ body: import("zod").ZodObject<{
1272
+ client: import("zod").ZodObject<{
1273
+ id: import("zod").ZodString;
1274
+ }, "strip", import("zod").ZodTypeAny, {
1275
+ id: string;
1276
+ }, {
1277
+ id: string;
1278
+ }>;
1279
+ name: import("zod").ZodString;
1280
+ position: import("zod").ZodOptional<import("zod").ZodString>;
1281
+ phone: import("zod").ZodString;
1282
+ email: import("zod").ZodString;
1283
+ source: import("zod").ZodOptional<import("zod").ZodString>;
1284
+ }, "strip", import("zod").ZodTypeAny, {
1285
+ name: string;
1286
+ email: string;
1287
+ client: {
1288
+ id: string;
1289
+ };
1290
+ phone: string;
1291
+ position?: string | undefined;
1292
+ source?: string | undefined;
1293
+ }, {
1294
+ name: string;
1295
+ email: string;
1296
+ client: {
1297
+ id: string;
1298
+ };
1299
+ phone: string;
1300
+ position?: string | undefined;
1301
+ source?: string | undefined;
1302
+ }>;
1303
+ path: "/v2/client-contacts";
1304
+ responses: {
1305
+ 400: import("zod").ZodObject<{
1119
1306
  statusCode: import("zod").ZodNumber;
1120
1307
  message: import("zod").ZodString;
1121
1308
  code: import("zod").ZodString;
@@ -1140,7 +1327,7 @@ declare const apiContractConfig: {
1140
1327
  details?: unknown;
1141
1328
  correlationId?: string | undefined;
1142
1329
  }>;
1143
- readonly 403: import("zod").ZodObject<{
1330
+ 401: import("zod").ZodObject<{
1144
1331
  statusCode: import("zod").ZodNumber;
1145
1332
  message: import("zod").ZodString;
1146
1333
  code: import("zod").ZodString;
@@ -1165,7 +1352,7 @@ declare const apiContractConfig: {
1165
1352
  details?: unknown;
1166
1353
  correlationId?: string | undefined;
1167
1354
  }>;
1168
- readonly 404: import("zod").ZodObject<{
1355
+ 403: import("zod").ZodObject<{
1169
1356
  statusCode: import("zod").ZodNumber;
1170
1357
  message: import("zod").ZodString;
1171
1358
  code: import("zod").ZodString;
@@ -1190,7 +1377,7 @@ declare const apiContractConfig: {
1190
1377
  details?: unknown;
1191
1378
  correlationId?: string | undefined;
1192
1379
  }>;
1193
- readonly 500: import("zod").ZodObject<{
1380
+ 500: import("zod").ZodObject<{
1194
1381
  statusCode: import("zod").ZodNumber;
1195
1382
  message: import("zod").ZodString;
1196
1383
  code: import("zod").ZodString;
@@ -1215,24 +1402,7 @@ declare const apiContractConfig: {
1215
1402
  details?: unknown;
1216
1403
  correlationId?: string | undefined;
1217
1404
  }>;
1218
- };
1219
- readonly pathParams: import("zod").ZodObject<{
1220
- id: import("zod").ZodString;
1221
- }, "strip", import("zod").ZodTypeAny, {
1222
- id: string;
1223
- }, {
1224
- id: string;
1225
- }>;
1226
- readonly body: import("zod").ZodUndefined;
1227
- readonly summary: "Delete a client";
1228
- };
1229
- };
1230
- readonly clientContacts: {
1231
- readonly create: {
1232
- readonly method: "POST";
1233
- readonly path: "/v2/client-contacts";
1234
- readonly responses: {
1235
- readonly 201: import("zod").ZodObject<{
1405
+ 201: import("zod").ZodObject<{
1236
1406
  id: import("zod").ZodString;
1237
1407
  clientId: import("zod").ZodString;
1238
1408
  client: import("zod").ZodObject<{
@@ -1271,19 +1441,19 @@ declare const apiContractConfig: {
1271
1441
  }>;
1272
1442
  }, "strip", import("zod").ZodTypeAny, {
1273
1443
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1274
- id: string;
1275
1444
  name: string;
1445
+ director: string;
1446
+ createdAt: string;
1447
+ updatedAt: string;
1448
+ id: string;
1276
1449
  crn: string;
1277
1450
  govLink: string;
1278
- director: string;
1279
1451
  lastUpdatedBy: {
1280
1452
  id: string;
1281
1453
  firstName: string;
1282
1454
  lastName: string;
1283
1455
  email: string;
1284
1456
  };
1285
- createdAt: string;
1286
- updatedAt: string;
1287
1457
  version: number;
1288
1458
  agentClientLinks: {
1289
1459
  agentId: string;
@@ -1291,19 +1461,19 @@ declare const apiContractConfig: {
1291
1461
  blacklistReason?: string | null | undefined;
1292
1462
  }, {
1293
1463
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1294
- id: string;
1295
1464
  name: string;
1465
+ director: string;
1466
+ createdAt: string;
1467
+ updatedAt: string;
1468
+ id: string;
1296
1469
  crn: string;
1297
1470
  govLink: string;
1298
- director: string;
1299
1471
  lastUpdatedBy: {
1300
1472
  id: string;
1301
1473
  firstName: string;
1302
1474
  lastName: string;
1303
1475
  email: string;
1304
1476
  };
1305
- createdAt: string;
1306
- updatedAt: string;
1307
1477
  version: number;
1308
1478
  agentClientLinks: {
1309
1479
  agentId: string;
@@ -1335,28 +1505,28 @@ declare const apiContractConfig: {
1335
1505
  updatedAt: import("zod").ZodString;
1336
1506
  version: import("zod").ZodNumber;
1337
1507
  }, "strip", import("zod").ZodTypeAny, {
1338
- id: string;
1339
- email: string;
1340
1508
  name: string;
1341
1509
  createdAt: string;
1342
1510
  updatedAt: string;
1511
+ id: string;
1512
+ email: string;
1343
1513
  version: number;
1344
1514
  clientId: string;
1345
1515
  client: {
1346
1516
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1347
- id: string;
1348
1517
  name: string;
1518
+ director: string;
1519
+ createdAt: string;
1520
+ updatedAt: string;
1521
+ id: string;
1349
1522
  crn: string;
1350
1523
  govLink: string;
1351
- director: string;
1352
1524
  lastUpdatedBy: {
1353
1525
  id: string;
1354
1526
  firstName: string;
1355
1527
  lastName: string;
1356
1528
  email: string;
1357
1529
  };
1358
- createdAt: string;
1359
- updatedAt: string;
1360
1530
  version: number;
1361
1531
  agentClientLinks: {
1362
1532
  agentId: string;
@@ -1373,28 +1543,28 @@ declare const apiContractConfig: {
1373
1543
  position?: string | undefined;
1374
1544
  source?: string | undefined;
1375
1545
  }, {
1376
- id: string;
1377
- email: string;
1378
1546
  name: string;
1379
1547
  createdAt: string;
1380
1548
  updatedAt: string;
1549
+ id: string;
1550
+ email: string;
1381
1551
  version: number;
1382
1552
  clientId: string;
1383
1553
  client: {
1384
1554
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1385
- id: string;
1386
1555
  name: string;
1556
+ director: string;
1557
+ createdAt: string;
1558
+ updatedAt: string;
1559
+ id: string;
1387
1560
  crn: string;
1388
1561
  govLink: string;
1389
- director: string;
1390
1562
  lastUpdatedBy: {
1391
1563
  id: string;
1392
1564
  firstName: string;
1393
1565
  lastName: string;
1394
1566
  email: string;
1395
1567
  };
1396
- createdAt: string;
1397
- updatedAt: string;
1398
1568
  version: number;
1399
1569
  agentClientLinks: {
1400
1570
  agentId: string;
@@ -1411,7 +1581,7 @@ declare const apiContractConfig: {
1411
1581
  position?: string | undefined;
1412
1582
  source?: string | undefined;
1413
1583
  }>;
1414
- readonly 400: import("zod").ZodObject<{
1584
+ 409: import("zod").ZodObject<{
1415
1585
  statusCode: import("zod").ZodNumber;
1416
1586
  message: import("zod").ZodString;
1417
1587
  code: import("zod").ZodString;
@@ -1436,7 +1606,47 @@ declare const apiContractConfig: {
1436
1606
  details?: unknown;
1437
1607
  correlationId?: string | undefined;
1438
1608
  }>;
1439
- readonly 401: import("zod").ZodObject<{
1609
+ };
1610
+ };
1611
+ createByClientId: {
1612
+ pathParams: import("zod").ZodObject<{
1613
+ clientId: import("zod").ZodString;
1614
+ }, "strip", import("zod").ZodTypeAny, {
1615
+ clientId: string;
1616
+ }, {
1617
+ clientId: string;
1618
+ }>;
1619
+ summary: "Create a new contact for a specific client";
1620
+ method: "POST";
1621
+ body: import("zod").ZodObject<Omit<{
1622
+ client: import("zod").ZodObject<{
1623
+ id: import("zod").ZodString;
1624
+ }, "strip", import("zod").ZodTypeAny, {
1625
+ id: string;
1626
+ }, {
1627
+ id: string;
1628
+ }>;
1629
+ name: import("zod").ZodString;
1630
+ position: import("zod").ZodOptional<import("zod").ZodString>;
1631
+ phone: import("zod").ZodString;
1632
+ email: import("zod").ZodString;
1633
+ source: import("zod").ZodOptional<import("zod").ZodString>;
1634
+ }, "client">, "strip", import("zod").ZodTypeAny, {
1635
+ name: string;
1636
+ email: string;
1637
+ phone: string;
1638
+ position?: string | undefined;
1639
+ source?: string | undefined;
1640
+ }, {
1641
+ name: string;
1642
+ email: string;
1643
+ phone: string;
1644
+ position?: string | undefined;
1645
+ source?: string | undefined;
1646
+ }>;
1647
+ path: "/v2/client-contacts/client/:clientId";
1648
+ responses: {
1649
+ 400: import("zod").ZodObject<{
1440
1650
  statusCode: import("zod").ZodNumber;
1441
1651
  message: import("zod").ZodString;
1442
1652
  code: import("zod").ZodString;
@@ -1461,7 +1671,7 @@ declare const apiContractConfig: {
1461
1671
  details?: unknown;
1462
1672
  correlationId?: string | undefined;
1463
1673
  }>;
1464
- readonly 403: import("zod").ZodObject<{
1674
+ 401: import("zod").ZodObject<{
1465
1675
  statusCode: import("zod").ZodNumber;
1466
1676
  message: import("zod").ZodString;
1467
1677
  code: import("zod").ZodString;
@@ -1486,7 +1696,7 @@ declare const apiContractConfig: {
1486
1696
  details?: unknown;
1487
1697
  correlationId?: string | undefined;
1488
1698
  }>;
1489
- readonly 409: import("zod").ZodObject<{
1699
+ 403: import("zod").ZodObject<{
1490
1700
  statusCode: import("zod").ZodNumber;
1491
1701
  message: import("zod").ZodString;
1492
1702
  code: import("zod").ZodString;
@@ -1511,7 +1721,7 @@ declare const apiContractConfig: {
1511
1721
  details?: unknown;
1512
1722
  correlationId?: string | undefined;
1513
1723
  }>;
1514
- readonly 500: import("zod").ZodObject<{
1724
+ 500: import("zod").ZodObject<{
1515
1725
  statusCode: import("zod").ZodNumber;
1516
1726
  message: import("zod").ZodString;
1517
1727
  code: import("zod").ZodString;
@@ -1536,46 +1746,7 @@ declare const apiContractConfig: {
1536
1746
  details?: unknown;
1537
1747
  correlationId?: string | undefined;
1538
1748
  }>;
1539
- };
1540
- readonly body: import("zod").ZodObject<{
1541
- client: import("zod").ZodObject<{
1542
- id: import("zod").ZodString;
1543
- }, "strip", import("zod").ZodTypeAny, {
1544
- id: string;
1545
- }, {
1546
- id: string;
1547
- }>;
1548
- name: import("zod").ZodString;
1549
- position: import("zod").ZodOptional<import("zod").ZodString>;
1550
- phone: import("zod").ZodString;
1551
- email: import("zod").ZodString;
1552
- source: import("zod").ZodOptional<import("zod").ZodString>;
1553
- }, "strip", import("zod").ZodTypeAny, {
1554
- email: string;
1555
- name: string;
1556
- client: {
1557
- id: string;
1558
- };
1559
- phone: string;
1560
- position?: string | undefined;
1561
- source?: string | undefined;
1562
- }, {
1563
- email: string;
1564
- name: string;
1565
- client: {
1566
- id: string;
1567
- };
1568
- phone: string;
1569
- position?: string | undefined;
1570
- source?: string | undefined;
1571
- }>;
1572
- readonly summary: "Create a new client contact";
1573
- };
1574
- readonly createByClientId: {
1575
- readonly method: "POST";
1576
- readonly path: "/v2/client-contacts/client/:clientId";
1577
- readonly responses: {
1578
- readonly 201: import("zod").ZodObject<{
1749
+ 201: import("zod").ZodObject<{
1579
1750
  id: import("zod").ZodString;
1580
1751
  clientId: import("zod").ZodString;
1581
1752
  client: import("zod").ZodObject<{
@@ -1614,19 +1785,19 @@ declare const apiContractConfig: {
1614
1785
  }>;
1615
1786
  }, "strip", import("zod").ZodTypeAny, {
1616
1787
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1617
- id: string;
1618
1788
  name: string;
1789
+ director: string;
1790
+ createdAt: string;
1791
+ updatedAt: string;
1792
+ id: string;
1619
1793
  crn: string;
1620
1794
  govLink: string;
1621
- director: string;
1622
1795
  lastUpdatedBy: {
1623
1796
  id: string;
1624
1797
  firstName: string;
1625
1798
  lastName: string;
1626
1799
  email: string;
1627
1800
  };
1628
- createdAt: string;
1629
- updatedAt: string;
1630
1801
  version: number;
1631
1802
  agentClientLinks: {
1632
1803
  agentId: string;
@@ -1634,19 +1805,19 @@ declare const apiContractConfig: {
1634
1805
  blacklistReason?: string | null | undefined;
1635
1806
  }, {
1636
1807
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1637
- id: string;
1638
1808
  name: string;
1809
+ director: string;
1810
+ createdAt: string;
1811
+ updatedAt: string;
1812
+ id: string;
1639
1813
  crn: string;
1640
1814
  govLink: string;
1641
- director: string;
1642
1815
  lastUpdatedBy: {
1643
1816
  id: string;
1644
1817
  firstName: string;
1645
1818
  lastName: string;
1646
1819
  email: string;
1647
1820
  };
1648
- createdAt: string;
1649
- updatedAt: string;
1650
1821
  version: number;
1651
1822
  agentClientLinks: {
1652
1823
  agentId: string;
@@ -1678,28 +1849,28 @@ declare const apiContractConfig: {
1678
1849
  updatedAt: import("zod").ZodString;
1679
1850
  version: import("zod").ZodNumber;
1680
1851
  }, "strip", import("zod").ZodTypeAny, {
1681
- id: string;
1682
- email: string;
1683
1852
  name: string;
1684
1853
  createdAt: string;
1685
1854
  updatedAt: string;
1855
+ id: string;
1856
+ email: string;
1686
1857
  version: number;
1687
1858
  clientId: string;
1688
1859
  client: {
1689
1860
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1690
- id: string;
1691
1861
  name: string;
1862
+ director: string;
1863
+ createdAt: string;
1864
+ updatedAt: string;
1865
+ id: string;
1692
1866
  crn: string;
1693
1867
  govLink: string;
1694
- director: string;
1695
1868
  lastUpdatedBy: {
1696
1869
  id: string;
1697
1870
  firstName: string;
1698
1871
  lastName: string;
1699
1872
  email: string;
1700
1873
  };
1701
- createdAt: string;
1702
- updatedAt: string;
1703
1874
  version: number;
1704
1875
  agentClientLinks: {
1705
1876
  agentId: string;
@@ -1716,28 +1887,28 @@ declare const apiContractConfig: {
1716
1887
  position?: string | undefined;
1717
1888
  source?: string | undefined;
1718
1889
  }, {
1719
- id: string;
1720
- email: string;
1721
1890
  name: string;
1722
1891
  createdAt: string;
1723
1892
  updatedAt: string;
1893
+ id: string;
1894
+ email: string;
1724
1895
  version: number;
1725
1896
  clientId: string;
1726
1897
  client: {
1727
1898
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1728
- id: string;
1729
1899
  name: string;
1900
+ director: string;
1901
+ createdAt: string;
1902
+ updatedAt: string;
1903
+ id: string;
1730
1904
  crn: string;
1731
1905
  govLink: string;
1732
- director: string;
1733
1906
  lastUpdatedBy: {
1734
1907
  id: string;
1735
1908
  firstName: string;
1736
1909
  lastName: string;
1737
1910
  email: string;
1738
1911
  };
1739
- createdAt: string;
1740
- updatedAt: string;
1741
1912
  version: number;
1742
1913
  agentClientLinks: {
1743
1914
  agentId: string;
@@ -1754,7 +1925,7 @@ declare const apiContractConfig: {
1754
1925
  position?: string | undefined;
1755
1926
  source?: string | undefined;
1756
1927
  }>;
1757
- readonly 400: import("zod").ZodObject<{
1928
+ 409: import("zod").ZodObject<{
1758
1929
  statusCode: import("zod").ZodNumber;
1759
1930
  message: import("zod").ZodString;
1760
1931
  code: import("zod").ZodString;
@@ -1779,7 +1950,45 @@ declare const apiContractConfig: {
1779
1950
  details?: unknown;
1780
1951
  correlationId?: string | undefined;
1781
1952
  }>;
1782
- readonly 401: import("zod").ZodObject<{
1953
+ };
1954
+ };
1955
+ findAll: {
1956
+ query: import("zod").ZodObject<{
1957
+ page: import("zod").ZodDefault<import("zod").ZodNumber>;
1958
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
1959
+ name: import("zod").ZodOptional<import("zod").ZodString>;
1960
+ email: import("zod").ZodOptional<import("zod").ZodString>;
1961
+ phone: import("zod").ZodOptional<import("zod").ZodString>;
1962
+ clientId: import("zod").ZodOptional<import("zod").ZodString>;
1963
+ createdById: import("zod").ZodOptional<import("zod").ZodString>;
1964
+ sortBy: import("zod").ZodDefault<import("zod").ZodEnum<["name", "position", "email", "createdAt", "updatedAt"]>>;
1965
+ sortOrder: import("zod").ZodDefault<import("zod").ZodEnum<["ASC", "DESC"]>>;
1966
+ }, "strip", import("zod").ZodTypeAny, {
1967
+ limit: number;
1968
+ page: number;
1969
+ sortBy: "name" | "createdAt" | "updatedAt" | "email" | "position";
1970
+ sortOrder: "ASC" | "DESC";
1971
+ name?: string | undefined;
1972
+ email?: string | undefined;
1973
+ clientId?: string | undefined;
1974
+ phone?: string | undefined;
1975
+ createdById?: string | undefined;
1976
+ }, {
1977
+ limit?: number | undefined;
1978
+ name?: string | undefined;
1979
+ email?: string | undefined;
1980
+ page?: number | undefined;
1981
+ sortBy?: "name" | "createdAt" | "updatedAt" | "email" | "position" | undefined;
1982
+ sortOrder?: "ASC" | "DESC" | undefined;
1983
+ clientId?: string | undefined;
1984
+ phone?: string | undefined;
1985
+ createdById?: string | undefined;
1986
+ }>;
1987
+ summary: "Get all client contacts";
1988
+ method: "GET";
1989
+ path: "/v2/client-contacts";
1990
+ responses: {
1991
+ 400: import("zod").ZodObject<{
1783
1992
  statusCode: import("zod").ZodNumber;
1784
1993
  message: import("zod").ZodString;
1785
1994
  code: import("zod").ZodString;
@@ -1804,7 +2013,7 @@ declare const apiContractConfig: {
1804
2013
  details?: unknown;
1805
2014
  correlationId?: string | undefined;
1806
2015
  }>;
1807
- readonly 403: import("zod").ZodObject<{
2016
+ 401: import("zod").ZodObject<{
1808
2017
  statusCode: import("zod").ZodNumber;
1809
2018
  message: import("zod").ZodString;
1810
2019
  code: import("zod").ZodString;
@@ -1829,7 +2038,7 @@ declare const apiContractConfig: {
1829
2038
  details?: unknown;
1830
2039
  correlationId?: string | undefined;
1831
2040
  }>;
1832
- readonly 409: import("zod").ZodObject<{
2041
+ 403: import("zod").ZodObject<{
1833
2042
  statusCode: import("zod").ZodNumber;
1834
2043
  message: import("zod").ZodString;
1835
2044
  code: import("zod").ZodString;
@@ -1854,7 +2063,7 @@ declare const apiContractConfig: {
1854
2063
  details?: unknown;
1855
2064
  correlationId?: string | undefined;
1856
2065
  }>;
1857
- readonly 500: import("zod").ZodObject<{
2066
+ 500: import("zod").ZodObject<{
1858
2067
  statusCode: import("zod").ZodNumber;
1859
2068
  message: import("zod").ZodString;
1860
2069
  code: import("zod").ZodString;
@@ -1879,48 +2088,8 @@ declare const apiContractConfig: {
1879
2088
  details?: unknown;
1880
2089
  correlationId?: string | undefined;
1881
2090
  }>;
1882
- };
1883
- readonly pathParams: import("zod").ZodObject<{
1884
- clientId: import("zod").ZodString;
1885
- }, "strip", import("zod").ZodTypeAny, {
1886
- clientId: string;
1887
- }, {
1888
- clientId: string;
1889
- }>;
1890
- readonly body: import("zod").ZodObject<Omit<{
1891
- client: import("zod").ZodObject<{
1892
- id: import("zod").ZodString;
1893
- }, "strip", import("zod").ZodTypeAny, {
1894
- id: string;
1895
- }, {
1896
- id: string;
1897
- }>;
1898
- name: import("zod").ZodString;
1899
- position: import("zod").ZodOptional<import("zod").ZodString>;
1900
- phone: import("zod").ZodString;
1901
- email: import("zod").ZodString;
1902
- source: import("zod").ZodOptional<import("zod").ZodString>;
1903
- }, "client">, "strip", import("zod").ZodTypeAny, {
1904
- email: string;
1905
- name: string;
1906
- phone: string;
1907
- position?: string | undefined;
1908
- source?: string | undefined;
1909
- }, {
1910
- email: string;
1911
- name: string;
1912
- phone: string;
1913
- position?: string | undefined;
1914
- source?: string | undefined;
1915
- }>;
1916
- readonly summary: "Create a new contact for a specific client";
1917
- };
1918
- readonly findAll: {
1919
- readonly method: "GET";
1920
- readonly path: "/v2/client-contacts";
1921
- readonly responses: {
1922
- readonly 200: import("zod").ZodObject<{
1923
- data: import("zod").ZodArray<import("zod").ZodObject<{
2091
+ 200: import("zod").ZodObject<{
2092
+ items: import("zod").ZodArray<import("zod").ZodObject<{
1924
2093
  id: import("zod").ZodString;
1925
2094
  clientId: import("zod").ZodString;
1926
2095
  client: import("zod").ZodObject<{
@@ -1959,19 +2128,19 @@ declare const apiContractConfig: {
1959
2128
  }>;
1960
2129
  }, "strip", import("zod").ZodTypeAny, {
1961
2130
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1962
- id: string;
1963
2131
  name: string;
2132
+ director: string;
2133
+ createdAt: string;
2134
+ updatedAt: string;
2135
+ id: string;
1964
2136
  crn: string;
1965
2137
  govLink: string;
1966
- director: string;
1967
2138
  lastUpdatedBy: {
1968
2139
  id: string;
1969
2140
  firstName: string;
1970
2141
  lastName: string;
1971
2142
  email: string;
1972
2143
  };
1973
- createdAt: string;
1974
- updatedAt: string;
1975
2144
  version: number;
1976
2145
  agentClientLinks: {
1977
2146
  agentId: string;
@@ -1979,19 +2148,19 @@ declare const apiContractConfig: {
1979
2148
  blacklistReason?: string | null | undefined;
1980
2149
  }, {
1981
2150
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
1982
- id: string;
1983
2151
  name: string;
2152
+ director: string;
2153
+ createdAt: string;
2154
+ updatedAt: string;
2155
+ id: string;
1984
2156
  crn: string;
1985
2157
  govLink: string;
1986
- director: string;
1987
2158
  lastUpdatedBy: {
1988
2159
  id: string;
1989
2160
  firstName: string;
1990
2161
  lastName: string;
1991
2162
  email: string;
1992
2163
  };
1993
- createdAt: string;
1994
- updatedAt: string;
1995
2164
  version: number;
1996
2165
  agentClientLinks: {
1997
2166
  agentId: string;
@@ -2023,28 +2192,28 @@ declare const apiContractConfig: {
2023
2192
  updatedAt: import("zod").ZodString;
2024
2193
  version: import("zod").ZodNumber;
2025
2194
  }, "strip", import("zod").ZodTypeAny, {
2026
- id: string;
2027
- email: string;
2028
2195
  name: string;
2029
2196
  createdAt: string;
2030
2197
  updatedAt: string;
2198
+ id: string;
2199
+ email: string;
2031
2200
  version: number;
2032
2201
  clientId: string;
2033
2202
  client: {
2034
2203
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2035
- id: string;
2036
2204
  name: string;
2205
+ director: string;
2206
+ createdAt: string;
2207
+ updatedAt: string;
2208
+ id: string;
2037
2209
  crn: string;
2038
2210
  govLink: string;
2039
- director: string;
2040
2211
  lastUpdatedBy: {
2041
2212
  id: string;
2042
2213
  firstName: string;
2043
2214
  lastName: string;
2044
2215
  email: string;
2045
2216
  };
2046
- createdAt: string;
2047
- updatedAt: string;
2048
2217
  version: number;
2049
2218
  agentClientLinks: {
2050
2219
  agentId: string;
@@ -2061,28 +2230,28 @@ declare const apiContractConfig: {
2061
2230
  position?: string | undefined;
2062
2231
  source?: string | undefined;
2063
2232
  }, {
2064
- id: string;
2065
- email: string;
2066
2233
  name: string;
2067
2234
  createdAt: string;
2068
2235
  updatedAt: string;
2236
+ id: string;
2237
+ email: string;
2069
2238
  version: number;
2070
2239
  clientId: string;
2071
2240
  client: {
2072
2241
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2073
- id: string;
2074
2242
  name: string;
2243
+ director: string;
2244
+ createdAt: string;
2245
+ updatedAt: string;
2246
+ id: string;
2075
2247
  crn: string;
2076
2248
  govLink: string;
2077
- director: string;
2078
2249
  lastUpdatedBy: {
2079
2250
  id: string;
2080
2251
  firstName: string;
2081
2252
  lastName: string;
2082
2253
  email: string;
2083
2254
  };
2084
- createdAt: string;
2085
- updatedAt: string;
2086
2255
  version: number;
2087
2256
  agentClientLinks: {
2088
2257
  agentId: string;
@@ -2099,33 +2268,35 @@ declare const apiContractConfig: {
2099
2268
  position?: string | undefined;
2100
2269
  source?: string | undefined;
2101
2270
  }>, "many">;
2102
- total: import("zod").ZodNumber;
2271
+ totalCount: import("zod").ZodNumber;
2103
2272
  limit: import("zod").ZodNumber;
2104
2273
  skip: import("zod").ZodNumber;
2274
+ currentPage: import("zod").ZodNumber;
2275
+ totalPages: import("zod").ZodNumber;
2105
2276
  }, "strip", import("zod").ZodTypeAny, {
2106
- data: {
2107
- id: string;
2108
- email: string;
2277
+ items: {
2109
2278
  name: string;
2110
2279
  createdAt: string;
2111
2280
  updatedAt: string;
2281
+ id: string;
2282
+ email: string;
2112
2283
  version: number;
2113
2284
  clientId: string;
2114
2285
  client: {
2115
2286
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2116
- id: string;
2117
2287
  name: string;
2288
+ director: string;
2289
+ createdAt: string;
2290
+ updatedAt: string;
2291
+ id: string;
2118
2292
  crn: string;
2119
2293
  govLink: string;
2120
- director: string;
2121
2294
  lastUpdatedBy: {
2122
2295
  id: string;
2123
2296
  firstName: string;
2124
2297
  lastName: string;
2125
2298
  email: string;
2126
2299
  };
2127
- createdAt: string;
2128
- updatedAt: string;
2129
2300
  version: number;
2130
2301
  agentClientLinks: {
2131
2302
  agentId: string;
@@ -2142,33 +2313,35 @@ declare const apiContractConfig: {
2142
2313
  position?: string | undefined;
2143
2314
  source?: string | undefined;
2144
2315
  }[];
2145
- total: number;
2316
+ totalCount: number;
2146
2317
  limit: number;
2147
2318
  skip: number;
2319
+ currentPage: number;
2320
+ totalPages: number;
2148
2321
  }, {
2149
- data: {
2150
- id: string;
2151
- email: string;
2322
+ items: {
2152
2323
  name: string;
2153
2324
  createdAt: string;
2154
2325
  updatedAt: string;
2326
+ id: string;
2327
+ email: string;
2155
2328
  version: number;
2156
2329
  clientId: string;
2157
2330
  client: {
2158
2331
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2159
- id: string;
2160
2332
  name: string;
2333
+ director: string;
2334
+ createdAt: string;
2335
+ updatedAt: string;
2336
+ id: string;
2161
2337
  crn: string;
2162
2338
  govLink: string;
2163
- director: string;
2164
2339
  lastUpdatedBy: {
2165
2340
  id: string;
2166
2341
  firstName: string;
2167
2342
  lastName: string;
2168
2343
  email: string;
2169
2344
  };
2170
- createdAt: string;
2171
- updatedAt: string;
2172
2345
  version: number;
2173
2346
  agentClientLinks: {
2174
2347
  agentId: string;
@@ -2185,11 +2358,27 @@ declare const apiContractConfig: {
2185
2358
  position?: string | undefined;
2186
2359
  source?: string | undefined;
2187
2360
  }[];
2188
- total: number;
2361
+ totalCount: number;
2189
2362
  limit: number;
2190
2363
  skip: number;
2364
+ currentPage: number;
2365
+ totalPages: number;
2191
2366
  }>;
2192
- readonly 400: import("zod").ZodObject<{
2367
+ };
2368
+ };
2369
+ findOne: {
2370
+ pathParams: import("zod").ZodObject<{
2371
+ contactId: import("zod").ZodString;
2372
+ }, "strip", import("zod").ZodTypeAny, {
2373
+ contactId: string;
2374
+ }, {
2375
+ contactId: string;
2376
+ }>;
2377
+ summary: "Get a client contact by ID";
2378
+ method: "GET";
2379
+ path: "/v2/client-contacts/:contactId";
2380
+ responses: {
2381
+ 400: import("zod").ZodObject<{
2193
2382
  statusCode: import("zod").ZodNumber;
2194
2383
  message: import("zod").ZodString;
2195
2384
  code: import("zod").ZodString;
@@ -2214,7 +2403,7 @@ declare const apiContractConfig: {
2214
2403
  details?: unknown;
2215
2404
  correlationId?: string | undefined;
2216
2405
  }>;
2217
- readonly 401: import("zod").ZodObject<{
2406
+ 401: import("zod").ZodObject<{
2218
2407
  statusCode: import("zod").ZodNumber;
2219
2408
  message: import("zod").ZodString;
2220
2409
  code: import("zod").ZodString;
@@ -2239,7 +2428,7 @@ declare const apiContractConfig: {
2239
2428
  details?: unknown;
2240
2429
  correlationId?: string | undefined;
2241
2430
  }>;
2242
- readonly 403: import("zod").ZodObject<{
2431
+ 403: import("zod").ZodObject<{
2243
2432
  statusCode: import("zod").ZodNumber;
2244
2433
  message: import("zod").ZodString;
2245
2434
  code: import("zod").ZodString;
@@ -2264,7 +2453,7 @@ declare const apiContractConfig: {
2264
2453
  details?: unknown;
2265
2454
  correlationId?: string | undefined;
2266
2455
  }>;
2267
- readonly 500: import("zod").ZodObject<{
2456
+ 500: import("zod").ZodObject<{
2268
2457
  statusCode: import("zod").ZodNumber;
2269
2458
  message: import("zod").ZodString;
2270
2459
  code: import("zod").ZodString;
@@ -2289,45 +2478,7 @@ declare const apiContractConfig: {
2289
2478
  details?: unknown;
2290
2479
  correlationId?: string | undefined;
2291
2480
  }>;
2292
- };
2293
- readonly query: import("zod").ZodObject<{
2294
- page: import("zod").ZodDefault<import("zod").ZodNumber>;
2295
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
2296
- name: import("zod").ZodOptional<import("zod").ZodString>;
2297
- email: import("zod").ZodOptional<import("zod").ZodString>;
2298
- phone: import("zod").ZodOptional<import("zod").ZodString>;
2299
- clientId: import("zod").ZodOptional<import("zod").ZodString>;
2300
- createdById: import("zod").ZodOptional<import("zod").ZodString>;
2301
- sortBy: import("zod").ZodDefault<import("zod").ZodEnum<["name", "position", "email", "createdAt", "updatedAt"]>>;
2302
- sortOrder: import("zod").ZodDefault<import("zod").ZodEnum<["ASC", "DESC"]>>;
2303
- }, "strip", import("zod").ZodTypeAny, {
2304
- limit: number;
2305
- page: number;
2306
- sortBy: "email" | "name" | "createdAt" | "updatedAt" | "position";
2307
- sortOrder: "ASC" | "DESC";
2308
- email?: string | undefined;
2309
- name?: string | undefined;
2310
- clientId?: string | undefined;
2311
- phone?: string | undefined;
2312
- createdById?: string | undefined;
2313
- }, {
2314
- limit?: number | undefined;
2315
- email?: string | undefined;
2316
- name?: string | undefined;
2317
- page?: number | undefined;
2318
- clientId?: string | undefined;
2319
- phone?: string | undefined;
2320
- createdById?: string | undefined;
2321
- sortBy?: "email" | "name" | "createdAt" | "updatedAt" | "position" | undefined;
2322
- sortOrder?: "ASC" | "DESC" | undefined;
2323
- }>;
2324
- readonly summary: "Get all client contacts";
2325
- };
2326
- readonly findOne: {
2327
- readonly method: "GET";
2328
- readonly path: "/v2/client-contacts/:contactId";
2329
- readonly responses: {
2330
- readonly 200: import("zod").ZodObject<{
2481
+ 200: import("zod").ZodObject<{
2331
2482
  id: import("zod").ZodString;
2332
2483
  clientId: import("zod").ZodString;
2333
2484
  client: import("zod").ZodObject<{
@@ -2366,19 +2517,19 @@ declare const apiContractConfig: {
2366
2517
  }>;
2367
2518
  }, "strip", import("zod").ZodTypeAny, {
2368
2519
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2369
- id: string;
2370
2520
  name: string;
2521
+ director: string;
2522
+ createdAt: string;
2523
+ updatedAt: string;
2524
+ id: string;
2371
2525
  crn: string;
2372
2526
  govLink: string;
2373
- director: string;
2374
2527
  lastUpdatedBy: {
2375
2528
  id: string;
2376
2529
  firstName: string;
2377
2530
  lastName: string;
2378
2531
  email: string;
2379
2532
  };
2380
- createdAt: string;
2381
- updatedAt: string;
2382
2533
  version: number;
2383
2534
  agentClientLinks: {
2384
2535
  agentId: string;
@@ -2386,19 +2537,19 @@ declare const apiContractConfig: {
2386
2537
  blacklistReason?: string | null | undefined;
2387
2538
  }, {
2388
2539
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2389
- id: string;
2390
2540
  name: string;
2541
+ director: string;
2542
+ createdAt: string;
2543
+ updatedAt: string;
2544
+ id: string;
2391
2545
  crn: string;
2392
2546
  govLink: string;
2393
- director: string;
2394
2547
  lastUpdatedBy: {
2395
2548
  id: string;
2396
2549
  firstName: string;
2397
2550
  lastName: string;
2398
2551
  email: string;
2399
2552
  };
2400
- createdAt: string;
2401
- updatedAt: string;
2402
2553
  version: number;
2403
2554
  agentClientLinks: {
2404
2555
  agentId: string;
@@ -2430,28 +2581,28 @@ declare const apiContractConfig: {
2430
2581
  updatedAt: import("zod").ZodString;
2431
2582
  version: import("zod").ZodNumber;
2432
2583
  }, "strip", import("zod").ZodTypeAny, {
2433
- id: string;
2434
- email: string;
2435
2584
  name: string;
2436
2585
  createdAt: string;
2437
2586
  updatedAt: string;
2587
+ id: string;
2588
+ email: string;
2438
2589
  version: number;
2439
2590
  clientId: string;
2440
2591
  client: {
2441
2592
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2442
- id: string;
2443
2593
  name: string;
2594
+ director: string;
2595
+ createdAt: string;
2596
+ updatedAt: string;
2597
+ id: string;
2444
2598
  crn: string;
2445
2599
  govLink: string;
2446
- director: string;
2447
2600
  lastUpdatedBy: {
2448
2601
  id: string;
2449
2602
  firstName: string;
2450
2603
  lastName: string;
2451
2604
  email: string;
2452
2605
  };
2453
- createdAt: string;
2454
- updatedAt: string;
2455
2606
  version: number;
2456
2607
  agentClientLinks: {
2457
2608
  agentId: string;
@@ -2468,28 +2619,28 @@ declare const apiContractConfig: {
2468
2619
  position?: string | undefined;
2469
2620
  source?: string | undefined;
2470
2621
  }, {
2471
- id: string;
2472
- email: string;
2473
2622
  name: string;
2474
2623
  createdAt: string;
2475
2624
  updatedAt: string;
2625
+ id: string;
2626
+ email: string;
2476
2627
  version: number;
2477
2628
  clientId: string;
2478
2629
  client: {
2479
2630
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2480
- id: string;
2481
2631
  name: string;
2632
+ director: string;
2633
+ createdAt: string;
2634
+ updatedAt: string;
2635
+ id: string;
2482
2636
  crn: string;
2483
2637
  govLink: string;
2484
- director: string;
2485
2638
  lastUpdatedBy: {
2486
2639
  id: string;
2487
2640
  firstName: string;
2488
2641
  lastName: string;
2489
2642
  email: string;
2490
2643
  };
2491
- createdAt: string;
2492
- updatedAt: string;
2493
2644
  version: number;
2494
2645
  agentClientLinks: {
2495
2646
  agentId: string;
@@ -2506,7 +2657,7 @@ declare const apiContractConfig: {
2506
2657
  position?: string | undefined;
2507
2658
  source?: string | undefined;
2508
2659
  }>;
2509
- readonly 400: import("zod").ZodObject<{
2660
+ 404: import("zod").ZodObject<{
2510
2661
  statusCode: import("zod").ZodNumber;
2511
2662
  message: import("zod").ZodString;
2512
2663
  code: import("zod").ZodString;
@@ -2531,7 +2682,51 @@ declare const apiContractConfig: {
2531
2682
  details?: unknown;
2532
2683
  correlationId?: string | undefined;
2533
2684
  }>;
2534
- readonly 401: import("zod").ZodObject<{
2685
+ };
2686
+ };
2687
+ update: {
2688
+ pathParams: import("zod").ZodObject<{
2689
+ contactId: import("zod").ZodString;
2690
+ }, "strip", import("zod").ZodTypeAny, {
2691
+ contactId: string;
2692
+ }, {
2693
+ contactId: string;
2694
+ }>;
2695
+ summary: "Update a client contact";
2696
+ method: "PATCH";
2697
+ body: import("zod").ZodObject<Omit<{
2698
+ client: import("zod").ZodOptional<import("zod").ZodObject<{
2699
+ id: import("zod").ZodString;
2700
+ }, "strip", import("zod").ZodTypeAny, {
2701
+ id: string;
2702
+ }, {
2703
+ id: string;
2704
+ }>>;
2705
+ name: import("zod").ZodOptional<import("zod").ZodString>;
2706
+ position: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
2707
+ phone: import("zod").ZodOptional<import("zod").ZodString>;
2708
+ email: import("zod").ZodOptional<import("zod").ZodString>;
2709
+ source: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
2710
+ } & {
2711
+ version: import("zod").ZodNumber;
2712
+ }, "client">, "strip", import("zod").ZodTypeAny, {
2713
+ version: number;
2714
+ name?: string | undefined;
2715
+ email?: string | undefined;
2716
+ position?: string | undefined;
2717
+ phone?: string | undefined;
2718
+ source?: string | undefined;
2719
+ }, {
2720
+ version: number;
2721
+ name?: string | undefined;
2722
+ email?: string | undefined;
2723
+ position?: string | undefined;
2724
+ phone?: string | undefined;
2725
+ source?: string | undefined;
2726
+ }>;
2727
+ path: "/v2/client-contacts/:contactId";
2728
+ responses: {
2729
+ 400: import("zod").ZodObject<{
2535
2730
  statusCode: import("zod").ZodNumber;
2536
2731
  message: import("zod").ZodString;
2537
2732
  code: import("zod").ZodString;
@@ -2556,7 +2751,7 @@ declare const apiContractConfig: {
2556
2751
  details?: unknown;
2557
2752
  correlationId?: string | undefined;
2558
2753
  }>;
2559
- readonly 403: import("zod").ZodObject<{
2754
+ 401: import("zod").ZodObject<{
2560
2755
  statusCode: import("zod").ZodNumber;
2561
2756
  message: import("zod").ZodString;
2562
2757
  code: import("zod").ZodString;
@@ -2581,7 +2776,7 @@ declare const apiContractConfig: {
2581
2776
  details?: unknown;
2582
2777
  correlationId?: string | undefined;
2583
2778
  }>;
2584
- readonly 404: import("zod").ZodObject<{
2779
+ 403: import("zod").ZodObject<{
2585
2780
  statusCode: import("zod").ZodNumber;
2586
2781
  message: import("zod").ZodString;
2587
2782
  code: import("zod").ZodString;
@@ -2606,7 +2801,7 @@ declare const apiContractConfig: {
2606
2801
  details?: unknown;
2607
2802
  correlationId?: string | undefined;
2608
2803
  }>;
2609
- readonly 500: import("zod").ZodObject<{
2804
+ 500: import("zod").ZodObject<{
2610
2805
  statusCode: import("zod").ZodNumber;
2611
2806
  message: import("zod").ZodString;
2612
2807
  code: import("zod").ZodString;
@@ -2631,21 +2826,7 @@ declare const apiContractConfig: {
2631
2826
  details?: unknown;
2632
2827
  correlationId?: string | undefined;
2633
2828
  }>;
2634
- };
2635
- readonly pathParams: import("zod").ZodObject<{
2636
- contactId: import("zod").ZodString;
2637
- }, "strip", import("zod").ZodTypeAny, {
2638
- contactId: string;
2639
- }, {
2640
- contactId: string;
2641
- }>;
2642
- readonly summary: "Get a client contact by ID";
2643
- };
2644
- readonly update: {
2645
- readonly method: "PATCH";
2646
- readonly path: "/v2/client-contacts/:contactId";
2647
- readonly responses: {
2648
- readonly 200: import("zod").ZodObject<{
2829
+ 200: import("zod").ZodObject<{
2649
2830
  id: import("zod").ZodString;
2650
2831
  clientId: import("zod").ZodString;
2651
2832
  client: import("zod").ZodObject<{
@@ -2684,19 +2865,19 @@ declare const apiContractConfig: {
2684
2865
  }>;
2685
2866
  }, "strip", import("zod").ZodTypeAny, {
2686
2867
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2687
- id: string;
2688
2868
  name: string;
2869
+ director: string;
2870
+ createdAt: string;
2871
+ updatedAt: string;
2872
+ id: string;
2689
2873
  crn: string;
2690
2874
  govLink: string;
2691
- director: string;
2692
2875
  lastUpdatedBy: {
2693
2876
  id: string;
2694
2877
  firstName: string;
2695
2878
  lastName: string;
2696
2879
  email: string;
2697
2880
  };
2698
- createdAt: string;
2699
- updatedAt: string;
2700
2881
  version: number;
2701
2882
  agentClientLinks: {
2702
2883
  agentId: string;
@@ -2704,19 +2885,19 @@ declare const apiContractConfig: {
2704
2885
  blacklistReason?: string | null | undefined;
2705
2886
  }, {
2706
2887
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2707
- id: string;
2708
2888
  name: string;
2889
+ director: string;
2890
+ createdAt: string;
2891
+ updatedAt: string;
2892
+ id: string;
2709
2893
  crn: string;
2710
2894
  govLink: string;
2711
- director: string;
2712
2895
  lastUpdatedBy: {
2713
2896
  id: string;
2714
2897
  firstName: string;
2715
2898
  lastName: string;
2716
2899
  email: string;
2717
2900
  };
2718
- createdAt: string;
2719
- updatedAt: string;
2720
2901
  version: number;
2721
2902
  agentClientLinks: {
2722
2903
  agentId: string;
@@ -2748,28 +2929,28 @@ declare const apiContractConfig: {
2748
2929
  updatedAt: import("zod").ZodString;
2749
2930
  version: import("zod").ZodNumber;
2750
2931
  }, "strip", import("zod").ZodTypeAny, {
2751
- id: string;
2752
- email: string;
2753
2932
  name: string;
2754
2933
  createdAt: string;
2755
2934
  updatedAt: string;
2935
+ id: string;
2936
+ email: string;
2756
2937
  version: number;
2757
2938
  clientId: string;
2758
2939
  client: {
2759
2940
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2760
- id: string;
2761
2941
  name: string;
2942
+ director: string;
2943
+ createdAt: string;
2944
+ updatedAt: string;
2945
+ id: string;
2762
2946
  crn: string;
2763
2947
  govLink: string;
2764
- director: string;
2765
2948
  lastUpdatedBy: {
2766
2949
  id: string;
2767
2950
  firstName: string;
2768
2951
  lastName: string;
2769
2952
  email: string;
2770
2953
  };
2771
- createdAt: string;
2772
- updatedAt: string;
2773
2954
  version: number;
2774
2955
  agentClientLinks: {
2775
2956
  agentId: string;
@@ -2786,28 +2967,28 @@ declare const apiContractConfig: {
2786
2967
  position?: string | undefined;
2787
2968
  source?: string | undefined;
2788
2969
  }, {
2789
- id: string;
2790
- email: string;
2791
2970
  name: string;
2792
2971
  createdAt: string;
2793
2972
  updatedAt: string;
2973
+ id: string;
2974
+ email: string;
2794
2975
  version: number;
2795
2976
  clientId: string;
2796
2977
  client: {
2797
2978
  status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2798
- id: string;
2799
2979
  name: string;
2980
+ director: string;
2981
+ createdAt: string;
2982
+ updatedAt: string;
2983
+ id: string;
2800
2984
  crn: string;
2801
2985
  govLink: string;
2802
- director: string;
2803
2986
  lastUpdatedBy: {
2804
2987
  id: string;
2805
2988
  firstName: string;
2806
2989
  lastName: string;
2807
2990
  email: string;
2808
2991
  };
2809
- createdAt: string;
2810
- updatedAt: string;
2811
2992
  version: number;
2812
2993
  agentClientLinks: {
2813
2994
  agentId: string;
@@ -2824,107 +3005,7 @@ declare const apiContractConfig: {
2824
3005
  position?: string | undefined;
2825
3006
  source?: string | undefined;
2826
3007
  }>;
2827
- readonly 400: import("zod").ZodObject<{
2828
- statusCode: import("zod").ZodNumber;
2829
- message: import("zod").ZodString;
2830
- code: import("zod").ZodString;
2831
- details: import("zod").ZodOptional<import("zod").ZodUnknown>;
2832
- timestamp: import("zod").ZodString;
2833
- path: import("zod").ZodString;
2834
- correlationId: import("zod").ZodOptional<import("zod").ZodString>;
2835
- }, "strip", import("zod").ZodTypeAny, {
2836
- statusCode: number;
2837
- message: string;
2838
- code: string;
2839
- timestamp: string;
2840
- path: string;
2841
- details?: unknown;
2842
- correlationId?: string | undefined;
2843
- }, {
2844
- statusCode: number;
2845
- message: string;
2846
- code: string;
2847
- timestamp: string;
2848
- path: string;
2849
- details?: unknown;
2850
- correlationId?: string | undefined;
2851
- }>;
2852
- readonly 401: import("zod").ZodObject<{
2853
- statusCode: import("zod").ZodNumber;
2854
- message: import("zod").ZodString;
2855
- code: import("zod").ZodString;
2856
- details: import("zod").ZodOptional<import("zod").ZodUnknown>;
2857
- timestamp: import("zod").ZodString;
2858
- path: import("zod").ZodString;
2859
- correlationId: import("zod").ZodOptional<import("zod").ZodString>;
2860
- }, "strip", import("zod").ZodTypeAny, {
2861
- statusCode: number;
2862
- message: string;
2863
- code: string;
2864
- timestamp: string;
2865
- path: string;
2866
- details?: unknown;
2867
- correlationId?: string | undefined;
2868
- }, {
2869
- statusCode: number;
2870
- message: string;
2871
- code: string;
2872
- timestamp: string;
2873
- path: string;
2874
- details?: unknown;
2875
- correlationId?: string | undefined;
2876
- }>;
2877
- readonly 403: import("zod").ZodObject<{
2878
- statusCode: import("zod").ZodNumber;
2879
- message: import("zod").ZodString;
2880
- code: import("zod").ZodString;
2881
- details: import("zod").ZodOptional<import("zod").ZodUnknown>;
2882
- timestamp: import("zod").ZodString;
2883
- path: import("zod").ZodString;
2884
- correlationId: import("zod").ZodOptional<import("zod").ZodString>;
2885
- }, "strip", import("zod").ZodTypeAny, {
2886
- statusCode: number;
2887
- message: string;
2888
- code: string;
2889
- timestamp: string;
2890
- path: string;
2891
- details?: unknown;
2892
- correlationId?: string | undefined;
2893
- }, {
2894
- statusCode: number;
2895
- message: string;
2896
- code: string;
2897
- timestamp: string;
2898
- path: string;
2899
- details?: unknown;
2900
- correlationId?: string | undefined;
2901
- }>;
2902
- readonly 404: import("zod").ZodObject<{
2903
- statusCode: import("zod").ZodNumber;
2904
- message: import("zod").ZodString;
2905
- code: import("zod").ZodString;
2906
- details: import("zod").ZodOptional<import("zod").ZodUnknown>;
2907
- timestamp: import("zod").ZodString;
2908
- path: import("zod").ZodString;
2909
- correlationId: import("zod").ZodOptional<import("zod").ZodString>;
2910
- }, "strip", import("zod").ZodTypeAny, {
2911
- statusCode: number;
2912
- message: string;
2913
- code: string;
2914
- timestamp: string;
2915
- path: string;
2916
- details?: unknown;
2917
- correlationId?: string | undefined;
2918
- }, {
2919
- statusCode: number;
2920
- message: string;
2921
- code: string;
2922
- timestamp: string;
2923
- path: string;
2924
- details?: unknown;
2925
- correlationId?: string | undefined;
2926
- }>;
2927
- readonly 409: import("zod").ZodObject<{
3008
+ 404: import("zod").ZodObject<{
2928
3009
  statusCode: import("zod").ZodNumber;
2929
3010
  message: import("zod").ZodString;
2930
3011
  code: import("zod").ZodString;
@@ -2949,7 +3030,7 @@ declare const apiContractConfig: {
2949
3030
  details?: unknown;
2950
3031
  correlationId?: string | undefined;
2951
3032
  }>;
2952
- readonly 500: import("zod").ZodObject<{
3033
+ 409: import("zod").ZodObject<{
2953
3034
  statusCode: import("zod").ZodNumber;
2954
3035
  message: import("zod").ZodString;
2955
3036
  code: import("zod").ZodString;
@@ -2975,51 +3056,21 @@ declare const apiContractConfig: {
2975
3056
  correlationId?: string | undefined;
2976
3057
  }>;
2977
3058
  };
2978
- readonly pathParams: import("zod").ZodObject<{
3059
+ };
3060
+ remove: {
3061
+ pathParams: import("zod").ZodObject<{
2979
3062
  contactId: import("zod").ZodString;
2980
3063
  }, "strip", import("zod").ZodTypeAny, {
2981
3064
  contactId: string;
2982
3065
  }, {
2983
3066
  contactId: string;
2984
3067
  }>;
2985
- readonly body: import("zod").ZodObject<Omit<{
2986
- client: import("zod").ZodOptional<import("zod").ZodObject<{
2987
- id: import("zod").ZodString;
2988
- }, "strip", import("zod").ZodTypeAny, {
2989
- id: string;
2990
- }, {
2991
- id: string;
2992
- }>>;
2993
- name: import("zod").ZodOptional<import("zod").ZodString>;
2994
- position: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
2995
- phone: import("zod").ZodOptional<import("zod").ZodString>;
2996
- email: import("zod").ZodOptional<import("zod").ZodString>;
2997
- source: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
2998
- } & {
2999
- version: import("zod").ZodNumber;
3000
- }, "client">, "strip", import("zod").ZodTypeAny, {
3001
- version: number;
3002
- email?: string | undefined;
3003
- name?: string | undefined;
3004
- position?: string | undefined;
3005
- phone?: string | undefined;
3006
- source?: string | undefined;
3007
- }, {
3008
- version: number;
3009
- email?: string | undefined;
3010
- name?: string | undefined;
3011
- position?: string | undefined;
3012
- phone?: string | undefined;
3013
- source?: string | undefined;
3014
- }>;
3015
- readonly summary: "Update a client contact";
3016
- };
3017
- readonly remove: {
3018
- readonly method: "DELETE";
3019
- readonly path: "/v2/client-contacts/:contactId";
3020
- readonly responses: {
3021
- readonly 204: typeof import("@ts-rest/core").ContractNoBody;
3022
- readonly 400: import("zod").ZodObject<{
3068
+ summary: "Delete a client contact";
3069
+ method: "DELETE";
3070
+ body: typeof import("@ts-rest/core").ContractNoBody;
3071
+ path: "/v2/client-contacts/:contactId";
3072
+ responses: {
3073
+ 400: import("zod").ZodObject<{
3023
3074
  statusCode: import("zod").ZodNumber;
3024
3075
  message: import("zod").ZodString;
3025
3076
  code: import("zod").ZodString;
@@ -3044,7 +3095,7 @@ declare const apiContractConfig: {
3044
3095
  details?: unknown;
3045
3096
  correlationId?: string | undefined;
3046
3097
  }>;
3047
- readonly 401: import("zod").ZodObject<{
3098
+ 401: import("zod").ZodObject<{
3048
3099
  statusCode: import("zod").ZodNumber;
3049
3100
  message: import("zod").ZodString;
3050
3101
  code: import("zod").ZodString;
@@ -3069,7 +3120,7 @@ declare const apiContractConfig: {
3069
3120
  details?: unknown;
3070
3121
  correlationId?: string | undefined;
3071
3122
  }>;
3072
- readonly 403: import("zod").ZodObject<{
3123
+ 403: import("zod").ZodObject<{
3073
3124
  statusCode: import("zod").ZodNumber;
3074
3125
  message: import("zod").ZodString;
3075
3126
  code: import("zod").ZodString;
@@ -3094,7 +3145,7 @@ declare const apiContractConfig: {
3094
3145
  details?: unknown;
3095
3146
  correlationId?: string | undefined;
3096
3147
  }>;
3097
- readonly 404: import("zod").ZodObject<{
3148
+ 500: import("zod").ZodObject<{
3098
3149
  statusCode: import("zod").ZodNumber;
3099
3150
  message: import("zod").ZodString;
3100
3151
  code: import("zod").ZodString;
@@ -3119,7 +3170,8 @@ declare const apiContractConfig: {
3119
3170
  details?: unknown;
3120
3171
  correlationId?: string | undefined;
3121
3172
  }>;
3122
- readonly 500: import("zod").ZodObject<{
3173
+ 204: import("zod").ZodUndefined;
3174
+ 404: import("zod").ZodObject<{
3123
3175
  statusCode: import("zod").ZodNumber;
3124
3176
  message: import("zod").ZodString;
3125
3177
  code: import("zod").ZodString;
@@ -3145,17 +3197,7 @@ declare const apiContractConfig: {
3145
3197
  correlationId?: string | undefined;
3146
3198
  }>;
3147
3199
  };
3148
- readonly pathParams: import("zod").ZodObject<{
3149
- contactId: import("zod").ZodString;
3150
- }, "strip", import("zod").ZodTypeAny, {
3151
- contactId: string;
3152
- }, {
3153
- contactId: string;
3154
- }>;
3155
- readonly body: typeof import("@ts-rest/core").ContractNoBody;
3156
- readonly summary: "Delete a client contact";
3157
3200
  };
3158
3201
  };
3159
3202
  };
3160
- export declare const apiContract: typeof apiContractConfig;
3161
3203
  //# sourceMappingURL=index.d.ts.map