@kl1/contracts 1.0.15 → 1.0.17

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 (39) hide show
  1. package/dist/index.js +1551 -851
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1551 -851
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/app/index.d.ts +17 -0
  6. package/dist/src/app/index.d.ts.map +1 -0
  7. package/dist/src/call-log/schema.d.ts +2 -2
  8. package/dist/src/chat/index.d.ts +1437 -3140
  9. package/dist/src/chat/index.d.ts.map +1 -1
  10. package/dist/src/chat/schema.d.ts +256 -47
  11. package/dist/src/chat/schema.d.ts.map +1 -1
  12. package/dist/src/chat/validation.d.ts +5327 -92
  13. package/dist/src/chat/validation.d.ts.map +1 -1
  14. package/dist/src/contact/index.d.ts +4079 -581
  15. package/dist/src/contact/index.d.ts.map +1 -1
  16. package/dist/src/contact/validation.d.ts +3148 -0
  17. package/dist/src/contact/validation.d.ts.map +1 -1
  18. package/dist/src/contract.d.ts +25332 -13715
  19. package/dist/src/contract.d.ts.map +1 -1
  20. package/dist/src/cx-log/index.d.ts +8 -8
  21. package/dist/src/cx-log/schema.d.ts +4 -4
  22. package/dist/src/mail/mail-contract.d.ts +1316 -1316
  23. package/dist/src/mail/mail-server.d.ts +216 -0
  24. package/dist/src/mail/mail-server.d.ts.map +1 -0
  25. package/dist/src/mail/message-contract.d.ts +56 -56
  26. package/dist/src/mail/room-contract.d.ts +1254 -1254
  27. package/dist/src/mail/schemas/message.schema.d.ts +33 -33
  28. package/dist/src/mail/schemas/room-validation.schema.d.ts +408 -408
  29. package/dist/src/mail/schemas/room.schema.d.ts +270 -270
  30. package/dist/src/messenger/index.d.ts +5232 -54
  31. package/dist/src/messenger/index.d.ts.map +1 -1
  32. package/dist/src/platform-contact/schema.d.ts +2 -2
  33. package/dist/src/ticket/index.d.ts +4662 -0
  34. package/dist/src/ticket/index.d.ts.map +1 -0
  35. package/dist/src/ticket/schema.d.ts +677 -5
  36. package/dist/src/ticket/schema.d.ts.map +1 -1
  37. package/dist/src/ticket/validation.d.ts +637 -0
  38. package/dist/src/ticket/validation.d.ts.map +1 -0
  39. package/package.json +1 -1
