@kl1/contracts 1.0.16 → 1.0.18

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