@voltade/envoy-sdk 1.2.11 → 1.2.13

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,24 +4,152 @@ 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 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
+ }>;
7
59
  export declare const CreateMessageParamsSchema: z.ZodObject<{
8
60
  content: z.ZodString;
9
61
  message_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["incoming", "outgoing"]>>>;
10
62
  private: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11
63
  content_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "input_select", "cards", "form", "article", "incoming_email"]>>>;
12
64
  content_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
65
+ template_params: z.ZodOptional<z.ZodObject<{
66
+ name: z.ZodString;
67
+ category: z.ZodString;
68
+ language: z.ZodString;
69
+ processed_params: z.ZodOptional<z.ZodObject<{
70
+ body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
71
+ header: z.ZodOptional<z.ZodObject<{
72
+ media_url: z.ZodOptional<z.ZodString>;
73
+ media_type: z.ZodOptional<z.ZodString>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ media_url?: string | undefined;
76
+ media_type?: string | undefined;
77
+ }, {
78
+ media_url?: string | undefined;
79
+ media_type?: string | undefined;
80
+ }>>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ body?: Record<string, string> | undefined;
83
+ header?: {
84
+ media_url?: string | undefined;
85
+ media_type?: string | undefined;
86
+ } | undefined;
87
+ }, {
88
+ body?: Record<string, string> | undefined;
89
+ header?: {
90
+ media_url?: string | undefined;
91
+ media_type?: string | undefined;
92
+ } | undefined;
93
+ }>>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ name: string;
96
+ category: string;
97
+ language: string;
98
+ processed_params?: {
99
+ body?: Record<string, string> | undefined;
100
+ header?: {
101
+ media_url?: string | undefined;
102
+ media_type?: string | undefined;
103
+ } | undefined;
104
+ } | undefined;
105
+ }, {
106
+ name: string;
107
+ category: string;
108
+ language: string;
109
+ processed_params?: {
110
+ body?: Record<string, string> | undefined;
111
+ header?: {
112
+ media_url?: string | undefined;
113
+ media_type?: string | undefined;
114
+ } | undefined;
115
+ } | undefined;
116
+ }>>;
13
117
  }, "strip", z.ZodTypeAny, {
14
118
  content: string;
15
119
  message_type: "incoming" | "outgoing";
16
120
  private: boolean;
17
121
  content_type: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email";
18
122
  content_attributes?: Record<string, unknown> | undefined;
123
+ template_params?: {
124
+ name: string;
125
+ category: string;
126
+ language: string;
127
+ processed_params?: {
128
+ body?: Record<string, string> | undefined;
129
+ header?: {
130
+ media_url?: string | undefined;
131
+ media_type?: string | undefined;
132
+ } | undefined;
133
+ } | undefined;
134
+ } | undefined;
19
135
  }, {
20
136
  content: string;
21
137
  message_type?: "incoming" | "outgoing" | undefined;
22
138
  private?: boolean | undefined;
23
139
  content_type?: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email" | undefined;
24
140
  content_attributes?: Record<string, unknown> | undefined;
141
+ template_params?: {
142
+ name: string;
143
+ category: string;
144
+ language: string;
145
+ processed_params?: {
146
+ body?: Record<string, string> | undefined;
147
+ header?: {
148
+ media_url?: string | undefined;
149
+ media_type?: string | undefined;
150
+ } | undefined;
151
+ } | undefined;
152
+ } | undefined;
25
153
  }>;
