@voltade/envoy-sdk 1.2.12 → 1.2.14

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.
@@ -4,28 +4,189 @@ import { z } from 'zod';
4
4
  */
5
5
  export declare const MessageTypeSchema: z.ZodEnum<["incoming", "outgoing"]>;
6
6
  export declare const ContentTypeSchema: z.ZodEnum<["text", "input_select", "cards", "form", "article", "incoming_email"]>;
7
- export declare const AttachmentSchema: z.ZodUnion<[z.ZodString, z.ZodType<import("buffer").File, z.ZodTypeDef, import("buffer").File>]>;
7
+ export declare const TemplateParamsSchema: z.ZodObject<{
8
+ name: z.ZodString;
9
+ category: z.ZodString;
10
+ language: z.ZodString;
11
+ processed_params: z.ZodOptional<z.ZodObject<{
12
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13
+ header: z.ZodOptional<z.ZodObject<{
14
+ media_url: z.ZodOptional<z.ZodString>;
15
+ media_type: z.ZodOptional<z.ZodString>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ media_url?: string | undefined;
18
+ media_type?: string | undefined;
19
+ }, {
20
+ media_url?: string | undefined;
21
+ media_type?: string | undefined;
22
+ }>>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ body?: Record<string, string> | undefined;
25
+ header?: {
26
+ media_url?: string | undefined;
27
+ media_type?: string | undefined;
28
+ } | undefined;
29
+ }, {
30
+ body?: Record<string, string> | undefined;
31
+ header?: {
32
+ media_url?: string | undefined;
33
+ media_type?: string | undefined;
34
+ } | undefined;
35
+ }>>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ name: string;
38
+ category: string;
39
+ language: string;
40
+ processed_params?: {
41
+ body?: Record<string, string> | undefined;
42
+ header?: {
43
+ media_url?: string | undefined;
44
+ media_type?: string | undefined;
45
+ } | undefined;
46
+ } | undefined;
47
+ }, {
48
+ name: string;
49
+ category: string;
50
+ language: string;
51
+ processed_params?: {
52
+ body?: Record<string, string> | undefined;
53
+ header?: {
54
+ media_url?: string | undefined;
55
+ media_type?: string | undefined;
56
+ } | undefined;
57
+ } | undefined;
58
+ }>;
59
+ export declare const AttachmentFileTypeSchema: z.ZodEnum<["image", "audio", "video", "document", "sticker"]>;
60
+ export declare const AttachmentSchema: z.ZodObject<{
61
+ file_type: z.ZodEnum<["image", "audio", "video", "document", "sticker"]>;
62
+ download_url: z.ZodString;
63
+ filename: z.ZodOptional<z.ZodString>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
66
+ download_url: string;
67
+ filename?: string | undefined;
68
+ }, {
69
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
70
+ download_url: string;
71
+ filename?: string | undefined;
72
+ }>;
8
73
  export declare const CreateMessageParamsSchema: z.ZodObject<{
9
74
  content: z.ZodString;
10
75
  message_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["incoming", "outgoing"]>>>;
11
76
  private: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12
77
  content_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "input_select", "cards", "form", "article", "incoming_email"]>>>;
13
78
  content_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
