@kl1/contracts 1.0.24 → 1.0.26

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