@@ -0,0 +1,4662 @@
1
+ import z from 'zod';
2
+ import { TicketParamsSchema, GetAllTicketQuerySchema } from './schema';
3
+ import { CreateTicketAttachmentRecordsSchema, CreateTicketValidationSchema, UpdateTicketValidationSchema } from './validation';
4
+ export type CreateTicketRequest = z.infer<typeof CreateTicketValidationSchema>;
5
+ export type UpdateTicketRequest = z.infer<typeof UpdateTicketValidationSchema>;
6
+ export type CreateTicketAttachmentRecordsRequest = z.infer<typeof CreateTicketAttachmentRecordsSchema>;
7
+ export type GetAllTicketQueryRequest = z.infer<typeof GetAllTicketQuerySchema>;
8
+ export type GetTicketParamsRequest = z.infer<typeof TicketParamsSchema>;
9
+ export declare const ticketContract: {
10
+ createTicket: {
11
+ body: z.ZodObject<{
12
+ title: 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
+ description: z.ZodObject<{
26
+ isRequired: z.ZodBoolean;
27
+ attributeId: z.ZodString;
28
+ value: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ value: string;
31
+ isRequired: boolean;
32
+ attributeId: string;
33
+ }, {
34
+ value: string;
35
+ isRequired: boolean;
36
+ attributeId: string;
37
+ }>;
38
+ status: z.ZodObject<{
39
+ isRequired: z.ZodBoolean;
40
+ attributeId: z.ZodString;
41
+ value: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ value: string;
44
+ isRequired: boolean;
45
+ attributeId: string;
46
+ }, {
47
+ value: string;
48
+ isRequired: boolean;
49
+ attributeId: string;
50
+ }>;
51
+ type: z.ZodObject<{
52
+ isRequired: z.ZodBoolean;
53
+ attributeId: z.ZodString;
54
+ value: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ value: string;
57
+ isRequired: boolean;
58
+ attributeId: string;
59
+ }, {
60
+ value: string;
61
+ isRequired: boolean;
62
+ attributeId: string;
63
+ }>;
64
+ priority: z.ZodObject<{
65
+ isRequired: z.ZodBoolean;
66
+ attributeId: z.ZodString;
67
+ value: z.ZodString;
68
+ }, "strip", z.ZodTypeAny, {
69
+ value: string;
70
+ isRequired: boolean;
71
+ attributeId: string;
72
+ }, {
73
+ value: string;
74
+ isRequired: boolean;
75
+ attributeId: string;
76
+ }>;
77
+ contact: z.ZodObject<{
78
+ isRequired: z.ZodBoolean;
79
+ attributeId: z.ZodString;
80
+ value: z.ZodString;
81
+ }, "strip", z.ZodTypeAny, {
82
+ value: string;
83
+ isRequired: boolean;
84
+ attributeId: string;
85
+ }, {
86
+ value: string;
87
+ isRequired: boolean;
88
+ attributeId: string;
89
+ }>;
90
+ assignee: z.ZodObject<{
91
+ isRequired: z.ZodBoolean;
92
+ attributeId: z.ZodString;
93
+ value: z.ZodString;
94
+ }, "strip", z.ZodTypeAny, {
95
+ value: string;
96
+ isRequired: boolean;
97
+ attributeId: string;
98
+ }, {
99
+ value: string;
100
+ isRequired: boolean;
101
+ attributeId: string;
102
+ }>;
103
+ channel: z.ZodObject<{
104
+ isRequired: z.ZodBoolean;
105
+ attributeId: z.ZodString;
106
+ value: z.ZodString;
107
+ }, "strip", z.ZodTypeAny, {
108
+ value: string;
109
+ isRequired: boolean;
110
+ attributeId: string;
111
+ }, {
112
+ value: string;
113
+ isRequired: boolean;
114
+ attributeId: string;
115
+ }>;
116
+ tags: z.ZodObject<{
117
+ isRequired: z.ZodBoolean;
118
+ attributeId: z.ZodString;
119
+ value: z.ZodArray<z.ZodString, "many">;
120
+ }, "strip", z.ZodTypeAny, {
121
+ value: string[];
122
+ isRequired: boolean;
123
+ attributeId: string;
124
+ }, {
125
+ value: string[];
126
+ isRequired: boolean;
127
+ attributeId: string;
128
+ }>;
129
+ categories: z.ZodObject<{
130
+ isRequired: z.ZodBoolean;
131
+ attributeId: z.ZodString;
132
+ value: z.ZodArray<z.ZodString, "many">;
133
+ }, "strip", z.ZodTypeAny, {
134
+ value: string[];
135
+ isRequired: boolean;
136
+ attributeId: string;
137
+ }, {
138
+ value: string[];
139
+ isRequired: boolean;
140
+ attributeId: string;
141
+ }>;
142
+ customFields: z.ZodArray<z.ZodObject<{
143
+ isRequired: z.ZodBoolean;
144
+ attributeId: z.ZodString;
145
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
146
+ type: z.ZodString;
147
+ isDefaultAttribute: z.ZodBoolean;
148
+ }, "strip", z.ZodTypeAny, {
149
+ type: string;
150
+ value: (string | string[]) & (string | string[] | undefined);
151
+ isRequired: boolean;
152
+ attributeId: string;
153
+ isDefaultAttribute: boolean;
154
+ }, {
155
+ type: string;
156
+ value: (string | string[]) & (string | string[] | undefined);
157
+ isRequired: boolean;
158
+ attributeId: string;
159
+ isDefaultAttribute: boolean;
160
+ }>, "many">;
161
+ reasonToAssign: z.ZodObject<{
162
+ value: z.ZodString;
163
+ }, "strip", z.ZodTypeAny, {
164
+ value: string;
165
+ }, {
166
+ value: string;
167
+ }>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ type: {
170
+ value: string;
171
+ isRequired: boolean;
172
+ attributeId: string;
173
+ };
174
+ channel: {
175
+ value: string;
176
+ isRequired: boolean;
177
+ attributeId: string;
178
+ };
179
+ priority: {
180
+ value: string;
181
+ isRequired: boolean;
182
+ attributeId: string;
183
+ };
184
+ title: {
185
+ value: string;
186
+ isRequired: boolean;
187
+ attributeId: string;
188
+ };
189
+ description: {
190
+ value: string;
191
+ isRequired: boolean;
192
+ attributeId: string;
193
+ };
194
+ status: {
195
+ value: string;
196
+ isRequired: boolean;
197
+ attributeId: string;
198
+ };
199
+ categories: {
200
+ value: string[];
201
+ isRequired: boolean;
202
+ attributeId: string;
203
+ };
204
+ contact: {
205
+ value: string;
206
+ isRequired: boolean;
207
+ attributeId: string;
208
+ };
209
+ customFields: {
210
+ type: string;
211
+ value: (string | string[]) & (string | string[] | undefined);
212
+ isRequired: boolean;
213
+ attributeId: string;
214
+ isDefaultAttribute: boolean;
215
+ }[];
216
+ tags: {
217
+ value: string[];
218
+ isRequired: boolean;
219
+ attributeId: string;
220
+ };
221
+ assignee: {
222
+ value: string;
223
+ isRequired: boolean;
224
+ attributeId: string;
225
+ };
226
+ reasonToAssign: {
227
+ value: string;
228
+ };
229
+ }, {
230
+ type: {
231
+ value: string;
232
+ isRequired: boolean;
233
+ attributeId: string;
234
+ };
235
+ channel: {
236
+ value: string;
237
+ isRequired: boolean;
238
+ attributeId: string;
239
+ };
240
+ priority: {
241
+ value: string;
242
+ isRequired: boolean;
243
+ attributeId: string;
244
+ };
245
+ title: {
246
+ value: string;
247
+ isRequired: boolean;
248
+ attributeId: string;
249
+ };
250
+ description: {
251
+ value: string;
252
+ isRequired: boolean;
253
+ attributeId: string;
254
+ };
255
+ status: {
256
+ value: string;
257
+ isRequired: boolean;
258
+ attributeId: string;
259
+ };
260
+ categories: {
261
+ value: string[];
262
+ isRequired: boolean;
263
+ attributeId: string;
264
+ };
265
+ contact: {
266
+ value: string;
267
+ isRequired: boolean;
268
+ attributeId: string;
269
+ };
270
+ customFields: {
271
+ type: string;
272
+ value: (string | string[]) & (string | string[] | undefined);
273
+ isRequired: boolean;
274
+ attributeId: string;
275
+ isDefaultAttribute: boolean;
276
+ }[];
277
+ tags: {
278
+ value: string[];
279
+ isRequired: boolean;
280
+ attributeId: string;
281
+ };
282
+ assignee: {
283
+ value: string;
284
+ isRequired: boolean;
285
+ attributeId: string;
286
+ };
287
+ reasonToAssign: {
288
+ value: string;
289
+ };
290
+ }>;
291
+ summary: "Create a new ticket";
292
+ method: "POST";
293
+ responses: {
294
+ 201: z.ZodObject<{
295
+ requestId: z.ZodString;
296
+ message: z.ZodObject<{
297
+ id: z.ZodString;
298
+ createdAt: z.ZodDate;
299
+ updatedAt: z.ZodDate;
300
+ deletedAt: z.ZodNullable<z.ZodDate>;
301
+ title: z.ZodString;
302
+ description: z.ZodNullable<z.ZodString>;
303
+ type: z.ZodString;
304
+ channel: z.ZodString;
305
+ priority: z.ZodString;
306
+ status: z.ZodString;
307
+ contactId: z.ZodString;
308
+ creatorId: z.ZodString;
309
+ assigneeId: z.ZodString;
310
+ reasonToAssign: z.ZodNullable<z.ZodString>;
311
+ ticketNumber: z.ZodOptional<z.ZodNumber>;
312
+ customFields: z.ZodArray<z.ZodObject<{
313
+ id: z.ZodString;
314
+ createdAt: z.ZodDate;
315
+ updatedAt: z.ZodDate;
316
+ deletedAt: z.ZodNullable<z.ZodDate>;
317
+ textValue: z.ZodNullable<z.ZodString>;
318
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
319
+ numberValue: z.ZodNullable<z.ZodNumber>;
320
+ dateValue: z.ZodNullable<z.ZodDate>;
321
+ attribute: z.ZodObject<Omit<{
322
+ id: z.ZodString;
323
+ createdAt: z.ZodDate;
324
+ updatedAt: z.ZodDate;
325
+ deletedAt: z.ZodNullable<z.ZodDate>;
326
+ systemName: z.ZodString;
327
+ displayName: z.ZodString;
328
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
329
+ position: z.ZodNumber;
330
+ isDefault: z.ZodBoolean;
331
+ isArchived: z.ZodBoolean;
332
+ isRequired: z.ZodBoolean;
333
+ isUnique: z.ZodBoolean;
334
+ options: z.ZodArray<z.ZodObject<{
335
+ position: z.ZodNumber;
336
+ value: z.ZodString;
337
+ label: z.ZodString;
338
+ isDefault: z.ZodBoolean;
339
+ id: z.ZodString;
340
+ }, "strip", z.ZodTypeAny, {
341
+ id: string;
342
+ position: number;
343
+ value: string;
344
+ label: string;
345
+ isDefault: boolean;
346
+ }, {
347
+ id: string;
348
+ position: number;
349
+ value: string;
350
+ label: string;
351
+ isDefault: boolean;
352
+ }>, "many">;
353
+ group: z.ZodObject<{
354
+ id: z.ZodString;
355
+ createdAt: z.ZodDate;
356
+ updatedAt: z.ZodDate;
357
+ deletedAt: z.ZodNullable<z.ZodDate>;
358
+ systemName: z.ZodString;
359
+ displayName: z.ZodString;
360
+ }, "strip", z.ZodTypeAny, {
361
+ id: string;
362
+ createdAt: Date;
363
+ updatedAt: Date;
364
+ deletedAt: Date | null;
365
+ systemName: string;
366
+ displayName: string;
367
+ }, {
368
+ id: string;
369
+ createdAt: Date;
370
+ updatedAt: Date;
371
+ deletedAt: Date | null;
372
+ systemName: string;
373
+ displayName: string;
374
+ }>;
375
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
376
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
377
+ id: string;
378
+ position: number;
379
+ createdAt: Date;
380
+ updatedAt: Date;
381
+ deletedAt: Date | null;
382
+ isDefault: boolean;
383
+ systemName: string;
384
+ displayName: string;
385
+ isArchived: boolean;
386
+ isRequired: boolean;
387
+ isUnique: boolean;
388
+ }, {
389
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
390
+ id: string;
391
+ position: number;
392
+ createdAt: Date;
393
+ updatedAt: Date;
394
+ deletedAt: Date | null;
395
+ isDefault: boolean;
396
+ systemName: string;
397
+ displayName: string;
398
+ isArchived: boolean;
399
+ isRequired: boolean;
400
+ isUnique: boolean;
401
+ }>;
402
+ uploads: z.ZodArray<z.ZodObject<{
403
+ id: z.ZodString;
404
+ createdAt: z.ZodDate;
405
+ updatedAt: z.ZodDate;
406
+ deletedAt: z.ZodNullable<z.ZodDate>;
407
+ customFieldId: z.ZodString;
408
+ upload: z.ZodObject<{
409
+ id: z.ZodString;
410
+ createdAt: z.ZodDate;
411
+ updatedAt: z.ZodDate;
412
+ deletedAt: z.ZodNullable<z.ZodDate>;
413
+ bucketName: z.ZodString;
414
+ fileName: z.ZodString;
415
+ fileSize: z.ZodNumber;
416
+ fileKey: z.ZodString;
417
+ }, "strip", z.ZodTypeAny, {
418
+ id: string;
419
+ createdAt: Date;
420
+ updatedAt: Date;
421
+ deletedAt: Date | null;
422
+ fileName: string;
423
+ fileKey: string;
424
+ bucketName: string;
425
+ fileSize: number;
426
+ }, {
427
+ id: string;
428
+ createdAt: Date;
429
+ updatedAt: Date;
430
+ deletedAt: Date | null;
431
+ fileName: string;
432
+ fileKey: string;
433
+ bucketName: string;
434
+ fileSize: number;
435
+ }>;
436
+ }, "strip", z.ZodTypeAny, {
437
+ id: string;
438
+ createdAt: Date;
439
+ updatedAt: Date;
440
+ deletedAt: Date | null;
441
+ customFieldId: string;
442
+ upload: {
443
+ id: string;
444
+ createdAt: Date;
445
+ updatedAt: Date;
446
+ deletedAt: Date | null;
447
+ fileName: string;
448
+ fileKey: string;
449
+ bucketName: string;
450
+ fileSize: number;
451
+ };
452
+ }, {
453
+ id: string;
454
+ createdAt: Date;
455
+ updatedAt: Date;
456
+ deletedAt: Date | null;
457
+ customFieldId: string;
458
+ upload: {
459
+ id: string;
460
+ createdAt: Date;
461
+ updatedAt: Date;
462
+ deletedAt: Date | null;
463
+ fileName: string;
464
+ fileKey: string;
465
+ bucketName: string;
466
+ fileSize: number;
467
+ };
468
+ }>, "many">;
469
+ }, "strip", z.ZodTypeAny, {
470
+ id: string;
471
+ createdAt: Date;
472
+ updatedAt: Date;
473
+ deletedAt: Date | null;
474
+ attribute: {
475
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
476
+ id: string;
477
+ position: number;
478
+ createdAt: Date;
479
+ updatedAt: Date;
480
+ deletedAt: Date | null;
481
+ isDefault: boolean;
482
+ systemName: string;
483
+ displayName: string;
484
+ isArchived: boolean;
485
+ isRequired: boolean;
486
+ isUnique: boolean;
487
+ };
488
+ textValue: string | null;
489
+ booleanValue: boolean | null;
490
+ numberValue: number | null;
491
+ dateValue: Date | null;
492
+ uploads: {
493
+ id: string;
494
+ createdAt: Date;
495
+ updatedAt: Date;
496
+ deletedAt: Date | null;
497
+ customFieldId: string;
498
+ upload: {
499
+ id: string;
500
+ createdAt: Date;
501
+ updatedAt: Date;
502
+ deletedAt: Date | null;
503
+ fileName: string;
504
+ fileKey: string;
505
+ bucketName: string;
506
+ fileSize: number;
507
+ };
508
+ }[];
509
+ }, {
510
+ id: string;
511
+ createdAt: Date;
512
+ updatedAt: Date;
513
+ deletedAt: Date | null;
514
+ attribute: {
515
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
516
+ id: string;
517
+ position: number;
518
+ createdAt: Date;
519
+ updatedAt: Date;
520
+ deletedAt: Date | null;
521
+ isDefault: boolean;
522
+ systemName: string;
523
+ displayName: string;
524
+ isArchived: boolean;
525
+ isRequired: boolean;
526
+ isUnique: boolean;
527
+ };
528
+ textValue: string | null;
529
+ booleanValue: boolean | null;
530
+ numberValue: number | null;
531
+ dateValue: Date | null;
532
+ uploads: {
533
+ id: string;
534
+ createdAt: Date;
535
+ updatedAt: Date;
536
+ deletedAt: Date | null;
537
+ customFieldId: string;
538
+ upload: {
539
+ id: string;
540
+ createdAt: Date;
541
+ updatedAt: Date;
542
+ deletedAt: Date | null;
543
+ fileName: string;
544
+ fileKey: string;
545
+ bucketName: string;
546
+ fileSize: number;
547
+ };
548
+ }[];
549
+ }>, "many">;
550
+ }, "strip", z.ZodTypeAny, {
551
+ type: string;
552
+ id: string;
553
+ channel: string;
554
+ priority: string;
555
+ title: string;
556
+ description: string | null;
557
+ status: string;
558
+ createdAt: Date;
559
+ updatedAt: Date;
560
+ deletedAt: Date | null;
561
+ customFields: {
562
+ id: string;
563
+ createdAt: Date;
564
+ updatedAt: Date;
565
+ deletedAt: Date | null;
566
+ attribute: {
567
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
568
+ id: string;
569
+ position: number;
570
+ createdAt: Date;
571
+ updatedAt: Date;
572
+ deletedAt: Date | null;
573
+ isDefault: boolean;
574
+ systemName: string;
575
+ displayName: string;
576
+ isArchived: boolean;
577
+ isRequired: boolean;
578
+ isUnique: boolean;
579
+ };
580
+ textValue: string | null;
581
+ booleanValue: boolean | null;
582
+ numberValue: number | null;
583
+ dateValue: Date | null;
584
+ uploads: {
585
+ id: string;
586
+ createdAt: Date;
587
+ updatedAt: Date;
588
+ deletedAt: Date | null;
589
+ customFieldId: string;
590
+ upload: {
591
+ id: string;
592
+ createdAt: Date;
593
+ updatedAt: Date;
594
+ deletedAt: Date | null;
595
+ fileName: string;
596
+ fileKey: string;
597
+ bucketName: string;
598
+ fileSize: number;
599
+ };
600
+ }[];
601
+ }[];
602
+ contactId: string;
603
+ assigneeId: string;
604
+ creatorId: string;
605
+ reasonToAssign: string | null;
606
+ ticketNumber?: number | undefined;
607
+ }, {
608
+ type: string;
609
+ id: string;
610
+ channel: string;
611
+ priority: string;
612
+ title: string;
613
+ description: string | null;
614
+ status: string;
615
+ createdAt: Date;
616
+ updatedAt: Date;
617
+ deletedAt: Date | null;
618
+ customFields: {
619
+ id: string;
620
+ createdAt: Date;
621
+ updatedAt: Date;
622
+ deletedAt: Date | null;
623
+ attribute: {
624
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
625
+ id: string;
626
+ position: number;
627
+ createdAt: Date;
628
+ updatedAt: Date;
629
+ deletedAt: Date | null;
630
+ isDefault: boolean;
631
+ systemName: string;
632
+ displayName: string;
633
+ isArchived: boolean;
634
+ isRequired: boolean;
635
+ isUnique: boolean;
636
+ };
637
+ textValue: string | null;
638
+ booleanValue: boolean | null;
639
+ numberValue: number | null;
640
+ dateValue: Date | null;
641
+ uploads: {
642
+ id: string;
643
+ createdAt: Date;
644
+ updatedAt: Date;
645
+ deletedAt: Date | null;
646
+ customFieldId: string;
647
+ upload: {
648
+ id: string;
649
+ createdAt: Date;
650
+ updatedAt: Date;
651
+ deletedAt: Date | null;
652
+ fileName: string;
653
+ fileKey: string;
654
+ bucketName: string;
655
+ fileSize: number;
656
+ };
657
+ }[];
658
+ }[];
659
+ contactId: string;
660
+ assigneeId: string;
661
+ creatorId: string;
662
+ reasonToAssign: string | null;
663
+ ticketNumber?: number | undefined;
664
+ }>;
665
+ }, "strip", z.ZodTypeAny, {
666
+ message: {
667
+ type: string;
668
+ id: string;
669
+ channel: string;
670
+ priority: string;
671
+ title: string;
672
+ description: string | null;
673
+ status: string;
674
+ createdAt: Date;
675
+ updatedAt: Date;
676
+ deletedAt: Date | null;
677
+ customFields: {
678
+ id: string;
679
+ createdAt: Date;
680
+ updatedAt: Date;
681
+ deletedAt: Date | null;
682
+ attribute: {
683
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
684
+ id: string;
685
+ position: number;
686
+ createdAt: Date;
687
+ updatedAt: Date;
688
+ deletedAt: Date | null;
689
+ isDefault: boolean;
690
+ systemName: string;
691
+ displayName: string;
692
+ isArchived: boolean;
693
+ isRequired: boolean;
694
+ isUnique: boolean;
695
+ };
696
+ textValue: string | null;
697
+ booleanValue: boolean | null;
698
+ numberValue: number | null;
699
+ dateValue: Date | null;
700
+ uploads: {
701
+ id: string;
702
+ createdAt: Date;
703
+ updatedAt: Date;
704
+ deletedAt: Date | null;
705
+ customFieldId: string;
706
+ upload: {
707
+ id: string;
708
+ createdAt: Date;
709
+ updatedAt: Date;
710
+ deletedAt: Date | null;
711
+ fileName: string;
712
+ fileKey: string;
713
+ bucketName: string;
714
+ fileSize: number;
715
+ };
716
+ }[];
717
+ }[];
718
+ contactId: string;
719
+ assigneeId: string;
720
+ creatorId: string;
721
+ reasonToAssign: string | null;
722
+ ticketNumber?: number | undefined;
723
+ };
724
+ requestId: string;
725
+ }, {
726
+ message: {
727
+ type: string;
728
+ id: string;
729
+ channel: string;
730
+ priority: string;
731
+ title: string;
732
+ description: string | null;
733
+ status: string;
734
+ createdAt: Date;
735
+ updatedAt: Date;
736
+ deletedAt: Date | null;
737
+ customFields: {
738
+ id: string;
739
+ createdAt: Date;
740
+ updatedAt: Date;
741
+ deletedAt: Date | null;
742
+ attribute: {
743
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
744
+ id: string;
745
+ position: number;
746
+ createdAt: Date;
747
+ updatedAt: Date;
748
+ deletedAt: Date | null;
749
+ isDefault: boolean;
750
+ systemName: string;
751
+ displayName: string;
752
+ isArchived: boolean;
753
+ isRequired: boolean;
754
+ isUnique: boolean;
755
+ };
756
+ textValue: string | null;
757
+ booleanValue: boolean | null;
758
+ numberValue: number | null;
759
+ dateValue: Date | null;
760
+ uploads: {
761
+ id: string;
762
+ createdAt: Date;
763
+ updatedAt: Date;
764
+ deletedAt: Date | null;
765
+ customFieldId: string;
766
+ upload: {
767
+ id: string;
768
+ createdAt: Date;
769
+ updatedAt: Date;
770
+ deletedAt: Date | null;
771
+ fileName: string;
772
+ fileKey: string;
773
+ bucketName: string;
774
+ fileSize: number;
775
+ };
776
+ }[];
777
+ }[];
778
+ contactId: string;
779
+ assigneeId: string;
780
+ creatorId: string;
781
+ reasonToAssign: string | null;
782
+ ticketNumber?: number | undefined;
783
+ };
784
+ requestId: string;
785
+ }>;
786
+ 400: z.ZodObject<{
787
+ message: z.ZodString;
788
+ }, "strip", z.ZodTypeAny, {
789
+ message: string;
790
+ }, {
791
+ message: string;
792
+ }>;
793
+ 409: z.ZodObject<{
794
+ message: z.ZodString;
795
+ }, "strip", z.ZodTypeAny, {
796
+ message: string;
797
+ }, {
798
+ message: string;
799
+ }>;
800
+ 500: z.ZodObject<{
801
+ message: z.ZodString;
802
+ }, "strip", z.ZodTypeAny, {
803
+ message: string;
804
+ }, {
805
+ message: string;
806
+ }>;
807
+ 401: z.ZodObject<{
808
+ message: z.ZodString;
809
+ error: z.ZodAny;
810
+ }, "strip", z.ZodTypeAny, {
811
+ message: string;
812
+ error?: any;
813
+ }, {
814
+ message: string;
815
+ error?: any;
816
+ }>;
817
+ 404: z.ZodObject<{
818
+ message: z.ZodString;
819
+ error: z.ZodAny;
820
+ }, "strip", z.ZodTypeAny, {
821
+ message: string;
822
+ error?: any;
823
+ }, {
824
+ message: string;
825
+ error?: any;
826
+ }>;
827
+ 422: z.ZodObject<{
828
+ message: z.ZodString;
829
+ error: z.ZodAny;
830
+ }, "strip", z.ZodTypeAny, {
831
+ message: string;
832
+ error?: any;
833
+ }, {
834
+ message: string;
835
+ error?: any;
836
+ }>;
837
+ };
838
+ path: "ticket";
839
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
840
+ 'x-tenant': z.ZodString;
841
+ authorization: z.ZodString;
842
+ }, "strip", z.ZodTypeAny, {
843
+ 'x-tenant': string;
844
+ authorization: string;
845
+ }, {
846
+ 'x-tenant': string;
847
+ authorization: string;
848
+ }>>>;
849
+ };
850
+ getAllTickets: {
851
+ summary: "Get all tickets";
852
+ method: "GET";
853
+ query: z.ZodObject<{
854
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
855
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
856
+ agent: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
857
+ selectedDate: z.ZodOptional<z.ZodString>;
858
+ keyword: z.ZodOptional<z.ZodString>;
859
+ title: z.ZodOptional<z.ZodString>;
860
+ description: z.ZodOptional<z.ZodString>;
861
+ status: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
862
+ priority: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
863
+ channel: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
864
+ type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
865
+ ticketType: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
866
+ contact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
867
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
868
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
869
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
870
+ attributeId: z.ZodString;
871
+ type: z.ZodString;
872
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
873
+ }, "strip", z.ZodTypeAny, {
874
+ type: string;
875
+ value: (string | string[]) & (string | string[] | undefined);
876
+ attributeId: string;
877
+ }, {
878
+ type: string;
879
+ value: (string | string[]) & (string | string[] | undefined);
880
+ attributeId: string;
881
+ }>, "many">>;
882
+ }, "strip", z.ZodTypeAny, {
883
+ page?: number | undefined;
884
+ pageSize?: number | undefined;
885
+ agent?: string[] | undefined;
886
+ selectedDate?: string | undefined;
887
+ keyword?: string | undefined;
888
+ title?: string | undefined;
889
+ description?: string | undefined;
890
+ status?: string[] | undefined;
891
+ priority?: string[] | undefined;
892
+ channel?: string[] | undefined;
893
+ type?: string[] | undefined;
894
+ ticketType?: string[] | undefined;
895
+ contact?: string[] | undefined;
896
+ tags?: string[] | undefined;
897
+ categories?: string[] | undefined;
898
+ customFields?: {
899
+ type: string;
900
+ value: (string | string[]) & (string | string[] | undefined);
901
+ attributeId: string;
902
+ }[] | undefined;
903
+ }, {
904
+ page?: number | undefined;
905
+ pageSize?: number | undefined;
906
+ agent?: string[] | undefined;
907
+ selectedDate?: string | undefined;
908
+ keyword?: string | undefined;
909
+ title?: string | undefined;
910
+ description?: string | undefined;
911
+ status?: string[] | undefined;
912
+ priority?: string[] | undefined;
913
+ channel?: string[] | undefined;
914
+ type?: string[] | undefined;
915
+ ticketType?: string[] | undefined;
916
+ contact?: string[] | undefined;
917
+ tags?: string[] | undefined;
918
+ categories?: string[] | undefined;
919
+ customFields?: {
920
+ type: string;
921
+ value: (string | string[]) & (string | string[] | undefined);
922
+ attributeId: string;
923
+ }[] | undefined;
924
+ }>;
925
+ responses: {
926
+ 200: z.ZodObject<{
927
+ total: z.ZodNumber;
928
+ page: z.ZodDefault<z.ZodNumber>;
929
+ pageSize: z.ZodDefault<z.ZodNumber>;
930
+ lastPage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
931
+ data: z.ZodArray<z.ZodType<{
932
+ type: string;
933
+ id: string;
934
+ channel: string;
935
+ priority: string;
936
+ title: string;
937
+ description: string | null;
938
+ status: string;
939
+ createdAt: Date;
940
+ updatedAt: Date;
941
+ deletedAt: Date | null;
942
+ customFields: {
943
+ id: string;
944
+ createdAt: Date;
945
+ updatedAt: Date;
946
+ deletedAt: Date | null;
947
+ attribute: {
948
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
949
+ id: string;
950
+ position: number;
951
+ createdAt: Date;
952
+ updatedAt: Date;
953
+ deletedAt: Date | null;
954
+ isDefault: boolean;
955
+ systemName: string;
956
+ displayName: string;
957
+ isArchived: boolean;
958
+ isRequired: boolean;
959
+ isUnique: boolean;
960
+ };
961
+ textValue: string | null;
962
+ booleanValue: boolean | null;
963
+ numberValue: number | null;
964
+ dateValue: Date | null;
965
+ uploads: {
966
+ id: string;
967
+ createdAt: Date;
968
+ updatedAt: Date;
969
+ deletedAt: Date | null;
970
+ customFieldId: string;
971
+ upload: {
972
+ id: string;
973
+ createdAt: Date;
974
+ updatedAt: Date;
975
+ deletedAt: Date | null;
976
+ fileName: string;
977
+ fileKey: string;
978
+ bucketName: string;
979
+ fileSize: number;
980
+ };
981
+ }[];
982
+ }[];
983
+ contactId: string;
984
+ assigneeId: string;
985
+ creatorId: string;
986
+ reasonToAssign: string | null;
987
+ ticketNumber?: number | undefined;
988
+ }, z.ZodTypeDef, {
989
+ type: string;
990
+ id: string;
991
+ channel: string;
992
+ priority: string;
993
+ title: string;
994
+ description: string | null;
995
+ status: string;
996
+ createdAt: Date;
997
+ updatedAt: Date;
998
+ deletedAt: Date | null;
999
+ customFields: {
1000
+ id: string;
1001
+ createdAt: Date;
1002
+ updatedAt: Date;
1003
+ deletedAt: Date | null;
1004
+ attribute: {
1005
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1006
+ id: string;
1007
+ position: number;
1008
+ createdAt: Date;
1009
+ updatedAt: Date;
1010
+ deletedAt: Date | null;
1011
+ isDefault: boolean;
1012
+ systemName: string;
1013
+ displayName: string;
1014
+ isArchived: boolean;
1015
+ isRequired: boolean;
1016
+ isUnique: boolean;
1017
+ };
1018
+ textValue: string | null;
1019
+ booleanValue: boolean | null;
1020
+ numberValue: number | null;
1021
+ dateValue: Date | null;
1022
+ uploads: {
1023
+ id: string;
1024
+ createdAt: Date;
1025
+ updatedAt: Date;
1026
+ deletedAt: Date | null;
1027
+ customFieldId: string;
1028
+ upload: {
1029
+ id: string;
1030
+ createdAt: Date;
1031
+ updatedAt: Date;
1032
+ deletedAt: Date | null;
1033
+ fileName: string;
1034
+ fileKey: string;
1035
+ bucketName: string;
1036
+ fileSize: number;
1037
+ };
1038
+ }[];
1039
+ }[];
1040
+ contactId: string;
1041
+ assigneeId: string;
1042
+ creatorId: string;
1043
+ reasonToAssign: string | null;
1044
+ ticketNumber?: number | undefined;
1045
+ }>, "many">;
1046
+ }, "strip", z.ZodTypeAny, {
1047
+ data: {
1048
+ type: string;
1049
+ id: string;
1050
+ channel: string;
1051
+ priority: string;
1052
+ title: string;
1053
+ description: string | null;
1054
+ status: string;
1055
+ createdAt: Date;
1056
+ updatedAt: Date;
1057
+ deletedAt: Date | null;
1058
+ customFields: {
1059
+ id: string;
1060
+ createdAt: Date;
1061
+ updatedAt: Date;
1062
+ deletedAt: Date | null;
1063
+ attribute: {
1064
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1065
+ id: string;
1066
+ position: number;
1067
+ createdAt: Date;
1068
+ updatedAt: Date;
1069
+ deletedAt: Date | null;
1070
+ isDefault: boolean;
1071
+ systemName: string;
1072
+ displayName: string;
1073
+ isArchived: boolean;
1074
+ isRequired: boolean;
1075
+ isUnique: boolean;
1076
+ };
1077
+ textValue: string | null;
1078
+ booleanValue: boolean | null;
1079
+ numberValue: number | null;
1080
+ dateValue: Date | null;
1081
+ uploads: {
1082
+ id: string;
1083
+ createdAt: Date;
1084
+ updatedAt: Date;
1085
+ deletedAt: Date | null;
1086
+ customFieldId: string;
1087
+ upload: {
1088
+ id: string;
1089
+ createdAt: Date;
1090
+ updatedAt: Date;
1091
+ deletedAt: Date | null;
1092
+ fileName: string;
1093
+ fileKey: string;
1094
+ bucketName: string;
1095
+ fileSize: number;
1096
+ };
1097
+ }[];
1098
+ }[];
1099
+ contactId: string;
1100
+ assigneeId: string;
1101
+ creatorId: string;
1102
+ reasonToAssign: string | null;
1103
+ ticketNumber?: number | undefined;
1104
+ }[];
1105
+ total: number;
1106
+ page: number;
1107
+ pageSize: number;
1108
+ lastPage?: number | null | undefined;
1109
+ }, {
1110
+ data: {
1111
+ type: string;
1112
+ id: string;
1113
+ channel: string;
1114
+ priority: string;
1115
+ title: string;
1116
+ description: string | null;
1117
+ status: string;
1118
+ createdAt: Date;
1119
+ updatedAt: Date;
1120
+ deletedAt: Date | null;
1121
+ customFields: {
1122
+ id: string;
1123
+ createdAt: Date;
1124
+ updatedAt: Date;
1125
+ deletedAt: Date | null;
1126
+ attribute: {
1127
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1128
+ id: string;
1129
+ position: number;
1130
+ createdAt: Date;
1131
+ updatedAt: Date;
1132
+ deletedAt: Date | null;
1133
+ isDefault: boolean;
1134
+ systemName: string;
1135
+ displayName: string;
1136
+ isArchived: boolean;
1137
+ isRequired: boolean;
1138
+ isUnique: boolean;
1139
+ };
1140
+ textValue: string | null;
1141
+ booleanValue: boolean | null;
1142
+ numberValue: number | null;
1143
+ dateValue: Date | null;
1144
+ uploads: {
1145
+ id: string;
1146
+ createdAt: Date;
1147
+ updatedAt: Date;
1148
+ deletedAt: Date | null;
1149
+ customFieldId: string;
1150
+ upload: {
1151
+ id: string;
1152
+ createdAt: Date;
1153
+ updatedAt: Date;
1154
+ deletedAt: Date | null;
1155
+ fileName: string;
1156
+ fileKey: string;
1157
+ bucketName: string;
1158
+ fileSize: number;
1159
+ };
1160
+ }[];
1161
+ }[];
1162
+ contactId: string;
1163
+ assigneeId: string;
1164
+ creatorId: string;
1165
+ reasonToAssign: string | null;
1166
+ ticketNumber?: number | undefined;
1167
+ }[];
1168
+ total: number;
1169
+ page?: number | undefined;
1170
+ pageSize?: number | undefined;
1171
+ lastPage?: number | null | undefined;
1172
+ }>;
1173
+ 400: z.ZodObject<{
1174
+ message: z.ZodString;
1175
+ }, "strip", z.ZodTypeAny, {
1176
+ message: string;
1177
+ }, {
1178
+ message: string;
1179
+ }>;
1180
+ 401: z.ZodObject<{
1181
+ message: z.ZodString;
1182
+ error: z.ZodAny;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ message: string;
1185
+ error?: any;
1186
+ }, {
1187
+ message: string;
1188
+ error?: any;
1189
+ }>;
1190
+ 500: z.ZodObject<{
1191
+ message: z.ZodString;
1192
+ error: z.ZodAny;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ message: string;
1195
+ error?: any;
1196
+ }, {
1197
+ message: string;
1198
+ error?: any;
1199
+ }>;
1200
+ };
1201
+ path: "ticket";
1202
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1203
+ 'x-tenant': z.ZodString;
1204
+ authorization: z.ZodString;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ 'x-tenant': string;
1207
+ authorization: string;
1208
+ }, {
1209
+ 'x-tenant': string;
1210
+ authorization: string;
1211
+ }>>>;
1212
+ };
1213
+ getTicketById: {
1214
+ summary: "Get ticket by id";
1215
+ method: "GET";
1216
+ pathParams: z.ZodObject<{
1217
+ id: z.ZodString;
1218
+ }, "strip", z.ZodTypeAny, {
1219
+ id: string;
1220
+ }, {
1221
+ id: string;
1222
+ }>;
1223
+ responses: {
1224
+ 200: z.ZodObject<{
1225
+ id: z.ZodString;
1226
+ createdAt: z.ZodDate;
1227
+ updatedAt: z.ZodDate;
1228
+ deletedAt: z.ZodNullable<z.ZodDate>;
1229
+ title: z.ZodString;
1230
+ description: z.ZodNullable<z.ZodString>;
1231
+ type: z.ZodString;
1232
+ channel: z.ZodString;
1233
+ priority: z.ZodString;
1234
+ status: z.ZodString;
1235
+ contactId: z.ZodString;
1236
+ creatorId: z.ZodString;
1237
+ assigneeId: z.ZodString;
1238
+ reasonToAssign: z.ZodNullable<z.ZodString>;
1239
+ ticketNumber: z.ZodOptional<z.ZodNumber>;
1240
+ customFields: z.ZodArray<z.ZodObject<{
1241
+ id: z.ZodString;
1242
+ createdAt: z.ZodDate;
1243
+ updatedAt: z.ZodDate;
1244
+ deletedAt: z.ZodNullable<z.ZodDate>;
1245
+ textValue: z.ZodNullable<z.ZodString>;
1246
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1247
+ numberValue: z.ZodNullable<z.ZodNumber>;
1248
+ dateValue: z.ZodNullable<z.ZodDate>;
1249
+ attribute: z.ZodObject<Omit<{
1250
+ id: z.ZodString;
1251
+ createdAt: z.ZodDate;
1252
+ updatedAt: z.ZodDate;
1253
+ deletedAt: z.ZodNullable<z.ZodDate>;
1254
+ systemName: z.ZodString;
1255
+ displayName: z.ZodString;
1256
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1257
+ position: z.ZodNumber;
1258
+ isDefault: z.ZodBoolean;
1259
+ isArchived: z.ZodBoolean;
1260
+ isRequired: z.ZodBoolean;
1261
+ isUnique: z.ZodBoolean;
1262
+ options: z.ZodArray<z.ZodObject<{
1263
+ position: z.ZodNumber;
1264
+ value: z.ZodString;
1265
+ label: z.ZodString;
1266
+ isDefault: z.ZodBoolean;
1267
+ id: z.ZodString;
1268
+ }, "strip", z.ZodTypeAny, {
1269
+ id: string;
1270
+ position: number;
1271
+ value: string;
1272
+ label: string;
1273
+ isDefault: boolean;
1274
+ }, {
1275
+ id: string;
1276
+ position: number;
1277
+ value: string;
1278
+ label: string;
1279
+ isDefault: boolean;
1280
+ }>, "many">;
1281
+ group: z.ZodObject<{
1282
+ id: z.ZodString;
1283
+ createdAt: z.ZodDate;
1284
+ updatedAt: z.ZodDate;
1285
+ deletedAt: z.ZodNullable<z.ZodDate>;
1286
+ systemName: z.ZodString;
1287
+ displayName: z.ZodString;
1288
+ }, "strip", z.ZodTypeAny, {
1289
+ id: string;
1290
+ createdAt: Date;
1291
+ updatedAt: Date;
1292
+ deletedAt: Date | null;
1293
+ systemName: string;
1294
+ displayName: string;
1295
+ }, {
1296
+ id: string;
1297
+ createdAt: Date;
1298
+ updatedAt: Date;
1299
+ deletedAt: Date | null;
1300
+ systemName: string;
1301
+ displayName: string;
1302
+ }>;
1303
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1304
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1305
+ id: string;
1306
+ position: number;
1307
+ createdAt: Date;
1308
+ updatedAt: Date;
1309
+ deletedAt: Date | null;
1310
+ isDefault: boolean;
1311
+ systemName: string;
1312
+ displayName: string;
1313
+ isArchived: boolean;
1314
+ isRequired: boolean;
1315
+ isUnique: boolean;
1316
+ }, {
1317
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1318
+ id: string;
1319
+ position: number;
1320
+ createdAt: Date;
1321
+ updatedAt: Date;
1322
+ deletedAt: Date | null;
1323
+ isDefault: boolean;
1324
+ systemName: string;
1325
+ displayName: string;
1326
+ isArchived: boolean;
1327
+ isRequired: boolean;
1328
+ isUnique: boolean;
1329
+ }>;
1330
+ uploads: z.ZodArray<z.ZodObject<{
1331
+ id: z.ZodString;
1332
+ createdAt: z.ZodDate;
1333
+ updatedAt: z.ZodDate;
1334
+ deletedAt: z.ZodNullable<z.ZodDate>;
1335
+ customFieldId: z.ZodString;
1336
+ upload: z.ZodObject<{
1337
+ id: z.ZodString;
1338
+ createdAt: z.ZodDate;
1339
+ updatedAt: z.ZodDate;
1340
+ deletedAt: z.ZodNullable<z.ZodDate>;
1341
+ bucketName: z.ZodString;
1342
+ fileName: z.ZodString;
1343
+ fileSize: z.ZodNumber;
1344
+ fileKey: z.ZodString;
1345
+ }, "strip", z.ZodTypeAny, {
1346
+ id: string;
1347
+ createdAt: Date;
1348
+ updatedAt: Date;
1349
+ deletedAt: Date | null;
1350
+ fileName: string;
1351
+ fileKey: string;
1352
+ bucketName: string;
1353
+ fileSize: number;
1354
+ }, {
1355
+ id: string;
1356
+ createdAt: Date;
1357
+ updatedAt: Date;
1358
+ deletedAt: Date | null;
1359
+ fileName: string;
1360
+ fileKey: string;
1361
+ bucketName: string;
1362
+ fileSize: number;
1363
+ }>;
1364
+ }, "strip", z.ZodTypeAny, {
1365
+ id: string;
1366
+ createdAt: Date;
1367
+ updatedAt: Date;
1368
+ deletedAt: Date | null;
1369
+ customFieldId: string;
1370
+ upload: {
1371
+ id: string;
1372
+ createdAt: Date;
1373
+ updatedAt: Date;
1374
+ deletedAt: Date | null;
1375
+ fileName: string;
1376
+ fileKey: string;
1377
+ bucketName: string;
1378
+ fileSize: number;
1379
+ };
1380
+ }, {
1381
+ id: string;
1382
+ createdAt: Date;
1383
+ updatedAt: Date;
1384
+ deletedAt: Date | null;
1385
+ customFieldId: string;
1386
+ upload: {
1387
+ id: string;
1388
+ createdAt: Date;
1389
+ updatedAt: Date;
1390
+ deletedAt: Date | null;
1391
+ fileName: string;
1392
+ fileKey: string;
1393
+ bucketName: string;
1394
+ fileSize: number;
1395
+ };
1396
+ }>, "many">;
1397
+ }, "strip", z.ZodTypeAny, {
1398
+ id: string;
1399
+ createdAt: Date;
1400
+ updatedAt: Date;
1401
+ deletedAt: Date | null;
1402
+ attribute: {
1403
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1404
+ id: string;
1405
+ position: number;
1406
+ createdAt: Date;
1407
+ updatedAt: Date;
1408
+ deletedAt: Date | null;
1409
+ isDefault: boolean;
1410
+ systemName: string;
1411
+ displayName: string;
1412
+ isArchived: boolean;
1413
+ isRequired: boolean;
1414
+ isUnique: boolean;
1415
+ };
1416
+ textValue: string | null;
1417
+ booleanValue: boolean | null;
1418
+ numberValue: number | null;
1419
+ dateValue: Date | null;
1420
+ uploads: {
1421
+ id: string;
1422
+ createdAt: Date;
1423
+ updatedAt: Date;
1424
+ deletedAt: Date | null;
1425
+ customFieldId: string;
1426
+ upload: {
1427
+ id: string;
1428
+ createdAt: Date;
1429
+ updatedAt: Date;
1430
+ deletedAt: Date | null;
1431
+ fileName: string;
1432
+ fileKey: string;
1433
+ bucketName: string;
1434
+ fileSize: number;
1435
+ };
1436
+ }[];
1437
+ }, {
1438
+ id: string;
1439
+ createdAt: Date;
1440
+ updatedAt: Date;
1441
+ deletedAt: Date | null;
1442
+ attribute: {
1443
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1444
+ id: string;
1445
+ position: number;
1446
+ createdAt: Date;
1447
+ updatedAt: Date;
1448
+ deletedAt: Date | null;
1449
+ isDefault: boolean;
1450
+ systemName: string;
1451
+ displayName: string;
1452
+ isArchived: boolean;
1453
+ isRequired: boolean;
1454
+ isUnique: boolean;
1455
+ };
1456
+ textValue: string | null;
1457
+ booleanValue: boolean | null;
1458
+ numberValue: number | null;
1459
+ dateValue: Date | null;
1460
+ uploads: {
1461
+ id: string;
1462
+ createdAt: Date;
1463
+ updatedAt: Date;
1464
+ deletedAt: Date | null;
1465
+ customFieldId: string;
1466
+ upload: {
1467
+ id: string;
1468
+ createdAt: Date;
1469
+ updatedAt: Date;
1470
+ deletedAt: Date | null;
1471
+ fileName: string;
1472
+ fileKey: string;
1473
+ bucketName: string;
1474
+ fileSize: number;
1475
+ };
1476
+ }[];
1477
+ }>, "many">;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ type: string;
1480
+ id: string;
1481
+ channel: string;
1482
+ priority: string;
1483
+ title: string;
1484
+ description: string | null;
1485
+ status: string;
1486
+ createdAt: Date;
1487
+ updatedAt: Date;
1488
+ deletedAt: Date | null;
1489
+ customFields: {
1490
+ id: string;
1491
+ createdAt: Date;
1492
+ updatedAt: Date;
1493
+ deletedAt: Date | null;
1494
+ attribute: {
1495
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1496
+ id: string;
1497
+ position: number;
1498
+ createdAt: Date;
1499
+ updatedAt: Date;
1500
+ deletedAt: Date | null;
1501
+ isDefault: boolean;
1502
+ systemName: string;
1503
+ displayName: string;
1504
+ isArchived: boolean;
1505
+ isRequired: boolean;
1506
+ isUnique: boolean;
1507
+ };
1508
+ textValue: string | null;
1509
+ booleanValue: boolean | null;
1510
+ numberValue: number | null;
1511
+ dateValue: Date | null;
1512
+ uploads: {
1513
+ id: string;
1514
+ createdAt: Date;
1515
+ updatedAt: Date;
1516
+ deletedAt: Date | null;
1517
+ customFieldId: string;
1518
+ upload: {
1519
+ id: string;
1520
+ createdAt: Date;
1521
+ updatedAt: Date;
1522
+ deletedAt: Date | null;
1523
+ fileName: string;
1524
+ fileKey: string;
1525
+ bucketName: string;
1526
+ fileSize: number;
1527
+ };
1528
+ }[];
1529
+ }[];
1530
+ contactId: string;
1531
+ assigneeId: string;
1532
+ creatorId: string;
1533
+ reasonToAssign: string | null;
1534
+ ticketNumber?: number | undefined;
1535
+ }, {
1536
+ type: string;
1537
+ id: string;
1538
+ channel: string;
1539
+ priority: string;
1540
+ title: string;
1541
+ description: string | null;
1542
+ status: string;
1543
+ createdAt: Date;
1544
+ updatedAt: Date;
1545
+ deletedAt: Date | null;
1546
+ customFields: {
1547
+ id: string;
1548
+ createdAt: Date;
1549
+ updatedAt: Date;
1550
+ deletedAt: Date | null;
1551
+ attribute: {
1552
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1553
+ id: string;
1554
+ position: number;
1555
+ createdAt: Date;
1556
+ updatedAt: Date;
1557
+ deletedAt: Date | null;
1558
+ isDefault: boolean;
1559
+ systemName: string;
1560
+ displayName: string;
1561
+ isArchived: boolean;
1562
+ isRequired: boolean;
1563
+ isUnique: boolean;
1564
+ };
1565
+ textValue: string | null;
1566
+ booleanValue: boolean | null;
1567
+ numberValue: number | null;
1568
+ dateValue: Date | null;
1569
+ uploads: {
1570
+ id: string;
1571
+ createdAt: Date;
1572
+ updatedAt: Date;
1573
+ deletedAt: Date | null;
1574
+ customFieldId: string;
1575
+ upload: {
1576
+ id: string;
1577
+ createdAt: Date;
1578
+ updatedAt: Date;
1579
+ deletedAt: Date | null;
1580
+ fileName: string;
1581
+ fileKey: string;
1582
+ bucketName: string;
1583
+ fileSize: number;
1584
+ };
1585
+ }[];
1586
+ }[];
1587
+ contactId: string;
1588
+ assigneeId: string;
1589
+ creatorId: string;
1590
+ reasonToAssign: string | null;
1591
+ ticketNumber?: number | undefined;
1592
+ }>;
1593
+ 400: z.ZodObject<{
1594
+ message: z.ZodString;
1595
+ }, "strip", z.ZodTypeAny, {
1596
+ message: string;
1597
+ }, {
1598
+ message: string;
1599
+ }>;
1600
+ 401: z.ZodObject<{
1601
+ message: z.ZodString;
1602
+ error: z.ZodAny;
1603
+ }, "strip", z.ZodTypeAny, {
1604
+ message: string;
1605
+ error?: any;
1606
+ }, {
1607
+ message: string;
1608
+ error?: any;
1609
+ }>;
1610
+ 500: z.ZodObject<{
1611
+ message: z.ZodString;
1612
+ error: z.ZodAny;
1613
+ }, "strip", z.ZodTypeAny, {
1614
+ message: string;
1615
+ error?: any;
1616
+ }, {
1617
+ message: string;
1618
+ error?: any;
1619
+ }>;
1620
+ };
1621
+ path: "ticket/:id";
1622
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1623
+ 'x-tenant': z.ZodString;
1624
+ authorization: z.ZodString;
1625
+ }, "strip", z.ZodTypeAny, {
1626
+ 'x-tenant': string;
1627
+ authorization: string;
1628
+ }, {
1629
+ 'x-tenant': string;
1630
+ authorization: string;
1631
+ }>>>;
1632
+ };
1633
+ getTicketByContactId: {
1634
+ summary: "Get ticket by contact id.";
1635
+ method: "GET";
1636
+ pathParams: z.ZodObject<{
1637
+ id: z.ZodString;
1638
+ }, "strip", z.ZodTypeAny, {
1639
+ id: string;
1640
+ }, {
1641
+ id: string;
1642
+ }>;
1643
+ query: z.ZodOptional<z.ZodObject<{
1644
+ page: z.ZodDefault<z.ZodNumber>;
1645
+ pageSize: z.ZodDefault<z.ZodNumber>;
1646
+ }, "strip", z.ZodTypeAny, {
1647
+ page: number;
1648
+ pageSize: number;
1649
+ }, {
1650
+ page?: number | undefined;
1651
+ pageSize?: number | undefined;
1652
+ }>>;
1653
+ responses: {
1654
+ 200: z.ZodObject<{
1655
+ total: z.ZodNumber;
1656
+ page: z.ZodDefault<z.ZodNumber>;
1657
+ pageSize: z.ZodDefault<z.ZodNumber>;
1658
+ lastPage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1659
+ data: z.ZodArray<z.ZodType<{
1660
+ type: string;
1661
+ id: string;
1662
+ channel: string;
1663
+ priority: string;
1664
+ title: string;
1665
+ description: string | null;
1666
+ status: string;
1667
+ createdAt: Date;
1668
+ updatedAt: Date;
1669
+ deletedAt: Date | null;
1670
+ customFields: {
1671
+ id: string;
1672
+ createdAt: Date;
1673
+ updatedAt: Date;
1674
+ deletedAt: Date | null;
1675
+ attribute: {
1676
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1677
+ id: string;
1678
+ position: number;
1679
+ createdAt: Date;
1680
+ updatedAt: Date;
1681
+ deletedAt: Date | null;
1682
+ isDefault: boolean;
1683
+ systemName: string;
1684
+ displayName: string;
1685
+ isArchived: boolean;
1686
+ isRequired: boolean;
1687
+ isUnique: boolean;
1688
+ };
1689
+ textValue: string | null;
1690
+ booleanValue: boolean | null;
1691
+ numberValue: number | null;
1692
+ dateValue: Date | null;
1693
+ uploads: {
1694
+ id: string;
1695
+ createdAt: Date;
1696
+ updatedAt: Date;
1697
+ deletedAt: Date | null;
1698
+ customFieldId: string;
1699
+ upload: {
1700
+ id: string;
1701
+ createdAt: Date;
1702
+ updatedAt: Date;
1703
+ deletedAt: Date | null;
1704
+ fileName: string;
1705
+ fileKey: string;
1706
+ bucketName: string;
1707
+ fileSize: number;
1708
+ };
1709
+ }[];
1710
+ }[];
1711
+ contactId: string;
1712
+ assigneeId: string;
1713
+ creatorId: string;
1714
+ reasonToAssign: string | null;
1715
+ ticketNumber?: number | undefined;
1716
+ }, z.ZodTypeDef, {
1717
+ type: string;
1718
+ id: string;
1719
+ channel: string;
1720
+ priority: string;
1721
+ title: string;
1722
+ description: string | null;
1723
+ status: string;
1724
+ createdAt: Date;
1725
+ updatedAt: Date;
1726
+ deletedAt: Date | null;
1727
+ customFields: {
1728
+ id: string;
1729
+ createdAt: Date;
1730
+ updatedAt: Date;
1731
+ deletedAt: Date | null;
1732
+ attribute: {
1733
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1734
+ id: string;
1735
+ position: number;
1736
+ createdAt: Date;
1737
+ updatedAt: Date;
1738
+ deletedAt: Date | null;
1739
+ isDefault: boolean;
1740
+ systemName: string;
1741
+ displayName: string;
1742
+ isArchived: boolean;
1743
+ isRequired: boolean;
1744
+ isUnique: boolean;
1745
+ };
1746
+ textValue: string | null;
1747
+ booleanValue: boolean | null;
1748
+ numberValue: number | null;
1749
+ dateValue: Date | null;
1750
+ uploads: {
1751
+ id: string;
1752
+ createdAt: Date;
1753
+ updatedAt: Date;
1754
+ deletedAt: Date | null;
1755
+ customFieldId: string;
1756
+ upload: {
1757
+ id: string;
1758
+ createdAt: Date;
1759
+ updatedAt: Date;
1760
+ deletedAt: Date | null;
1761
+ fileName: string;
1762
+ fileKey: string;
1763
+ bucketName: string;
1764
+ fileSize: number;
1765
+ };
1766
+ }[];
1767
+ }[];
1768
+ contactId: string;
1769
+ assigneeId: string;
1770
+ creatorId: string;
1771
+ reasonToAssign: string | null;
1772
+ ticketNumber?: number | undefined;
1773
+ }>, "many">;
1774
+ }, "strip", z.ZodTypeAny, {
1775
+ data: {
1776
+ type: string;
1777
+ id: string;
1778
+ channel: string;
1779
+ priority: string;
1780
+ title: string;
1781
+ description: string | null;
1782
+ status: string;
1783
+ createdAt: Date;
1784
+ updatedAt: Date;
1785
+ deletedAt: Date | null;
1786
+ customFields: {
1787
+ id: string;
1788
+ createdAt: Date;
1789
+ updatedAt: Date;
1790
+ deletedAt: Date | null;
1791
+ attribute: {
1792
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1793
+ id: string;
1794
+ position: number;
1795
+ createdAt: Date;
1796
+ updatedAt: Date;
1797
+ deletedAt: Date | null;
1798
+ isDefault: boolean;
1799
+ systemName: string;
1800
+ displayName: string;
1801
+ isArchived: boolean;
1802
+ isRequired: boolean;
1803
+ isUnique: boolean;
1804
+ };
1805
+ textValue: string | null;
1806
+ booleanValue: boolean | null;
1807
+ numberValue: number | null;
1808
+ dateValue: Date | null;
1809
+ uploads: {
1810
+ id: string;
1811
+ createdAt: Date;
1812
+ updatedAt: Date;
1813
+ deletedAt: Date | null;
1814
+ customFieldId: string;
1815
+ upload: {
1816
+ id: string;
1817
+ createdAt: Date;
1818
+ updatedAt: Date;
1819
+ deletedAt: Date | null;
1820
+ fileName: string;
1821
+ fileKey: string;
1822
+ bucketName: string;
1823
+ fileSize: number;
1824
+ };
1825
+ }[];
1826
+ }[];
1827
+ contactId: string;
1828
+ assigneeId: string;
1829
+ creatorId: string;
1830
+ reasonToAssign: string | null;
1831
+ ticketNumber?: number | undefined;
1832
+ }[];
1833
+ total: number;
1834
+ page: number;
1835
+ pageSize: number;
1836
+ lastPage?: number | null | undefined;
1837
+ }, {
1838
+ data: {
1839
+ type: string;
1840
+ id: string;
1841
+ channel: string;
1842
+ priority: string;
1843
+ title: string;
1844
+ description: string | null;
1845
+ status: string;
1846
+ createdAt: Date;
1847
+ updatedAt: Date;
1848
+ deletedAt: Date | null;
1849
+ customFields: {
1850
+ id: string;
1851
+ createdAt: Date;
1852
+ updatedAt: Date;
1853
+ deletedAt: Date | null;
1854
+ attribute: {
1855
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1856
+ id: string;
1857
+ position: number;
1858
+ createdAt: Date;
1859
+ updatedAt: Date;
1860
+ deletedAt: Date | null;
1861
+ isDefault: boolean;
1862
+ systemName: string;
1863
+ displayName: string;
1864
+ isArchived: boolean;
1865
+ isRequired: boolean;
1866
+ isUnique: boolean;
1867
+ };
1868
+ textValue: string | null;
1869
+ booleanValue: boolean | null;
1870
+ numberValue: number | null;
1871
+ dateValue: Date | null;
1872
+ uploads: {
1873
+ id: string;
1874
+ createdAt: Date;
1875
+ updatedAt: Date;
1876
+ deletedAt: Date | null;
1877
+ customFieldId: string;
1878
+ upload: {
1879
+ id: string;
1880
+ createdAt: Date;
1881
+ updatedAt: Date;
1882
+ deletedAt: Date | null;
1883
+ fileName: string;
1884
+ fileKey: string;
1885
+ bucketName: string;
1886
+ fileSize: number;
1887
+ };
1888
+ }[];
1889
+ }[];
1890
+ contactId: string;
1891
+ assigneeId: string;
1892
+ creatorId: string;
1893
+ reasonToAssign: string | null;
1894
+ ticketNumber?: number | undefined;
1895
+ }[];
1896
+ total: number;
1897
+ page?: number | undefined;
1898
+ pageSize?: number | undefined;
1899
+ lastPage?: number | null | undefined;
1900
+ }>;
1901
+ 400: z.ZodObject<{
1902
+ message: z.ZodString;
1903
+ }, "strip", z.ZodTypeAny, {
1904
+ message: string;
1905
+ }, {
1906
+ message: string;
1907
+ }>;
1908
+ 401: z.ZodObject<{
1909
+ message: z.ZodString;
1910
+ error: z.ZodAny;
1911
+ }, "strip", z.ZodTypeAny, {
1912
+ message: string;
1913
+ error?: any;
1914
+ }, {
1915
+ message: string;
1916
+ error?: any;
1917
+ }>;
1918
+ 500: z.ZodObject<{
1919
+ message: z.ZodString;
1920
+ error: z.ZodAny;
1921
+ }, "strip", z.ZodTypeAny, {
1922
+ message: string;
1923
+ error?: any;
1924
+ }, {
1925
+ message: string;
1926
+ error?: any;
1927
+ }>;
1928
+ };
1929
+ path: "ticket/contact/:id";
1930
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1931
+ 'x-tenant': z.ZodString;
1932
+ authorization: z.ZodString;
1933
+ }, "strip", z.ZodTypeAny, {
1934
+ 'x-tenant': string;
1935
+ authorization: string;
1936
+ }, {
1937
+ 'x-tenant': string;
1938
+ authorization: string;
1939
+ }>>>;
1940
+ };
1941
+ updateTicket: {
1942
+ body: z.ZodObject<{
1943
+ type: z.ZodObject<{
1944
+ isRequired: z.ZodBoolean;
1945
+ attributeId: z.ZodString;
1946
+ value: z.ZodString;
1947
+ }, "strip", z.ZodTypeAny, {
1948
+ value: string;
1949
+ isRequired: boolean;
1950
+ attributeId: string;
1951
+ }, {
1952
+ value: string;
1953
+ isRequired: boolean;
1954
+ attributeId: string;
1955
+ }>;
1956
+ channel: z.ZodObject<{
1957
+ isRequired: z.ZodBoolean;
1958
+ attributeId: z.ZodString;
1959
+ value: z.ZodString;
1960
+ }, "strip", z.ZodTypeAny, {
1961
+ value: string;
1962
+ isRequired: boolean;
1963
+ attributeId: string;
1964
+ }, {
1965
+ value: string;
1966
+ isRequired: boolean;
1967
+ attributeId: string;
1968
+ }>;
1969
+ priority: z.ZodObject<{
1970
+ isRequired: z.ZodBoolean;
1971
+ attributeId: z.ZodString;
1972
+ value: z.ZodString;
1973
+ }, "strip", z.ZodTypeAny, {
1974
+ value: string;
1975
+ isRequired: boolean;
1976
+ attributeId: string;
1977
+ }, {
1978
+ value: string;
1979
+ isRequired: boolean;
1980
+ attributeId: string;
1981
+ }>;
1982
+ title: z.ZodObject<{
1983
+ isRequired: z.ZodBoolean;
1984
+ attributeId: z.ZodString;
1985
+ value: z.ZodString;
1986
+ }, "strip", z.ZodTypeAny, {
1987
+ value: string;
1988
+ isRequired: boolean;
1989
+ attributeId: string;
1990
+ }, {
1991
+ value: string;
1992
+ isRequired: boolean;
1993
+ attributeId: string;
1994
+ }>;
1995
+ description: z.ZodObject<{
1996
+ isRequired: z.ZodBoolean;
1997
+ attributeId: z.ZodString;
1998
+ value: z.ZodString;
1999
+ }, "strip", z.ZodTypeAny, {
2000
+ value: string;
2001
+ isRequired: boolean;
2002
+ attributeId: string;
2003
+ }, {
2004
+ value: string;
2005
+ isRequired: boolean;
2006
+ attributeId: string;
2007
+ }>;
2008
+ status: z.ZodObject<{
2009
+ isRequired: z.ZodBoolean;
2010
+ attributeId: z.ZodString;
2011
+ value: z.ZodString;
2012
+ }, "strip", z.ZodTypeAny, {
2013
+ value: string;
2014
+ isRequired: boolean;
2015
+ attributeId: string;
2016
+ }, {
2017
+ value: string;
2018
+ isRequired: boolean;
2019
+ attributeId: string;
2020
+ }>;
2021
+ categories: z.ZodObject<{
2022
+ isRequired: z.ZodBoolean;
2023
+ attributeId: z.ZodString;
2024
+ value: z.ZodArray<z.ZodString, "many">;
2025
+ }, "strip", z.ZodTypeAny, {
2026
+ value: string[];
2027
+ isRequired: boolean;
2028
+ attributeId: string;
2029
+ }, {
2030
+ value: string[];
2031
+ isRequired: boolean;
2032
+ attributeId: string;
2033
+ }>;
2034
+ contact: z.ZodObject<{
2035
+ isRequired: z.ZodBoolean;
2036
+ attributeId: z.ZodString;
2037
+ value: z.ZodString;
2038
+ }, "strip", z.ZodTypeAny, {
2039
+ value: string;
2040
+ isRequired: boolean;
2041
+ attributeId: string;
2042
+ }, {
2043
+ value: string;
2044
+ isRequired: boolean;
2045
+ attributeId: string;
2046
+ }>;
2047
+ customFields: z.ZodArray<z.ZodObject<{
2048
+ isRequired: z.ZodBoolean;
2049
+ attributeId: z.ZodString;
2050
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
2051
+ type: z.ZodString;
2052
+ isDefaultAttribute: z.ZodBoolean;
2053
+ }, "strip", z.ZodTypeAny, {
2054
+ type: string;
2055
+ value: (string | string[]) & (string | string[] | undefined);
2056
+ isRequired: boolean;
2057
+ attributeId: string;
2058
+ isDefaultAttribute: boolean;
2059
+ }, {
2060
+ type: string;
2061
+ value: (string | string[]) & (string | string[] | undefined);
2062
+ isRequired: boolean;
2063
+ attributeId: string;
2064
+ isDefaultAttribute: boolean;
2065
+ }>, "many">;
2066
+ tags: z.ZodObject<{
2067
+ isRequired: z.ZodBoolean;
2068
+ attributeId: z.ZodString;
2069
+ value: z.ZodArray<z.ZodString, "many">;
2070
+ }, "strip", z.ZodTypeAny, {
2071
+ value: string[];
2072
+ isRequired: boolean;
2073
+ attributeId: string;
2074
+ }, {
2075
+ value: string[];
2076
+ isRequired: boolean;
2077
+ attributeId: string;
2078
+ }>;
2079
+ assignee: z.ZodObject<{
2080
+ isRequired: z.ZodBoolean;
2081
+ attributeId: z.ZodString;
2082
+ value: z.ZodString;
2083
+ }, "strip", z.ZodTypeAny, {
2084
+ value: string;
2085
+ isRequired: boolean;
2086
+ attributeId: string;
2087
+ }, {
2088
+ value: string;
2089
+ isRequired: boolean;
2090
+ attributeId: string;
2091
+ }>;
2092
+ reasonToAssign: z.ZodObject<{
2093
+ value: z.ZodString;
2094
+ }, "strip", z.ZodTypeAny, {
2095
+ value: string;
2096
+ }, {
2097
+ value: string;
2098
+ }>;
2099
+ id: z.ZodString;
2100
+ }, "strip", z.ZodTypeAny, {
2101
+ type: {
2102
+ value: string;
2103
+ isRequired: boolean;
2104
+ attributeId: string;
2105
+ };
2106
+ id: string;
2107
+ channel: {
2108
+ value: string;
2109
+ isRequired: boolean;
2110
+ attributeId: string;
2111
+ };
2112
+ priority: {
2113
+ value: string;
2114
+ isRequired: boolean;
2115
+ attributeId: string;
2116
+ };
2117
+ title: {
2118
+ value: string;
2119
+ isRequired: boolean;
2120
+ attributeId: string;
2121
+ };
2122
+ description: {
2123
+ value: string;
2124
+ isRequired: boolean;
2125
+ attributeId: string;
2126
+ };
2127
+ status: {
2128
+ value: string;
2129
+ isRequired: boolean;
2130
+ attributeId: string;
2131
+ };
2132
+ categories: {
2133
+ value: string[];
2134
+ isRequired: boolean;
2135
+ attributeId: string;
2136
+ };
2137
+ contact: {
2138
+ value: string;
2139
+ isRequired: boolean;
2140
+ attributeId: string;
2141
+ };
2142
+ customFields: {
2143
+ type: string;
2144
+ value: (string | string[]) & (string | string[] | undefined);
2145
+ isRequired: boolean;
2146
+ attributeId: string;
2147
+ isDefaultAttribute: boolean;
2148
+ }[];
2149
+ tags: {
2150
+ value: string[];
2151
+ isRequired: boolean;
2152
+ attributeId: string;
2153
+ };
2154
+ assignee: {
2155
+ value: string;
2156
+ isRequired: boolean;
2157
+ attributeId: string;
2158
+ };
2159
+ reasonToAssign: {
2160
+ value: string;
2161
+ };
2162
+ }, {
2163
+ type: {
2164
+ value: string;
2165
+ isRequired: boolean;
2166
+ attributeId: string;
2167
+ };
2168
+ id: string;
2169
+ channel: {
2170
+ value: string;
2171
+ isRequired: boolean;
2172
+ attributeId: string;
2173
+ };
2174
+ priority: {
2175
+ value: string;
2176
+ isRequired: boolean;
2177
+ attributeId: string;
2178
+ };
2179
+ title: {
2180
+ value: string;
2181
+ isRequired: boolean;
2182
+ attributeId: string;
2183
+ };
2184
+ description: {
2185
+ value: string;
2186
+ isRequired: boolean;
2187
+ attributeId: string;
2188
+ };
2189
+ status: {
2190
+ value: string;
2191
+ isRequired: boolean;
2192
+ attributeId: string;
2193
+ };
2194
+ categories: {
2195
+ value: string[];
2196
+ isRequired: boolean;
2197
+ attributeId: string;
2198
+ };
2199
+ contact: {
2200
+ value: string;
2201
+ isRequired: boolean;
2202
+ attributeId: string;
2203
+ };
2204
+ customFields: {
2205
+ type: string;
2206
+ value: (string | string[]) & (string | string[] | undefined);
2207
+ isRequired: boolean;
2208
+ attributeId: string;
2209
+ isDefaultAttribute: boolean;
2210
+ }[];
2211
+ tags: {
2212
+ value: string[];
2213
+ isRequired: boolean;
2214
+ attributeId: string;
2215
+ };
2216
+ assignee: {
2217
+ value: string;
2218
+ isRequired: boolean;
2219
+ attributeId: string;
2220
+ };
2221
+ reasonToAssign: {
2222
+ value: string;
2223
+ };
2224
+ }>;
2225
+ summary: "Update a contact";
2226
+ method: "PATCH";
2227
+ pathParams: z.ZodObject<{
2228
+ id: z.ZodString;
2229
+ }, "strip", z.ZodTypeAny, {
2230
+ id: string;
2231
+ }, {
2232
+ id: string;
2233
+ }>;
2234
+ responses: {
2235
+ 201: z.ZodObject<{
2236
+ requestId: z.ZodString;
2237
+ message: z.ZodObject<{
2238
+ id: z.ZodString;
2239
+ createdAt: z.ZodDate;
2240
+ updatedAt: z.ZodDate;
2241
+ deletedAt: z.ZodNullable<z.ZodDate>;
2242
+ title: z.ZodString;
2243
+ description: z.ZodNullable<z.ZodString>;
2244
+ type: z.ZodString;
2245
+ channel: z.ZodString;
2246
+ priority: z.ZodString;
2247
+ status: z.ZodString;
2248
+ contactId: z.ZodString;
2249
+ creatorId: z.ZodString;
2250
+ assigneeId: z.ZodString;
2251
+ reasonToAssign: z.ZodNullable<z.ZodString>;
2252
+ ticketNumber: z.ZodOptional<z.ZodNumber>;
2253
+ customFields: z.ZodArray<z.ZodObject<{
2254
+ id: z.ZodString;
2255
+ createdAt: z.ZodDate;
2256
+ updatedAt: z.ZodDate;
2257
+ deletedAt: z.ZodNullable<z.ZodDate>;
2258
+ textValue: z.ZodNullable<z.ZodString>;
2259
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2260
+ numberValue: z.ZodNullable<z.ZodNumber>;
2261
+ dateValue: z.ZodNullable<z.ZodDate>;
2262
+ attribute: z.ZodObject<Omit<{
2263
+ id: z.ZodString;
2264
+ createdAt: z.ZodDate;
2265
+ updatedAt: z.ZodDate;
2266
+ deletedAt: z.ZodNullable<z.ZodDate>;
2267
+ systemName: z.ZodString;
2268
+ displayName: z.ZodString;
2269
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2270
+ position: z.ZodNumber;
2271
+ isDefault: z.ZodBoolean;
2272
+ isArchived: z.ZodBoolean;
2273
+ isRequired: z.ZodBoolean;
2274
+ isUnique: z.ZodBoolean;
2275
+ options: z.ZodArray<z.ZodObject<{
2276
+ position: z.ZodNumber;
2277
+ value: z.ZodString;
2278
+ label: z.ZodString;
2279
+ isDefault: z.ZodBoolean;
2280
+ id: z.ZodString;
2281
+ }, "strip", z.ZodTypeAny, {
2282
+ id: string;
2283
+ position: number;
2284
+ value: string;
2285
+ label: string;
2286
+ isDefault: boolean;
2287
+ }, {
2288
+ id: string;
2289
+ position: number;
2290
+ value: string;
2291
+ label: string;
2292
+ isDefault: boolean;
2293
+ }>, "many">;
2294
+ group: z.ZodObject<{
2295
+ id: z.ZodString;
2296
+ createdAt: z.ZodDate;
2297
+ updatedAt: z.ZodDate;
2298
+ deletedAt: z.ZodNullable<z.ZodDate>;
2299
+ systemName: z.ZodString;
2300
+ displayName: z.ZodString;
2301
+ }, "strip", z.ZodTypeAny, {
2302
+ id: string;
2303
+ createdAt: Date;
2304
+ updatedAt: Date;
2305
+ deletedAt: Date | null;
2306
+ systemName: string;
2307
+ displayName: string;
2308
+ }, {
2309
+ id: string;
2310
+ createdAt: Date;
2311
+ updatedAt: Date;
2312
+ deletedAt: Date | null;
2313
+ systemName: string;
2314
+ displayName: string;
2315
+ }>;
2316
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2317
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2318
+ id: string;
2319
+ position: number;
2320
+ createdAt: Date;
2321
+ updatedAt: Date;
2322
+ deletedAt: Date | null;
2323
+ isDefault: boolean;
2324
+ systemName: string;
2325
+ displayName: string;
2326
+ isArchived: boolean;
2327
+ isRequired: boolean;
2328
+ isUnique: boolean;
2329
+ }, {
2330
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2331
+ id: string;
2332
+ position: number;
2333
+ createdAt: Date;
2334
+ updatedAt: Date;
2335
+ deletedAt: Date | null;
2336
+ isDefault: boolean;
2337
+ systemName: string;
2338
+ displayName: string;
2339
+ isArchived: boolean;
2340
+ isRequired: boolean;
2341
+ isUnique: boolean;
2342
+ }>;
2343
+ uploads: z.ZodArray<z.ZodObject<{
2344
+ id: z.ZodString;
2345
+ createdAt: z.ZodDate;
2346
+ updatedAt: z.ZodDate;
2347
+ deletedAt: z.ZodNullable<z.ZodDate>;
2348
+ customFieldId: z.ZodString;
2349
+ upload: z.ZodObject<{
2350
+ id: z.ZodString;
2351
+ createdAt: z.ZodDate;
2352
+ updatedAt: z.ZodDate;
2353
+ deletedAt: z.ZodNullable<z.ZodDate>;
2354
+ bucketName: z.ZodString;
2355
+ fileName: z.ZodString;
2356
+ fileSize: z.ZodNumber;
2357
+ fileKey: z.ZodString;
2358
+ }, "strip", z.ZodTypeAny, {
2359
+ id: string;
2360
+ createdAt: Date;
2361
+ updatedAt: Date;
2362
+ deletedAt: Date | null;
2363
+ fileName: string;
2364
+ fileKey: string;
2365
+ bucketName: string;
2366
+ fileSize: number;
2367
+ }, {
2368
+ id: string;
2369
+ createdAt: Date;
2370
+ updatedAt: Date;
2371
+ deletedAt: Date | null;
2372
+ fileName: string;
2373
+ fileKey: string;
2374
+ bucketName: string;
2375
+ fileSize: number;
2376
+ }>;
2377
+ }, "strip", z.ZodTypeAny, {
2378
+ id: string;
2379
+ createdAt: Date;
2380
+ updatedAt: Date;
2381
+ deletedAt: Date | null;
2382
+ customFieldId: string;
2383
+ upload: {
2384
+ id: string;
2385
+ createdAt: Date;
2386
+ updatedAt: Date;
2387
+ deletedAt: Date | null;
2388
+ fileName: string;
2389
+ fileKey: string;
2390
+ bucketName: string;
2391
+ fileSize: number;
2392
+ };
2393
+ }, {
2394
+ id: string;
2395
+ createdAt: Date;
2396
+ updatedAt: Date;
2397
+ deletedAt: Date | null;
2398
+ customFieldId: string;
2399
+ upload: {
2400
+ id: string;
2401
+ createdAt: Date;
2402
+ updatedAt: Date;
2403
+ deletedAt: Date | null;
2404
+ fileName: string;
2405
+ fileKey: string;
2406
+ bucketName: string;
2407
+ fileSize: number;
2408
+ };
2409
+ }>, "many">;
2410
+ }, "strip", z.ZodTypeAny, {
2411
+ id: string;
2412
+ createdAt: Date;
2413
+ updatedAt: Date;
2414
+ deletedAt: Date | null;
2415
+ attribute: {
2416
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2417
+ id: string;
2418
+ position: number;
2419
+ createdAt: Date;
2420
+ updatedAt: Date;
2421
+ deletedAt: Date | null;
2422
+ isDefault: boolean;
2423
+ systemName: string;
2424
+ displayName: string;
2425
+ isArchived: boolean;
2426
+ isRequired: boolean;
2427
+ isUnique: boolean;
2428
+ };
2429
+ textValue: string | null;
2430
+ booleanValue: boolean | null;
2431
+ numberValue: number | null;
2432
+ dateValue: Date | null;
2433
+ uploads: {
2434
+ id: string;
2435
+ createdAt: Date;
2436
+ updatedAt: Date;
2437
+ deletedAt: Date | null;
2438
+ customFieldId: string;
2439
+ upload: {
2440
+ id: string;
2441
+ createdAt: Date;
2442
+ updatedAt: Date;
2443
+ deletedAt: Date | null;
2444
+ fileName: string;
2445
+ fileKey: string;
2446
+ bucketName: string;
2447
+ fileSize: number;
2448
+ };
2449
+ }[];
2450
+ }, {
2451
+ id: string;
2452
+ createdAt: Date;
2453
+ updatedAt: Date;
2454
+ deletedAt: Date | null;
2455
+ attribute: {
2456
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2457
+ id: string;
2458
+ position: number;
2459
+ createdAt: Date;
2460
+ updatedAt: Date;
2461
+ deletedAt: Date | null;
2462
+ isDefault: boolean;
2463
+ systemName: string;
2464
+ displayName: string;
2465
+ isArchived: boolean;
2466
+ isRequired: boolean;
2467
+ isUnique: boolean;
2468
+ };
2469
+ textValue: string | null;
2470
+ booleanValue: boolean | null;
2471
+ numberValue: number | null;
2472
+ dateValue: Date | null;
2473
+ uploads: {
2474
+ id: string;
2475
+ createdAt: Date;
2476
+ updatedAt: Date;
2477
+ deletedAt: Date | null;
2478
+ customFieldId: string;
2479
+ upload: {
2480
+ id: string;
2481
+ createdAt: Date;
2482
+ updatedAt: Date;
2483
+ deletedAt: Date | null;
2484
+ fileName: string;
2485
+ fileKey: string;
2486
+ bucketName: string;
2487
+ fileSize: number;
2488
+ };
2489
+ }[];
2490
+ }>, "many">;
2491
+ }, "strip", z.ZodTypeAny, {
2492
+ type: string;
2493
+ id: string;
2494
+ channel: string;
2495
+ priority: string;
2496
+ title: string;
2497
+ description: string | null;
2498
+ status: string;
2499
+ createdAt: Date;
2500
+ updatedAt: Date;
2501
+ deletedAt: Date | null;
2502
+ customFields: {
2503
+ id: string;
2504
+ createdAt: Date;
2505
+ updatedAt: Date;
2506
+ deletedAt: Date | null;
2507
+ attribute: {
2508
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2509
+ id: string;
2510
+ position: number;
2511
+ createdAt: Date;
2512
+ updatedAt: Date;
2513
+ deletedAt: Date | null;
2514
+ isDefault: boolean;
2515
+ systemName: string;
2516
+ displayName: string;
2517
+ isArchived: boolean;
2518
+ isRequired: boolean;
2519
+ isUnique: boolean;
2520
+ };
2521
+ textValue: string | null;
2522
+ booleanValue: boolean | null;
2523
+ numberValue: number | null;
2524
+ dateValue: Date | null;
2525
+ uploads: {
2526
+ id: string;
2527
+ createdAt: Date;
2528
+ updatedAt: Date;
2529
+ deletedAt: Date | null;
2530
+ customFieldId: string;
2531
+ upload: {
2532
+ id: string;
2533
+ createdAt: Date;
2534
+ updatedAt: Date;
2535
+ deletedAt: Date | null;
2536
+ fileName: string;
2537
+ fileKey: string;
2538
+ bucketName: string;
2539
+ fileSize: number;
2540
+ };
2541
+ }[];
2542
+ }[];
2543
+ contactId: string;
2544
+ assigneeId: string;
2545
+ creatorId: string;
2546
+ reasonToAssign: string | null;
2547
+ ticketNumber?: number | undefined;
2548
+ }, {
2549
+ type: string;
2550
+ id: string;
2551
+ channel: string;
2552
+ priority: string;
2553
+ title: string;
2554
+ description: string | null;
2555
+ status: string;
2556
+ createdAt: Date;
2557
+ updatedAt: Date;
2558
+ deletedAt: Date | null;
2559
+ customFields: {
2560
+ id: string;
2561
+ createdAt: Date;
2562
+ updatedAt: Date;
2563
+ deletedAt: Date | null;
2564
+ attribute: {
2565
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2566
+ id: string;
2567
+ position: number;
2568
+ createdAt: Date;
2569
+ updatedAt: Date;
2570
+ deletedAt: Date | null;
2571
+ isDefault: boolean;
2572
+ systemName: string;
2573
+ displayName: string;
2574
+ isArchived: boolean;
2575
+ isRequired: boolean;
2576
+ isUnique: boolean;
2577
+ };
2578
+ textValue: string | null;
2579
+ booleanValue: boolean | null;
2580
+ numberValue: number | null;
2581
+ dateValue: Date | null;
2582
+ uploads: {
2583
+ id: string;
2584
+ createdAt: Date;
2585
+ updatedAt: Date;
2586
+ deletedAt: Date | null;
2587
+ customFieldId: string;
2588
+ upload: {
2589
+ id: string;
2590
+ createdAt: Date;
2591
+ updatedAt: Date;
2592
+ deletedAt: Date | null;
2593
+ fileName: string;
2594
+ fileKey: string;
2595
+ bucketName: string;
2596
+ fileSize: number;
2597
+ };
2598
+ }[];
2599
+ }[];
2600
+ contactId: string;
2601
+ assigneeId: string;
2602
+ creatorId: string;
2603
+ reasonToAssign: string | null;
2604
+ ticketNumber?: number | undefined;
2605
+ }>;
2606
+ }, "strip", z.ZodTypeAny, {
2607
+ message: {
2608
+ type: string;
2609
+ id: string;
2610
+ channel: string;
2611
+ priority: string;
2612
+ title: string;
2613
+ description: string | null;
2614
+ status: string;
2615
+ createdAt: Date;
2616
+ updatedAt: Date;
2617
+ deletedAt: Date | null;
2618
+ customFields: {
2619
+ id: string;
2620
+ createdAt: Date;
2621
+ updatedAt: Date;
2622
+ deletedAt: Date | null;
2623
+ attribute: {
2624
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2625
+ id: string;
2626
+ position: number;
2627
+ createdAt: Date;
2628
+ updatedAt: Date;
2629
+ deletedAt: Date | null;
2630
+ isDefault: boolean;
2631
+ systemName: string;
2632
+ displayName: string;
2633
+ isArchived: boolean;
2634
+ isRequired: boolean;
2635
+ isUnique: boolean;
2636
+ };
2637
+ textValue: string | null;
2638
+ booleanValue: boolean | null;
2639
+ numberValue: number | null;
2640
+ dateValue: Date | null;
2641
+ uploads: {
2642
+ id: string;
2643
+ createdAt: Date;
2644
+ updatedAt: Date;
2645
+ deletedAt: Date | null;
2646
+ customFieldId: string;
2647
+ upload: {
2648
+ id: string;
2649
+ createdAt: Date;
2650
+ updatedAt: Date;
2651
+ deletedAt: Date | null;
2652
+ fileName: string;
2653
+ fileKey: string;
2654
+ bucketName: string;
2655
+ fileSize: number;
2656
+ };
2657
+ }[];
2658
+ }[];
2659
+ contactId: string;
2660
+ assigneeId: string;
2661
+ creatorId: string;
2662
+ reasonToAssign: string | null;
2663
+ ticketNumber?: number | undefined;
2664
+ };
2665
+ requestId: string;
2666
+ }, {
2667
+ message: {
2668
+ type: string;
2669
+ id: string;
2670
+ channel: string;
2671
+ priority: string;
2672
+ title: string;
2673
+ description: string | null;
2674
+ status: string;
2675
+ createdAt: Date;
2676
+ updatedAt: Date;
2677
+ deletedAt: Date | null;
2678
+ customFields: {
2679
+ id: string;
2680
+ createdAt: Date;
2681
+ updatedAt: Date;
2682
+ deletedAt: Date | null;
2683
+ attribute: {
2684
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2685
+ id: string;
2686
+ position: number;
2687
+ createdAt: Date;
2688
+ updatedAt: Date;
2689
+ deletedAt: Date | null;
2690
+ isDefault: boolean;
2691
+ systemName: string;
2692
+ displayName: string;
2693
+ isArchived: boolean;
2694
+ isRequired: boolean;
2695
+ isUnique: boolean;
2696
+ };
2697
+ textValue: string | null;
2698
+ booleanValue: boolean | null;
2699
+ numberValue: number | null;
2700
+ dateValue: Date | null;
2701
+ uploads: {
2702
+ id: string;
2703
+ createdAt: Date;
2704
+ updatedAt: Date;
2705
+ deletedAt: Date | null;
2706
+ customFieldId: string;
2707
+ upload: {
2708
+ id: string;
2709
+ createdAt: Date;
2710
+ updatedAt: Date;
2711
+ deletedAt: Date | null;
2712
+ fileName: string;
2713
+ fileKey: string;
2714
+ bucketName: string;
2715
+ fileSize: number;
2716
+ };
2717
+ }[];
2718
+ }[];
2719
+ contactId: string;
2720
+ assigneeId: string;
2721
+ creatorId: string;
2722
+ reasonToAssign: string | null;
2723
+ ticketNumber?: number | undefined;
2724
+ };
2725
+ requestId: string;
2726
+ }>;
2727
+ 400: z.ZodObject<{
2728
+ message: z.ZodString;
2729
+ }, "strip", z.ZodTypeAny, {
2730
+ message: string;
2731
+ }, {
2732
+ message: string;
2733
+ }>;
2734
+ 409: z.ZodObject<{
2735
+ message: z.ZodString;
2736
+ }, "strip", z.ZodTypeAny, {
2737
+ message: string;
2738
+ }, {
2739
+ message: string;
2740
+ }>;
2741
+ 500: z.ZodObject<{
2742
+ message: z.ZodString;
2743
+ }, "strip", z.ZodTypeAny, {
2744
+ message: string;
2745
+ }, {
2746
+ message: string;
2747
+ }>;
2748
+ 401: z.ZodObject<{
2749
+ message: z.ZodString;
2750
+ error: z.ZodAny;
2751
+ }, "strip", z.ZodTypeAny, {
2752
+ message: string;
2753
+ error?: any;
2754
+ }, {
2755
+ message: string;
2756
+ error?: any;
2757
+ }>;
2758
+ 404: z.ZodObject<{
2759
+ message: z.ZodString;
2760
+ error: z.ZodAny;
2761
+ }, "strip", z.ZodTypeAny, {
2762
+ message: string;
2763
+ error?: any;
2764
+ }, {
2765
+ message: string;
2766
+ error?: any;
2767
+ }>;
2768
+ 422: z.ZodObject<{
2769
+ message: z.ZodString;
2770
+ error: z.ZodAny;
2771
+ }, "strip", z.ZodTypeAny, {
2772
+ message: string;
2773
+ error?: any;
2774
+ }, {
2775
+ message: string;
2776
+ error?: any;
2777
+ }>;
2778
+ };
2779
+ path: "ticket/:id";
2780
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2781
+ 'x-tenant': z.ZodString;
2782
+ authorization: z.ZodString;
2783
+ }, "strip", z.ZodTypeAny, {
2784
+ 'x-tenant': string;
2785
+ authorization: string;
2786
+ }, {
2787
+ 'x-tenant': string;
2788
+ authorization: string;
2789
+ }>>>;
2790
+ };
2791
+ deleteTicket: {
2792
+ body: null;
2793
+ summary: "Delete a extension.";
2794
+ method: "DELETE";
2795
+ pathParams: z.ZodObject<{
2796
+ id: z.ZodString;
2797
+ }, "strip", z.ZodTypeAny, {
2798
+ id: string;
2799
+ }, {
2800
+ id: string;
2801
+ }>;
2802
+ responses: {
2803
+ 200: z.ZodObject<{
2804
+ requestId: z.ZodString;
2805
+ message: z.ZodString;
2806
+ }, "strip", z.ZodTypeAny, {
2807
+ message: string;
2808
+ requestId: string;
2809
+ }, {
2810
+ message: string;
2811
+ requestId: string;
2812
+ }>;
2813
+ 500: z.ZodObject<{
2814
+ message: z.ZodString;
2815
+ error: z.ZodAny;
2816
+ }, "strip", z.ZodTypeAny, {
2817
+ message: string;
2818
+ error?: any;
2819
+ }, {
2820
+ message: string;
2821
+ error?: any;
2822
+ }>;
2823
+ };
2824
+ path: "ticket/:id";
2825
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2826
+ 'x-tenant': z.ZodString;
2827
+ authorization: z.ZodString;
2828
+ }, "strip", z.ZodTypeAny, {
2829
+ 'x-tenant': string;
2830
+ authorization: string;
2831
+ }, {
2832
+ 'x-tenant': string;
2833
+ authorization: string;
2834
+ }>>>;
2835
+ };
2836
+ updateDescription: {
2837
+ body: z.ZodObject<{
2838
+ description: z.ZodString;
2839
+ }, "strip", z.ZodTypeAny, {
2840
+ description: string;
2841
+ }, {
2842
+ description: string;
2843
+ }>;
2844
+ summary: "Update a description from a ticket";
2845
+ method: "PATCH";
2846
+ pathParams: z.ZodObject<{
2847
+ id: z.ZodString;
2848
+ }, "strip", z.ZodTypeAny, {
2849
+ id: string;
2850
+ }, {
2851
+ id: string;
2852
+ }>;
2853
+ responses: {
2854
+ 201: z.ZodObject<{
2855
+ requestId: z.ZodString;
2856
+ message: z.ZodString;
2857
+ }, "strip", z.ZodTypeAny, {
2858
+ message: string;
2859
+ requestId: string;
2860
+ }, {
2861
+ message: string;
2862
+ requestId: string;
2863
+ }>;
2864
+ 400: z.ZodObject<{
2865
+ message: z.ZodString;
2866
+ }, "strip", z.ZodTypeAny, {
2867
+ message: string;
2868
+ }, {
2869
+ message: string;
2870
+ }>;
2871
+ 409: z.ZodObject<{
2872
+ message: z.ZodString;
2873
+ }, "strip", z.ZodTypeAny, {
2874
+ message: string;
2875
+ }, {
2876
+ message: string;
2877
+ }>;
2878
+ 500: z.ZodObject<{
2879
+ message: z.ZodString;
2880
+ }, "strip", z.ZodTypeAny, {
2881
+ message: string;
2882
+ }, {
2883
+ message: string;
2884
+ }>;
2885
+ 401: z.ZodObject<{
2886
+ message: z.ZodString;
2887
+ error: z.ZodAny;
2888
+ }, "strip", z.ZodTypeAny, {
2889
+ message: string;
2890
+ error?: any;
2891
+ }, {
2892
+ message: string;
2893
+ error?: any;
2894
+ }>;
2895
+ 404: z.ZodObject<{
2896
+ message: z.ZodString;
2897
+ error: z.ZodAny;
2898
+ }, "strip", z.ZodTypeAny, {
2899
+ message: string;
2900
+ error?: any;
2901
+ }, {
2902
+ message: string;
2903
+ error?: any;
2904
+ }>;
2905
+ 422: z.ZodObject<{
2906
+ message: z.ZodString;
2907
+ error: z.ZodAny;
2908
+ }, "strip", z.ZodTypeAny, {
2909
+ message: string;
2910
+ error?: any;
2911
+ }, {
2912
+ message: string;
2913
+ error?: any;
2914
+ }>;
2915
+ };
2916
+ path: "ticket/description/update/:id";
2917
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2918
+ 'x-tenant': z.ZodString;
2919
+ authorization: z.ZodString;
2920
+ }, "strip", z.ZodTypeAny, {
2921
+ 'x-tenant': string;
2922
+ authorization: string;
2923
+ }, {
2924
+ 'x-tenant': string;
2925
+ authorization: string;
2926
+ }>>>;
2927
+ };
2928
+ updateTitle: {
2929
+ body: z.ZodObject<{
2930
+ title: z.ZodString;
2931
+ }, "strip", z.ZodTypeAny, {
2932
+ title: string;
2933
+ }, {
2934
+ title: string;
2935
+ }>;
2936
+ summary: "Update a title from a ticket";
2937
+ method: "PATCH";
2938
+ pathParams: z.ZodObject<{
2939
+ id: z.ZodString;
2940
+ }, "strip", z.ZodTypeAny, {
2941
+ id: string;
2942
+ }, {
2943
+ id: string;
2944
+ }>;
2945
+ responses: {
2946
+ 200: z.ZodObject<{
2947
+ requestId: z.ZodString;
2948
+ message: z.ZodString;
2949
+ }, "strip", z.ZodTypeAny, {
2950
+ message: string;
2951
+ requestId: string;
2952
+ }, {
2953
+ message: string;
2954
+ requestId: string;
2955
+ }>;
2956
+ 400: z.ZodObject<{
2957
+ message: z.ZodString;
2958
+ }, "strip", z.ZodTypeAny, {
2959
+ message: string;
2960
+ }, {
2961
+ message: string;
2962
+ }>;
2963
+ 409: z.ZodObject<{
2964
+ message: z.ZodString;
2965
+ }, "strip", z.ZodTypeAny, {
2966
+ message: string;
2967
+ }, {
2968
+ message: string;
2969
+ }>;
2970
+ 500: z.ZodObject<{
2971
+ message: z.ZodString;
2972
+ }, "strip", z.ZodTypeAny, {
2973
+ message: string;
2974
+ }, {
2975
+ message: string;
2976
+ }>;
2977
+ 401: z.ZodObject<{
2978
+ message: z.ZodString;
2979
+ error: z.ZodAny;
2980
+ }, "strip", z.ZodTypeAny, {
2981
+ message: string;
2982
+ error?: any;
2983
+ }, {
2984
+ message: string;
2985
+ error?: any;
2986
+ }>;
2987
+ 404: z.ZodObject<{
2988
+ message: z.ZodString;
2989
+ error: z.ZodAny;
2990
+ }, "strip", z.ZodTypeAny, {
2991
+ message: string;
2992
+ error?: any;
2993
+ }, {
2994
+ message: string;
2995
+ error?: any;
2996
+ }>;
2997
+ 422: z.ZodObject<{
2998
+ message: z.ZodString;
2999
+ error: z.ZodAny;
3000
+ }, "strip", z.ZodTypeAny, {
3001
+ message: string;
3002
+ error?: any;
3003
+ }, {
3004
+ message: string;
3005
+ error?: any;
3006
+ }>;
3007
+ };
3008
+ path: "ticket/title/update/:id";
3009
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3010
+ 'x-tenant': z.ZodString;
3011
+ authorization: z.ZodString;
3012
+ }, "strip", z.ZodTypeAny, {
3013
+ 'x-tenant': string;
3014
+ authorization: string;
3015
+ }, {
3016
+ 'x-tenant': string;
3017
+ authorization: string;
3018
+ }>>>;
3019
+ };
3020
+ updateType: {
3021
+ body: z.ZodObject<{
3022
+ type: z.ZodString;
3023
+ }, "strip", z.ZodTypeAny, {
3024
+ type: string;
3025
+ }, {
3026
+ type: string;
3027
+ }>;
3028
+ summary: "Update a type from a ticket";
3029
+ method: "PATCH";
3030
+ pathParams: z.ZodObject<{
3031
+ id: z.ZodString;
3032
+ }, "strip", z.ZodTypeAny, {
3033
+ id: string;
3034
+ }, {
3035
+ id: string;
3036
+ }>;
3037
+ responses: {
3038
+ 200: z.ZodObject<{
3039
+ requestId: z.ZodString;
3040
+ message: z.ZodString;
3041
+ }, "strip", z.ZodTypeAny, {
3042
+ message: string;
3043
+ requestId: string;
3044
+ }, {
3045
+ message: string;
3046
+ requestId: string;
3047
+ }>;
3048
+ 400: z.ZodObject<{
3049
+ message: z.ZodString;
3050
+ }, "strip", z.ZodTypeAny, {
3051
+ message: string;
3052
+ }, {
3053
+ message: string;
3054
+ }>;
3055
+ 409: z.ZodObject<{
3056
+ message: z.ZodString;
3057
+ }, "strip", z.ZodTypeAny, {
3058
+ message: string;
3059
+ }, {
3060
+ message: string;
3061
+ }>;
3062
+ 500: z.ZodObject<{
3063
+ message: z.ZodString;
3064
+ }, "strip", z.ZodTypeAny, {
3065
+ message: string;
3066
+ }, {
3067
+ message: string;
3068
+ }>;
3069
+ 401: z.ZodObject<{
3070
+ message: z.ZodString;
3071
+ error: z.ZodAny;
3072
+ }, "strip", z.ZodTypeAny, {
3073
+ message: string;
3074
+ error?: any;
3075
+ }, {
3076
+ message: string;
3077
+ error?: any;
3078
+ }>;
3079
+ 404: z.ZodObject<{
3080
+ message: z.ZodString;
3081
+ error: z.ZodAny;
3082
+ }, "strip", z.ZodTypeAny, {
3083
+ message: string;
3084
+ error?: any;
3085
+ }, {
3086
+ message: string;
3087
+ error?: any;
3088
+ }>;
3089
+ 422: z.ZodObject<{
3090
+ message: z.ZodString;
3091
+ error: z.ZodAny;
3092
+ }, "strip", z.ZodTypeAny, {
3093
+ message: string;
3094
+ error?: any;
3095
+ }, {
3096
+ message: string;
3097
+ error?: any;
3098
+ }>;
3099
+ };
3100
+ path: "ticket/type/update/:id";
3101
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3102
+ 'x-tenant': z.ZodString;
3103
+ authorization: z.ZodString;
3104
+ }, "strip", z.ZodTypeAny, {
3105
+ 'x-tenant': string;
3106
+ authorization: string;
3107
+ }, {
3108
+ 'x-tenant': string;
3109
+ authorization: string;
3110
+ }>>>;
3111
+ };
3112
+ updateStatus: {
3113
+ body: z.ZodObject<{
3114
+ status: z.ZodString;
3115
+ }, "strip", z.ZodTypeAny, {
3116
+ status: string;
3117
+ }, {
3118
+ status: string;
3119
+ }>;
3120
+ summary: "Update a status from a ticket";
3121
+ method: "PATCH";
3122
+ pathParams: z.ZodObject<{
3123
+ id: z.ZodString;
3124
+ }, "strip", z.ZodTypeAny, {
3125
+ id: string;
3126
+ }, {
3127
+ id: string;
3128
+ }>;
3129
+ responses: {
3130
+ 200: z.ZodObject<{
3131
+ requestId: z.ZodString;
3132
+ message: z.ZodString;
3133
+ }, "strip", z.ZodTypeAny, {
3134
+ message: string;
3135
+ requestId: string;
3136
+ }, {
3137
+ message: string;
3138
+ requestId: string;
3139
+ }>;
3140
+ 400: z.ZodObject<{
3141
+ message: z.ZodString;
3142
+ }, "strip", z.ZodTypeAny, {
3143
+ message: string;
3144
+ }, {
3145
+ message: string;
3146
+ }>;
3147
+ 409: z.ZodObject<{
3148
+ message: z.ZodString;
3149
+ }, "strip", z.ZodTypeAny, {
3150
+ message: string;
3151
+ }, {
3152
+ message: string;
3153
+ }>;
3154
+ 500: z.ZodObject<{
3155
+ message: z.ZodString;
3156
+ }, "strip", z.ZodTypeAny, {
3157
+ message: string;
3158
+ }, {
3159
+ message: string;
3160
+ }>;
3161
+ 401: z.ZodObject<{
3162
+ message: z.ZodString;
3163
+ error: z.ZodAny;
3164
+ }, "strip", z.ZodTypeAny, {
3165
+ message: string;
3166
+ error?: any;
3167
+ }, {
3168
+ message: string;
3169
+ error?: any;
3170
+ }>;
3171
+ 404: z.ZodObject<{
3172
+ message: z.ZodString;
3173
+ error: z.ZodAny;
3174
+ }, "strip", z.ZodTypeAny, {
3175
+ message: string;
3176
+ error?: any;
3177
+ }, {
3178
+ message: string;
3179
+ error?: any;
3180
+ }>;
3181
+ 422: z.ZodObject<{
3182
+ message: z.ZodString;
3183
+ error: z.ZodAny;
3184
+ }, "strip", z.ZodTypeAny, {
3185
+ message: string;
3186
+ error?: any;
3187
+ }, {
3188
+ message: string;
3189
+ error?: any;
3190
+ }>;
3191
+ };
3192
+ path: "ticket/status/update/:id";
3193
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3194
+ 'x-tenant': z.ZodString;
3195
+ authorization: z.ZodString;
3196
+ }, "strip", z.ZodTypeAny, {
3197
+ 'x-tenant': string;
3198
+ authorization: string;
3199
+ }, {
3200
+ 'x-tenant': string;
3201
+ authorization: string;
3202
+ }>>>;
3203
+ };
3204
+ updatePriority: {
3205
+ body: z.ZodObject<{
3206
+ priority: z.ZodString;
3207
+ }, "strip", z.ZodTypeAny, {
3208
+ priority: string;
3209
+ }, {
3210
+ priority: string;
3211
+ }>;
3212
+ summary: "Update a priority from a ticket";
3213
+ method: "PATCH";
3214
+ pathParams: z.ZodObject<{
3215
+ id: z.ZodString;
3216
+ }, "strip", z.ZodTypeAny, {
3217
+ id: string;
3218
+ }, {
3219
+ id: string;
3220
+ }>;
3221
+ responses: {
3222
+ 200: z.ZodObject<{
3223
+ requestId: z.ZodString;
3224
+ message: z.ZodString;
3225
+ }, "strip", z.ZodTypeAny, {
3226
+ message: string;
3227
+ requestId: string;
3228
+ }, {
3229
+ message: string;
3230
+ requestId: string;
3231
+ }>;
3232
+ 400: z.ZodObject<{
3233
+ message: z.ZodString;
3234
+ }, "strip", z.ZodTypeAny, {
3235
+ message: string;
3236
+ }, {
3237
+ message: string;
3238
+ }>;
3239
+ 409: z.ZodObject<{
3240
+ message: z.ZodString;
3241
+ }, "strip", z.ZodTypeAny, {
3242
+ message: string;
3243
+ }, {
3244
+ message: string;
3245
+ }>;
3246
+ 500: z.ZodObject<{
3247
+ message: z.ZodString;
3248
+ }, "strip", z.ZodTypeAny, {
3249
+ message: string;
3250
+ }, {
3251
+ message: string;
3252
+ }>;
3253
+ 401: z.ZodObject<{
3254
+ message: z.ZodString;
3255
+ error: z.ZodAny;
3256
+ }, "strip", z.ZodTypeAny, {
3257
+ message: string;
3258
+ error?: any;
3259
+ }, {
3260
+ message: string;
3261
+ error?: any;
3262
+ }>;
3263
+ 404: z.ZodObject<{
3264
+ message: z.ZodString;
3265
+ error: z.ZodAny;
3266
+ }, "strip", z.ZodTypeAny, {
3267
+ message: string;
3268
+ error?: any;
3269
+ }, {
3270
+ message: string;
3271
+ error?: any;
3272
+ }>;
3273
+ 422: z.ZodObject<{
3274
+ message: z.ZodString;
3275
+ error: z.ZodAny;
3276
+ }, "strip", z.ZodTypeAny, {
3277
+ message: string;
3278
+ error?: any;
3279
+ }, {
3280
+ message: string;
3281
+ error?: any;
3282
+ }>;
3283
+ };
3284
+ path: "ticket/priority/update/:id";
3285
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3286
+ 'x-tenant': z.ZodString;
3287
+ authorization: z.ZodString;
3288
+ }, "strip", z.ZodTypeAny, {
3289
+ 'x-tenant': string;
3290
+ authorization: string;
3291
+ }, {
3292
+ 'x-tenant': string;
3293
+ authorization: string;
3294
+ }>>>;
3295
+ };
3296
+ updateChannel: {
3297
+ body: z.ZodObject<{
3298
+ channel: z.ZodString;
3299
+ }, "strip", z.ZodTypeAny, {
3300
+ channel: string;
3301
+ }, {
3302
+ channel: string;
3303
+ }>;
3304
+ summary: "Update a channel from a ticket";
3305
+ method: "PATCH";
3306
+ pathParams: z.ZodObject<{
3307
+ id: z.ZodString;
3308
+ }, "strip", z.ZodTypeAny, {
3309
+ id: string;
3310
+ }, {
3311
+ id: string;
3312
+ }>;
3313
+ responses: {
3314
+ 200: z.ZodObject<{
3315
+ requestId: z.ZodString;
3316
+ message: z.ZodString;
3317
+ }, "strip", z.ZodTypeAny, {
3318
+ message: string;
3319
+ requestId: string;
3320
+ }, {
3321
+ message: string;
3322
+ requestId: string;
3323
+ }>;
3324
+ 400: z.ZodObject<{
3325
+ message: z.ZodString;
3326
+ }, "strip", z.ZodTypeAny, {
3327
+ message: string;
3328
+ }, {
3329
+ message: string;
3330
+ }>;
3331
+ 409: z.ZodObject<{
3332
+ message: z.ZodString;
3333
+ }, "strip", z.ZodTypeAny, {
3334
+ message: string;
3335
+ }, {
3336
+ message: string;
3337
+ }>;
3338
+ 500: z.ZodObject<{
3339
+ message: z.ZodString;
3340
+ }, "strip", z.ZodTypeAny, {
3341
+ message: string;
3342
+ }, {
3343
+ message: string;
3344
+ }>;
3345
+ 401: z.ZodObject<{
3346
+ message: z.ZodString;
3347
+ error: z.ZodAny;
3348
+ }, "strip", z.ZodTypeAny, {
3349
+ message: string;
3350
+ error?: any;
3351
+ }, {
3352
+ message: string;
3353
+ error?: any;
3354
+ }>;
3355
+ 404: z.ZodObject<{
3356
+ message: z.ZodString;
3357
+ error: z.ZodAny;
3358
+ }, "strip", z.ZodTypeAny, {
3359
+ message: string;
3360
+ error?: any;
3361
+ }, {
3362
+ message: string;
3363
+ error?: any;
3364
+ }>;
3365
+ 422: z.ZodObject<{
3366
+ message: z.ZodString;
3367
+ error: z.ZodAny;
3368
+ }, "strip", z.ZodTypeAny, {
3369
+ message: string;
3370
+ error?: any;
3371
+ }, {
3372
+ message: string;
3373
+ error?: any;
3374
+ }>;
3375
+ };
3376
+ path: "ticket/channel/update/:id";
3377
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3378
+ 'x-tenant': z.ZodString;
3379
+ authorization: z.ZodString;
3380
+ }, "strip", z.ZodTypeAny, {
3381
+ 'x-tenant': string;
3382
+ authorization: string;
3383
+ }, {
3384
+ 'x-tenant': string;
3385
+ authorization: string;
3386
+ }>>>;
3387
+ };
3388
+ updateTags: {
3389
+ body: z.ZodObject<{
3390
+ tags: z.ZodArray<z.ZodString, "many">;
3391
+ }, "strip", z.ZodTypeAny, {
3392
+ tags: string[];
3393
+ }, {
3394
+ tags: string[];
3395
+ }>;
3396
+ summary: "Update a tags from a ticket";
3397
+ method: "PATCH";
3398
+ pathParams: z.ZodObject<{
3399
+ id: z.ZodString;
3400
+ }, "strip", z.ZodTypeAny, {
3401
+ id: string;
3402
+ }, {
3403
+ id: string;
3404
+ }>;
3405
+ responses: {
3406
+ 200: z.ZodObject<{
3407
+ requestId: z.ZodString;
3408
+ message: z.ZodString;
3409
+ }, "strip", z.ZodTypeAny, {
3410
+ message: string;
3411
+ requestId: string;
3412
+ }, {
3413
+ message: string;
3414
+ requestId: string;
3415
+ }>;
3416
+ 400: z.ZodObject<{
3417
+ message: z.ZodString;
3418
+ }, "strip", z.ZodTypeAny, {
3419
+ message: string;
3420
+ }, {
3421
+ message: string;
3422
+ }>;
3423
+ 409: z.ZodObject<{
3424
+ message: z.ZodString;
3425
+ }, "strip", z.ZodTypeAny, {
3426
+ message: string;
3427
+ }, {
3428
+ message: string;
3429
+ }>;
3430
+ 500: z.ZodObject<{
3431
+ message: z.ZodString;
3432
+ }, "strip", z.ZodTypeAny, {
3433
+ message: string;
3434
+ }, {
3435
+ message: string;
3436
+ }>;
3437
+ 401: z.ZodObject<{
3438
+ message: z.ZodString;
3439
+ error: z.ZodAny;
3440
+ }, "strip", z.ZodTypeAny, {
3441
+ message: string;
3442
+ error?: any;
3443
+ }, {
3444
+ message: string;
3445
+ error?: any;
3446
+ }>;
3447
+ 404: z.ZodObject<{
3448
+ message: z.ZodString;
3449
+ error: z.ZodAny;
3450
+ }, "strip", z.ZodTypeAny, {
3451
+ message: string;
3452
+ error?: any;
3453
+ }, {
3454
+ message: string;
3455
+ error?: any;
3456
+ }>;
3457
+ 422: z.ZodObject<{
3458
+ message: z.ZodString;
3459
+ error: z.ZodAny;
3460
+ }, "strip", z.ZodTypeAny, {
3461
+ message: string;
3462
+ error?: any;
3463
+ }, {
3464
+ message: string;
3465
+ error?: any;
3466
+ }>;
3467
+ };
3468
+ path: "ticket/tags/update/:id";
3469
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3470
+ 'x-tenant': z.ZodString;
3471
+ authorization: z.ZodString;
3472
+ }, "strip", z.ZodTypeAny, {
3473
+ 'x-tenant': string;
3474
+ authorization: string;
3475
+ }, {
3476
+ 'x-tenant': string;
3477
+ authorization: string;
3478
+ }>>>;
3479
+ };
3480
+ changeAssignee: {
3481
+ body: z.ZodObject<{
3482
+ ticketId: z.ZodString;
3483
+ assigneeId: z.ZodString;
3484
+ }, "strip", z.ZodTypeAny, {
3485
+ assigneeId: string;
3486
+ ticketId: string;
3487
+ }, {
3488
+ assigneeId: string;
3489
+ ticketId: string;
3490
+ }>;
3491
+ summary: "Change assignee";
3492
+ method: "PATCH";
3493
+ pathParams: z.ZodObject<{
3494
+ id: z.ZodString;
3495
+ }, "strip", z.ZodTypeAny, {
3496
+ id: string;
3497
+ }, {
3498
+ id: string;
3499
+ }>;
3500
+ responses: {
3501
+ 200: z.ZodObject<{
3502
+ id: z.ZodString;
3503
+ createdAt: z.ZodDate;
3504
+ updatedAt: z.ZodDate;
3505
+ deletedAt: z.ZodNullable<z.ZodDate>;
3506
+ title: z.ZodString;
3507
+ description: z.ZodNullable<z.ZodString>;
3508
+ type: z.ZodString;
3509
+ channel: z.ZodString;
3510
+ priority: z.ZodString;
3511
+ status: z.ZodString;
3512
+ contactId: z.ZodString;
3513
+ creatorId: z.ZodString;
3514
+ assigneeId: z.ZodString;
3515
+ reasonToAssign: z.ZodNullable<z.ZodString>;
3516
+ ticketNumber: z.ZodOptional<z.ZodNumber>;
3517
+ customFields: z.ZodArray<z.ZodObject<{
3518
+ id: z.ZodString;
3519
+ createdAt: z.ZodDate;
3520
+ updatedAt: z.ZodDate;
3521
+ deletedAt: z.ZodNullable<z.ZodDate>;
3522
+ textValue: z.ZodNullable<z.ZodString>;
3523
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
3524
+ numberValue: z.ZodNullable<z.ZodNumber>;
3525
+ dateValue: z.ZodNullable<z.ZodDate>;
3526
+ attribute: z.ZodObject<Omit<{
3527
+ id: z.ZodString;
3528
+ createdAt: z.ZodDate;
3529
+ updatedAt: z.ZodDate;
3530
+ deletedAt: z.ZodNullable<z.ZodDate>;
3531
+ systemName: z.ZodString;
3532
+ displayName: z.ZodString;
3533
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
3534
+ position: z.ZodNumber;
3535
+ isDefault: z.ZodBoolean;
3536
+ isArchived: z.ZodBoolean;
3537
+ isRequired: z.ZodBoolean;
3538
+ isUnique: z.ZodBoolean;
3539
+ options: z.ZodArray<z.ZodObject<{
3540
+ position: z.ZodNumber;
3541
+ value: z.ZodString;
3542
+ label: z.ZodString;
3543
+ isDefault: z.ZodBoolean;
3544
+ id: z.ZodString;
3545
+ }, "strip", z.ZodTypeAny, {
3546
+ id: string;
3547
+ position: number;
3548
+ value: string;
3549
+ label: string;
3550
+ isDefault: boolean;
3551
+ }, {
3552
+ id: string;
3553
+ position: number;
3554
+ value: string;
3555
+ label: string;
3556
+ isDefault: boolean;
3557
+ }>, "many">;
3558
+ group: z.ZodObject<{
3559
+ id: z.ZodString;
3560
+ createdAt: z.ZodDate;
3561
+ updatedAt: z.ZodDate;
3562
+ deletedAt: z.ZodNullable<z.ZodDate>;
3563
+ systemName: z.ZodString;
3564
+ displayName: z.ZodString;
3565
+ }, "strip", z.ZodTypeAny, {
3566
+ id: string;
3567
+ createdAt: Date;
3568
+ updatedAt: Date;
3569
+ deletedAt: Date | null;
3570
+ systemName: string;
3571
+ displayName: string;
3572
+ }, {
3573
+ id: string;
3574
+ createdAt: Date;
3575
+ updatedAt: Date;
3576
+ deletedAt: Date | null;
3577
+ systemName: string;
3578
+ displayName: string;
3579
+ }>;
3580
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
3581
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3582
+ id: string;
3583
+ position: number;
3584
+ createdAt: Date;
3585
+ updatedAt: Date;
3586
+ deletedAt: Date | null;
3587
+ isDefault: boolean;
3588
+ systemName: string;
3589
+ displayName: string;
3590
+ isArchived: boolean;
3591
+ isRequired: boolean;
3592
+ isUnique: boolean;
3593
+ }, {
3594
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3595
+ id: string;
3596
+ position: number;
3597
+ createdAt: Date;
3598
+ updatedAt: Date;
3599
+ deletedAt: Date | null;
3600
+ isDefault: boolean;
3601
+ systemName: string;
3602
+ displayName: string;
3603
+ isArchived: boolean;
3604
+ isRequired: boolean;
3605
+ isUnique: boolean;
3606
+ }>;
3607
+ uploads: z.ZodArray<z.ZodObject<{
3608
+ id: z.ZodString;
3609
+ createdAt: z.ZodDate;
3610
+ updatedAt: z.ZodDate;
3611
+ deletedAt: z.ZodNullable<z.ZodDate>;
3612
+ customFieldId: z.ZodString;
3613
+ upload: z.ZodObject<{
3614
+ id: z.ZodString;
3615
+ createdAt: z.ZodDate;
3616
+ updatedAt: z.ZodDate;
3617
+ deletedAt: z.ZodNullable<z.ZodDate>;
3618
+ bucketName: z.ZodString;
3619
+ fileName: z.ZodString;
3620
+ fileSize: z.ZodNumber;
3621
+ fileKey: z.ZodString;
3622
+ }, "strip", z.ZodTypeAny, {
3623
+ id: string;
3624
+ createdAt: Date;
3625
+ updatedAt: Date;
3626
+ deletedAt: Date | null;
3627
+ fileName: string;
3628
+ fileKey: string;
3629
+ bucketName: string;
3630
+ fileSize: number;
3631
+ }, {
3632
+ id: string;
3633
+ createdAt: Date;
3634
+ updatedAt: Date;
3635
+ deletedAt: Date | null;
3636
+ fileName: string;
3637
+ fileKey: string;
3638
+ bucketName: string;
3639
+ fileSize: number;
3640
+ }>;
3641
+ }, "strip", z.ZodTypeAny, {
3642
+ id: string;
3643
+ createdAt: Date;
3644
+ updatedAt: Date;
3645
+ deletedAt: Date | null;
3646
+ customFieldId: string;
3647
+ upload: {
3648
+ id: string;
3649
+ createdAt: Date;
3650
+ updatedAt: Date;
3651
+ deletedAt: Date | null;
3652
+ fileName: string;
3653
+ fileKey: string;
3654
+ bucketName: string;
3655
+ fileSize: number;
3656
+ };
3657
+ }, {
3658
+ id: string;
3659
+ createdAt: Date;
3660
+ updatedAt: Date;
3661
+ deletedAt: Date | null;
3662
+ customFieldId: string;
3663
+ upload: {
3664
+ id: string;
3665
+ createdAt: Date;
3666
+ updatedAt: Date;
3667
+ deletedAt: Date | null;
3668
+ fileName: string;
3669
+ fileKey: string;
3670
+ bucketName: string;
3671
+ fileSize: number;
3672
+ };
3673
+ }>, "many">;
3674
+ }, "strip", z.ZodTypeAny, {
3675
+ id: string;
3676
+ createdAt: Date;
3677
+ updatedAt: Date;
3678
+ deletedAt: Date | null;
3679
+ attribute: {
3680
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3681
+ id: string;
3682
+ position: number;
3683
+ createdAt: Date;
3684
+ updatedAt: Date;
3685
+ deletedAt: Date | null;
3686
+ isDefault: boolean;
3687
+ systemName: string;
3688
+ displayName: string;
3689
+ isArchived: boolean;
3690
+ isRequired: boolean;
3691
+ isUnique: boolean;
3692
+ };
3693
+ textValue: string | null;
3694
+ booleanValue: boolean | null;
3695
+ numberValue: number | null;
3696
+ dateValue: Date | null;
3697
+ uploads: {
3698
+ id: string;
3699
+ createdAt: Date;
3700
+ updatedAt: Date;
3701
+ deletedAt: Date | null;
3702
+ customFieldId: string;
3703
+ upload: {
3704
+ id: string;
3705
+ createdAt: Date;
3706
+ updatedAt: Date;
3707
+ deletedAt: Date | null;
3708
+ fileName: string;
3709
+ fileKey: string;
3710
+ bucketName: string;
3711
+ fileSize: number;
3712
+ };
3713
+ }[];
3714
+ }, {
3715
+ id: string;
3716
+ createdAt: Date;
3717
+ updatedAt: Date;
3718
+ deletedAt: Date | null;
3719
+ attribute: {
3720
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3721
+ id: string;
3722
+ position: number;
3723
+ createdAt: Date;
3724
+ updatedAt: Date;
3725
+ deletedAt: Date | null;
3726
+ isDefault: boolean;
3727
+ systemName: string;
3728
+ displayName: string;
3729
+ isArchived: boolean;
3730
+ isRequired: boolean;
3731
+ isUnique: boolean;
3732
+ };
3733
+ textValue: string | null;
3734
+ booleanValue: boolean | null;
3735
+ numberValue: number | null;
3736
+ dateValue: Date | null;
3737
+ uploads: {
3738
+ id: string;
3739
+ createdAt: Date;
3740
+ updatedAt: Date;
3741
+ deletedAt: Date | null;
3742
+ customFieldId: string;
3743
+ upload: {
3744
+ id: string;
3745
+ createdAt: Date;
3746
+ updatedAt: Date;
3747
+ deletedAt: Date | null;
3748
+ fileName: string;
3749
+ fileKey: string;
3750
+ bucketName: string;
3751
+ fileSize: number;
3752
+ };
3753
+ }[];
3754
+ }>, "many">;
3755
+ }, "strip", z.ZodTypeAny, {
3756
+ type: string;
3757
+ id: string;
3758
+ channel: string;
3759
+ priority: string;
3760
+ title: string;
3761
+ description: string | null;
3762
+ status: string;
3763
+ createdAt: Date;
3764
+ updatedAt: Date;
3765
+ deletedAt: Date | null;
3766
+ customFields: {
3767
+ id: string;
3768
+ createdAt: Date;
3769
+ updatedAt: Date;
3770
+ deletedAt: Date | null;
3771
+ attribute: {
3772
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3773
+ id: string;
3774
+ position: number;
3775
+ createdAt: Date;
3776
+ updatedAt: Date;
3777
+ deletedAt: Date | null;
3778
+ isDefault: boolean;
3779
+ systemName: string;
3780
+ displayName: string;
3781
+ isArchived: boolean;
3782
+ isRequired: boolean;
3783
+ isUnique: boolean;
3784
+ };
3785
+ textValue: string | null;
3786
+ booleanValue: boolean | null;
3787
+ numberValue: number | null;
3788
+ dateValue: Date | null;
3789
+ uploads: {
3790
+ id: string;
3791
+ createdAt: Date;
3792
+ updatedAt: Date;
3793
+ deletedAt: Date | null;
3794
+ customFieldId: string;
3795
+ upload: {
3796
+ id: string;
3797
+ createdAt: Date;
3798
+ updatedAt: Date;
3799
+ deletedAt: Date | null;
3800
+ fileName: string;
3801
+ fileKey: string;
3802
+ bucketName: string;
3803
+ fileSize: number;
3804
+ };
3805
+ }[];
3806
+ }[];
3807
+ contactId: string;
3808
+ assigneeId: string;
3809
+ creatorId: string;
3810
+ reasonToAssign: string | null;
3811
+ ticketNumber?: number | undefined;
3812
+ }, {
3813
+ type: string;
3814
+ id: string;
3815
+ channel: string;
3816
+ priority: string;
3817
+ title: string;
3818
+ description: string | null;
3819
+ status: string;
3820
+ createdAt: Date;
3821
+ updatedAt: Date;
3822
+ deletedAt: Date | null;
3823
+ customFields: {
3824
+ id: string;
3825
+ createdAt: Date;
3826
+ updatedAt: Date;
3827
+ deletedAt: Date | null;
3828
+ attribute: {
3829
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3830
+ id: string;
3831
+ position: number;
3832
+ createdAt: Date;
3833
+ updatedAt: Date;
3834
+ deletedAt: Date | null;
3835
+ isDefault: boolean;
3836
+ systemName: string;
3837
+ displayName: string;
3838
+ isArchived: boolean;
3839
+ isRequired: boolean;
3840
+ isUnique: boolean;
3841
+ };
3842
+ textValue: string | null;
3843
+ booleanValue: boolean | null;
3844
+ numberValue: number | null;
3845
+ dateValue: Date | null;
3846
+ uploads: {
3847
+ id: string;
3848
+ createdAt: Date;
3849
+ updatedAt: Date;
3850
+ deletedAt: Date | null;
3851
+ customFieldId: string;
3852
+ upload: {
3853
+ id: string;
3854
+ createdAt: Date;
3855
+ updatedAt: Date;
3856
+ deletedAt: Date | null;
3857
+ fileName: string;
3858
+ fileKey: string;
3859
+ bucketName: string;
3860
+ fileSize: number;
3861
+ };
3862
+ }[];
3863
+ }[];
3864
+ contactId: string;
3865
+ assigneeId: string;
3866
+ creatorId: string;
3867
+ reasonToAssign: string | null;
3868
+ ticketNumber?: number | undefined;
3869
+ }>;
3870
+ 400: z.ZodObject<{
3871
+ message: z.ZodString;
3872
+ }, "strip", z.ZodTypeAny, {
3873
+ message: string;
3874
+ }, {
3875
+ message: string;
3876
+ }>;
3877
+ 409: z.ZodObject<{
3878
+ message: z.ZodString;
3879
+ }, "strip", z.ZodTypeAny, {
3880
+ message: string;
3881
+ }, {
3882
+ message: string;
3883
+ }>;
3884
+ 500: z.ZodObject<{
3885
+ message: z.ZodString;
3886
+ }, "strip", z.ZodTypeAny, {
3887
+ message: string;
3888
+ }, {
3889
+ message: string;
3890
+ }>;
3891
+ 401: z.ZodObject<{
3892
+ message: z.ZodString;
3893
+ error: z.ZodAny;
3894
+ }, "strip", z.ZodTypeAny, {
3895
+ message: string;
3896
+ error?: any;
3897
+ }, {
3898
+ message: string;
3899
+ error?: any;
3900
+ }>;
3901
+ 404: z.ZodObject<{
3902
+ message: z.ZodString;
3903
+ error: z.ZodAny;
3904
+ }, "strip", z.ZodTypeAny, {
3905
+ message: string;
3906
+ error?: any;
3907
+ }, {
3908
+ message: string;
3909
+ error?: any;
3910
+ }>;
3911
+ 422: z.ZodObject<{
3912
+ message: z.ZodString;
3913
+ error: z.ZodAny;
3914
+ }, "strip", z.ZodTypeAny, {
3915
+ message: string;
3916
+ error?: any;
3917
+ }, {
3918
+ message: string;
3919
+ error?: any;
3920
+ }>;
3921
+ };
3922
+ path: "ticket/assignee/update/:id";
3923
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3924
+ 'x-tenant': z.ZodString;
3925
+ authorization: z.ZodString;
3926
+ }, "strip", z.ZodTypeAny, {
3927
+ 'x-tenant': string;
3928
+ authorization: string;
3929
+ }, {
3930
+ 'x-tenant': string;
3931
+ authorization: string;
3932
+ }>>>;
3933
+ };
3934
+ getTicketCountByContact: {
3935
+ summary: "Get ticket count by contact";
3936
+ method: "GET";
3937
+ pathParams: z.ZodObject<{
3938
+ id: z.ZodString;
3939
+ }, "strip", z.ZodTypeAny, {
3940
+ id: string;
3941
+ }, {
3942
+ id: string;
3943
+ }>;
3944
+ responses: {
3945
+ 200: z.ZodOptional<z.ZodObject<{
3946
+ total: z.ZodNumber;
3947
+ open: z.ZodNumber;
3948
+ pending: z.ZodNumber;
3949
+ closed: z.ZodNumber;
3950
+ solved: z.ZodNumber;
3951
+ }, "strip", z.ZodTypeAny, {
3952
+ total: number;
3953
+ closed: number;
3954
+ open: number;
3955
+ pending: number;
3956
+ solved: number;
3957
+ }, {
3958
+ total: number;
3959
+ closed: number;
3960
+ open: number;
3961
+ pending: number;
3962
+ solved: number;
3963
+ }>>;
3964
+ 400: z.ZodObject<{
3965
+ message: z.ZodString;
3966
+ }, "strip", z.ZodTypeAny, {
3967
+ message: string;
3968
+ }, {
3969
+ message: string;
3970
+ }>;
3971
+ 401: z.ZodObject<{
3972
+ message: z.ZodString;
3973
+ error: z.ZodAny;
3974
+ }, "strip", z.ZodTypeAny, {
3975
+ message: string;
3976
+ error?: any;
3977
+ }, {
3978
+ message: string;
3979
+ error?: any;
3980
+ }>;
3981
+ 500: z.ZodObject<{
3982
+ message: z.ZodString;
3983
+ error: z.ZodAny;
3984
+ }, "strip", z.ZodTypeAny, {
3985
+ message: string;
3986
+ error?: any;
3987
+ }, {
3988
+ message: string;
3989
+ error?: any;
3990
+ }>;
3991
+ };
3992
+ path: "ticket/ticket_count/contact/:id";
3993
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3994
+ 'x-tenant': z.ZodString;
3995
+ authorization: z.ZodString;
3996
+ }, "strip", z.ZodTypeAny, {
3997
+ 'x-tenant': string;
3998
+ authorization: string;
3999
+ }, {
4000
+ 'x-tenant': string;
4001
+ authorization: string;
4002
+ }>>>;
4003
+ };
4004
+ getTicketByContact: {
4005
+ summary: "Get ticket by contact id";
4006
+ method: "GET";
4007
+ pathParams: z.ZodObject<{
4008
+ id: z.ZodString;
4009
+ }, "strip", z.ZodTypeAny, {
4010
+ id: string;
4011
+ }, {
4012
+ id: string;
4013
+ }>;
4014
+ query: z.ZodOptional<z.ZodObject<{
4015
+ page: z.ZodDefault<z.ZodNumber>;
4016
+ pageSize: z.ZodDefault<z.ZodNumber>;
4017
+ }, "strip", z.ZodTypeAny, {
4018
+ page: number;
4019
+ pageSize: number;
4020
+ }, {
4021
+ page?: number | undefined;
4022
+ pageSize?: number | undefined;
4023
+ }>>;
4024
+ responses: {
4025
+ 200: z.ZodObject<{
4026
+ total: z.ZodNumber;
4027
+ page: z.ZodDefault<z.ZodNumber>;
4028
+ pageSize: z.ZodDefault<z.ZodNumber>;
4029
+ lastPage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
4030
+ data: z.ZodArray<z.ZodType<{
4031
+ type: string;
4032
+ id: string;
4033
+ channel: string;
4034
+ priority: string;
4035
+ title: string;
4036
+ description: string | null;
4037
+ status: string;
4038
+ createdAt: Date;
4039
+ updatedAt: Date;
4040
+ deletedAt: Date | null;
4041
+ customFields: {
4042
+ id: string;
4043
+ createdAt: Date;
4044
+ updatedAt: Date;
4045
+ deletedAt: Date | null;
4046
+ attribute: {
4047
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4048
+ id: string;
4049
+ position: number;
4050
+ createdAt: Date;
4051
+ updatedAt: Date;
4052
+ deletedAt: Date | null;
4053
+ isDefault: boolean;
4054
+ systemName: string;
4055
+ displayName: string;
4056
+ isArchived: boolean;
4057
+ isRequired: boolean;
4058
+ isUnique: boolean;
4059
+ };
4060
+ textValue: string | null;
4061
+ booleanValue: boolean | null;
4062
+ numberValue: number | null;
4063
+ dateValue: Date | null;
4064
+ uploads: {
4065
+ id: string;
4066
+ createdAt: Date;
4067
+ updatedAt: Date;
4068
+ deletedAt: Date | null;
4069
+ customFieldId: string;
4070
+ upload: {
4071
+ id: string;
4072
+ createdAt: Date;
4073
+ updatedAt: Date;
4074
+ deletedAt: Date | null;
4075
+ fileName: string;
4076
+ fileKey: string;
4077
+ bucketName: string;
4078
+ fileSize: number;
4079
+ };
4080
+ }[];
4081
+ }[];
4082
+ contactId: string;
4083
+ assigneeId: string;
4084
+ creatorId: string;
4085
+ reasonToAssign: string | null;
4086
+ ticketNumber?: number | undefined;
4087
+ }, z.ZodTypeDef, {
4088
+ type: string;
4089
+ id: string;
4090
+ channel: string;
4091
+ priority: string;
4092
+ title: string;
4093
+ description: string | null;
4094
+ status: string;
4095
+ createdAt: Date;
4096
+ updatedAt: Date;
4097
+ deletedAt: Date | null;
4098
+ customFields: {
4099
+ id: string;
4100
+ createdAt: Date;
4101
+ updatedAt: Date;
4102
+ deletedAt: Date | null;
4103
+ attribute: {
4104
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4105
+ id: string;
4106
+ position: number;
4107
+ createdAt: Date;
4108
+ updatedAt: Date;
4109
+ deletedAt: Date | null;
4110
+ isDefault: boolean;
4111
+ systemName: string;
4112
+ displayName: string;
4113
+ isArchived: boolean;
4114
+ isRequired: boolean;
4115
+ isUnique: boolean;
4116
+ };
4117
+ textValue: string | null;
4118
+ booleanValue: boolean | null;
4119
+ numberValue: number | null;
4120
+ dateValue: Date | null;
4121
+ uploads: {
4122
+ id: string;
4123
+ createdAt: Date;
4124
+ updatedAt: Date;
4125
+ deletedAt: Date | null;
4126
+ customFieldId: string;
4127
+ upload: {
4128
+ id: string;
4129
+ createdAt: Date;
4130
+ updatedAt: Date;
4131
+ deletedAt: Date | null;
4132
+ fileName: string;
4133
+ fileKey: string;
4134
+ bucketName: string;
4135
+ fileSize: number;
4136
+ };
4137
+ }[];
4138
+ }[];
4139
+ contactId: string;
4140
+ assigneeId: string;
4141
+ creatorId: string;
4142
+ reasonToAssign: string | null;
4143
+ ticketNumber?: number | undefined;
4144
+ }>, "many">;
4145
+ }, "strip", z.ZodTypeAny, {
4146
+ data: {
4147
+ type: string;
4148
+ id: string;
4149
+ channel: string;
4150
+ priority: string;
4151
+ title: string;
4152
+ description: string | null;
4153
+ status: string;
4154
+ createdAt: Date;
4155
+ updatedAt: Date;
4156
+ deletedAt: Date | null;
4157
+ customFields: {
4158
+ id: string;
4159
+ createdAt: Date;
4160
+ updatedAt: Date;
4161
+ deletedAt: Date | null;
4162
+ attribute: {
4163
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4164
+ id: string;
4165
+ position: number;
4166
+ createdAt: Date;
4167
+ updatedAt: Date;
4168
+ deletedAt: Date | null;
4169
+ isDefault: boolean;
4170
+ systemName: string;
4171
+ displayName: string;
4172
+ isArchived: boolean;
4173
+ isRequired: boolean;
4174
+ isUnique: boolean;
4175
+ };
4176
+ textValue: string | null;
4177
+ booleanValue: boolean | null;
4178
+ numberValue: number | null;
4179
+ dateValue: Date | null;
4180
+ uploads: {
4181
+ id: string;
4182
+ createdAt: Date;
4183
+ updatedAt: Date;
4184
+ deletedAt: Date | null;
4185
+ customFieldId: string;
4186
+ upload: {
4187
+ id: string;
4188
+ createdAt: Date;
4189
+ updatedAt: Date;
4190
+ deletedAt: Date | null;
4191
+ fileName: string;
4192
+ fileKey: string;
4193
+ bucketName: string;
4194
+ fileSize: number;
4195
+ };
4196
+ }[];
4197
+ }[];
4198
+ contactId: string;
4199
+ assigneeId: string;
4200
+ creatorId: string;
4201
+ reasonToAssign: string | null;
4202
+ ticketNumber?: number | undefined;
4203
+ }[];
4204
+ total: number;
4205
+ page: number;
4206
+ pageSize: number;
4207
+ lastPage?: number | null | undefined;
4208
+ }, {
4209
+ data: {
4210
+ type: string;
4211
+ id: string;
4212
+ channel: string;
4213
+ priority: string;
4214
+ title: string;
4215
+ description: string | null;
4216
+ status: string;
4217
+ createdAt: Date;
4218
+ updatedAt: Date;
4219
+ deletedAt: Date | null;
4220
+ customFields: {
4221
+ id: string;
4222
+ createdAt: Date;
4223
+ updatedAt: Date;
4224
+ deletedAt: Date | null;
4225
+ attribute: {
4226
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4227
+ id: string;
4228
+ position: number;
4229
+ createdAt: Date;
4230
+ updatedAt: Date;
4231
+ deletedAt: Date | null;
4232
+ isDefault: boolean;
4233
+ systemName: string;
4234
+ displayName: string;
4235
+ isArchived: boolean;
4236
+ isRequired: boolean;
4237
+ isUnique: boolean;
4238
+ };
4239
+ textValue: string | null;
4240
+ booleanValue: boolean | null;
4241
+ numberValue: number | null;
4242
+ dateValue: Date | null;
4243
+ uploads: {
4244
+ id: string;
4245
+ createdAt: Date;
4246
+ updatedAt: Date;
4247
+ deletedAt: Date | null;
4248
+ customFieldId: string;
4249
+ upload: {
4250
+ id: string;
4251
+ createdAt: Date;
4252
+ updatedAt: Date;
4253
+ deletedAt: Date | null;
4254
+ fileName: string;
4255
+ fileKey: string;
4256
+ bucketName: string;
4257
+ fileSize: number;
4258
+ };
4259
+ }[];
4260
+ }[];
4261
+ contactId: string;
4262
+ assigneeId: string;
4263
+ creatorId: string;
4264
+ reasonToAssign: string | null;
4265
+ ticketNumber?: number | undefined;
4266
+ }[];
4267
+ total: number;
4268
+ page?: number | undefined;
4269
+ pageSize?: number | undefined;
4270
+ lastPage?: number | null | undefined;
4271
+ }>;
4272
+ 400: z.ZodObject<{
4273
+ message: z.ZodString;
4274
+ }, "strip", z.ZodTypeAny, {
4275
+ message: string;
4276
+ }, {
4277
+ message: string;
4278
+ }>;
4279
+ 401: z.ZodObject<{
4280
+ message: z.ZodString;
4281
+ error: z.ZodAny;
4282
+ }, "strip", z.ZodTypeAny, {
4283
+ message: string;
4284
+ error?: any;
4285
+ }, {
4286
+ message: string;
4287
+ error?: any;
4288
+ }>;
4289
+ 500: z.ZodObject<{
4290
+ message: z.ZodString;
4291
+ error: z.ZodAny;
4292
+ }, "strip", z.ZodTypeAny, {
4293
+ message: string;
4294
+ error?: any;
4295
+ }, {
4296
+ message: string;
4297
+ error?: any;
4298
+ }>;
4299
+ };
4300
+ path: "ticket/contact/:id";
4301
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4302
+ 'x-tenant': z.ZodString;
4303
+ authorization: z.ZodString;
4304
+ }, "strip", z.ZodTypeAny, {
4305
+ 'x-tenant': string;
4306
+ authorization: string;
4307
+ }, {
4308
+ 'x-tenant': string;
4309
+ authorization: string;
4310
+ }>>>;
4311
+ };
4312
+ createTicketAttachmentRecords: {
4313
+ body: z.ZodObject<{
4314
+ ticketId: z.ZodString;
4315
+ attributeId: z.ZodString;
4316
+ ticketAttachmentRecords: z.ZodArray<z.ZodObject<{
4317
+ bucketName: z.ZodString;
4318
+ fileKey: z.ZodString;
4319
+ fileName: z.ZodString;
4320
+ fileSize: z.ZodNumber;
4321
+ url: z.ZodString;
4322
+ }, "strip", z.ZodTypeAny, {
4323
+ url: string;
4324
+ fileName: string;
4325
+ fileKey: string;
4326
+ bucketName: string;
4327
+ fileSize: number;
4328
+ }, {
4329
+ url: string;
4330
+ fileName: string;
4331
+ fileKey: string;
4332
+ bucketName: string;
4333
+ fileSize: number;
4334
+ }>, "many">;
4335
+ }, "strip", z.ZodTypeAny, {
4336
+ attributeId: string;
4337
+ ticketId: string;
4338
+ ticketAttachmentRecords: {
4339
+ url: string;
4340
+ fileName: string;
4341
+ fileKey: string;
4342
+ bucketName: string;
4343
+ fileSize: number;
4344
+ }[];
4345
+ }, {
4346
+ attributeId: string;
4347
+ ticketId: string;
4348
+ ticketAttachmentRecords: {
4349
+ url: string;
4350
+ fileName: string;
4351
+ fileKey: string;
4352
+ bucketName: string;
4353
+ fileSize: number;
4354
+ }[];
4355
+ }>;
4356
+ summary: "Create a new ticket attachment";
4357
+ method: "POST";
4358
+ responses: {
4359
+ 201: z.ZodObject<{
4360
+ id: z.ZodString;
4361
+ createdAt: z.ZodDate;
4362
+ updatedAt: z.ZodDate;
4363
+ deletedAt: z.ZodNullable<z.ZodDate>;
4364
+ textValue: z.ZodNullable<z.ZodString>;
4365
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
4366
+ numberValue: z.ZodNullable<z.ZodNumber>;
4367
+ dateValue: z.ZodNullable<z.ZodDate>;
4368
+ attribute: z.ZodObject<Omit<{
4369
+ id: z.ZodString;
4370
+ createdAt: z.ZodDate;
4371
+ updatedAt: z.ZodDate;
4372
+ deletedAt: z.ZodNullable<z.ZodDate>;
4373
+ systemName: z.ZodString;
4374
+ displayName: z.ZodString;
4375
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4376
+ position: z.ZodNumber;
4377
+ isDefault: z.ZodBoolean;
4378
+ isArchived: z.ZodBoolean;
4379
+ isRequired: z.ZodBoolean;
4380
+ isUnique: z.ZodBoolean;
4381
+ options: z.ZodArray<z.ZodObject<{
4382
+ position: z.ZodNumber;
4383
+ value: z.ZodString;
4384
+ label: z.ZodString;
4385
+ isDefault: z.ZodBoolean;
4386
+ id: z.ZodString;
4387
+ }, "strip", z.ZodTypeAny, {
4388
+ id: string;
4389
+ position: number;
4390
+ value: string;
4391
+ label: string;
4392
+ isDefault: boolean;
4393
+ }, {
4394
+ id: string;
4395
+ position: number;
4396
+ value: string;
4397
+ label: string;
4398
+ isDefault: boolean;
4399
+ }>, "many">;
4400
+ group: z.ZodObject<{
4401
+ id: z.ZodString;
4402
+ createdAt: z.ZodDate;
4403
+ updatedAt: z.ZodDate;
4404
+ deletedAt: z.ZodNullable<z.ZodDate>;
4405
+ systemName: z.ZodString;
4406
+ displayName: z.ZodString;
4407
+ }, "strip", z.ZodTypeAny, {
4408
+ id: string;
4409
+ createdAt: Date;
4410
+ updatedAt: Date;
4411
+ deletedAt: Date | null;
4412
+ systemName: string;
4413
+ displayName: string;
4414
+ }, {
4415
+ id: string;
4416
+ createdAt: Date;
4417
+ updatedAt: Date;
4418
+ deletedAt: Date | null;
4419
+ systemName: string;
4420
+ displayName: string;
4421
+ }>;
4422
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
4423
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4424
+ id: string;
4425
+ position: number;
4426
+ createdAt: Date;
4427
+ updatedAt: Date;
4428
+ deletedAt: Date | null;
4429
+ isDefault: boolean;
4430
+ systemName: string;
4431
+ displayName: string;
4432
+ isArchived: boolean;
4433
+ isRequired: boolean;
4434
+ isUnique: boolean;
4435
+ }, {
4436
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4437
+ id: string;
4438
+ position: number;
4439
+ createdAt: Date;
4440
+ updatedAt: Date;
4441
+ deletedAt: Date | null;
4442
+ isDefault: boolean;
4443
+ systemName: string;
4444
+ displayName: string;
4445
+ isArchived: boolean;
4446
+ isRequired: boolean;
4447
+ isUnique: boolean;
4448
+ }>;
4449
+ uploads: z.ZodArray<z.ZodObject<{
4450
+ id: z.ZodString;
4451
+ createdAt: z.ZodDate;
4452
+ updatedAt: z.ZodDate;
4453
+ deletedAt: z.ZodNullable<z.ZodDate>;
4454
+ customFieldId: z.ZodString;
4455
+ upload: z.ZodObject<{
4456
+ id: z.ZodString;
4457
+ createdAt: z.ZodDate;
4458
+ updatedAt: z.ZodDate;
4459
+ deletedAt: z.ZodNullable<z.ZodDate>;
4460
+ bucketName: z.ZodString;
4461
+ fileName: z.ZodString;
4462
+ fileSize: z.ZodNumber;
4463
+ fileKey: z.ZodString;
4464
+ }, "strip", z.ZodTypeAny, {
4465
+ id: string;
4466
+ createdAt: Date;
4467
+ updatedAt: Date;
4468
+ deletedAt: Date | null;
4469
+ fileName: string;
4470
+ fileKey: string;
4471
+ bucketName: string;
4472
+ fileSize: number;
4473
+ }, {
4474
+ id: string;
4475
+ createdAt: Date;
4476
+ updatedAt: Date;
4477
+ deletedAt: Date | null;
4478
+ fileName: string;
4479
+ fileKey: string;
4480
+ bucketName: string;
4481
+ fileSize: number;
4482
+ }>;
4483
+ }, "strip", z.ZodTypeAny, {
4484
+ id: string;
4485
+ createdAt: Date;
4486
+ updatedAt: Date;
4487
+ deletedAt: Date | null;
4488
+ customFieldId: string;
4489
+ upload: {
4490
+ id: string;
4491
+ createdAt: Date;
4492
+ updatedAt: Date;
4493
+ deletedAt: Date | null;
4494
+ fileName: string;
4495
+ fileKey: string;
4496
+ bucketName: string;
4497
+ fileSize: number;
4498
+ };
4499
+ }, {
4500
+ id: string;
4501
+ createdAt: Date;
4502
+ updatedAt: Date;
4503
+ deletedAt: Date | null;
4504
+ customFieldId: string;
4505
+ upload: {
4506
+ id: string;
4507
+ createdAt: Date;
4508
+ updatedAt: Date;
4509
+ deletedAt: Date | null;
4510
+ fileName: string;
4511
+ fileKey: string;
4512
+ bucketName: string;
4513
+ fileSize: number;
4514
+ };
4515
+ }>, "many">;
4516
+ }, "strip", z.ZodTypeAny, {
4517
+ id: string;
4518
+ createdAt: Date;
4519
+ updatedAt: Date;
4520
+ deletedAt: Date | null;
4521
+ attribute: {
4522
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4523
+ id: string;
4524
+ position: number;
4525
+ createdAt: Date;
4526
+ updatedAt: Date;
4527
+ deletedAt: Date | null;
4528
+ isDefault: boolean;
4529
+ systemName: string;
4530
+ displayName: string;
4531
+ isArchived: boolean;
4532
+ isRequired: boolean;
4533
+ isUnique: boolean;
4534
+ };
4535
+ textValue: string | null;
4536
+ booleanValue: boolean | null;
4537
+ numberValue: number | null;
4538
+ dateValue: Date | null;
4539
+ uploads: {
4540
+ id: string;
4541
+ createdAt: Date;
4542
+ updatedAt: Date;
4543
+ deletedAt: Date | null;
4544
+ customFieldId: string;
4545
+ upload: {
4546
+ id: string;
4547
+ createdAt: Date;
4548
+ updatedAt: Date;
4549
+ deletedAt: Date | null;
4550
+ fileName: string;
4551
+ fileKey: string;
4552
+ bucketName: string;
4553
+ fileSize: number;
4554
+ };
4555
+ }[];
4556
+ }, {
4557
+ id: string;
4558
+ createdAt: Date;
4559
+ updatedAt: Date;
4560
+ deletedAt: Date | null;
4561
+ attribute: {
4562
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4563
+ id: string;
4564
+ position: number;
4565
+ createdAt: Date;
4566
+ updatedAt: Date;
4567
+ deletedAt: Date | null;
4568
+ isDefault: boolean;
4569
+ systemName: string;
4570
+ displayName: string;
4571
+ isArchived: boolean;
4572
+ isRequired: boolean;
4573
+ isUnique: boolean;
4574
+ };
4575
+ textValue: string | null;
4576
+ booleanValue: boolean | null;
4577
+ numberValue: number | null;
4578
+ dateValue: Date | null;
4579
+ uploads: {
4580
+ id: string;
4581
+ createdAt: Date;
4582
+ updatedAt: Date;
4583
+ deletedAt: Date | null;
4584
+ customFieldId: string;
4585
+ upload: {
4586
+ id: string;
4587
+ createdAt: Date;
4588
+ updatedAt: Date;
4589
+ deletedAt: Date | null;
4590
+ fileName: string;
4591
+ fileKey: string;
4592
+ bucketName: string;
4593
+ fileSize: number;
4594
+ };
4595
+ }[];
4596
+ }>;
4597
+ 400: z.ZodObject<{
4598
+ message: z.ZodString;
4599
+ }, "strip", z.ZodTypeAny, {
4600
+ message: string;
4601
+ }, {
4602
+ message: string;
4603
+ }>;
4604
+ 409: z.ZodObject<{
4605
+ message: z.ZodString;
4606
+ }, "strip", z.ZodTypeAny, {
4607
+ message: string;
4608
+ }, {
4609
+ message: string;
4610
+ }>;
4611
+ 500: z.ZodObject<{
4612
+ message: z.ZodString;
4613
+ }, "strip", z.ZodTypeAny, {
4614
+ message: string;
4615
+ }, {
4616
+ message: string;
4617
+ }>;
4618
+ 401: z.ZodObject<{
4619
+ message: z.ZodString;
4620
+ error: z.ZodAny;
4621
+ }, "strip", z.ZodTypeAny, {
4622
+ message: string;
4623
+ error?: any;
4624
+ }, {
4625
+ message: string;
4626
+ error?: any;
4627
+ }>;
4628
+ 404: z.ZodObject<{
4629
+ message: z.ZodString;
4630
+ error: z.ZodAny;
4631
+ }, "strip", z.ZodTypeAny, {
4632
+ message: string;
4633
+ error?: any;
4634
+ }, {
4635
+ message: string;
4636
+ error?: any;
4637
+ }>;
4638
+ 422: z.ZodObject<{
4639
+ message: z.ZodString;
4640
+ error: z.ZodAny;
4641
+ }, "strip", z.ZodTypeAny, {
4642
+ message: string;
4643
+ error?: any;
4644
+ }, {
4645
+ message: string;
4646
+ error?: any;
4647
+ }>;
4648
+ };
4649
+ path: "ticket/attachment";
4650
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4651
+ 'x-tenant': z.ZodString;
4652
+ authorization: z.ZodString;
4653
+ }, "strip", z.ZodTypeAny, {
4654
+ 'x-tenant': string;
4655
+ authorization: string;
4656
+ }, {
4657
+ 'x-tenant': string;
4658
+ authorization: string;
4659
+ }>>>;
4660
+ };
4661
+ };
4662
+ //# sourceMappingURL=index.d.ts.map