- attachments: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<import("buffer").File, z.ZodTypeDef, import("buffer").File>]>, "many">>;
79
+ template_params: z.ZodOptional<z.ZodObject<{
80
+ name: z.ZodString;
81
+ category: z.ZodString;
82
+ language: z.ZodString;
83
+ processed_params: z.ZodOptional<z.ZodObject<{
84
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
85
+ header: z.ZodOptional<z.ZodObject<{
86
+ media_url: z.ZodOptional<z.ZodString>;
87
+ media_type: z.ZodOptional<z.ZodString>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ media_url?: string | undefined;
90
+ media_type?: string | undefined;
91
+ }, {
92
+ media_url?: string | undefined;
93
+ media_type?: string | undefined;
94
+ }>>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ body?: Record<string, string> | undefined;
97
+ header?: {
98
+ media_url?: string | undefined;
99
+ media_type?: string | undefined;
100
+ } | undefined;
101
+ }, {
102
+ body?: Record<string, string> | undefined;
103
+ header?: {
104
+ media_url?: string | undefined;
105
+ media_type?: string | undefined;
106
+ } | undefined;
107
+ }>>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ name: string;
110
+ category: string;
111
+ language: string;
112
+ processed_params?: {
113
+ body?: Record<string, string> | undefined;
114
+ header?: {
115
+ media_url?: string | undefined;
116
+ media_type?: string | undefined;
117
+ } | undefined;
118
+ } | undefined;
119
+ }, {
120
+ name: string;
121
+ category: string;
122
+ language: string;
123
+ processed_params?: {
124
+ body?: Record<string, string> | undefined;
125
+ header?: {
126
+ media_url?: string | undefined;
127
+ media_type?: string | undefined;
128
+ } | undefined;
129
+ } | undefined;
130
+ }>>;
131
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
132
+ file_type: z.ZodEnum<["image", "audio", "video", "document", "sticker"]>;
133
+ download_url: z.ZodString;
134
+ filename: z.ZodOptional<z.ZodString>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
137
+ download_url: string;
138
+ filename?: string | undefined;
139
+ }, {
140
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
141
+ download_url: string;
142
+ filename?: string | undefined;
143
+ }>, "many">>;
15
144
  }, "strip", z.ZodTypeAny, {
16
145
  content: string;
17
146
  message_type: "incoming" | "outgoing";
18
147
  private: boolean;
19
148
  content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
20
149
  content_attributes?: Record<string, unknown> | undefined;
21
- attachments?: (string | import("buffer").File)[] | undefined;
150
+ template_params?: {
151
+ name: string;
152
+ category: string;
153
+ language: string;
154
+ processed_params?: {
155
+ body?: Record<string, string> | undefined;
156
+ header?: {
157
+ media_url?: string | undefined;
158
+ media_type?: string | undefined;
159
+ } | undefined;
160
+ } | undefined;
161
+ } | undefined;
162
+ attachments?: {
163
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
164
+ download_url: string;
165
+ filename?: string | undefined;
166
+ }[] | undefined;
22
167
  }, {
23
168
  content: string;
24
169
  message_type?: "incoming" | "outgoing" | undefined;
25
170
  private?: boolean | undefined;
26
171
  content_type?: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email" | undefined;
27
172
  content_attributes?: Record<string, unknown> | undefined;
28
- attachments?: (string | import("buffer").File)[] | undefined;
173
+ template_params?: {
174
+ name: string;
175
+ category: string;
176
+ language: string;
177
+ processed_params?: {
178
+ body?: Record<string, string> | undefined;
179
+ header?: {
180
+ media_url?: string | undefined;
181
+ media_type?: string | undefined;
182
+ } | undefined;
183
+ } | undefined;
184
+ } | undefined;
185
+ attachments?: {
186
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
187
+ download_url: string;
188
+ filename?: string | undefined;
189
+ }[] | undefined;
29
190
  }>;
