@kl1/contracts 1.0.9 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/index.js +1331 -1064
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1325 -1060
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/auth/index.d.ts +92 -0
  6. package/dist/src/auth/index.d.ts.map +1 -1
  7. package/dist/src/aws/index.d.ts +4 -4
  8. package/dist/src/aws/validation.d.ts +2 -2
  9. package/dist/src/call-log/schema.d.ts +2 -2
  10. package/dist/src/category/index.d.ts +3 -3
  11. package/dist/src/channel/index.d.ts +1357 -0
  12. package/dist/src/channel/index.d.ts.map +1 -0
  13. package/dist/src/channel/schema.d.ts +385 -0
  14. package/dist/src/channel/schema.d.ts.map +1 -0
  15. package/dist/src/channel/validation.d.ts +337 -0
  16. package/dist/src/channel/validation.d.ts.map +1 -0
  17. package/dist/src/chat/index.d.ts +18857 -8629
  18. package/dist/src/chat/index.d.ts.map +1 -1
  19. package/dist/src/chat/schema.d.ts +2170 -641
  20. package/dist/src/chat/schema.d.ts.map +1 -1
  21. package/dist/src/chat/validation.d.ts +3078 -278
  22. package/dist/src/chat/validation.d.ts.map +1 -1
  23. package/dist/src/company/schema.d.ts +197 -12
  24. package/dist/src/company/schema.d.ts.map +1 -1
  25. package/dist/src/contact/index.d.ts +2539 -0
  26. package/dist/src/contact/index.d.ts.map +1 -0
  27. package/dist/src/contact/schema.d.ts +978 -6
  28. package/dist/src/contact/schema.d.ts.map +1 -1
  29. package/dist/src/contact/validation.d.ts +981 -0
  30. package/dist/src/contact/validation.d.ts.map +1 -0
  31. package/dist/src/contract.d.ts +37764 -21769
  32. package/dist/src/contract.d.ts.map +1 -1
  33. package/dist/src/custom-field-upload/schema.d.ts +2 -2
  34. package/dist/src/cx-log/index.d.ts +4 -4
  35. package/dist/src/cx-log/schema.d.ts +2 -2
  36. package/dist/src/extension/index.d.ts +226 -60
  37. package/dist/src/extension/index.d.ts.map +1 -1
  38. package/dist/src/extension/schema.d.ts +6 -6
  39. package/dist/src/extension/validation.d.ts +6 -12
  40. package/dist/src/extension/validation.d.ts.map +1 -1
  41. package/dist/src/index.d.ts +1 -0
  42. package/dist/src/index.d.ts.map +1 -1
  43. package/dist/src/line/index.d.ts +2 -2
  44. package/dist/src/line/validation.d.ts +2 -2
  45. package/dist/src/mail/account-contract.d.ts +2 -2
  46. package/dist/src/mail/mail-contract.d.ts +2871 -3707
  47. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  48. package/dist/src/mail/message-contract.d.ts +18 -18
  49. package/dist/src/mail/room-contract.d.ts +2860 -3696
  50. package/dist/src/mail/room-contract.d.ts.map +1 -1
  51. package/dist/src/mail/schemas/account-validation.schema.d.ts +2 -2
  52. package/dist/src/mail/schemas/message-validation.schema.d.ts +12 -12
  53. package/dist/src/mail/schemas/message.schema.d.ts +4 -4
  54. package/dist/src/mail/schemas/room-validation.schema.d.ts +70 -70
  55. package/dist/src/mail/schemas/room.schema.d.ts +50 -50
  56. package/dist/src/messenger/index.d.ts +2977 -0
  57. package/dist/src/messenger/index.d.ts.map +1 -0
  58. package/dist/src/messenger/schema.d.ts +2 -0
  59. package/dist/src/messenger/schema.d.ts.map +1 -0
  60. package/dist/src/messenger/validation.d.ts +2 -0
  61. package/dist/src/messenger/validation.d.ts.map +1 -0
  62. package/dist/src/permission/index.d.ts +2 -0
  63. package/dist/src/permission/index.d.ts.map +1 -1
  64. package/dist/src/role/index.d.ts +3 -3
  65. package/dist/src/telephony-agent-presence-status/index.d.ts +1376 -0
  66. package/dist/src/telephony-agent-presence-status/index.d.ts.map +1 -0
  67. package/dist/src/telephony-agent-presence-status/schema.d.ts +366 -0
  68. package/dist/src/telephony-agent-presence-status/schema.d.ts.map +1 -0
  69. package/dist/src/telephony-agent-presence-status/validation.d.ts +18 -0
  70. package/dist/src/telephony-agent-presence-status/validation.d.ts.map +1 -0
  71. package/dist/src/telephony-cdr/schema.d.ts +2 -2
  72. package/dist/src/telephony-extension/index.d.ts +5 -5
  73. package/dist/src/telephony-extension/schema.d.ts +5 -5
  74. package/dist/src/tenant/schema.d.ts +36 -0
  75. package/dist/src/tenant/schema.d.ts.map +1 -0
  76. package/dist/src/upload/schema.d.ts +4 -4
  77. package/dist/src/user/index.d.ts +318 -14
  78. package/dist/src/user/index.d.ts.map +1 -1
  79. package/dist/src/user/schema.d.ts +64 -0
  80. package/dist/src/user/schema.d.ts.map +1 -1
  81. package/dist/src/user/validation.d.ts +11 -11
  82. package/dist/src/user-presence-status-log/index.d.ts +342 -0
  83. package/dist/src/user-presence-status-log/index.d.ts.map +1 -0
  84. package/dist/src/user-presence-status-log/schema.d.ts +382 -0
  85. package/dist/src/user-presence-status-log/schema.d.ts.map +1 -0
  86. package/dist/src/user-presence-status-log/validation.d.ts +15 -0
  87. package/dist/src/user-presence-status-log/validation.d.ts.map +1 -0
  88. package/dist/src/widget/index.d.ts +31 -29
  89. package/dist/src/widget/index.d.ts.map +1 -1
  90. package/dist/src/widget/schema.d.ts +3 -3
  91. package/dist/src/wrap-up-form/index.d.ts +30 -30
  92. package/dist/src/wrap-up-form/validation.d.ts +27 -27
  93. package/dist/utils.d.ts +6 -6
  94. package/package.json +1 -1
  95. package/dist/src/app/index.d.ts +0 -17
  96. package/dist/src/app/index.d.ts.map +0 -1
  97. package/dist/src/mail/mail-server.d.ts +0 -216
  98. package/dist/src/mail/mail-server.d.ts.map +0 -1