26
154
  export declare const MessageSchema: z.ZodObject<{
27
155
  id: z.ZodNumber;
@@ -38,14 +166,14 @@ export declare const MessageSchema: z.ZodObject<{
38
166
  email: z.ZodOptional<z.ZodString>;
39
167
  type: z.ZodString;
40
168
  }, "strip", z.ZodTypeAny, {
169
+ name: string;
41
170
  type: string;
42
171
  id: number;
43
- name: string;
44
172
  email?: string | undefined;
45
173
  }, {
174
+ name: string;
46
175
  type: string;
47
176
  id: number;
48
- name: string;
49
177
  email?: string | undefined;
50
178
  }>>;
51
179
  }, "strip", z.ZodTypeAny, {
@@ -58,9 +186,9 @@ export declare const MessageSchema: z.ZodObject<{
58
186
  created_at: number;
59
187
  conversation_id: number;
60
188
  sender?: {
189
+ name: string;
61
190
  type: string;
62
191
  id: number;
63
- name: string;
64
192
  email?: string | undefined;
65
193
  } | undefined;
66
194
  }, {
@@ -73,9 +201,9 @@ export declare const MessageSchema: z.ZodObject<{
73
201
  created_at: number;
74
202
  conversation_id: number;
75
203
  sender?: {
204
+ name: string;
76
205
  type: string;
77
206
  id: number;
78
- name: string;
79
207
  email?: string | undefined;
80
208
  } | undefined;
81
209
  }>;
@@ -85,11 +213,11 @@ export declare const TeamSchema: z.ZodObject<{
85
213
  id: z.ZodOptional<z.ZodNumber>;
86
214
  name: z.ZodOptional<z.ZodString>;
87
215
  }, "strip", z.ZodTypeAny, {
88
- id?: number | undefined;
89
216
  name?: string | undefined;
90
- }, {
91
217
  id?: number | undefined;
218
+ }, {
92
219
  name?: string | undefined;
220
+ id?: number | undefined;
93
221
  }>;
94
222
  export declare const AgentSchema: z.ZodObject<{
95
223
  id: z.ZodOptional<z.ZodNumber>;
@@ -100,17 +228,17 @@ export declare const AgentSchema: z.ZodObject<{
100
228
  availability: z.ZodOptional<z.ZodString>;
101
229
  thumbnail: z.ZodOptional<z.ZodString>;
102
230
  }, "strip", z.ZodTypeAny, {
231
+ name?: string | undefined;
103
232
  type?: string | undefined;
104
233
  id?: number | undefined;
105
- name?: string | undefined;
106
234
  available_name?: string | undefined;
107
235
  avatar_url?: string | undefined;
108
236
  availability?: string | undefined;
109
237
  thumbnail?: string | undefined;
110
238
  }, {
239
+ name?: string | undefined;
111
240
  type?: string | undefined;
112
241
  id?: number | undefined;
113
- name?: string | undefined;
114
242
  available_name?: string | undefined;
115
243
  avatar_url?: string | undefined;
116
244
  availability?: string | undefined;
@@ -123,11 +251,11 @@ export declare const EscalationResponseSchema: z.ZodObject<{
123
251
  id: z.ZodOptional<z.ZodNumber>;
124
252
  name: z.ZodOptional<z.ZodString>;
125
253
  }, "strip", z.ZodTypeAny, {
126
- id?: number | undefined;
127
254
  name?: string | undefined;
128
- }, {
129
255
  id?: number | undefined;
256
+ }, {
130
257
  name?: string | undefined;
258
+ id?: number | undefined;
131
259
  }>>>;
132
260
  agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
133
261
  id: z.ZodOptional<z.ZodNumber>;
@@ -138,17 +266,17 @@ export declare const EscalationResponseSchema: z.ZodObject<{
138
266
  availability: z.ZodOptional<z.ZodString>;
139
267
  thumbnail: z.ZodOptional<z.ZodString>;
140
268
  }, "strip", z.ZodTypeAny, {
269
+ name?: string | undefined;
141
270
  type?: string | undefined;
142
271
  id?: number | undefined;
143
- name?: string | undefined;
144
272
  available_name?: string | undefined;
145
273
  avatar_url?: string | undefined;
146
274
  availability?: string | undefined;
147
275
  thumbnail?: string | undefined;
148
276
  }, {
277
+ name?: string | undefined;
149
278
  type?: string | undefined;
150
279
  id?: number | undefined;
151
- name?: string | undefined;
152
280
  available_name?: string | undefined;
153
281
  avatar_url?: string | undefined;
154
282
  availability?: string | undefined;
@@ -159,17 +287,17 @@ export declare const EscalationResponseSchema: z.ZodObject<{
159
287
  }, "strip", z.ZodTypeAny, {
160
288
  success: boolean;
161
289
  agent?: {
290
+ name?: string | undefined;
162
291
  type?: string | undefined;
163
292
  id?: number | undefined;
164
- name?: string | undefined;
165
293
  available_name?: string | undefined;
166
294
  avatar_url?: string | undefined;
167
295
  availability?: string | undefined;
168
296
  thumbnail?: string | undefined;
169
297
  } | null | undefined;
170
298
  team?: {
171
- id?: number | undefined;
172
299
  name?: string | undefined;
300
+ id?: number | undefined;
173
301
  } | null | undefined;
174
302
  escalation_type?: "agent" | "team" | undefined;
175
303
  reason?: string | undefined;
@@ -177,17 +305,17 @@ export declare const EscalationResponseSchema: z.ZodObject<{
177
305
  }, {
178
306
  success: boolean;
179
307
  agent?: {
308
+ name?: string | undefined;
180
309
  type?: string | undefined;
181
310
  id?: number | undefined;
182
- name?: string | undefined;
183
311
  available_name?: string | undefined;
184
312
  avatar_url?: string | undefined;
185
313
  availability?: string | undefined;
186
314
  thumbnail?: string | undefined;
187
315
  } | null | undefined;
188
316
  team?: {
189
- id?: number | undefined;
190
317
  name?: string | undefined;
318
+ id?: number | undefined;
191
319
  } | null | undefined;
192
320
  escalation_type?: "agent" | "team" | undefined;
193
321
  reason?: string | undefined;
@@ -208,8 +336,8 @@ export declare const ContactSchema: z.ZodObject<{
208
336
  customer_stage_explanation: z.ZodNullable<z.ZodString>;
209
337
  type: z.ZodOptional<z.ZodString>;
210
338
  }, "strip", z.ZodTypeAny, {
211
- id: number;
212
339
  name: string | null;
340
+ id: number;
213
341
  email: string | null;
214
342
  thumbnail: string;
215
343
  phone_number: string | null;
@@ -221,8 +349,8 @@ export declare const ContactSchema: z.ZodObject<{
221
349
  customer_stage_explanation: string | null;
222
350
  type?: string | undefined;
223
351
  }, {
224
- id: number;
225
352
  name: string | null;
353
+ id: number;
226
354
  email: string | null;
227
355
  thumbnail: string;
228
356
  phone_number: string | null;
@@ -267,12 +395,12 @@ export declare const AssigneeSchema: z.ZodObject<{
267
395
  name: z.ZodString;
268
396
  email: z.ZodString;
269
397
  }, "strip", z.ZodTypeAny, {
270
- id: number;
271
398
  name: string;
399
+ id: number;
272
400
  email: string;
273
401
  }, {
274
- id: number;
275
402
  name: string;
403
+ id: number;
276
404
  email: string;
277
405
  }>;
278
406
  export declare const ConversationMetaSchema: z.ZodObject<{
@@ -290,8 +418,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
290
418
  customer_stage_explanation: z.ZodNullable<z.ZodString>;
291
419
  type: z.ZodOptional<z.ZodString>;
292
420
  }, "strip", z.ZodTypeAny, {
293
- id: number;
294
421
  name: string | null;
422
+ id: number;
295
423
  email: string | null;
296
424
  thumbnail: string;
297
425
  phone_number: string | null;
@@ -303,8 +431,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
303
431
  customer_stage_explanation: string | null;
304
432
  type?: string | undefined;
305
433
  }, {
306
- id: number;
307
434
  name: string | null;
435
+ id: number;
308
436
  email: string | null;
309
437
  thumbnail: string;
310
438
  phone_number: string | null;
@@ -321,20 +449,20 @@ export declare const ConversationMetaSchema: z.ZodObject<{
321
449
  name: z.ZodString;
322
450
  email: z.ZodString;
323
451
  }, "strip", z.ZodTypeAny, {
324
- id: number;
325
452
  name: string;
453
+ id: number;
326
454
  email: string;
327
455
  }, {
328
- id: number;
329
456
  name: string;
457
+ id: number;
330
458
  email: string;
331
459
  }>>;
332
460
  team: z.ZodNullable<z.ZodUnknown>;
333
461
  hmac_verified: z.ZodBoolean;
334
462
  }, "strip", z.ZodTypeAny, {
335
463
  sender: {
336
- id: number;
337
464
  name: string | null;
465
+ id: number;
338
466
  email: string | null;
339
467
  thumbnail: string;
340
468
  phone_number: string | null;
@@ -348,15 +476,15 @@ export declare const ConversationMetaSchema: z.ZodObject<{
348
476
  };
349
477
  hmac_verified: boolean;
350
478
  assignee: {
351
- id: number;
352
479
  name: string;
480
+ id: number;
353
481
  email: string;
354
482
  } | null;
355
483
  team?: unknown;
356
484
  }, {
357
485
  sender: {
358
- id: number;
359
486
  name: string | null;
487
+ id: number;
360
488
  email: string | null;
361
489
  thumbnail: string;
362
490
  phone_number: string | null;
@@ -370,8 +498,8 @@ export declare const ConversationMetaSchema: z.ZodObject<{
370
498
  };
371
499
  hmac_verified: boolean;
372
500
  assignee: {
373
- id: number;
374
501
  name: string;
502
+ id: number;
375
503
  email: string;
376
504
  } | null;
377
505
  team?: unknown;
@@ -426,14 +554,14 @@ export declare const ConversationSchema: z.ZodObject<{
426
554
  email: z.ZodOptional<z.ZodString>;
427
555
  type: z.ZodString;
428
556
  }, "strip", z.ZodTypeAny, {
557
+ name: string;
429
558
  type: string;
430
559
  id: number;
431
- name: string;
432
560
  email?: string | undefined;
433
561
  }, {
562
+ name: string;
434
563
  type: string;
435
564
  id: number;
436
- name: string;
437
565
  email?: string | undefined;
438
566
  }>>;
439
567
  }, "strip", z.ZodTypeAny, {
@@ -446,9 +574,9 @@ export declare const ConversationSchema: z.ZodObject<{
446
574
  created_at: number;
447
575
  conversation_id: number;
448
576
  sender?: {
577
+ name: string;
449
578
  type: string;
450
579
  id: number;
451
- name: string;
452
580
  email?: string | undefined;
453
581
  } | undefined;
454
582
  }, {
@@ -461,9 +589,9 @@ export declare const ConversationSchema: z.ZodObject<{
461
589
  created_at: number;
462
590
  conversation_id: number;
463
591
  sender?: {
592
+ name: string;
464
593
  type: string;
465
594
  id: number;
466
- name: string;
467
595
  email?: string | undefined;
468
596
  } | undefined;
469
597
  }>, "many">>;
@@ -482,8 +610,8 @@ export declare const ConversationSchema: z.ZodObject<{
482
610
  customer_stage_explanation: z.ZodNullable<z.ZodString>;
483
611
  type: z.ZodOptional<z.ZodString>;
484
612
  }, "strip", z.ZodTypeAny, {
485
- id: number;
486
613
  name: string | null;
614
+ id: number;
487
615
  email: string | null;
488
616
  thumbnail: string;
489
617
  phone_number: string | null;
@@ -495,8 +623,8 @@ export declare const ConversationSchema: z.ZodObject<{
495
623
  customer_stage_explanation: string | null;
496
624
  type?: string | undefined;
497
625
  }, {
498
- id: number;
499
626
  name: string | null;
627
+ id: number;
500
628
  email: string | null;
501
629
  thumbnail: string;
502
630
  phone_number: string | null;
@@ -513,20 +641,20 @@ export declare const ConversationSchema: z.ZodObject<{
513
641
  name: z.ZodString;
514
642
  email: z.ZodString;
515
643
  }, "strip", z.ZodTypeAny, {
516
- id: number;
517
644
  name: string;
645
+ id: number;
518
646
  email: string;
519
647
  }, {
520
- id: number;
521
648
  name: string;
649
+ id: number;
522
650
  email: string;
523
651
  }>>;
524
652
  team: z.ZodNullable<z.ZodUnknown>;
525
653
  hmac_verified: z.ZodBoolean;
526
654
  }, "strip", z.ZodTypeAny, {
527
655
  sender: {
528
- id: number;
529
656
  name: string | null;
657
+ id: number;
530
658
  email: string | null;
531
659
  thumbnail: string;
532
660
  phone_number: string | null;
@@ -540,15 +668,15 @@ export declare const ConversationSchema: z.ZodObject<{
540
668
  };
541
669
  hmac_verified: boolean;
542
670
  assignee: {
543
- id: number;
544
671
  name: string;
672
+ id: number;
545
673
  email: string;
546
674
  } | null;
547
675
  team?: unknown;
548
676
  }, {
549
677
  sender: {
550
- id: number;
551
678
  name: string | null;
679
+ id: number;
552
680
  email: string | null;
553
681
  thumbnail: string;
554
682
  phone_number: string | null;
@@ -562,8 +690,8 @@ export declare const ConversationSchema: z.ZodObject<{
562
690
  };
563
691
  hmac_verified: boolean;
564
692
  assignee: {
565
- id: number;
566
693
  name: string;
694
+ id: number;
567
695
  email: string;
568
696
  } | null;
569
697
  team?: unknown;
@@ -618,16 +746,16 @@ export declare const ConversationSchema: z.ZodObject<{
618
746
  created_at: number;
619
747
  conversation_id: number;
620
748
  sender?: {
749
+ name: string;
621
750
  type: string;
622
751
  id: number;
623
- name: string;
624
752
  email?: string | undefined;
625
753
  } | undefined;
626
754
  }[] | undefined;
627
755
  meta?: {
628
756
  sender: {
629
- id: number;
630
757
  name: string | null;
758
+ id: number;
631
759
  email: string | null;
632
760
  thumbnail: string;
633
761
  phone_number: string | null;
@@ -641,8 +769,8 @@ export declare const ConversationSchema: z.ZodObject<{
641
769
  };
642
770
  hmac_verified: boolean;
643
771
  assignee: {
644
- id: number;
645
772
  name: string;
773
+ id: number;
646
774
  email: string;
647
775
  } | null;
648
776
  team?: unknown;
@@ -692,16 +820,16 @@ export declare const ConversationSchema: z.ZodObject<{
692
820
  created_at: number;
693
821
  conversation_id: number;
694
822
  sender?: {
823
+ name: string;
695
824
  type: string;
696
825
  id: number;
697
- name: string;
698
826
  email?: string | undefined;
699
827
  } | undefined;
700
828
  }[] | undefined;
701
829
  meta?: {
702
830
  sender: {
703
- id: number;
704
831
  name: string | null;
832
+ id: number;
705
833
  email: string | null;
706
834
  thumbnail: string;
707
835
  phone_number: string | null;
@@ -715,8 +843,8 @@ export declare const ConversationSchema: z.ZodObject<{
715
843
  };
716
844
  hmac_verified: boolean;
717
845
  assignee: {
718
- id: number;
719
846
  name: string;
847
+ id: number;
720
848
  email: string;
721
849
  } | null;
722
850
  team?: unknown;
@@ -744,12 +872,12 @@ export declare const MessagesResponseMetaSchema: z.ZodObject<{
744
872
  name: z.ZodString;
745
873
  email: z.ZodString;
746
874
  }, "strip", z.ZodTypeAny, {
747
- id: number;
748
875
  name: string;
876
+ id: number;
749
877
  email: string;
750
878
  }, {
751
- id: number;
752
879
  name: string;
880
+ id: number;
753
881
  email: string;
754
882
  }>>;
755
883
  agent_last_seen_at: z.ZodNullable<z.ZodString>;
@@ -757,8 +885,8 @@ export declare const MessagesResponseMetaSchema: z.ZodObject<{
757
885
  }, "strip", z.ZodTypeAny, {
758
886
  additional_attributes: Record<string, unknown>;
759
887
  assignee: {
760
- id: number;
761
888
  name: string;
889
+ id: number;
762
890
  email: string;
763
891
  } | null;
764
892
  labels: string[];
@@ -768,8 +896,8 @@ export declare const MessagesResponseMetaSchema: z.ZodObject<{
768
896
  }, {
769
897
  additional_attributes: Record<string, unknown>;
770
898
  assignee: {
771
- id: number;
772
899
  name: string;
900
+ id: number;
773
901
  email: string;
774
902
  } | null;
775
903
  labels: string[];
@@ -787,12 +915,12 @@ export declare const MessagesResponseSchema: z.ZodObject<{
787
915
  name: z.ZodString;
788
916
  email: z.ZodString;
789
917
  }, "strip", z.ZodTypeAny, {
790
- id: number;
791
918
  name: string;
919
+ id: number;
792
920
  email: string;
793
921
  }, {
794
- id: number;
795
922
  name: string;
923
+ id: number;
796
924
  email: string;
797
925
  }>>;
798
926
  agent_last_seen_at: z.ZodNullable<z.ZodString>;
@@ -800,8 +928,8 @@ export declare const MessagesResponseSchema: z.ZodObject<{
800
928
  }, "strip", z.ZodTypeAny, {
801
929
  additional_attributes: Record<string, unknown>;
802
930
  assignee: {
803
- id: number;
804
931
  name: string;
932
+ id: number;
805
933
  email: string;
806
934
  } | null;
807
935
  labels: string[];
@@ -811,8 +939,8 @@ export declare const MessagesResponseSchema: z.ZodObject<{
811
939
  }, {
812
940
  additional_attributes: Record<string, unknown>;
813
941
  assignee: {
814
- id: number;
815
942
  name: string;
943
+ id: number;
816
944
  email: string;
817
945
  } | null;
818
946
  labels: string[];
@@ -835,14 +963,14 @@ export declare const MessagesResponseSchema: z.ZodObject<{
835
963
  email: z.ZodOptional<z.ZodString>;
836
964
  type: z.ZodString;
837
965
  }, "strip", z.ZodTypeAny, {
966
+ name: string;
838
967
  type: string;
839
968
  id: number;
840
- name: string;
841
969
  email?: string | undefined;
842
970
  }, {
971
+ name: string;
843
972
  type: string;
844
973
  id: number;
845
- name: string;
846
974
  email?: string | undefined;
847
975
  }>>;
848
976
  }, "strip", z.ZodTypeAny, {
@@ -855,9 +983,9 @@ export declare const MessagesResponseSchema: z.ZodObject<{
855
983
  created_at: number;
856
984
  conversation_id: number;
857
985
  sender?: {
986
+ name: string;
858
987
  type: string;
859
988
  id: number;
860
- name: string;
861
989
  email?: string | undefined;
862
990
  } | undefined;
863
991
  }, {
@@ -870,9 +998,9 @@ export declare const MessagesResponseSchema: z.ZodObject<{
870
998
  created_at: number;
871
999
  conversation_id: number;
872
1000
  sender?: {
1001
+ name: string;
873
1002
  type: string;
874
1003
  id: number;
875
- name: string;
876
1004
  email?: string | undefined;
877
1005
  } | undefined;
878
1006
  }>, "many">;
@@ -880,8 +1008,8 @@ export declare const MessagesResponseSchema: z.ZodObject<{
880
1008
  meta: {
881
1009
  additional_attributes: Record<string, unknown>;
882
1010
  assignee: {
883
- id: number;
884
1011
  name: string;
1012
+ id: number;
885
1013
  email: string;
886
1014
  } | null;
887
1015
  labels: string[];
@@ -899,9 +1027,9 @@ export declare const MessagesResponseSchema: z.ZodObject<{
899
1027
  created_at: number;
900
1028
  conversation_id: number;
901
1029
  sender?: {
1030
+ name: string;
902
1031
  type: string;
903
1032
  id: number;
904
- name: string;
905
1033
  email?: string | undefined;
906
1034
  } | undefined;
907
1035
  }[];
@@ -909,8 +1037,8 @@ export declare const MessagesResponseSchema: z.ZodObject<{
909
1037
  meta: {
910
1038
  additional_attributes: Record<string, unknown>;
911
1039
  assignee: {
912
- id: number;
913
1040
  name: string;
1041
+ id: number;
914
1042
  email: string;
915
1043
  } | null;
916
1044
  labels: string[];
@@ -928,9 +1056,9 @@ export declare const MessagesResponseSchema: z.ZodObject<{
928
1056
  created_at: number;
929
1057
  conversation_id: number;
930
1058
  sender?: {
1059
+ name: string;
931
1060
  type: string;
932
1061
  id: number;
933
- name: string;
934
1062
  email?: string | undefined;
935
1063
  } | undefined;
936
1064
  }[];
@@ -940,6 +1068,7 @@ export declare const MessagesResponseSchema: z.ZodObject<{
940
1068
  */
941
1069
  export type MessageType = z.infer<typeof MessageTypeSchema>;
942
1070
  export type ContentType = z.infer<typeof ContentTypeSchema>;
1071
+ export type TemplateParams = z.infer<typeof TemplateParamsSchema>;
943
1072
  export type CreateMessageParams = z.infer<typeof CreateMessageParamsSchema>;
944
1073
  export type Message = z.infer<typeof MessageSchema>;
945
1074
  export type EscalationType = z.infer<typeof EscalationTypeSchema>;