30
191
  export declare const MessageSchema: z.ZodObject<{
31
192
  id: z.ZodNumber;
@@ -42,14 +203,14 @@ export declare const MessageSchema: z.ZodObject<{
42
203
  email: z.ZodOptional<z.ZodString>;
43
204
  type: z.ZodString;
44
205
  }, "strip", z.ZodTypeAny, {
206
+ name: string;
45
207
  type: string;
46
208
  id: number;
47
- name: string;
48
209
  email?: string | undefined;
49
210
  }, {
211
+ name: string;
50
212
  type: string;
51
213
  id: number;
52
- name: string;
53
214
  email?: string | undefined;
54
215
  }>>;
55
216
  }, "strip", z.ZodTypeAny, {
@@ -62,9 +223,9 @@ export declare const MessageSchema: z.ZodObject<{
62
223
  created_at: number;
63
224
  conversation_id: number;
64
225
  sender?: {
226
+ name: string;
65
227
  type: string;
66
228
  id: number;
67
- name: string;
68
229
  email?: string | undefined;
69
230
  } | undefined;
70
231
  }, {
@@ -77,9 +238,9 @@ export declare const MessageSchema: z.ZodObject<{
77
238
  created_at: number;
78
239
  conversation_id: number;
79
240
  sender?: {
241
+ name: string;
80
242
  type: string;
81
243
  id: number;
82
- name: string;
83
244
  email?: string | undefined;
84
245
  } | undefined;
85
246
  }>;
@@ -89,11 +250,11 @@ export declare const TeamSchema: z.ZodObject<{
89
250
  id: z.ZodOptional<z.ZodNumber>;
90
251
  name: z.ZodOptional<z.ZodString>;
91
252
  }, "strip", z.ZodTypeAny, {
92
- id?: number | undefined;
93
253
  name?: string | undefined;
94
- }, {
95
254
  id?: number | undefined;
255
+ }, {
96
256
  name?: string | undefined;
257
+ id?: number | undefined;
97
258
  }>;
98
259
  export declare const AgentSchema: z.ZodObject<{
99
260
  id: z.ZodOptional<z.ZodNumber>;
@@ -104,17 +265,17 @@ export declare const AgentSchema: z.ZodObject<{
104
265
  availability: z.ZodOptional<z.ZodString>;
105
266
  thumbnail: z.ZodOptional<z.ZodString>;
106
267
  }, "strip", z.ZodTypeAny, {
268
+ name?: string | undefined;
107
269
  type?: string | undefined;
108
270
  id?: number | undefined;
109
- name?: string | undefined;
110
271
  available_name?: string | undefined;
111
272
  avatar_url?: string | undefined;
112
273
  availability?: string | undefined;
113
274
  thumbnail?: string | undefined;
114
275
  }, {
276
+ name?: string | undefined;
115
277
  type?: string | undefined;
116
278
  id?: number | undefined;
117
- name?: string | undefined;
118
279
  available_name?: string | undefined;
119
280
  avatar_url?: string | undefined;
120
281
  availability?: string | undefined;
@@ -127,11 +288,11 @@ export declare const EscalationResponseSchema: z.ZodObject<{
127
288
  id: z.ZodOptional<z.ZodNumber>;
128
289
  name: z.ZodOptional<z.ZodString>;
129
290
  }, "strip", z.ZodTypeAny, {
130
- id?: number | undefined;
131
291
  name?: string | undefined;
132
- }, {
133
292
  id?: number | undefined;
293
+ }, {
134
294
  name?: string | undefined;
295
+ id?: number | undefined;
135
296
  }>>>;
136
297
  agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
137
298
  id: z.ZodOptional<z.ZodNumber>;
@@ -142,17 +303,17 @@ export declare const EscalationResponseSchema: z.ZodObject<{
142
303
  availability: z.ZodOptional<z.ZodString>;
143
304
  thumbnail: z.ZodOptional<z.ZodString>;
144
305
  }, "strip", z.ZodTypeAny, {
306
+ name?: string | undefined;
145
307
  type?: string | undefined;
146
308
  id?: number | undefined;
147
- name?: string | undefined;
148
309
  available_name?: string | undefined;
149
310
  avatar_url?: string | undefined;
150
311
  availability?: string | undefined;
151
312
  thumbnail?: string | undefined;
152
313
  }, {
314
+ name?: string | undefined;
153
315
  type?: string | undefined;
154
316
  id?: number | undefined;
155
- name?: string | undefined;
156
317
  available_name?: string | undefined;
157
318
  avatar_url?: string | undefined;
158
319
  availability?: string | undefined;
@@ -163,17 +324,17 @@ export declare const EscalationResponseSchema: z.ZodObject<{
163
324
  }, "strip", z.ZodTypeAny, {
164
325
  success: boolean;
165
326
  agent?: {
327
+ name?: string | undefined;
166
328
  type?: string | undefined;
167
329
  id?: number | undefined;
168
- name?: string | undefined;
169
330
  available_name?: string | undefined;
170
331
  avatar_url?: string | undefined;
171
332
  availability?: string | undefined;
172
333
  thumbnail?: string | undefined;
173
334
  } | null | undefined;
174
335
  team?: {
175
- id?: number | undefined;
176
336
  name?: string | undefined;
337
+ id?: number | undefined;
177
338
  } | null | undefined;
178
339
  escalation_type?: "agent" | "team" | undefined;
179
340
  reason?: string | undefined;
@@ -181,17 +342,17 @@ export declare const EscalationResponseSchema: z.ZodObject<{
181
342
  }, {
182
343
  success: boolean;
183
344
  agent?: {
345
+ name?: string | undefined;
184
346
  type?: string | undefined;
185
347
  id?: number | undefined;
186
- name?: string | undefined;
187
348
  available_name?: string | undefined;
188
349
  avatar_url?: string | undefined;
189
350
  availability?: string | undefined;
190
351
  thumbnail?: string | undefined;
191
352
  } | null | undefined;
192
353
  team?: {
193
- id?: number | undefined;
194
354
  name?: string | undefined;
355
+ id?: number | undefined;
195
356
  } | null | undefined;
196
357
  escalation_type?: "agent" | "team" | undefined;
197
358
  reason?: string | undefined;
@@ -212,8 +373,8 @@ export declare const ContactSchema: z.ZodObject<{
212
373
  customer_stage_explanation: z.ZodNullable<z.ZodString>;
213
374
  type: z.ZodOptional<z.ZodString>;
214
375
  }, "strip", z.ZodTypeAny, {
215
- id: number;
216
376
  name: string | null;
377
+ id: number;
217
378
  email: string | null;
218
379
  thumbnail: string;
219
380
  phone_number: string | null;
@@ -225,8 +386,8 @@ export declare const ContactSchema: z.ZodObject<{
225
386
  customer_stage_explanation: string | null;
226
387
  type?: string | undefined;
227
388
  }, {
228
- id: number;
229
389
  name: string | null;
390
+ id: number;
230
391
  email: string | null;
231
392
  thumbnail: string;
232
393
  phone_number: string | null;
@@ -271,12 +432,12 @@ export declare const AssigneeSchema: z.ZodObject<{
271
432
  name: z.ZodString;
272
433
  email: z.ZodString;
273
434
  }, "strip", z.ZodTypeAny, {
274
- id: number;
275
435
  name: string;
436
+ id: number;
276
437
  email: string;
277
438
  }, {
278
- id: number;
279
439
  name: string;
440
+ id: number;
280
441
  email: string;
281
442
  }>;
282
443
  export declare const ConversationMetaSchema: z.ZodObject<{
@@ -294,8 +455,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
294
455
  customer_stage_explanation: z.ZodNullable<z.ZodString>;
295
456
  type: z.ZodOptional<z.ZodString>;
296
457
  }, "strip", z.ZodTypeAny, {
297
- id: number;
298
458
  name: string | null;
459
+ id: number;
299
460
  email: string | null;
300
461
  thumbnail: string;
301
462
  phone_number: string | null;
@@ -307,8 +468,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
307
468
  customer_stage_explanation: string | null;
308
469
  type?: string | undefined;
309
470
  }, {
310
- id: number;
311
471
  name: string | null;
472
+ id: number;
312
473
  email: string | null;
313
474
  thumbnail: string;
314
475
  phone_number: string | null;
@@ -325,20 +486,20 @@ export declare const ConversationMetaSchema: z.ZodObject<{
325
486
  name: z.ZodString;
326
487
  email: z.ZodString;
327
488
  }, "strip", z.ZodTypeAny, {
328
- id: number;
329
489
  name: string;
490
+ id: number;
330
491
  email: string;
331
492
  }, {
332
- id: number;
333
493
  name: string;
494
+ id: number;
334
495
  email: string;
335
496
  }>>;
336
497
  team: z.ZodNullable<z.ZodUnknown>;
337
498
  hmac_verified: z.ZodBoolean;
338
499
  }, "strip", z.ZodTypeAny, {
339
500
  sender: {
340
- id: number;
341
501
  name: string | null;
502
+ id: number;
342
503
  email: string | null;
343
504
  thumbnail: string;
344
505
  phone_number: string | null;
@@ -352,15 +513,15 @@ export declare const ConversationMetaSchema: z.ZodObject<{
352
513
  };
353
514
  hmac_verified: boolean;
354
515
  assignee: {
355
- id: number;
356
516
  name: string;
517
+ id: number;
357
518
  email: string;
358
519
  } | null;
359
520
  team?: unknown;
360
521
  }, {
361
522
  sender: {
362
- id: number;
363
523
  name: string | null;
524
+ id: number;
364
525
  email: string | null;
365
526
  thumbnail: string;
366
527
  phone_number: string | null;
@@ -374,8 +535,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
374
535
  };
375
536
  hmac_verified: boolean;
376
537
  assignee: {
377
- id: number;
378
538
  name: string;
539
+ id: number;
379
540
  email: string;
380
541
  } | null;
381
542
  team?: unknown;
@@ -430,14 +591,14 @@ export declare const ConversationSchema: z.ZodObject<{
430
591
  email: z.ZodOptional<z.ZodString>;
431
592
  type: z.ZodString;
432
593
  }, "strip", z.ZodTypeAny, {
594
+ name: string;
433
595
  type: string;
434
596
  id: number;
435
- name: string;
436
597
  email?: string | undefined;
437
598
  }, {
599
+ name: string;
438
600
  type: string;
439
601
  id: number;
440
- name: string;
441
602
  email?: string | undefined;
442
603
  }>>;
443
604
  }, "strip", z.ZodTypeAny, {
@@ -450,9 +611,9 @@ export declare const ConversationSchema: z.ZodObject<{
450
611
  created_at: number;
451
612
  conversation_id: number;
452
613
  sender?: {
614
+ name: string;
453
615
  type: string;
454
616
  id: number;
455
- name: string;
456
617
  email?: string | undefined;
457
618
  } | undefined;
458
619
  }, {
@@ -465,9 +626,9 @@ export declare const ConversationSchema: z.ZodObject<{
465
626
  created_at: number;
466
627
  conversation_id: number;
467
628
  sender?: {
629
+ name: string;
468
630
  type: string;
469
631
  id: number;
470
- name: string;
471
632
  email?: string | undefined;
472
633
  } | undefined;
473
634
  }>, "many">>;
@@ -486,8 +647,8 @@ export declare const ConversationSchema: z.ZodObject<{
486
647
  customer_stage_explanation: z.ZodNullable<z.ZodString>;
487
648
  type: z.ZodOptional<z.ZodString>;
488
649
  }, "strip", z.ZodTypeAny, {
489
- id: number;
490
650
  name: string | null;
651
+ id: number;
491
652
  email: string | null;
492
653
  thumbnail: string;
493
654
  phone_number: string | null;
@@ -499,8 +660,8 @@ export declare const ConversationSchema: z.ZodObject<{
499
660
  customer_stage_explanation: string | null;
500
661
  type?: string | undefined;
501
662
  }, {
502
- id: number;
503
663
  name: string | null;
664
+ id: number;
504
665
  email: string | null;
505
666
  thumbnail: string;
506
667
  phone_number: string | null;
@@ -517,20 +678,20 @@ export declare const ConversationSchema: z.ZodObject<{
517
678
  name: z.ZodString;
518
679
  email: z.ZodString;
519
680
  }, "strip", z.ZodTypeAny, {
520
- id: number;
521
681
  name: string;
682
+ id: number;
522
683
  email: string;
523
684
  }, {
524
- id: number;
525
685
  name: string;
686
+ id: number;
526
687
  email: string;
527
688
  }>>;
528
689
  team: z.ZodNullable<z.ZodUnknown>;
529
690
  hmac_verified: z.ZodBoolean;
530
691
  }, "strip", z.ZodTypeAny, {
531
692
  sender: {
532
- id: number;
533
693
  name: string | null;
694
+ id: number;
534
695
  email: string | null;
535
696
  thumbnail: string;
536
697
  phone_number: string | null;
@@ -544,15 +705,15 @@ export declare const ConversationSchema: z.ZodObject<{
544
705
  };
545
706
  hmac_verified: boolean;
546
707
  assignee: {
547
- id: number;
548
708
  name: string;
709
+ id: number;
549
710
  email: string;
550
711
  } | null;
551
712
  team?: unknown;
552
713
  }, {
553
714
  sender: {
554
- id: number;
555
715
  name: string | null;
716
+ id: number;
556
717
  email: string | null;
557
718
  thumbnail: string;
558
719
  phone_number: string | null;
@@ -566,8 +727,8 @@ export declare const ConversationSchema: z.ZodObject<{
566
727
  };
567
728
  hmac_verified: boolean;
568
729
  assignee: {
569
- id: number;
570
730
  name: string;
731
+ id: number;
571
732
  email: string;
572
733
  } | null;
573
734
  team?: unknown;
@@ -622,16 +783,16 @@ export declare const ConversationSchema: z.ZodObject<{
622
783
  created_at: number;
623
784
  conversation_id: number;
624
785
  sender?: {
786
+ name: string;
625
787
  type: string;
626
788
  id: number;
627
- name: string;
628
789
  email?: string | undefined;
629
790
  } | undefined;
630
791
  }[] | undefined;
631
792
  meta?: {
632
793
  sender: {
633
- id: number;
634
794
  name: string | null;
795
+ id: number;
635
796
  email: string | null;
636
797
  thumbnail: string;
637
798
  phone_number: string | null;
@@ -645,8 +806,8 @@ export declare const ConversationSchema: z.ZodObject<{
645
806
  };
646
807
  hmac_verified: boolean;
647
808
  assignee: {
648
- id: number;
649
809
  name: string;
810
+ id: number;
650
811
  email: string;
651
812
  } | null;
652
813
  team?: unknown;
@@ -696,16 +857,16 @@ export declare const ConversationSchema: z.ZodObject<{
696
857
  created_at: number;
697
858
  conversation_id: number;
698
859
  sender?: {
860
+ name: string;
699
861
  type: string;
700
862
  id: number;
701
- name: string;
702
863
  email?: string | undefined;
703
864
  } | undefined;
704
865
  }[] | undefined;
705
866
  meta?: {
706
867
  sender: {
707
- id: number;
708
868
  name: string | null;
869
+ id: number;
709
870
  email: string | null;
710
871
  thumbnail: string;
711
872
  phone_number: string | null;
@@ -719,8 +880,8 @@ export declare const ConversationSchema: z.ZodObject<{
719
880
  };
720
881
  hmac_verified: boolean;
721
882
  assignee: {
722
- id: number;
723
883
  name: string;
884
+ id: number;
724
885
  email: string;
725
886
  } | null;
726
887
  team?: unknown;
@@ -748,12 +909,12 @@ export declare const MessagesResponseMetaSchema: z.ZodObject<{
748
909
  name: z.ZodString;
749
910
  email: z.ZodString;
750
911
  }, "strip", z.ZodTypeAny, {
751
- id: number;
752
912
  name: string;
913
+ id: number;
753
914
  email: string;
754
915
  }, {
755
- id: number;
756
916
  name: string;
917
+ id: number;
757
918
  email: string;
758
919
  }>>;
759
920
  agent_last_seen_at: z.ZodNullable<z.ZodString>;
@@ -761,8 +922,8 @@ export declare const MessagesResponseMetaSchema: z.ZodObject<{
761
922
  }, "strip", z.ZodTypeAny, {
762
923
  additional_attributes: Record<string, unknown>;
763
924
  assignee: {
764
- id: number;
765
925
  name: string;
926
+ id: number;
766
927
  email: string;
767
928
  } | null;
768
929
  labels: string[];
@@ -772,8 +933,8 @@ export declare const MessagesResponseMetaSchema: z.ZodObject<{
772
933
  }, {
773
934
  additional_attributes: Record<string, unknown>;
774
935
  assignee: {
775
- id: number;
776
936
  name: string;
937
+ id: number;
777
938
  email: string;
778
939
  } | null;
779
940
  labels: string[];
@@ -791,12 +952,12 @@ export declare const MessagesResponseSchema: z.ZodObject<{
791
952
  name: z.ZodString;
792
953
  email: z.ZodString;
793
954
  }, "strip", z.ZodTypeAny, {
794
- id: number;
795
955
  name: string;
956
+ id: number;
796
957
  email: string;
797
958
  }, {
798
- id: number;
799
959
  name: string;
960
+ id: number;
800
961
  email: string;
801
962
  }>>;
802
963
  agent_last_seen_at: z.ZodNullable<z.ZodString>;
@@ -804,8 +965,8 @@ export declare const MessagesResponseSchema: z.ZodObject<{
804
965
  }, "strip", z.ZodTypeAny, {
805
966
  additional_attributes: Record<string, unknown>;
806
967
  assignee: {
807
- id: number;
808
968
  name: string;
969
+ id: number;
809
970
  email: string;
810
971
  } | null;
811
972
  labels: string[];
@@ -815,8 +976,8 @@ export declare const MessagesResponseSchema: z.ZodObject<{
815
976
  }, {
816
977
  additional_attributes: Record<string, unknown>;
817
978
  assignee: {
818
- id: number;
819
979
  name: string;
980
+ id: number;
820
981
  email: string;
821
982
  } | null;
822
983
  labels: string[];
@@ -839,14 +1000,14 @@ export declare const MessagesResponseSchema: z.ZodObject<{
839
1000
  email: z.ZodOptional<z.ZodString>;
840
1001
  type: z.ZodString;
841
1002
  }, "strip", z.ZodTypeAny, {
1003
+ name: string;
842
1004
  type: string;
843
1005
  id: number;
844
- name: string;
845
1006
  email?: string | undefined;
846
1007
  }, {
1008
+ name: string;
847
1009
  type: string;
848
1010
  id: number;
849
- name: string;
850
1011
  email?: string | undefined;
851
1012
  }>>;
852
1013
  }, "strip", z.ZodTypeAny, {
@@ -859,9 +1020,9 @@ export declare const MessagesResponseSchema: z.ZodObject<{
859
1020
  created_at: number;
860
1021
  conversation_id: number;
861
1022
  sender?: {
1023
+ name: string;
862
1024
  type: string;
863
1025
  id: number;
864
- name: string;
865
1026
  email?: string | undefined;
866
1027
  } | undefined;
867
1028
  }, {
@@ -874,9 +1035,9 @@ export declare const MessagesResponseSchema: z.ZodObject<{
874
1035
  created_at: number;
875
1036
  conversation_id: number;
876
1037
  sender?: {
1038
+ name: string;
877
1039
  type: string;
878
1040
  id: number;
879
- name: string;
880
1041
  email?: string | undefined;
881
1042
  } | undefined;
882
1043
  }>, "many">;
@@ -884,8 +1045,8 @@ export declare const MessagesResponseSchema: z.ZodObject<{
884
1045
  meta: {
885
1046
  additional_attributes: Record<string, unknown>;
886
1047
  assignee: {
887
- id: number;
888
1048
  name: string;
1049
+ id: number;
889
1050
  email: string;
890
1051
  } | null;
891
1052
  labels: string[];
@@ -903,9 +1064,9 @@ export declare const MessagesResponseSchema: z.ZodObject<{
903
1064
  created_at: number;
904
1065
  conversation_id: number;
905
1066
  sender?: {
1067
+ name: string;
906
1068
  type: string;
907
1069
  id: number;
908
- name: string;
909
1070
  email?: string | undefined;
910
1071
  } | undefined;
911
1072
  }[];
@@ -913,8 +1074,8 @@ export declare const MessagesResponseSchema: z.ZodObject<{
913
1074
  meta: {
914
1075
  additional_attributes: Record<string, unknown>;
915
1076
  assignee: {
916
- id: number;
917
1077
  name: string;
1078
+ id: number;
918
1079
  email: string;
919
1080
  } | null;
920
1081
  labels: string[];
@@ -932,9 +1093,9 @@ export declare const MessagesResponseSchema: z.ZodObject<{
932
1093
  created_at: number;
933
1094
  conversation_id: number;
934
1095
  sender?: {
1096
+ name: string;
935
1097
  type: string;
936
1098
  id: number;
937
- name: string;
938
1099
  email?: string | undefined;
939
1100
  } | undefined;
940
1101
  }[];
@@ -944,7 +1105,9 @@ export declare const MessagesResponseSchema: z.ZodObject<{
944
1105
  */
945
1106
  export type MessageType = z.infer<typeof MessageTypeSchema>;
946
1107
  export type ContentType = z.infer<typeof ContentTypeSchema>;
1108
+ export type AttachmentFileType = z.infer<typeof AttachmentFileTypeSchema>;
947
1109
  export type Attachment = z.infer<typeof AttachmentSchema>;
1110
+ export type TemplateParams = z.infer<typeof TemplateParamsSchema>;
948
1111
  export type CreateMessageParams = z.infer<typeof CreateMessageParamsSchema>;
949
1112
  export type Message = z.infer<typeof MessageSchema>;
950
1113
  export type EscalationType = z.infer<typeof EscalationTypeSchema>;