@@ -0,0 +1,2539 @@
1
+ import z from 'zod';
2
+ import { ContactContractValidationSchema } from './validation';
3
+ import { ContactSchema } from './schema';
4
+ export type CreateContactRequest = z.infer<typeof ContactContractValidationSchema.create.request>;
5
+ export type CreateContactResponse = z.infer<typeof ContactContractValidationSchema.create.response>;
6
+ export type UpdateContactRequest = Partial<CreateContactRequest>;
7
+ export type UpdateContactResponse = CreateContactResponse;
8
+ export type Contact = z.infer<typeof ContactSchema>;
9
+ export declare const contactContract: {
10
+ create: {
11
+ body: z.ZodObject<{
12
+ name: z.ZodObject<{
13
+ isRequired: z.ZodBoolean;
14
+ attributeId: z.ZodString;
15
+ value: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ value: string;
18
+ isRequired: boolean;
19
+ attributeId: string;
20
+ }, {
21
+ value: string;
22
+ isRequired: boolean;
23
+ attributeId: string;
24
+ }>;
25
+ email: z.ZodObject<{
26
+ isRequired: z.ZodBoolean;
27
+ attributeId: z.ZodString;
28
+ value: z.ZodArray<z.ZodObject<{
29
+ email: z.ZodString;
30
+ isPrimary: z.ZodBoolean;
31
+ }, "strip", z.ZodTypeAny, {
32
+ isPrimary: boolean;
33
+ email: string;
34
+ }, {
35
+ isPrimary: boolean;
36
+ email: string;
37
+ }>, "many">;
38
+ }, "strip", z.ZodTypeAny, {
39
+ value: {
40
+ isPrimary: boolean;
41
+ email: string;
42
+ }[];
43
+ isRequired: boolean;
44
+ attributeId: string;
45
+ }, {
46
+ value: {
47
+ isPrimary: boolean;
48
+ email: string;
49
+ }[];
50
+ isRequired: boolean;
51
+ attributeId: string;
52
+ }>;
53
+ channel: z.ZodObject<{
54
+ isRequired: z.ZodBoolean;
55
+ attributeId: z.ZodString;
56
+ value: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ value: string;
59
+ isRequired: boolean;
60
+ attributeId: string;
61
+ }, {
62
+ value: string;
63
+ isRequired: boolean;
64
+ attributeId: string;
65
+ }>;
66
+ address: z.ZodObject<{
67
+ isRequired: z.ZodBoolean;
68
+ attributeId: z.ZodString;
69
+ value: z.ZodString;
70
+ }, "strip", z.ZodTypeAny, {
71
+ value: string;
72
+ isRequired: boolean;
73
+ attributeId: string;
74
+ }, {
75
+ value: string;
76
+ isRequired: boolean;
77
+ attributeId: string;
78
+ }>;
79
+ phone: z.ZodOptional<z.ZodObject<{
80
+ isRequired: z.ZodBoolean;
81
+ attributeId: z.ZodString;
82
+ value: z.ZodArray<z.ZodObject<{
83
+ phone: z.ZodString;
84
+ isPrimary: z.ZodBoolean;
85
+ }, "strip", z.ZodTypeAny, {
86
+ isPrimary: boolean;
87
+ phone: string;
88
+ }, {
89
+ isPrimary: boolean;
90
+ phone: string;
91
+ }>, "many">;
92
+ }, "strip", z.ZodTypeAny, {
93
+ value: {
94
+ isPrimary: boolean;
95
+ phone: string;
96
+ }[];
97
+ isRequired: boolean;
98
+ attributeId: string;
99
+ }, {
100
+ value: {
101
+ isPrimary: boolean;
102
+ phone: string;
103
+ }[];
104
+ isRequired: boolean;
105
+ attributeId: string;
106
+ }>>;
107
+ notes: z.ZodObject<{
108
+ isRequired: z.ZodBoolean;
109
+ attributeId: z.ZodString;
110
+ value: z.ZodString;
111
+ }, "strip", z.ZodTypeAny, {
112
+ value: string;
113
+ isRequired: boolean;
114
+ attributeId: string;
115
+ }, {
116
+ value: string;
117
+ isRequired: boolean;
118
+ attributeId: string;
119
+ }>;
120
+ tags: z.ZodObject<{
121
+ isRequired: z.ZodBoolean;
122
+ attributeId: z.ZodString;
123
+ value: z.ZodArray<z.ZodString, "many">;
124
+ }, "strip", z.ZodTypeAny, {
125
+ value: string[];
126
+ isRequired: boolean;
127
+ attributeId: string;
128
+ }, {
129
+ value: string[];
130
+ isRequired: boolean;
131
+ attributeId: string;
132
+ }>;
133
+ company: z.ZodObject<{
134
+ isRequired: z.ZodBoolean;
135
+ attributeId: z.ZodString;
136
+ value: z.ZodString;
137
+ }, "strip", z.ZodTypeAny, {
138
+ value: string;
139
+ isRequired: boolean;
140
+ attributeId: string;
141
+ }, {
142
+ value: string;
143
+ isRequired: boolean;
144
+ attributeId: string;
145
+ }>;
146
+ customFields: z.ZodArray<z.ZodObject<{
147
+ isRequired: z.ZodBoolean;
148
+ attributeId: z.ZodString;
149
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
150
+ type: z.ZodString;
151
+ isDefaultAttribute: z.ZodBoolean;
152
+ }, "strip", z.ZodTypeAny, {
153
+ type: string;
154
+ value: (string | string[]) & (string | string[] | undefined);
155
+ isRequired: boolean;
156
+ attributeId: string;
157
+ isDefaultAttribute: boolean;
158
+ }, {
159
+ type: string;
160
+ value: (string | string[]) & (string | string[] | undefined);
161
+ isRequired: boolean;
162
+ attributeId: string;
163
+ isDefaultAttribute: boolean;
164
+ }>, "many">;
165
+ }, "strip", z.ZodTypeAny, {
166
+ channel: {
167
+ value: string;
168
+ isRequired: boolean;
169
+ attributeId: string;
170
+ };
171
+ address: {
172
+ value: string;
173
+ isRequired: boolean;
174
+ attributeId: string;
175
+ };
176
+ name: {
177
+ value: string;
178
+ isRequired: boolean;
179
+ attributeId: string;
180
+ };
181
+ email: {
182
+ value: {
183
+ isPrimary: boolean;
184
+ email: string;
185
+ }[];
186
+ isRequired: boolean;
187
+ attributeId: string;
188
+ };
189
+ customFields: {
190
+ type: string;
191
+ value: (string | string[]) & (string | string[] | undefined);
192
+ isRequired: boolean;
193
+ attributeId: string;
194
+ isDefaultAttribute: boolean;
195
+ }[];
196
+ notes: {
197
+ value: string;
198
+ isRequired: boolean;
199
+ attributeId: string;
200
+ };
201
+ tags: {
202
+ value: string[];
203
+ isRequired: boolean;
204
+ attributeId: string;
205
+ };
206
+ company: {
207
+ value: string;
208
+ isRequired: boolean;
209
+ attributeId: string;
210
+ };
211
+ phone?: {
212
+ value: {
213
+ isPrimary: boolean;
214
+ phone: string;
215
+ }[];
216
+ isRequired: boolean;
217
+ attributeId: string;
218
+ } | undefined;
219
+ }, {
220
+ channel: {
221
+ value: string;
222
+ isRequired: boolean;
223
+ attributeId: string;
224
+ };
225
+ address: {
226
+ value: string;
227
+ isRequired: boolean;
228
+ attributeId: string;
229
+ };
230
+ name: {
231
+ value: string;
232
+ isRequired: boolean;
233
+ attributeId: string;
234
+ };
235
+ email: {
236
+ value: {
237
+ isPrimary: boolean;
238
+ email: string;
239
+ }[];
240
+ isRequired: boolean;
241
+ attributeId: string;
242
+ };
243
+ customFields: {
244
+ type: string;
245
+ value: (string | string[]) & (string | string[] | undefined);
246
+ isRequired: boolean;
247
+ attributeId: string;
248
+ isDefaultAttribute: boolean;
249
+ }[];
250
+ notes: {
251
+ value: string;
252
+ isRequired: boolean;
253
+ attributeId: string;
254
+ };
255
+ tags: {
256
+ value: string[];
257
+ isRequired: boolean;
258
+ attributeId: string;
259
+ };
260
+ company: {
261
+ value: string;
262
+ isRequired: boolean;
263
+ attributeId: string;
264
+ };
265
+ phone?: {
266
+ value: {
267
+ isPrimary: boolean;
268
+ phone: string;
269
+ }[];
270
+ isRequired: boolean;
271
+ attributeId: string;
272
+ } | undefined;
273
+ }>;
274
+ summary: "Create a new contact";
275
+ method: "POST";
276
+ responses: {
277
+ 201: z.ZodObject<{
278
+ requestId: z.ZodString;
279
+ message: z.ZodString;
280
+ }, "strip", z.ZodTypeAny, {
281
+ message: string;
282
+ requestId: string;
283
+ }, {
284
+ message: string;
285
+ requestId: string;
286
+ }>;
287
+ 400: z.ZodObject<{
288
+ message: z.ZodString;
289
+ }, "strip", z.ZodTypeAny, {
290
+ message: string;
291
+ }, {
292
+ message: string;
293
+ }>;
294
+ 409: z.ZodObject<{
295
+ message: z.ZodString;
296
+ }, "strip", z.ZodTypeAny, {
297
+ message: string;
298
+ }, {
299
+ message: string;
300
+ }>;
301
+ 500: z.ZodObject<{
302
+ message: z.ZodString;
303
+ }, "strip", z.ZodTypeAny, {
304
+ message: string;
305
+ }, {
306
+ message: string;
307
+ }>;
308
+ 401: z.ZodObject<{
309
+ message: z.ZodString;
310
+ error: z.ZodAny;
311
+ }, "strip", z.ZodTypeAny, {
312
+ message: string;
313
+ error?: any;
314
+ }, {
315
+ message: string;
316
+ error?: any;
317
+ }>;
318
+ 404: z.ZodObject<{
319
+ message: z.ZodString;
320
+ error: z.ZodAny;
321
+ }, "strip", z.ZodTypeAny, {
322
+ message: string;
323
+ error?: any;
324
+ }, {
325
+ message: string;
326
+ error?: any;
327
+ }>;
328
+ 422: z.ZodObject<{
329
+ message: z.ZodString;
330
+ error: z.ZodAny;
331
+ }, "strip", z.ZodTypeAny, {
332
+ message: string;
333
+ error?: any;
334
+ }, {
335
+ message: string;
336
+ error?: any;
337
+ }>;
338
+ };
339
+ path: "contact";
340
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
341
+ 'x-tenant': z.ZodString;
342
+ authorization: z.ZodString;
343
+ }, "strip", z.ZodTypeAny, {
344
+ 'x-tenant': string;
345
+ authorization: string;
346
+ }, {
347
+ 'x-tenant': string;
348
+ authorization: string;
349
+ }>>>;
350
+ };
351
+ getById: {
352
+ summary: "Get a contact by id";
353
+ method: "GET";
354
+ pathParams: z.ZodObject<{
355
+ id: z.ZodString;
356
+ }, "strip", z.ZodTypeAny, {
357
+ id: string;
358
+ }, {
359
+ id: string;
360
+ }>;
361
+ responses: {
362
+ 200: z.ZodObject<{
363
+ requestId: z.ZodString;
364
+ data: z.ZodObject<{
365
+ id: z.ZodString;
366
+ createdAt: z.ZodDate;
367
+ updatedAt: z.ZodDate;
368
+ deletedAt: z.ZodNullable<z.ZodDate>;
369
+ name: z.ZodString;
370
+ address: z.ZodNullable<z.ZodString>;
371
+ channel: z.ZodNullable<z.ZodString>;
372
+ notes: z.ZodNullable<z.ZodString>;
373
+ contactProfile: z.ZodNullable<z.ZodString>;
374
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
375
+ tags: z.ZodArray<z.ZodObject<{
376
+ id: z.ZodString;
377
+ createdAt: z.ZodDate;
378
+ updatedAt: z.ZodDate;
379
+ deletedAt: z.ZodNullable<z.ZodDate>;
380
+ name: z.ZodString;
381
+ }, "strip", z.ZodTypeAny, {
382
+ id: string;
383
+ name: string;
384
+ createdAt: Date;
385
+ updatedAt: Date;
386
+ deletedAt: Date | null;
387
+ }, {
388
+ id: string;
389
+ name: string;
390
+ createdAt: Date;
391
+ updatedAt: Date;
392
+ deletedAt: Date | null;
393
+ }>, "many">;
394
+ company: z.ZodNullable<z.ZodObject<Omit<{
395
+ id: z.ZodString;
396
+ createdAt: z.ZodDate;
397
+ updatedAt: z.ZodDate;
398
+ deletedAt: z.ZodNullable<z.ZodDate>;
399
+ name: z.ZodOptional<z.ZodString>;
400
+ phone: z.ZodOptional<z.ZodString>;
401
+ address: z.ZodOptional<z.ZodString>;
402
+ industry: z.ZodOptional<z.ZodString>;
403
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
404
+ id: z.ZodString;
405
+ createdAt: z.ZodDate;
406
+ updatedAt: z.ZodDate;
407
+ deletedAt: z.ZodNullable<z.ZodDate>;
408
+ textValue: z.ZodNullable<z.ZodString>;
409
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
410
+ numberValue: z.ZodNullable<z.ZodNumber>;
411
+ dateValue: z.ZodNullable<z.ZodString>;
412
+ attribute: z.ZodObject<Omit<{
413
+ id: z.ZodString;
414
+ createdAt: z.ZodDate;
415
+ updatedAt: z.ZodDate;
416
+ deletedAt: z.ZodNullable<z.ZodDate>;
417
+ systemName: z.ZodString;
418
+ displayName: z.ZodString;
419
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
420
+ position: z.ZodNumber;
421
+ isDefault: z.ZodBoolean;
422
+ isArchived: z.ZodBoolean;
423
+ isRequired: z.ZodBoolean;
424
+ isUnique: z.ZodBoolean;
425
+ options: z.ZodArray<z.ZodObject<{
426
+ position: z.ZodNumber;
427
+ value: z.ZodString;
428
+ label: z.ZodString;
429
+ isDefault: z.ZodBoolean;
430
+ id: z.ZodString;
431
+ }, "strip", z.ZodTypeAny, {
432
+ id: string;
433
+ position: number;
434
+ value: string;
435
+ label: string;
436
+ isDefault: boolean;
437
+ }, {
438
+ id: string;
439
+ position: number;
440
+ value: string;
441
+ label: string;
442
+ isDefault: boolean;
443
+ }>, "many">;
444
+ group: z.ZodObject<{
445
+ id: z.ZodString;
446
+ createdAt: z.ZodDate;
447
+ updatedAt: z.ZodDate;
448
+ deletedAt: z.ZodNullable<z.ZodDate>;
449
+ systemName: z.ZodString;
450
+ displayName: z.ZodString;
451
+ }, "strip", z.ZodTypeAny, {
452
+ id: string;
453
+ createdAt: Date;
454
+ updatedAt: Date;
455
+ deletedAt: Date | null;
456
+ systemName: string;
457
+ displayName: string;
458
+ }, {
459
+ id: string;
460
+ createdAt: Date;
461
+ updatedAt: Date;
462
+ deletedAt: Date | null;
463
+ systemName: string;
464
+ displayName: string;
465
+ }>;
466
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
467
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
468
+ id: string;
469
+ position: number;
470
+ createdAt: Date;
471
+ updatedAt: Date;
472
+ deletedAt: Date | null;
473
+ isDefault: boolean;
474
+ systemName: string;
475
+ displayName: string;
476
+ isArchived: boolean;
477
+ isRequired: boolean;
478
+ isUnique: boolean;
479
+ }, {
480
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
481
+ id: string;
482
+ position: number;
483
+ createdAt: Date;
484
+ updatedAt: Date;
485
+ deletedAt: Date | null;
486
+ isDefault: boolean;
487
+ systemName: string;
488
+ displayName: string;
489
+ isArchived: boolean;
490
+ isRequired: boolean;
491
+ isUnique: boolean;
492
+ }>;
493
+ }, "strip", z.ZodTypeAny, {
494
+ id: string;
495
+ createdAt: Date;
496
+ updatedAt: Date;
497
+ deletedAt: Date | null;
498
+ attribute: {
499
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
500
+ id: string;
501
+ position: number;
502
+ createdAt: Date;
503
+ updatedAt: Date;
504
+ deletedAt: Date | null;
505
+ isDefault: boolean;
506
+ systemName: string;
507
+ displayName: string;
508
+ isArchived: boolean;
509
+ isRequired: boolean;
510
+ isUnique: boolean;
511
+ };
512
+ textValue: string | null;
513
+ booleanValue: boolean | null;
514
+ numberValue: number | null;
515
+ dateValue: string | null;
516
+ }, {
517
+ id: string;
518
+ createdAt: Date;
519
+ updatedAt: Date;
520
+ deletedAt: Date | null;
521
+ attribute: {
522
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
523
+ id: string;
524
+ position: number;
525
+ createdAt: Date;
526
+ updatedAt: Date;
527
+ deletedAt: Date | null;
528
+ isDefault: boolean;
529
+ systemName: string;
530
+ displayName: string;
531
+ isArchived: boolean;
532
+ isRequired: boolean;
533
+ isUnique: boolean;
534
+ };
535
+ textValue: string | null;
536
+ booleanValue: boolean | null;
537
+ numberValue: number | null;
538
+ dateValue: string | null;
539
+ }>, "many">>;
540
+ }, "customFields">, "strip", z.ZodTypeAny, {
541
+ id: string;
542
+ createdAt: Date;
543
+ updatedAt: Date;
544
+ deletedAt: Date | null;
545
+ address?: string | undefined;
546
+ name?: string | undefined;
547
+ phone?: string | undefined;
548
+ industry?: string | undefined;
549
+ }, {
550
+ id: string;
551
+ createdAt: Date;
552
+ updatedAt: Date;
553
+ deletedAt: Date | null;
554
+ address?: string | undefined;
555
+ name?: string | undefined;
556
+ phone?: string | undefined;
557
+ industry?: string | undefined;
558
+ }>>;
559
+ customFields: z.ZodArray<z.ZodObject<{
560
+ id: z.ZodString;
561
+ createdAt: z.ZodDate;
562
+ updatedAt: z.ZodDate;
563
+ deletedAt: z.ZodNullable<z.ZodDate>;
564
+ textValue: z.ZodNullable<z.ZodString>;
565
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
566
+ numberValue: z.ZodNullable<z.ZodNumber>;
567
+ dateValue: z.ZodNullable<z.ZodDate>;
568
+ attribute: z.ZodObject<Omit<{
569
+ id: z.ZodString;
570
+ createdAt: z.ZodDate;
571
+ updatedAt: z.ZodDate;
572
+ deletedAt: z.ZodNullable<z.ZodDate>;
573
+ systemName: z.ZodString;
574
+ displayName: z.ZodString;
575
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
576
+ position: z.ZodNumber;
577
+ isDefault: z.ZodBoolean;
578
+ isArchived: z.ZodBoolean;
579
+ isRequired: z.ZodBoolean;
580
+ isUnique: z.ZodBoolean;
581
+ options: z.ZodArray<z.ZodObject<{
582
+ position: z.ZodNumber;
583
+ value: z.ZodString;
584
+ label: z.ZodString;
585
+ isDefault: z.ZodBoolean;
586
+ id: z.ZodString;
587
+ }, "strip", z.ZodTypeAny, {
588
+ id: string;
589
+ position: number;
590
+ value: string;
591
+ label: string;
592
+ isDefault: boolean;
593
+ }, {
594
+ id: string;
595
+ position: number;
596
+ value: string;
597
+ label: string;
598
+ isDefault: boolean;
599
+ }>, "many">;
600
+ group: z.ZodObject<{
601
+ id: z.ZodString;
602
+ createdAt: z.ZodDate;
603
+ updatedAt: z.ZodDate;
604
+ deletedAt: z.ZodNullable<z.ZodDate>;
605
+ systemName: z.ZodString;
606
+ displayName: z.ZodString;
607
+ }, "strip", z.ZodTypeAny, {
608
+ id: string;
609
+ createdAt: Date;
610
+ updatedAt: Date;
611
+ deletedAt: Date | null;
612
+ systemName: string;
613
+ displayName: string;
614
+ }, {
615
+ id: string;
616
+ createdAt: Date;
617
+ updatedAt: Date;
618
+ deletedAt: Date | null;
619
+ systemName: string;
620
+ displayName: string;
621
+ }>;
622
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
623
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
624
+ id: string;
625
+ position: number;
626
+ createdAt: Date;
627
+ updatedAt: Date;
628
+ deletedAt: Date | null;
629
+ isDefault: boolean;
630
+ systemName: string;
631
+ displayName: string;
632
+ isArchived: boolean;
633
+ isRequired: boolean;
634
+ isUnique: boolean;
635
+ }, {
636
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
637
+ id: string;
638
+ position: number;
639
+ createdAt: Date;
640
+ updatedAt: Date;
641
+ deletedAt: Date | null;
642
+ isDefault: boolean;
643
+ systemName: string;
644
+ displayName: string;
645
+ isArchived: boolean;
646
+ isRequired: boolean;
647
+ isUnique: boolean;
648
+ }>;
649
+ uploads: z.ZodArray<z.ZodObject<{
650
+ id: z.ZodString;
651
+ createdAt: z.ZodDate;
652
+ updatedAt: z.ZodDate;
653
+ deletedAt: z.ZodNullable<z.ZodDate>;
654
+ customFieldId: z.ZodString;
655
+ upload: z.ZodObject<{
656
+ id: z.ZodString;
657
+ createdAt: z.ZodDate;
658
+ updatedAt: z.ZodDate;
659
+ deletedAt: z.ZodNullable<z.ZodDate>;
660
+ bucketName: z.ZodString;
661
+ fileName: z.ZodString;
662
+ fileSize: z.ZodNumber;
663
+ fileKey: z.ZodString;
664
+ }, "strip", z.ZodTypeAny, {
665
+ id: string;
666
+ createdAt: Date;
667
+ updatedAt: Date;
668
+ deletedAt: Date | null;
669
+ fileName: string;
670
+ fileKey: string;
671
+ bucketName: string;
672
+ fileSize: number;
673
+ }, {
674
+ id: string;
675
+ createdAt: Date;
676
+ updatedAt: Date;
677
+ deletedAt: Date | null;
678
+ fileName: string;
679
+ fileKey: string;
680
+ bucketName: string;
681
+ fileSize: number;
682
+ }>;
683
+ }, "strip", z.ZodTypeAny, {
684
+ id: string;
685
+ createdAt: Date;
686
+ updatedAt: Date;
687
+ deletedAt: Date | null;
688
+ customFieldId: string;
689
+ upload: {
690
+ id: string;
691
+ createdAt: Date;
692
+ updatedAt: Date;
693
+ deletedAt: Date | null;
694
+ fileName: string;
695
+ fileKey: string;
696
+ bucketName: string;
697
+ fileSize: number;
698
+ };
699
+ }, {
700
+ id: string;
701
+ createdAt: Date;
702
+ updatedAt: Date;
703
+ deletedAt: Date | null;
704
+ customFieldId: string;
705
+ upload: {
706
+ id: string;
707
+ createdAt: Date;
708
+ updatedAt: Date;
709
+ deletedAt: Date | null;
710
+ fileName: string;
711
+ fileKey: string;
712
+ bucketName: string;
713
+ fileSize: number;
714
+ };
715
+ }>, "many">;
716
+ }, "strip", z.ZodTypeAny, {
717
+ id: string;
718
+ createdAt: Date;
719
+ updatedAt: Date;
720
+ deletedAt: Date | null;
721
+ attribute: {
722
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
723
+ id: string;
724
+ position: number;
725
+ createdAt: Date;
726
+ updatedAt: Date;
727
+ deletedAt: Date | null;
728
+ isDefault: boolean;
729
+ systemName: string;
730
+ displayName: string;
731
+ isArchived: boolean;
732
+ isRequired: boolean;
733
+ isUnique: boolean;
734
+ };
735
+ textValue: string | null;
736
+ booleanValue: boolean | null;
737
+ numberValue: number | null;
738
+ dateValue: Date | null;
739
+ uploads: {
740
+ id: string;
741
+ createdAt: Date;
742
+ updatedAt: Date;
743
+ deletedAt: Date | null;
744
+ customFieldId: string;
745
+ upload: {
746
+ id: string;
747
+ createdAt: Date;
748
+ updatedAt: Date;
749
+ deletedAt: Date | null;
750
+ fileName: string;
751
+ fileKey: string;
752
+ bucketName: string;
753
+ fileSize: number;
754
+ };
755
+ }[];
756
+ }, {
757
+ id: string;
758
+ createdAt: Date;
759
+ updatedAt: Date;
760
+ deletedAt: Date | null;
761
+ attribute: {
762
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
763
+ id: string;
764
+ position: number;
765
+ createdAt: Date;
766
+ updatedAt: Date;
767
+ deletedAt: Date | null;
768
+ isDefault: boolean;
769
+ systemName: string;
770
+ displayName: string;
771
+ isArchived: boolean;
772
+ isRequired: boolean;
773
+ isUnique: boolean;
774
+ };
775
+ textValue: string | null;
776
+ booleanValue: boolean | null;
777
+ numberValue: number | null;
778
+ dateValue: Date | null;
779
+ uploads: {
780
+ id: string;
781
+ createdAt: Date;
782
+ updatedAt: Date;
783
+ deletedAt: Date | null;
784
+ customFieldId: string;
785
+ upload: {
786
+ id: string;
787
+ createdAt: Date;
788
+ updatedAt: Date;
789
+ deletedAt: Date | null;
790
+ fileName: string;
791
+ fileKey: string;
792
+ bucketName: string;
793
+ fileSize: number;
794
+ };
795
+ }[];
796
+ }>, "many">;
797
+ contactEmails: z.ZodArray<z.ZodObject<{
798
+ id: z.ZodString;
799
+ createdAt: z.ZodDate;
800
+ updatedAt: z.ZodDate;
801
+ deletedAt: z.ZodNullable<z.ZodDate>;
802
+ email: z.ZodString;
803
+ isPrimary: z.ZodBoolean;
804
+ }, "strip", z.ZodTypeAny, {
805
+ id: string;
806
+ isPrimary: boolean;
807
+ email: string;
808
+ createdAt: Date;
809
+ updatedAt: Date;
810
+ deletedAt: Date | null;
811
+ }, {
812
+ id: string;
813
+ isPrimary: boolean;
814
+ email: string;
815
+ createdAt: Date;
816
+ updatedAt: Date;
817
+ deletedAt: Date | null;
818
+ }>, "many">;
819
+ contactPhones: z.ZodArray<z.ZodObject<{
820
+ id: z.ZodString;
821
+ createdAt: z.ZodDate;
822
+ updatedAt: z.ZodDate;
823
+ deletedAt: z.ZodNullable<z.ZodDate>;
824
+ phone: z.ZodString;
825
+ isPrimary: z.ZodBoolean;
826
+ }, "strip", z.ZodTypeAny, {
827
+ id: string;
828
+ isPrimary: boolean;
829
+ createdAt: Date;
830
+ updatedAt: Date;
831
+ deletedAt: Date | null;
832
+ phone: string;
833
+ }, {
834
+ id: string;
835
+ isPrimary: boolean;
836
+ createdAt: Date;
837
+ updatedAt: Date;
838
+ deletedAt: Date | null;
839
+ phone: string;
840
+ }>, "many">;
841
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
842
+ entityId: z.ZodString;
843
+ description: z.ZodString;
844
+ entityType: z.ZodObject<{
845
+ entity: z.ZodString;
846
+ description: z.ZodNullable<z.ZodString>;
847
+ }, "strip", z.ZodTypeAny, {
848
+ description: string | null;
849
+ entity: string;
850
+ }, {
851
+ description: string | null;
852
+ entity: string;
853
+ }>;
854
+ }, "strip", z.ZodTypeAny, {
855
+ description: string;
856
+ entityId: string;
857
+ entityType: {
858
+ description: string | null;
859
+ entity: string;
860
+ };
861
+ }, {
862
+ description: string;
863
+ entityId: string;
864
+ entityType: {
865
+ description: string | null;
866
+ entity: string;
867
+ };
868
+ }>, "many">>;
869
+ }, "strip", z.ZodTypeAny, {
870
+ id: string;
871
+ channel: string | null;
872
+ address: string | null;
873
+ name: string;
874
+ createdAt: Date;
875
+ updatedAt: Date;
876
+ deletedAt: Date | null;
877
+ customFields: {
878
+ id: string;
879
+ createdAt: Date;
880
+ updatedAt: Date;
881
+ deletedAt: Date | null;
882
+ attribute: {
883
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
884
+ id: string;
885
+ position: number;
886
+ createdAt: Date;
887
+ updatedAt: Date;
888
+ deletedAt: Date | null;
889
+ isDefault: boolean;
890
+ systemName: string;
891
+ displayName: string;
892
+ isArchived: boolean;
893
+ isRequired: boolean;
894
+ isUnique: boolean;
895
+ };
896
+ textValue: string | null;
897
+ booleanValue: boolean | null;
898
+ numberValue: number | null;
899
+ dateValue: Date | null;
900
+ uploads: {
901
+ id: string;
902
+ createdAt: Date;
903
+ updatedAt: Date;
904
+ deletedAt: Date | null;
905
+ customFieldId: string;
906
+ upload: {
907
+ id: string;
908
+ createdAt: Date;
909
+ updatedAt: Date;
910
+ deletedAt: Date | null;
911
+ fileName: string;
912
+ fileKey: string;
913
+ bucketName: string;
914
+ fileSize: number;
915
+ };
916
+ }[];
917
+ }[];
918
+ notes: string | null;
919
+ contactProfile: string | null;
920
+ socialProfileUrl: string | null;
921
+ tags: {
922
+ id: string;
923
+ name: string;
924
+ createdAt: Date;
925
+ updatedAt: Date;
926
+ deletedAt: Date | null;
927
+ }[];
928
+ company: {
929
+ id: string;
930
+ createdAt: Date;
931
+ updatedAt: Date;
932
+ deletedAt: Date | null;
933
+ address?: string | undefined;
934
+ name?: string | undefined;
935
+ phone?: string | undefined;
936
+ industry?: string | undefined;
937
+ } | null;
938
+ contactEmails: {
939
+ id: string;
940
+ isPrimary: boolean;
941
+ email: string;
942
+ createdAt: Date;
943
+ updatedAt: Date;
944
+ deletedAt: Date | null;
945
+ }[];
946
+ contactPhones: {
947
+ id: string;
948
+ isPrimary: boolean;
949
+ createdAt: Date;
950
+ updatedAt: Date;
951
+ deletedAt: Date | null;
952
+ phone: string;
953
+ }[];
954
+ activityLogs?: {
955
+ description: string;
956
+ entityId: string;
957
+ entityType: {
958
+ description: string | null;
959
+ entity: string;
960
+ };
961
+ }[] | undefined;
962
+ }, {
963
+ id: string;
964
+ channel: string | null;
965
+ address: string | null;
966
+ name: string;
967
+ createdAt: Date;
968
+ updatedAt: Date;
969
+ deletedAt: Date | null;
970
+ customFields: {
971
+ id: string;
972
+ createdAt: Date;
973
+ updatedAt: Date;
974
+ deletedAt: Date | null;
975
+ attribute: {
976
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
977
+ id: string;
978
+ position: number;
979
+ createdAt: Date;
980
+ updatedAt: Date;
981
+ deletedAt: Date | null;
982
+ isDefault: boolean;
983
+ systemName: string;
984
+ displayName: string;
985
+ isArchived: boolean;
986
+ isRequired: boolean;
987
+ isUnique: boolean;
988
+ };
989
+ textValue: string | null;
990
+ booleanValue: boolean | null;
991
+ numberValue: number | null;
992
+ dateValue: Date | null;
993
+ uploads: {
994
+ id: string;
995
+ createdAt: Date;
996
+ updatedAt: Date;
997
+ deletedAt: Date | null;
998
+ customFieldId: string;
999
+ upload: {
1000
+ id: string;
1001
+ createdAt: Date;
1002
+ updatedAt: Date;
1003
+ deletedAt: Date | null;
1004
+ fileName: string;
1005
+ fileKey: string;
1006
+ bucketName: string;
1007
+ fileSize: number;
1008
+ };
1009
+ }[];
1010
+ }[];
1011
+ notes: string | null;
1012
+ contactProfile: string | null;
1013
+ socialProfileUrl: string | null;
1014
+ tags: {
1015
+ id: string;
1016
+ name: string;
1017
+ createdAt: Date;
1018
+ updatedAt: Date;
1019
+ deletedAt: Date | null;
1020
+ }[];
1021
+ company: {
1022
+ id: string;
1023
+ createdAt: Date;
1024
+ updatedAt: Date;
1025
+ deletedAt: Date | null;
1026
+ address?: string | undefined;
1027
+ name?: string | undefined;
1028
+ phone?: string | undefined;
1029
+ industry?: string | undefined;
1030
+ } | null;
1031
+ contactEmails: {
1032
+ id: string;
1033
+ isPrimary: boolean;
1034
+ email: string;
1035
+ createdAt: Date;
1036
+ updatedAt: Date;
1037
+ deletedAt: Date | null;
1038
+ }[];
1039
+ contactPhones: {
1040
+ id: string;
1041
+ isPrimary: boolean;
1042
+ createdAt: Date;
1043
+ updatedAt: Date;
1044
+ deletedAt: Date | null;
1045
+ phone: string;
1046
+ }[];
1047
+ activityLogs?: {
1048
+ description: string;
1049
+ entityId: string;
1050
+ entityType: {
1051
+ description: string | null;
1052
+ entity: string;
1053
+ };
1054
+ }[] | undefined;
1055
+ }>;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ data: {
1058
+ id: string;
1059
+ channel: string | null;
1060
+ address: string | null;
1061
+ name: string;
1062
+ createdAt: Date;
1063
+ updatedAt: Date;
1064
+ deletedAt: Date | null;
1065
+ customFields: {
1066
+ id: string;
1067
+ createdAt: Date;
1068
+ updatedAt: Date;
1069
+ deletedAt: Date | null;
1070
+ attribute: {
1071
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1072
+ id: string;
1073
+ position: number;
1074
+ createdAt: Date;
1075
+ updatedAt: Date;
1076
+ deletedAt: Date | null;
1077
+ isDefault: boolean;
1078
+ systemName: string;
1079
+ displayName: string;
1080
+ isArchived: boolean;
1081
+ isRequired: boolean;
1082
+ isUnique: boolean;
1083
+ };
1084
+ textValue: string | null;
1085
+ booleanValue: boolean | null;
1086
+ numberValue: number | null;
1087
+ dateValue: Date | null;
1088
+ uploads: {
1089
+ id: string;
1090
+ createdAt: Date;
1091
+ updatedAt: Date;
1092
+ deletedAt: Date | null;
1093
+ customFieldId: string;
1094
+ upload: {
1095
+ id: string;
1096
+ createdAt: Date;
1097
+ updatedAt: Date;
1098
+ deletedAt: Date | null;
1099
+ fileName: string;
1100
+ fileKey: string;
1101
+ bucketName: string;
1102
+ fileSize: number;
1103
+ };
1104
+ }[];
1105
+ }[];
1106
+ notes: string | null;
1107
+ contactProfile: string | null;
1108
+ socialProfileUrl: string | null;
1109
+ tags: {
1110
+ id: string;
1111
+ name: string;
1112
+ createdAt: Date;
1113
+ updatedAt: Date;
1114
+ deletedAt: Date | null;
1115
+ }[];
1116
+ company: {
1117
+ id: string;
1118
+ createdAt: Date;
1119
+ updatedAt: Date;
1120
+ deletedAt: Date | null;
1121
+ address?: string | undefined;
1122
+ name?: string | undefined;
1123
+ phone?: string | undefined;
1124
+ industry?: string | undefined;
1125
+ } | null;
1126
+ contactEmails: {
1127
+ id: string;
1128
+ isPrimary: boolean;
1129
+ email: string;
1130
+ createdAt: Date;
1131
+ updatedAt: Date;
1132
+ deletedAt: Date | null;
1133
+ }[];
1134
+ contactPhones: {
1135
+ id: string;
1136
+ isPrimary: boolean;
1137
+ createdAt: Date;
1138
+ updatedAt: Date;
1139
+ deletedAt: Date | null;
1140
+ phone: string;
1141
+ }[];
1142
+ activityLogs?: {
1143
+ description: string;
1144
+ entityId: string;
1145
+ entityType: {
1146
+ description: string | null;
1147
+ entity: string;
1148
+ };
1149
+ }[] | undefined;
1150
+ };
1151
+ requestId: string;
1152
+ }, {
1153
+ data: {
1154
+ id: string;
1155
+ channel: string | null;
1156
+ address: string | null;
1157
+ name: string;
1158
+ createdAt: Date;
1159
+ updatedAt: Date;
1160
+ deletedAt: Date | null;
1161
+ customFields: {
1162
+ id: string;
1163
+ createdAt: Date;
1164
+ updatedAt: Date;
1165
+ deletedAt: Date | null;
1166
+ attribute: {
1167
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1168
+ id: string;
1169
+ position: number;
1170
+ createdAt: Date;
1171
+ updatedAt: Date;
1172
+ deletedAt: Date | null;
1173
+ isDefault: boolean;
1174
+ systemName: string;
1175
+ displayName: string;
1176
+ isArchived: boolean;
1177
+ isRequired: boolean;
1178
+ isUnique: boolean;
1179
+ };
1180
+ textValue: string | null;
1181
+ booleanValue: boolean | null;
1182
+ numberValue: number | null;
1183
+ dateValue: Date | null;
1184
+ uploads: {
1185
+ id: string;
1186
+ createdAt: Date;
1187
+ updatedAt: Date;
1188
+ deletedAt: Date | null;
1189
+ customFieldId: string;
1190
+ upload: {
1191
+ id: string;
1192
+ createdAt: Date;
1193
+ updatedAt: Date;
1194
+ deletedAt: Date | null;
1195
+ fileName: string;
1196
+ fileKey: string;
1197
+ bucketName: string;
1198
+ fileSize: number;
1199
+ };
1200
+ }[];
1201
+ }[];
1202
+ notes: string | null;
1203
+ contactProfile: string | null;
1204
+ socialProfileUrl: string | null;
1205
+ tags: {
1206
+ id: string;
1207
+ name: string;
1208
+ createdAt: Date;
1209
+ updatedAt: Date;
1210
+ deletedAt: Date | null;
1211
+ }[];
1212
+ company: {
1213
+ id: string;
1214
+ createdAt: Date;
1215
+ updatedAt: Date;
1216
+ deletedAt: Date | null;
1217
+ address?: string | undefined;
1218
+ name?: string | undefined;
1219
+ phone?: string | undefined;
1220
+ industry?: string | undefined;
1221
+ } | null;
1222
+ contactEmails: {
1223
+ id: string;
1224
+ isPrimary: boolean;
1225
+ email: string;
1226
+ createdAt: Date;
1227
+ updatedAt: Date;
1228
+ deletedAt: Date | null;
1229
+ }[];
1230
+ contactPhones: {
1231
+ id: string;
1232
+ isPrimary: boolean;
1233
+ createdAt: Date;
1234
+ updatedAt: Date;
1235
+ deletedAt: Date | null;
1236
+ phone: string;
1237
+ }[];
1238
+ activityLogs?: {
1239
+ description: string;
1240
+ entityId: string;
1241
+ entityType: {
1242
+ description: string | null;
1243
+ entity: string;
1244
+ };
1245
+ }[] | undefined;
1246
+ };
1247
+ requestId: string;
1248
+ }>;
1249
+ 400: z.ZodObject<{
1250
+ message: z.ZodString;
1251
+ }, "strip", z.ZodTypeAny, {
1252
+ message: string;
1253
+ }, {
1254
+ message: string;
1255
+ }>;
1256
+ 409: z.ZodObject<{
1257
+ message: z.ZodString;
1258
+ }, "strip", z.ZodTypeAny, {
1259
+ message: string;
1260
+ }, {
1261
+ message: string;
1262
+ }>;
1263
+ 500: z.ZodObject<{
1264
+ message: z.ZodString;
1265
+ }, "strip", z.ZodTypeAny, {
1266
+ message: string;
1267
+ }, {
1268
+ message: string;
1269
+ }>;
1270
+ 401: z.ZodObject<{
1271
+ message: z.ZodString;
1272
+ error: z.ZodAny;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ message: string;
1275
+ error?: any;
1276
+ }, {
1277
+ message: string;
1278
+ error?: any;
1279
+ }>;
1280
+ 404: z.ZodObject<{
1281
+ message: z.ZodString;
1282
+ error: z.ZodAny;
1283
+ }, "strip", z.ZodTypeAny, {
1284
+ message: string;
1285
+ error?: any;
1286
+ }, {
1287
+ message: string;
1288
+ error?: any;
1289
+ }>;
1290
+ 422: z.ZodObject<{
1291
+ message: z.ZodString;
1292
+ error: z.ZodAny;
1293
+ }, "strip", z.ZodTypeAny, {
1294
+ message: string;
1295
+ error?: any;
1296
+ }, {
1297
+ message: string;
1298
+ error?: any;
1299
+ }>;
1300
+ };
1301
+ path: "contact/:id";
1302
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1303
+ 'x-tenant': z.ZodString;
1304
+ authorization: z.ZodString;
1305
+ }, "strip", z.ZodTypeAny, {
1306
+ 'x-tenant': string;
1307
+ authorization: string;
1308
+ }, {
1309
+ 'x-tenant': string;
1310
+ authorization: string;
1311
+ }>>>;
1312
+ };
1313
+ update: {
1314
+ body: z.ZodObject<{
1315
+ name: z.ZodOptional<z.ZodObject<{
1316
+ isRequired: z.ZodBoolean;
1317
+ attributeId: z.ZodString;
1318
+ value: z.ZodString;
1319
+ }, "strip", z.ZodTypeAny, {
1320
+ value: string;
1321
+ isRequired: boolean;
1322
+ attributeId: string;
1323
+ }, {
1324
+ value: string;
1325
+ isRequired: boolean;
1326
+ attributeId: string;
1327
+ }>>;
1328
+ email: z.ZodOptional<z.ZodObject<{
1329
+ isRequired: z.ZodBoolean;
1330
+ attributeId: z.ZodString;
1331
+ value: z.ZodArray<z.ZodObject<{
1332
+ email: z.ZodString;
1333
+ isPrimary: z.ZodBoolean;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ isPrimary: boolean;
1336
+ email: string;
1337
+ }, {
1338
+ isPrimary: boolean;
1339
+ email: string;
1340
+ }>, "many">;
1341
+ }, "strip", z.ZodTypeAny, {
1342
+ value: {
1343
+ isPrimary: boolean;
1344
+ email: string;
1345
+ }[];
1346
+ isRequired: boolean;
1347
+ attributeId: string;
1348
+ }, {
1349
+ value: {
1350
+ isPrimary: boolean;
1351
+ email: string;
1352
+ }[];
1353
+ isRequired: boolean;
1354
+ attributeId: string;
1355
+ }>>;
1356
+ channel: z.ZodOptional<z.ZodObject<{
1357
+ isRequired: z.ZodBoolean;
1358
+ attributeId: z.ZodString;
1359
+ value: z.ZodString;
1360
+ }, "strip", z.ZodTypeAny, {
1361
+ value: string;
1362
+ isRequired: boolean;
1363
+ attributeId: string;
1364
+ }, {
1365
+ value: string;
1366
+ isRequired: boolean;
1367
+ attributeId: string;
1368
+ }>>;
1369
+ address: z.ZodOptional<z.ZodObject<{
1370
+ isRequired: z.ZodBoolean;
1371
+ attributeId: z.ZodString;
1372
+ value: z.ZodString;
1373
+ }, "strip", z.ZodTypeAny, {
1374
+ value: string;
1375
+ isRequired: boolean;
1376
+ attributeId: string;
1377
+ }, {
1378
+ value: string;
1379
+ isRequired: boolean;
1380
+ attributeId: string;
1381
+ }>>;
1382
+ phone: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1383
+ isRequired: z.ZodBoolean;
1384
+ attributeId: z.ZodString;
1385
+ value: z.ZodArray<z.ZodObject<{
1386
+ phone: z.ZodString;
1387
+ isPrimary: z.ZodBoolean;
1388
+ }, "strip", z.ZodTypeAny, {
1389
+ isPrimary: boolean;
1390
+ phone: string;
1391
+ }, {
1392
+ isPrimary: boolean;
1393
+ phone: string;
1394
+ }>, "many">;
1395
+ }, "strip", z.ZodTypeAny, {
1396
+ value: {
1397
+ isPrimary: boolean;
1398
+ phone: string;
1399
+ }[];
1400
+ isRequired: boolean;
1401
+ attributeId: string;
1402
+ }, {
1403
+ value: {
1404
+ isPrimary: boolean;
1405
+ phone: string;
1406
+ }[];
1407
+ isRequired: boolean;
1408
+ attributeId: string;
1409
+ }>>>;
1410
+ notes: z.ZodOptional<z.ZodObject<{
1411
+ isRequired: z.ZodBoolean;
1412
+ attributeId: z.ZodString;
1413
+ value: z.ZodString;
1414
+ }, "strip", z.ZodTypeAny, {
1415
+ value: string;
1416
+ isRequired: boolean;
1417
+ attributeId: string;
1418
+ }, {
1419
+ value: string;
1420
+ isRequired: boolean;
1421
+ attributeId: string;
1422
+ }>>;
1423
+ tags: z.ZodOptional<z.ZodObject<{
1424
+ isRequired: z.ZodBoolean;
1425
+ attributeId: z.ZodString;
1426
+ value: z.ZodArray<z.ZodString, "many">;
1427
+ }, "strip", z.ZodTypeAny, {
1428
+ value: string[];
1429
+ isRequired: boolean;
1430
+ attributeId: string;
1431
+ }, {
1432
+ value: string[];
1433
+ isRequired: boolean;
1434
+ attributeId: string;
1435
+ }>>;
1436
+ company: z.ZodOptional<z.ZodObject<{
1437
+ isRequired: z.ZodBoolean;
1438
+ attributeId: z.ZodString;
1439
+ value: z.ZodString;
1440
+ }, "strip", z.ZodTypeAny, {
1441
+ value: string;
1442
+ isRequired: boolean;
1443
+ attributeId: string;
1444
+ }, {
1445
+ value: string;
1446
+ isRequired: boolean;
1447
+ attributeId: string;
1448
+ }>>;
1449
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1450
+ isRequired: z.ZodBoolean;
1451
+ attributeId: z.ZodString;
1452
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1453
+ type: z.ZodString;
1454
+ isDefaultAttribute: z.ZodBoolean;
1455
+ }, "strip", z.ZodTypeAny, {
1456
+ type: string;
1457
+ value: (string | string[]) & (string | string[] | undefined);
1458
+ isRequired: boolean;
1459
+ attributeId: string;
1460
+ isDefaultAttribute: boolean;
1461
+ }, {
1462
+ type: string;
1463
+ value: (string | string[]) & (string | string[] | undefined);
1464
+ isRequired: boolean;
1465
+ attributeId: string;
1466
+ isDefaultAttribute: boolean;
1467
+ }>, "many">>;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ name?: {
1470
+ value: string;
1471
+ isRequired: boolean;
1472
+ attributeId: string;
1473
+ } | undefined;
1474
+ email?: {
1475
+ value: {
1476
+ isPrimary: boolean;
1477
+ email: string;
1478
+ }[];
1479
+ isRequired: boolean;
1480
+ attributeId: string;
1481
+ } | undefined;
1482
+ channel?: {
1483
+ value: string;
1484
+ isRequired: boolean;
1485
+ attributeId: string;
1486
+ } | undefined;
1487
+ address?: {
1488
+ value: string;
1489
+ isRequired: boolean;
1490
+ attributeId: string;
1491
+ } | undefined;
1492
+ phone?: {
1493
+ value: {
1494
+ isPrimary: boolean;
1495
+ phone: string;
1496
+ }[];
1497
+ isRequired: boolean;
1498
+ attributeId: string;
1499
+ } | undefined;
1500
+ notes?: {
1501
+ value: string;
1502
+ isRequired: boolean;
1503
+ attributeId: string;
1504
+ } | undefined;
1505
+ tags?: {
1506
+ value: string[];
1507
+ isRequired: boolean;
1508
+ attributeId: string;
1509
+ } | undefined;
1510
+ company?: {
1511
+ value: string;
1512
+ isRequired: boolean;
1513
+ attributeId: string;
1514
+ } | undefined;
1515
+ customFields?: {
1516
+ type: string;
1517
+ value: (string | string[]) & (string | string[] | undefined);
1518
+ isRequired: boolean;
1519
+ attributeId: string;
1520
+ isDefaultAttribute: boolean;
1521
+ }[] | undefined;
1522
+ }, {
1523
+ name?: {
1524
+ value: string;
1525
+ isRequired: boolean;
1526
+ attributeId: string;
1527
+ } | undefined;
1528
+ email?: {
1529
+ value: {
1530
+ isPrimary: boolean;
1531
+ email: string;
1532
+ }[];
1533
+ isRequired: boolean;
1534
+ attributeId: string;
1535
+ } | undefined;
1536
+ channel?: {
1537
+ value: string;
1538
+ isRequired: boolean;
1539
+ attributeId: string;
1540
+ } | undefined;
1541
+ address?: {
1542
+ value: string;
1543
+ isRequired: boolean;
1544
+ attributeId: string;
1545
+ } | undefined;
1546
+ phone?: {
1547
+ value: {
1548
+ isPrimary: boolean;
1549
+ phone: string;
1550
+ }[];
1551
+ isRequired: boolean;
1552
+ attributeId: string;
1553
+ } | undefined;
1554
+ notes?: {
1555
+ value: string;
1556
+ isRequired: boolean;
1557
+ attributeId: string;
1558
+ } | undefined;
1559
+ tags?: {
1560
+ value: string[];
1561
+ isRequired: boolean;
1562
+ attributeId: string;
1563
+ } | undefined;
1564
+ company?: {
1565
+ value: string;
1566
+ isRequired: boolean;
1567
+ attributeId: string;
1568
+ } | undefined;
1569
+ customFields?: {
1570
+ type: string;
1571
+ value: (string | string[]) & (string | string[] | undefined);
1572
+ isRequired: boolean;
1573
+ attributeId: string;
1574
+ isDefaultAttribute: boolean;
1575
+ }[] | undefined;
1576
+ }>;
1577
+ summary: "Update a contact";
1578
+ method: "PATCH";
1579
+ pathParams: z.ZodObject<{
1580
+ id: z.ZodString;
1581
+ }, "strip", z.ZodTypeAny, {
1582
+ id: string;
1583
+ }, {
1584
+ id: string;
1585
+ }>;
1586
+ responses: {
1587
+ 200: z.ZodObject<{
1588
+ requestId: z.ZodString;
1589
+ data: z.ZodObject<{
1590
+ id: z.ZodString;
1591
+ createdAt: z.ZodDate;
1592
+ updatedAt: z.ZodDate;
1593
+ deletedAt: z.ZodNullable<z.ZodDate>;
1594
+ name: z.ZodString;
1595
+ address: z.ZodNullable<z.ZodString>;
1596
+ channel: z.ZodNullable<z.ZodString>;
1597
+ notes: z.ZodNullable<z.ZodString>;
1598
+ contactProfile: z.ZodNullable<z.ZodString>;
1599
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
1600
+ tags: z.ZodArray<z.ZodObject<{
1601
+ id: z.ZodString;
1602
+ createdAt: z.ZodDate;
1603
+ updatedAt: z.ZodDate;
1604
+ deletedAt: z.ZodNullable<z.ZodDate>;
1605
+ name: z.ZodString;
1606
+ }, "strip", z.ZodTypeAny, {
1607
+ id: string;
1608
+ name: string;
1609
+ createdAt: Date;
1610
+ updatedAt: Date;
1611
+ deletedAt: Date | null;
1612
+ }, {
1613
+ id: string;
1614
+ name: string;
1615
+ createdAt: Date;
1616
+ updatedAt: Date;
1617
+ deletedAt: Date | null;
1618
+ }>, "many">;
1619
+ company: z.ZodNullable<z.ZodObject<Omit<{
1620
+ id: z.ZodString;
1621
+ createdAt: z.ZodDate;
1622
+ updatedAt: z.ZodDate;
1623
+ deletedAt: z.ZodNullable<z.ZodDate>;
1624
+ name: z.ZodOptional<z.ZodString>;
1625
+ phone: z.ZodOptional<z.ZodString>;
1626
+ address: z.ZodOptional<z.ZodString>;
1627
+ industry: z.ZodOptional<z.ZodString>;
1628
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1629
+ id: z.ZodString;
1630
+ createdAt: z.ZodDate;
1631
+ updatedAt: z.ZodDate;
1632
+ deletedAt: z.ZodNullable<z.ZodDate>;
1633
+ textValue: z.ZodNullable<z.ZodString>;
1634
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1635
+ numberValue: z.ZodNullable<z.ZodNumber>;
1636
+ dateValue: z.ZodNullable<z.ZodString>;
1637
+ attribute: z.ZodObject<Omit<{
1638
+ id: z.ZodString;
1639
+ createdAt: z.ZodDate;
1640
+ updatedAt: z.ZodDate;
1641
+ deletedAt: z.ZodNullable<z.ZodDate>;
1642
+ systemName: z.ZodString;
1643
+ displayName: z.ZodString;
1644
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1645
+ position: z.ZodNumber;
1646
+ isDefault: z.ZodBoolean;
1647
+ isArchived: z.ZodBoolean;
1648
+ isRequired: z.ZodBoolean;
1649
+ isUnique: z.ZodBoolean;
1650
+ options: z.ZodArray<z.ZodObject<{
1651
+ position: z.ZodNumber;
1652
+ value: z.ZodString;
1653
+ label: z.ZodString;
1654
+ isDefault: z.ZodBoolean;
1655
+ id: z.ZodString;
1656
+ }, "strip", z.ZodTypeAny, {
1657
+ id: string;
1658
+ position: number;
1659
+ value: string;
1660
+ label: string;
1661
+ isDefault: boolean;
1662
+ }, {
1663
+ id: string;
1664
+ position: number;
1665
+ value: string;
1666
+ label: string;
1667
+ isDefault: boolean;
1668
+ }>, "many">;
1669
+ group: z.ZodObject<{
1670
+ id: z.ZodString;
1671
+ createdAt: z.ZodDate;
1672
+ updatedAt: z.ZodDate;
1673
+ deletedAt: z.ZodNullable<z.ZodDate>;
1674
+ systemName: z.ZodString;
1675
+ displayName: z.ZodString;
1676
+ }, "strip", z.ZodTypeAny, {
1677
+ id: string;
1678
+ createdAt: Date;
1679
+ updatedAt: Date;
1680
+ deletedAt: Date | null;
1681
+ systemName: string;
1682
+ displayName: string;
1683
+ }, {
1684
+ id: string;
1685
+ createdAt: Date;
1686
+ updatedAt: Date;
1687
+ deletedAt: Date | null;
1688
+ systemName: string;
1689
+ displayName: string;
1690
+ }>;
1691
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1692
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1693
+ id: string;
1694
+ position: number;
1695
+ createdAt: Date;
1696
+ updatedAt: Date;
1697
+ deletedAt: Date | null;
1698
+ isDefault: boolean;
1699
+ systemName: string;
1700
+ displayName: string;
1701
+ isArchived: boolean;
1702
+ isRequired: boolean;
1703
+ isUnique: boolean;
1704
+ }, {
1705
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1706
+ id: string;
1707
+ position: number;
1708
+ createdAt: Date;
1709
+ updatedAt: Date;
1710
+ deletedAt: Date | null;
1711
+ isDefault: boolean;
1712
+ systemName: string;
1713
+ displayName: string;
1714
+ isArchived: boolean;
1715
+ isRequired: boolean;
1716
+ isUnique: boolean;
1717
+ }>;
1718
+ }, "strip", z.ZodTypeAny, {
1719
+ id: string;
1720
+ createdAt: Date;
1721
+ updatedAt: Date;
1722
+ deletedAt: Date | null;
1723
+ attribute: {
1724
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1725
+ id: string;
1726
+ position: number;
1727
+ createdAt: Date;
1728
+ updatedAt: Date;
1729
+ deletedAt: Date | null;
1730
+ isDefault: boolean;
1731
+ systemName: string;
1732
+ displayName: string;
1733
+ isArchived: boolean;
1734
+ isRequired: boolean;
1735
+ isUnique: boolean;
1736
+ };
1737
+ textValue: string | null;
1738
+ booleanValue: boolean | null;
1739
+ numberValue: number | null;
1740
+ dateValue: string | null;
1741
+ }, {
1742
+ id: string;
1743
+ createdAt: Date;
1744
+ updatedAt: Date;
1745
+ deletedAt: Date | null;
1746
+ attribute: {
1747
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1748
+ id: string;
1749
+ position: number;
1750
+ createdAt: Date;
1751
+ updatedAt: Date;
1752
+ deletedAt: Date | null;
1753
+ isDefault: boolean;
1754
+ systemName: string;
1755
+ displayName: string;
1756
+ isArchived: boolean;
1757
+ isRequired: boolean;
1758
+ isUnique: boolean;
1759
+ };
1760
+ textValue: string | null;
1761
+ booleanValue: boolean | null;
1762
+ numberValue: number | null;
1763
+ dateValue: string | null;
1764
+ }>, "many">>;
1765
+ }, "customFields">, "strip", z.ZodTypeAny, {
1766
+ id: string;
1767
+ createdAt: Date;
1768
+ updatedAt: Date;
1769
+ deletedAt: Date | null;
1770
+ address?: string | undefined;
1771
+ name?: string | undefined;
1772
+ phone?: string | undefined;
1773
+ industry?: string | undefined;
1774
+ }, {
1775
+ id: string;
1776
+ createdAt: Date;
1777
+ updatedAt: Date;
1778
+ deletedAt: Date | null;
1779
+ address?: string | undefined;
1780
+ name?: string | undefined;
1781
+ phone?: string | undefined;
1782
+ industry?: string | undefined;
1783
+ }>>;
1784
+ customFields: z.ZodArray<z.ZodObject<{
1785
+ id: z.ZodString;
1786
+ createdAt: z.ZodDate;
1787
+ updatedAt: z.ZodDate;
1788
+ deletedAt: z.ZodNullable<z.ZodDate>;
1789
+ textValue: z.ZodNullable<z.ZodString>;
1790
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1791
+ numberValue: z.ZodNullable<z.ZodNumber>;
1792
+ dateValue: z.ZodNullable<z.ZodDate>;
1793
+ attribute: z.ZodObject<Omit<{
1794
+ id: z.ZodString;
1795
+ createdAt: z.ZodDate;
1796
+ updatedAt: z.ZodDate;
1797
+ deletedAt: z.ZodNullable<z.ZodDate>;
1798
+ systemName: z.ZodString;
1799
+ displayName: z.ZodString;
1800
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1801
+ position: z.ZodNumber;
1802
+ isDefault: z.ZodBoolean;
1803
+ isArchived: z.ZodBoolean;
1804
+ isRequired: z.ZodBoolean;
1805
+ isUnique: z.ZodBoolean;
1806
+ options: z.ZodArray<z.ZodObject<{
1807
+ position: z.ZodNumber;
1808
+ value: z.ZodString;
1809
+ label: z.ZodString;
1810
+ isDefault: z.ZodBoolean;
1811
+ id: z.ZodString;
1812
+ }, "strip", z.ZodTypeAny, {
1813
+ id: string;
1814
+ position: number;
1815
+ value: string;
1816
+ label: string;
1817
+ isDefault: boolean;
1818
+ }, {
1819
+ id: string;
1820
+ position: number;
1821
+ value: string;
1822
+ label: string;
1823
+ isDefault: boolean;
1824
+ }>, "many">;
1825
+ group: z.ZodObject<{
1826
+ id: z.ZodString;
1827
+ createdAt: z.ZodDate;
1828
+ updatedAt: z.ZodDate;
1829
+ deletedAt: z.ZodNullable<z.ZodDate>;
1830
+ systemName: z.ZodString;
1831
+ displayName: z.ZodString;
1832
+ }, "strip", z.ZodTypeAny, {
1833
+ id: string;
1834
+ createdAt: Date;
1835
+ updatedAt: Date;
1836
+ deletedAt: Date | null;
1837
+ systemName: string;
1838
+ displayName: string;
1839
+ }, {
1840
+ id: string;
1841
+ createdAt: Date;
1842
+ updatedAt: Date;
1843
+ deletedAt: Date | null;
1844
+ systemName: string;
1845
+ displayName: string;
1846
+ }>;
1847
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1848
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1849
+ id: string;
1850
+ position: number;
1851
+ createdAt: Date;
1852
+ updatedAt: Date;
1853
+ deletedAt: Date | null;
1854
+ isDefault: boolean;
1855
+ systemName: string;
1856
+ displayName: string;
1857
+ isArchived: boolean;
1858
+ isRequired: boolean;
1859
+ isUnique: boolean;
1860
+ }, {
1861
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1862
+ id: string;
1863
+ position: number;
1864
+ createdAt: Date;
1865
+ updatedAt: Date;
1866
+ deletedAt: Date | null;
1867
+ isDefault: boolean;
1868
+ systemName: string;
1869
+ displayName: string;
1870
+ isArchived: boolean;
1871
+ isRequired: boolean;
1872
+ isUnique: boolean;
1873
+ }>;
1874
+ uploads: z.ZodArray<z.ZodObject<{
1875
+ id: z.ZodString;
1876
+ createdAt: z.ZodDate;
1877
+ updatedAt: z.ZodDate;
1878
+ deletedAt: z.ZodNullable<z.ZodDate>;
1879
+ customFieldId: z.ZodString;
1880
+ upload: z.ZodObject<{
1881
+ id: z.ZodString;
1882
+ createdAt: z.ZodDate;
1883
+ updatedAt: z.ZodDate;
1884
+ deletedAt: z.ZodNullable<z.ZodDate>;
1885
+ bucketName: z.ZodString;
1886
+ fileName: z.ZodString;
1887
+ fileSize: z.ZodNumber;
1888
+ fileKey: z.ZodString;
1889
+ }, "strip", z.ZodTypeAny, {
1890
+ id: string;
1891
+ createdAt: Date;
1892
+ updatedAt: Date;
1893
+ deletedAt: Date | null;
1894
+ fileName: string;
1895
+ fileKey: string;
1896
+ bucketName: string;
1897
+ fileSize: number;
1898
+ }, {
1899
+ id: string;
1900
+ createdAt: Date;
1901
+ updatedAt: Date;
1902
+ deletedAt: Date | null;
1903
+ fileName: string;
1904
+ fileKey: string;
1905
+ bucketName: string;
1906
+ fileSize: number;
1907
+ }>;
1908
+ }, "strip", z.ZodTypeAny, {
1909
+ id: string;
1910
+ createdAt: Date;
1911
+ updatedAt: Date;
1912
+ deletedAt: Date | null;
1913
+ customFieldId: string;
1914
+ upload: {
1915
+ id: string;
1916
+ createdAt: Date;
1917
+ updatedAt: Date;
1918
+ deletedAt: Date | null;
1919
+ fileName: string;
1920
+ fileKey: string;
1921
+ bucketName: string;
1922
+ fileSize: number;
1923
+ };
1924
+ }, {
1925
+ id: string;
1926
+ createdAt: Date;
1927
+ updatedAt: Date;
1928
+ deletedAt: Date | null;
1929
+ customFieldId: string;
1930
+ upload: {
1931
+ id: string;
1932
+ createdAt: Date;
1933
+ updatedAt: Date;
1934
+ deletedAt: Date | null;
1935
+ fileName: string;
1936
+ fileKey: string;
1937
+ bucketName: string;
1938
+ fileSize: number;
1939
+ };
1940
+ }>, "many">;
1941
+ }, "strip", z.ZodTypeAny, {
1942
+ id: string;
1943
+ createdAt: Date;
1944
+ updatedAt: Date;
1945
+ deletedAt: Date | null;
1946
+ attribute: {
1947
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1948
+ id: string;
1949
+ position: number;
1950
+ createdAt: Date;
1951
+ updatedAt: Date;
1952
+ deletedAt: Date | null;
1953
+ isDefault: boolean;
1954
+ systemName: string;
1955
+ displayName: string;
1956
+ isArchived: boolean;
1957
+ isRequired: boolean;
1958
+ isUnique: boolean;
1959
+ };
1960
+ textValue: string | null;
1961
+ booleanValue: boolean | null;
1962
+ numberValue: number | null;
1963
+ dateValue: Date | null;
1964
+ uploads: {
1965
+ id: string;
1966
+ createdAt: Date;
1967
+ updatedAt: Date;
1968
+ deletedAt: Date | null;
1969
+ customFieldId: string;
1970
+ upload: {
1971
+ id: string;
1972
+ createdAt: Date;
1973
+ updatedAt: Date;
1974
+ deletedAt: Date | null;
1975
+ fileName: string;
1976
+ fileKey: string;
1977
+ bucketName: string;
1978
+ fileSize: number;
1979
+ };
1980
+ }[];
1981
+ }, {
1982
+ id: string;
1983
+ createdAt: Date;
1984
+ updatedAt: Date;
1985
+ deletedAt: Date | null;
1986
+ attribute: {
1987
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1988
+ id: string;
1989
+ position: number;
1990
+ createdAt: Date;
1991
+ updatedAt: Date;
1992
+ deletedAt: Date | null;
1993
+ isDefault: boolean;
1994
+ systemName: string;
1995
+ displayName: string;
1996
+ isArchived: boolean;
1997
+ isRequired: boolean;
1998
+ isUnique: boolean;
1999
+ };
2000
+ textValue: string | null;
2001
+ booleanValue: boolean | null;
2002
+ numberValue: number | null;
2003
+ dateValue: Date | null;
2004
+ uploads: {
2005
+ id: string;
2006
+ createdAt: Date;
2007
+ updatedAt: Date;
2008
+ deletedAt: Date | null;
2009
+ customFieldId: string;
2010
+ upload: {
2011
+ id: string;
2012
+ createdAt: Date;
2013
+ updatedAt: Date;
2014
+ deletedAt: Date | null;
2015
+ fileName: string;
2016
+ fileKey: string;
2017
+ bucketName: string;
2018
+ fileSize: number;
2019
+ };
2020
+ }[];
2021
+ }>, "many">;
2022
+ contactEmails: z.ZodArray<z.ZodObject<{
2023
+ id: z.ZodString;
2024
+ createdAt: z.ZodDate;
2025
+ updatedAt: z.ZodDate;
2026
+ deletedAt: z.ZodNullable<z.ZodDate>;
2027
+ email: z.ZodString;
2028
+ isPrimary: z.ZodBoolean;
2029
+ }, "strip", z.ZodTypeAny, {
2030
+ id: string;
2031
+ isPrimary: boolean;
2032
+ email: string;
2033
+ createdAt: Date;
2034
+ updatedAt: Date;
2035
+ deletedAt: Date | null;
2036
+ }, {
2037
+ id: string;
2038
+ isPrimary: boolean;
2039
+ email: string;
2040
+ createdAt: Date;
2041
+ updatedAt: Date;
2042
+ deletedAt: Date | null;
2043
+ }>, "many">;
2044
+ contactPhones: z.ZodArray<z.ZodObject<{
2045
+ id: z.ZodString;
2046
+ createdAt: z.ZodDate;
2047
+ updatedAt: z.ZodDate;
2048
+ deletedAt: z.ZodNullable<z.ZodDate>;
2049
+ phone: z.ZodString;
2050
+ isPrimary: z.ZodBoolean;
2051
+ }, "strip", z.ZodTypeAny, {
2052
+ id: string;
2053
+ isPrimary: boolean;
2054
+ createdAt: Date;
2055
+ updatedAt: Date;
2056
+ deletedAt: Date | null;
2057
+ phone: string;
2058
+ }, {
2059
+ id: string;
2060
+ isPrimary: boolean;
2061
+ createdAt: Date;
2062
+ updatedAt: Date;
2063
+ deletedAt: Date | null;
2064
+ phone: string;
2065
+ }>, "many">;
2066
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2067
+ entityId: z.ZodString;
2068
+ description: z.ZodString;
2069
+ entityType: z.ZodObject<{
2070
+ entity: z.ZodString;
2071
+ description: z.ZodNullable<z.ZodString>;
2072
+ }, "strip", z.ZodTypeAny, {
2073
+ description: string | null;
2074
+ entity: string;
2075
+ }, {
2076
+ description: string | null;
2077
+ entity: string;
2078
+ }>;
2079
+ }, "strip", z.ZodTypeAny, {
2080
+ description: string;
2081
+ entityId: string;
2082
+ entityType: {
2083
+ description: string | null;
2084
+ entity: string;
2085
+ };
2086
+ }, {
2087
+ description: string;
2088
+ entityId: string;
2089
+ entityType: {
2090
+ description: string | null;
2091
+ entity: string;
2092
+ };
2093
+ }>, "many">>;
2094
+ }, "strip", z.ZodTypeAny, {
2095
+ id: string;
2096
+ channel: string | null;
2097
+ address: string | null;
2098
+ name: string;
2099
+ createdAt: Date;
2100
+ updatedAt: Date;
2101
+ deletedAt: Date | null;
2102
+ customFields: {
2103
+ id: string;
2104
+ createdAt: Date;
2105
+ updatedAt: Date;
2106
+ deletedAt: Date | null;
2107
+ attribute: {
2108
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2109
+ id: string;
2110
+ position: number;
2111
+ createdAt: Date;
2112
+ updatedAt: Date;
2113
+ deletedAt: Date | null;
2114
+ isDefault: boolean;
2115
+ systemName: string;
2116
+ displayName: string;
2117
+ isArchived: boolean;
2118
+ isRequired: boolean;
2119
+ isUnique: boolean;
2120
+ };
2121
+ textValue: string | null;
2122
+ booleanValue: boolean | null;
2123
+ numberValue: number | null;
2124
+ dateValue: Date | null;
2125
+ uploads: {
2126
+ id: string;
2127
+ createdAt: Date;
2128
+ updatedAt: Date;
2129
+ deletedAt: Date | null;
2130
+ customFieldId: string;
2131
+ upload: {
2132
+ id: string;
2133
+ createdAt: Date;
2134
+ updatedAt: Date;
2135
+ deletedAt: Date | null;
2136
+ fileName: string;
2137
+ fileKey: string;
2138
+ bucketName: string;
2139
+ fileSize: number;
2140
+ };
2141
+ }[];
2142
+ }[];
2143
+ notes: string | null;
2144
+ contactProfile: string | null;
2145
+ socialProfileUrl: string | null;
2146
+ tags: {
2147
+ id: string;
2148
+ name: string;
2149
+ createdAt: Date;
2150
+ updatedAt: Date;
2151
+ deletedAt: Date | null;
2152
+ }[];
2153
+ company: {
2154
+ id: string;
2155
+ createdAt: Date;
2156
+ updatedAt: Date;
2157
+ deletedAt: Date | null;
2158
+ address?: string | undefined;
2159
+ name?: string | undefined;
2160
+ phone?: string | undefined;
2161
+ industry?: string | undefined;
2162
+ } | null;
2163
+ contactEmails: {
2164
+ id: string;
2165
+ isPrimary: boolean;
2166
+ email: string;
2167
+ createdAt: Date;
2168
+ updatedAt: Date;
2169
+ deletedAt: Date | null;
2170
+ }[];
2171
+ contactPhones: {
2172
+ id: string;
2173
+ isPrimary: boolean;
2174
+ createdAt: Date;
2175
+ updatedAt: Date;
2176
+ deletedAt: Date | null;
2177
+ phone: string;
2178
+ }[];
2179
+ activityLogs?: {
2180
+ description: string;
2181
+ entityId: string;
2182
+ entityType: {
2183
+ description: string | null;
2184
+ entity: string;
2185
+ };
2186
+ }[] | undefined;
2187
+ }, {
2188
+ id: string;
2189
+ channel: string | null;
2190
+ address: string | null;
2191
+ name: string;
2192
+ createdAt: Date;
2193
+ updatedAt: Date;
2194
+ deletedAt: Date | null;
2195
+ customFields: {
2196
+ id: string;
2197
+ createdAt: Date;
2198
+ updatedAt: Date;
2199
+ deletedAt: Date | null;
2200
+ attribute: {
2201
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2202
+ id: string;
2203
+ position: number;
2204
+ createdAt: Date;
2205
+ updatedAt: Date;
2206
+ deletedAt: Date | null;
2207
+ isDefault: boolean;
2208
+ systemName: string;
2209
+ displayName: string;
2210
+ isArchived: boolean;
2211
+ isRequired: boolean;
2212
+ isUnique: boolean;
2213
+ };
2214
+ textValue: string | null;
2215
+ booleanValue: boolean | null;
2216
+ numberValue: number | null;
2217
+ dateValue: Date | null;
2218
+ uploads: {
2219
+ id: string;
2220
+ createdAt: Date;
2221
+ updatedAt: Date;
2222
+ deletedAt: Date | null;
2223
+ customFieldId: string;
2224
+ upload: {
2225
+ id: string;
2226
+ createdAt: Date;
2227
+ updatedAt: Date;
2228
+ deletedAt: Date | null;
2229
+ fileName: string;
2230
+ fileKey: string;
2231
+ bucketName: string;
2232
+ fileSize: number;
2233
+ };
2234
+ }[];
2235
+ }[];
2236
+ notes: string | null;
2237
+ contactProfile: string | null;
2238
+ socialProfileUrl: string | null;
2239
+ tags: {
2240
+ id: string;
2241
+ name: string;
2242
+ createdAt: Date;
2243
+ updatedAt: Date;
2244
+ deletedAt: Date | null;
2245
+ }[];
2246
+ company: {
2247
+ id: string;
2248
+ createdAt: Date;
2249
+ updatedAt: Date;
2250
+ deletedAt: Date | null;
2251
+ address?: string | undefined;
2252
+ name?: string | undefined;
2253
+ phone?: string | undefined;
2254
+ industry?: string | undefined;
2255
+ } | null;
2256
+ contactEmails: {
2257
+ id: string;
2258
+ isPrimary: boolean;
2259
+ email: string;
2260
+ createdAt: Date;
2261
+ updatedAt: Date;
2262
+ deletedAt: Date | null;
2263
+ }[];
2264
+ contactPhones: {
2265
+ id: string;
2266
+ isPrimary: boolean;
2267
+ createdAt: Date;
2268
+ updatedAt: Date;
2269
+ deletedAt: Date | null;
2270
+ phone: string;
2271
+ }[];
2272
+ activityLogs?: {
2273
+ description: string;
2274
+ entityId: string;
2275
+ entityType: {
2276
+ description: string | null;
2277
+ entity: string;
2278
+ };
2279
+ }[] | undefined;
2280
+ }>;
2281
+ }, "strip", z.ZodTypeAny, {
2282
+ data: {
2283
+ id: string;
2284
+ channel: string | null;
2285
+ address: string | null;
2286
+ name: string;
2287
+ createdAt: Date;
2288
+ updatedAt: Date;
2289
+ deletedAt: Date | null;
2290
+ customFields: {
2291
+ id: string;
2292
+ createdAt: Date;
2293
+ updatedAt: Date;
2294
+ deletedAt: Date | null;
2295
+ attribute: {
2296
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2297
+ id: string;
2298
+ position: number;
2299
+ createdAt: Date;
2300
+ updatedAt: Date;
2301
+ deletedAt: Date | null;
2302
+ isDefault: boolean;
2303
+ systemName: string;
2304
+ displayName: string;
2305
+ isArchived: boolean;
2306
+ isRequired: boolean;
2307
+ isUnique: boolean;
2308
+ };
2309
+ textValue: string | null;
2310
+ booleanValue: boolean | null;
2311
+ numberValue: number | null;
2312
+ dateValue: Date | null;
2313
+ uploads: {
2314
+ id: string;
2315
+ createdAt: Date;
2316
+ updatedAt: Date;
2317
+ deletedAt: Date | null;
2318
+ customFieldId: string;
2319
+ upload: {
2320
+ id: string;
2321
+ createdAt: Date;
2322
+ updatedAt: Date;
2323
+ deletedAt: Date | null;
2324
+ fileName: string;
2325
+ fileKey: string;
2326
+ bucketName: string;
2327
+ fileSize: number;
2328
+ };
2329
+ }[];
2330
+ }[];
2331
+ notes: string | null;
2332
+ contactProfile: string | null;
2333
+ socialProfileUrl: string | null;
2334
+ tags: {
2335
+ id: string;
2336
+ name: string;
2337
+ createdAt: Date;
2338
+ updatedAt: Date;
2339
+ deletedAt: Date | null;
2340
+ }[];
2341
+ company: {
2342
+ id: string;
2343
+ createdAt: Date;
2344
+ updatedAt: Date;
2345
+ deletedAt: Date | null;
2346
+ address?: string | undefined;
2347
+ name?: string | undefined;
2348
+ phone?: string | undefined;
2349
+ industry?: string | undefined;
2350
+ } | null;
2351
+ contactEmails: {
2352
+ id: string;
2353
+ isPrimary: boolean;
2354
+ email: string;
2355
+ createdAt: Date;
2356
+ updatedAt: Date;
2357
+ deletedAt: Date | null;
2358
+ }[];
2359
+ contactPhones: {
2360
+ id: string;
2361
+ isPrimary: boolean;
2362
+ createdAt: Date;
2363
+ updatedAt: Date;
2364
+ deletedAt: Date | null;
2365
+ phone: string;
2366
+ }[];
2367
+ activityLogs?: {
2368
+ description: string;
2369
+ entityId: string;
2370
+ entityType: {
2371
+ description: string | null;
2372
+ entity: string;
2373
+ };
2374
+ }[] | undefined;
2375
+ };
2376
+ requestId: string;
2377
+ }, {
2378
+ data: {
2379
+ id: string;
2380
+ channel: string | null;
2381
+ address: string | null;
2382
+ name: string;
2383
+ createdAt: Date;
2384
+ updatedAt: Date;
2385
+ deletedAt: Date | null;
2386
+ customFields: {
2387
+ id: string;
2388
+ createdAt: Date;
2389
+ updatedAt: Date;
2390
+ deletedAt: Date | null;
2391
+ attribute: {
2392
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2393
+ id: string;
2394
+ position: number;
2395
+ createdAt: Date;
2396
+ updatedAt: Date;
2397
+ deletedAt: Date | null;
2398
+ isDefault: boolean;
2399
+ systemName: string;
2400
+ displayName: string;
2401
+ isArchived: boolean;
2402
+ isRequired: boolean;
2403
+ isUnique: boolean;
2404
+ };
2405
+ textValue: string | null;
2406
+ booleanValue: boolean | null;
2407
+ numberValue: number | null;
2408
+ dateValue: Date | null;
2409
+ uploads: {
2410
+ id: string;
2411
+ createdAt: Date;
2412
+ updatedAt: Date;
2413
+ deletedAt: Date | null;
2414
+ customFieldId: string;
2415
+ upload: {
2416
+ id: string;
2417
+ createdAt: Date;
2418
+ updatedAt: Date;
2419
+ deletedAt: Date | null;
2420
+ fileName: string;
2421
+ fileKey: string;
2422
+ bucketName: string;
2423
+ fileSize: number;
2424
+ };
2425
+ }[];
2426
+ }[];
2427
+ notes: string | null;
2428
+ contactProfile: string | null;
2429
+ socialProfileUrl: string | null;
2430
+ tags: {
2431
+ id: string;
2432
+ name: string;
2433
+ createdAt: Date;
2434
+ updatedAt: Date;
2435
+ deletedAt: Date | null;
2436
+ }[];
2437
+ company: {
2438
+ id: string;
2439
+ createdAt: Date;
2440
+ updatedAt: Date;
2441
+ deletedAt: Date | null;
2442
+ address?: string | undefined;
2443
+ name?: string | undefined;
2444
+ phone?: string | undefined;
2445
+ industry?: string | undefined;
2446
+ } | null;
2447
+ contactEmails: {
2448
+ id: string;
2449
+ isPrimary: boolean;
2450
+ email: string;
2451
+ createdAt: Date;
2452
+ updatedAt: Date;
2453
+ deletedAt: Date | null;
2454
+ }[];
2455
+ contactPhones: {
2456
+ id: string;
2457
+ isPrimary: boolean;
2458
+ createdAt: Date;
2459
+ updatedAt: Date;
2460
+ deletedAt: Date | null;
2461
+ phone: string;
2462
+ }[];
2463
+ activityLogs?: {
2464
+ description: string;
2465
+ entityId: string;
2466
+ entityType: {
2467
+ description: string | null;
2468
+ entity: string;
2469
+ };
2470
+ }[] | undefined;
2471
+ };
2472
+ requestId: string;
2473
+ }>;
2474
+ 400: z.ZodObject<{
2475
+ message: z.ZodString;
2476
+ }, "strip", z.ZodTypeAny, {
2477
+ message: string;
2478
+ }, {
2479
+ message: string;
2480
+ }>;
2481
+ 409: z.ZodObject<{
2482
+ message: z.ZodString;
2483
+ }, "strip", z.ZodTypeAny, {
2484
+ message: string;
2485
+ }, {
2486
+ message: string;
2487
+ }>;
2488
+ 500: z.ZodObject<{
2489
+ message: z.ZodString;
2490
+ }, "strip", z.ZodTypeAny, {
2491
+ message: string;
2492
+ }, {
2493
+ message: string;
2494
+ }>;
2495
+ 401: z.ZodObject<{
2496
+ message: z.ZodString;
2497
+ error: z.ZodAny;
2498
+ }, "strip", z.ZodTypeAny, {
2499
+ message: string;
2500
+ error?: any;
2501
+ }, {
2502
+ message: string;
2503
+ error?: any;
2504
+ }>;
2505
+ 404: z.ZodObject<{
2506
+ message: z.ZodString;
2507
+ error: z.ZodAny;
2508
+ }, "strip", z.ZodTypeAny, {
2509
+ message: string;
2510
+ error?: any;
2511
+ }, {
2512
+ message: string;
2513
+ error?: any;
2514
+ }>;
2515
+ 422: z.ZodObject<{
2516
+ message: z.ZodString;
2517
+ error: z.ZodAny;
2518
+ }, "strip", z.ZodTypeAny, {
2519
+ message: string;
2520
+ error?: any;
2521
+ }, {
2522
+ message: string;
2523
+ error?: any;
2524
+ }>;
2525
+ };
2526
+ path: "contact/:id";
2527
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2528
+ 'x-tenant': z.ZodString;
2529
+ authorization: z.ZodString;
2530
+ }, "strip", z.ZodTypeAny, {
2531
+ 'x-tenant': string;
2532
+ authorization: string;
2533
+ }, {
2534
+ 'x-tenant': string;
2535
+ authorization: string;
2536
+ }>>>;
2537
+ };
2538
+ };
2539
+ //# sourceMappingURL=index.d.ts.map