@voltade/envoy-sdk 1.6.0 → 1.6.2

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.
@@ -58,26 +58,359 @@ export declare const TemplateParamsSchema: z.ZodObject<{
58
58
  }>;
59
59
  export declare const AttachmentFileTypeSchema: z.ZodEnum<["image", "audio", "video", "document", "sticker"]>;
60
60
  export declare const AttachmentSchema: z.ZodObject<{
61
+ id: z.ZodOptional<z.ZodNumber>;
61
62
  file_type: z.ZodEnum<["image", "audio", "video", "document", "sticker"]>;
62
- download_url: z.ZodString;
63
+ data_url: z.ZodOptional<z.ZodString>;
64
+ thumb_url: z.ZodOptional<z.ZodString>;
65
+ download_url: z.ZodOptional<z.ZodString>;
66
+ file_size: z.ZodOptional<z.ZodNumber>;
63
67
  filename: z.ZodOptional<z.ZodString>;
64
68
  }, "strip", z.ZodTypeAny, {
65
69
  file_type: "image" | "audio" | "video" | "document" | "sticker";
66
- download_url: string;
70
+ id?: number | undefined;
71
+ data_url?: string | undefined;
72
+ thumb_url?: string | undefined;
73
+ download_url?: string | undefined;
74
+ file_size?: number | undefined;
67
75
  filename?: string | undefined;
68
76
  }, {
69
77
  file_type: "image" | "audio" | "video" | "document" | "sticker";
70
- download_url: string;
78
+ id?: number | undefined;
79
+ data_url?: string | undefined;
80
+ thumb_url?: string | undefined;
81
+ download_url?: string | undefined;
82
+ file_size?: number | undefined;
71
83
  filename?: string | undefined;
72
84
  }>;
73
85
  export declare const FileAttachmentInputSchema: z.ZodType<File | Blob, z.ZodTypeDef, File | Blob>;
86
+ export declare const FunctionCallSchema: z.ZodObject<{
87
+ id: z.ZodString;
88
+ name: z.ZodString;
89
+ call_id: z.ZodString;
90
+ arguments: z.ZodString;
91
+ completed: z.ZodBoolean;
92
+ output_index: z.ZodNumber;
93
+ }, "strip", z.ZodTypeAny, {
94
+ completed: boolean;
95
+ name: string;
96
+ id: string;
97
+ call_id: string;
98
+ arguments: string;
99
+ output_index: number;
100
+ }, {
101
+ completed: boolean;
102
+ name: string;
103
+ id: string;
104
+ call_id: string;
105
+ arguments: string;
106
+ output_index: number;
107
+ }>;
108
+ export declare const FunctionResultSchema: z.ZodObject<{
109
+ type: z.ZodString;
110
+ output: z.ZodString;
111
+ call_id: z.ZodString;
112
+ arguments: z.ZodString;
113
+ function_name: z.ZodString;
114
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ type: string;
117
+ call_id: string;
118
+ arguments: string;
119
+ output: string;
120
+ function_name: string;
121
+ article_sources?: unknown[] | undefined;
122
+ }, {
123
+ type: string;
124
+ call_id: string;
125
+ arguments: string;
126
+ output: string;
127
+ function_name: string;
128
+ article_sources?: unknown[] | undefined;
129
+ }>;
130
+ export declare const MessageAdditionalAttributesSchema: z.ZodObject<{
131
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
132
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
133
+ id: z.ZodString;
134
+ name: z.ZodString;
135
+ call_id: z.ZodString;
136
+ arguments: z.ZodString;
137
+ completed: z.ZodBoolean;
138
+ output_index: z.ZodNumber;
139
+ }, "strip", z.ZodTypeAny, {
140
+ completed: boolean;
141
+ name: string;
142
+ id: string;
143
+ call_id: string;
144
+ arguments: string;
145
+ output_index: number;
146
+ }, {
147
+ completed: boolean;
148
+ name: string;
149
+ id: string;
150
+ call_id: string;
151
+ arguments: string;
152
+ output_index: number;
153
+ }>, "many">>;
154
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
155
+ type: z.ZodString;
156
+ output: z.ZodString;
157
+ call_id: z.ZodString;
158
+ arguments: z.ZodString;
159
+ function_name: z.ZodString;
160
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ type: string;
163
+ call_id: string;
164
+ arguments: string;
165
+ output: string;
166
+ function_name: string;
167
+ article_sources?: unknown[] | undefined;
168
+ }, {
169
+ type: string;
170
+ call_id: string;
171
+ arguments: string;
172
+ output: string;
173
+ function_name: string;
174
+ article_sources?: unknown[] | undefined;
175
+ }>, "many">>;
176
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
177
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
178
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
179
+ id: z.ZodString;
180
+ name: z.ZodString;
181
+ call_id: z.ZodString;
182
+ arguments: z.ZodString;
183
+ completed: z.ZodBoolean;
184
+ output_index: z.ZodNumber;
185
+ }, "strip", z.ZodTypeAny, {
186
+ completed: boolean;
187
+ name: string;
188
+ id: string;
189
+ call_id: string;
190
+ arguments: string;
191
+ output_index: number;
192
+ }, {
193
+ completed: boolean;
194
+ name: string;
195
+ id: string;
196
+ call_id: string;
197
+ arguments: string;
198
+ output_index: number;
199
+ }>, "many">>;
200
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
201
+ type: z.ZodString;
202
+ output: z.ZodString;
203
+ call_id: z.ZodString;
204
+ arguments: z.ZodString;
205
+ function_name: z.ZodString;
206
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ type: string;
209
+ call_id: string;
210
+ arguments: string;
211
+ output: string;
212
+ function_name: string;
213
+ article_sources?: unknown[] | undefined;
214
+ }, {
215
+ type: string;
216
+ call_id: string;
217
+ arguments: string;
218
+ output: string;
219
+ function_name: string;
220
+ article_sources?: unknown[] | undefined;
221
+ }>, "many">>;
222
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
223
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
224
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
225
+ id: z.ZodString;
226
+ name: z.ZodString;
227
+ call_id: z.ZodString;
228
+ arguments: z.ZodString;
229
+ completed: z.ZodBoolean;
230
+ output_index: z.ZodNumber;
231
+ }, "strip", z.ZodTypeAny, {
232
+ completed: boolean;
233
+ name: string;
234
+ id: string;
235
+ call_id: string;
236
+ arguments: string;
237
+ output_index: number;
238
+ }, {
239
+ completed: boolean;
240
+ name: string;
241
+ id: string;
242
+ call_id: string;
243
+ arguments: string;
244
+ output_index: number;
245
+ }>, "many">>;
246
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
247
+ type: z.ZodString;
248
+ output: z.ZodString;
249
+ call_id: z.ZodString;
250
+ arguments: z.ZodString;
251
+ function_name: z.ZodString;
252
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ type: string;
255
+ call_id: string;
256
+ arguments: string;
257
+ output: string;
258
+ function_name: string;
259
+ article_sources?: unknown[] | undefined;
260
+ }, {
261
+ type: string;
262
+ call_id: string;
263
+ arguments: string;
264
+ output: string;
265
+ function_name: string;
266
+ article_sources?: unknown[] | undefined;
267
+ }>, "many">>;
268
+ }, z.ZodUnknown, "strip">>;
74
269
  export declare const CreateMessageParamsSchema: z.ZodObject<{
75
270
  content: z.ZodOptional<z.ZodString>;
76
271
  message_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["incoming", "outgoing"]>>>;
77
272
  private: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
78
273
  content_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "input_select", "cards", "form", "article", "incoming_email"]>>>;
79
274
  content_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
80
- additional_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
275
+ additional_attributes: z.ZodOptional<z.ZodObject<{
276
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
277
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
278
+ id: z.ZodString;
279
+ name: z.ZodString;
280
+ call_id: z.ZodString;
281
+ arguments: z.ZodString;
282
+ completed: z.ZodBoolean;
283
+ output_index: z.ZodNumber;
284
+ }, "strip", z.ZodTypeAny, {
285
+ completed: boolean;
286
+ name: string;
287
+ id: string;
288
+ call_id: string;
289
+ arguments: string;
290
+ output_index: number;
291
+ }, {
292
+ completed: boolean;
293
+ name: string;
294
+ id: string;
295
+ call_id: string;
296
+ arguments: string;
297
+ output_index: number;
298
+ }>, "many">>;
299
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
300
+ type: z.ZodString;
301
+ output: z.ZodString;
302
+ call_id: z.ZodString;
303
+ arguments: z.ZodString;
304
+ function_name: z.ZodString;
305
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ type: string;
308
+ call_id: string;
309
+ arguments: string;
310
+ output: string;
311
+ function_name: string;
312
+ article_sources?: unknown[] | undefined;
313
+ }, {
314
+ type: string;
315
+ call_id: string;
316
+ arguments: string;
317
+ output: string;
318
+ function_name: string;
319
+ article_sources?: unknown[] | undefined;
320
+ }>, "many">>;
321
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
322
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
323
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
324
+ id: z.ZodString;
325
+ name: z.ZodString;
326
+ call_id: z.ZodString;
327
+ arguments: z.ZodString;
328
+ completed: z.ZodBoolean;
329
+ output_index: z.ZodNumber;
330
+ }, "strip", z.ZodTypeAny, {
331
+ completed: boolean;
332
+ name: string;
333
+ id: string;
334
+ call_id: string;
335
+ arguments: string;
336
+ output_index: number;
337
+ }, {
338
+ completed: boolean;
339
+ name: string;
340
+ id: string;
341
+ call_id: string;
342
+ arguments: string;
343
+ output_index: number;
344
+ }>, "many">>;
345
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
346
+ type: z.ZodString;
347
+ output: z.ZodString;
348
+ call_id: z.ZodString;
349
+ arguments: z.ZodString;
350
+ function_name: z.ZodString;
351
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
352
+ }, "strip", z.ZodTypeAny, {
353
+ type: string;
354
+ call_id: string;
355
+ arguments: string;
356
+ output: string;
357
+ function_name: string;
358
+ article_sources?: unknown[] | undefined;
359
+ }, {
360
+ type: string;
361
+ call_id: string;
362
+ arguments: string;
363
+ output: string;
364
+ function_name: string;
365
+ article_sources?: unknown[] | undefined;
366
+ }>, "many">>;
367
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
368
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
369
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
+ id: z.ZodString;
371
+ name: z.ZodString;
372
+ call_id: z.ZodString;
373
+ arguments: z.ZodString;
374
+ completed: z.ZodBoolean;
375
+ output_index: z.ZodNumber;
376
+ }, "strip", z.ZodTypeAny, {
377
+ completed: boolean;
378
+ name: string;
379
+ id: string;
380
+ call_id: string;
381
+ arguments: string;
382
+ output_index: number;
383
+ }, {
384
+ completed: boolean;
385
+ name: string;
386
+ id: string;
387
+ call_id: string;
388
+ arguments: string;
389
+ output_index: number;
390
+ }>, "many">>;
391
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
392
+ type: z.ZodString;
393
+ output: z.ZodString;
394
+ call_id: z.ZodString;
395
+ arguments: z.ZodString;
396
+ function_name: z.ZodString;
397
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ type: string;
400
+ call_id: string;
401
+ arguments: string;
402
+ output: string;
403
+ function_name: string;
404
+ article_sources?: unknown[] | undefined;
405
+ }, {
406
+ type: string;
407
+ call_id: string;
408
+ arguments: string;
409
+ output: string;
410
+ function_name: string;
411
+ article_sources?: unknown[] | undefined;
412
+ }>, "many">>;
413
+ }, z.ZodUnknown, "strip">>>;
81
414
  template_params: z.ZodOptional<z.ZodObject<{
82
415
  name: z.ZodString;
83
416
  category: z.ZodString;
@@ -132,16 +465,28 @@ export declare const CreateMessageParamsSchema: z.ZodObject<{
132
465
  }>>;
133
466
  /** Existing attachment references (URLs) */
134
467
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
468
+ id: z.ZodOptional<z.ZodNumber>;
135
469
  file_type: z.ZodEnum<["image", "audio", "video", "document", "sticker"]>;
136
- download_url: z.ZodString;
470
+ data_url: z.ZodOptional<z.ZodString>;
471
+ thumb_url: z.ZodOptional<z.ZodString>;
472
+ download_url: z.ZodOptional<z.ZodString>;
473
+ file_size: z.ZodOptional<z.ZodNumber>;
137
474
  filename: z.ZodOptional<z.ZodString>;
138
475
  }, "strip", z.ZodTypeAny, {
139
476
  file_type: "image" | "audio" | "video" | "document" | "sticker";
140
- download_url: string;
477
+ id?: number | undefined;
478
+ data_url?: string | undefined;
479
+ thumb_url?: string | undefined;
480
+ download_url?: string | undefined;
481
+ file_size?: number | undefined;
141
482
  filename?: string | undefined;
142
483
  }, {
143
484
  file_type: "image" | "audio" | "video" | "document" | "sticker";
144
- download_url: string;
485
+ id?: number | undefined;
486
+ data_url?: string | undefined;
487
+ thumb_url?: string | undefined;
488
+ download_url?: string | undefined;
489
+ file_size?: number | undefined;
145
490
  filename?: string | undefined;
146
491
  }>, "many">>;
147
492
  /** File attachments to upload (File or Blob objects) */
@@ -167,10 +512,60 @@ export declare const CreateMessageParamsSchema: z.ZodObject<{
167
512
  } | undefined;
168
513
  content?: string | undefined;
169
514
  content_attributes?: Record<string, unknown> | undefined;
170
- additional_attributes?: Record<string, unknown> | undefined;
515
+ additional_attributes?: z.objectOutputType<{
516
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
517
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
518
+ id: z.ZodString;
519
+ name: z.ZodString;
520
+ call_id: z.ZodString;
521
+ arguments: z.ZodString;
522
+ completed: z.ZodBoolean;
523
+ output_index: z.ZodNumber;
524
+ }, "strip", z.ZodTypeAny, {
525
+ completed: boolean;
526
+ name: string;
527
+ id: string;
528
+ call_id: string;
529
+ arguments: string;
530
+ output_index: number;
531
+ }, {
532
+ completed: boolean;
533
+ name: string;
534
+ id: string;
535
+ call_id: string;
536
+ arguments: string;
537
+ output_index: number;
538
+ }>, "many">>;
539
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
540
+ type: z.ZodString;
541
+ output: z.ZodString;
542
+ call_id: z.ZodString;
543
+ arguments: z.ZodString;
544
+ function_name: z.ZodString;
545
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
546
+ }, "strip", z.ZodTypeAny, {
547
+ type: string;
548
+ call_id: string;
549
+ arguments: string;
550
+ output: string;
551
+ function_name: string;
552
+ article_sources?: unknown[] | undefined;
553
+ }, {
554
+ type: string;
555
+ call_id: string;
556
+ arguments: string;
557
+ output: string;
558
+ function_name: string;
559
+ article_sources?: unknown[] | undefined;
560
+ }>, "many">>;
561
+ }, z.ZodUnknown, "strip"> | undefined;
171
562
  attachments?: {
172
563
  file_type: "image" | "audio" | "video" | "document" | "sticker";
173
- download_url: string;
564
+ id?: number | undefined;
565
+ data_url?: string | undefined;
566
+ thumb_url?: string | undefined;
567
+ download_url?: string | undefined;
568
+ file_size?: number | undefined;
174
569
  filename?: string | undefined;
175
570
  }[] | undefined;
176
571
  file_attachments?: (File | Blob)[] | undefined;
@@ -195,10 +590,60 @@ export declare const CreateMessageParamsSchema: z.ZodObject<{
195
590
  private?: boolean | undefined;
196
591
  content_type?: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email" | undefined;
197
592
  content_attributes?: Record<string, unknown> | undefined;
198
- additional_attributes?: Record<string, unknown> | undefined;
593
+ additional_attributes?: z.objectInputType<{
594
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
595
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
596
+ id: z.ZodString;
597
+ name: z.ZodString;
598
+ call_id: z.ZodString;
599
+ arguments: z.ZodString;
600
+ completed: z.ZodBoolean;
601
+ output_index: z.ZodNumber;
602
+ }, "strip", z.ZodTypeAny, {
603
+ completed: boolean;
604
+ name: string;
605
+ id: string;
606
+ call_id: string;
607
+ arguments: string;
608
+ output_index: number;
609
+ }, {
610
+ completed: boolean;
611
+ name: string;
612
+ id: string;
613
+ call_id: string;
614
+ arguments: string;
615
+ output_index: number;
616
+ }>, "many">>;
617
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
618
+ type: z.ZodString;
619
+ output: z.ZodString;
620
+ call_id: z.ZodString;
621
+ arguments: z.ZodString;
622
+ function_name: z.ZodString;
623
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ type: string;
626
+ call_id: string;
627
+ arguments: string;
628
+ output: string;
629
+ function_name: string;
630
+ article_sources?: unknown[] | undefined;
631
+ }, {
632
+ type: string;
633
+ call_id: string;
634
+ arguments: string;
635
+ output: string;
636
+ function_name: string;
637
+ article_sources?: unknown[] | undefined;
638
+ }>, "many">>;
639
+ }, z.ZodUnknown, "strip"> | undefined;
199
640
  attachments?: {
200
641
  file_type: "image" | "audio" | "video" | "document" | "sticker";
201
- download_url: string;
642
+ id?: number | undefined;
643
+ data_url?: string | undefined;
644
+ thumb_url?: string | undefined;
645
+ download_url?: string | undefined;
646
+ file_size?: number | undefined;
202
647
  filename?: string | undefined;
203
648
  }[] | undefined;
204
649
  file_attachments?: (File | Blob)[] | undefined;
@@ -215,6 +660,31 @@ export declare const MessageSchema: z.ZodObject<{
215
660
  created_at: z.ZodNumber;
216
661
  private: z.ZodBoolean;
217
662
  conversation_id: z.ZodNumber;
663
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
664
+ id: z.ZodOptional<z.ZodNumber>;
665
+ file_type: z.ZodEnum<["image", "audio", "video", "document", "sticker"]>;
666
+ data_url: z.ZodOptional<z.ZodString>;
667
+ thumb_url: z.ZodOptional<z.ZodString>;
668
+ download_url: z.ZodOptional<z.ZodString>;
669
+ file_size: z.ZodOptional<z.ZodNumber>;
670
+ filename: z.ZodOptional<z.ZodString>;
671
+ }, "strip", z.ZodTypeAny, {
672
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
673
+ id?: number | undefined;
674
+ data_url?: string | undefined;
675
+ thumb_url?: string | undefined;
676
+ download_url?: string | undefined;
677
+ file_size?: number | undefined;
678
+ filename?: string | undefined;
679
+ }, {
680
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
681
+ id?: number | undefined;
682
+ data_url?: string | undefined;
683
+ thumb_url?: string | undefined;
684
+ download_url?: string | undefined;
685
+ file_size?: number | undefined;
686
+ filename?: string | undefined;
687
+ }>, "many">>;
218
688
  sender: z.ZodOptional<z.ZodObject<{
219
689
  id: z.ZodNumber;
220
690
  name: z.ZodString;
@@ -231,6 +701,145 @@ export declare const MessageSchema: z.ZodObject<{
231
701
  id: number;
232
702
  email?: string | undefined;
233
703
  }>>;
704
+ additional_attributes: z.ZodOptional<z.ZodObject<{
705
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
706
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
707
+ id: z.ZodString;
708
+ name: z.ZodString;
709
+ call_id: z.ZodString;
710
+ arguments: z.ZodString;
711
+ completed: z.ZodBoolean;
712
+ output_index: z.ZodNumber;
713
+ }, "strip", z.ZodTypeAny, {
714
+ completed: boolean;
715
+ name: string;
716
+ id: string;
717
+ call_id: string;
718
+ arguments: string;
719
+ output_index: number;
720
+ }, {
721
+ completed: boolean;
722
+ name: string;
723
+ id: string;
724
+ call_id: string;
725
+ arguments: string;
726
+ output_index: number;
727
+ }>, "many">>;
728
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
729
+ type: z.ZodString;
730
+ output: z.ZodString;
731
+ call_id: z.ZodString;
732
+ arguments: z.ZodString;
733
+ function_name: z.ZodString;
734
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ type: string;
737
+ call_id: string;
738
+ arguments: string;
739
+ output: string;
740
+ function_name: string;
741
+ article_sources?: unknown[] | undefined;
742
+ }, {
743
+ type: string;
744
+ call_id: string;
745
+ arguments: string;
746
+ output: string;
747
+ function_name: string;
748
+ article_sources?: unknown[] | undefined;
749
+ }>, "many">>;
750
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
751
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
752
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
753
+ id: z.ZodString;
754
+ name: z.ZodString;
755
+ call_id: z.ZodString;
756
+ arguments: z.ZodString;
757
+ completed: z.ZodBoolean;
758
+ output_index: z.ZodNumber;
759
+ }, "strip", z.ZodTypeAny, {
760
+ completed: boolean;
761
+ name: string;
762
+ id: string;
763
+ call_id: string;
764
+ arguments: string;
765
+ output_index: number;
766
+ }, {
767
+ completed: boolean;
768
+ name: string;
769
+ id: string;
770
+ call_id: string;
771
+ arguments: string;
772
+ output_index: number;
773
+ }>, "many">>;
774
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
775
+ type: z.ZodString;
776
+ output: z.ZodString;
777
+ call_id: z.ZodString;
778
+ arguments: z.ZodString;
779
+ function_name: z.ZodString;
780
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
781
+ }, "strip", z.ZodTypeAny, {
782
+ type: string;
783
+ call_id: string;
784
+ arguments: string;
785
+ output: string;
786
+ function_name: string;
787
+ article_sources?: unknown[] | undefined;
788
+ }, {
789
+ type: string;
790
+ call_id: string;
791
+ arguments: string;
792
+ output: string;
793
+ function_name: string;
794
+ article_sources?: unknown[] | undefined;
795
+ }>, "many">>;
796
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
797
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
798
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
799
+ id: z.ZodString;
800
+ name: z.ZodString;
801
+ call_id: z.ZodString;
802
+ arguments: z.ZodString;
803
+ completed: z.ZodBoolean;
804
+ output_index: z.ZodNumber;
805
+ }, "strip", z.ZodTypeAny, {
806
+ completed: boolean;
807
+ name: string;
808
+ id: string;
809
+ call_id: string;
810
+ arguments: string;
811
+ output_index: number;
812
+ }, {
813
+ completed: boolean;
814
+ name: string;
815
+ id: string;
816
+ call_id: string;
817
+ arguments: string;
818
+ output_index: number;
819
+ }>, "many">>;
820
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
821
+ type: z.ZodString;
822
+ output: z.ZodString;
823
+ call_id: z.ZodString;
824
+ arguments: z.ZodString;
825
+ function_name: z.ZodString;
826
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ type: string;
829
+ call_id: string;
830
+ arguments: string;
831
+ output: string;
832
+ function_name: string;
833
+ article_sources?: unknown[] | undefined;
834
+ }, {
835
+ type: string;
836
+ call_id: string;
837
+ arguments: string;
838
+ output: string;
839
+ function_name: string;
840
+ article_sources?: unknown[] | undefined;
841
+ }>, "many">>;
842
+ }, z.ZodUnknown, "strip">>>;
234
843
  }, "strip", z.ZodTypeAny, {
235
844
  id: number;
236
845
  created_at: number;
@@ -246,6 +855,62 @@ export declare const MessageSchema: z.ZodObject<{
246
855
  id: number;
247
856
  email?: string | undefined;
248
857
  } | undefined;
858
+ additional_attributes?: z.objectOutputType<{
859
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
860
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
861
+ id: z.ZodString;
862
+ name: z.ZodString;
863
+ call_id: z.ZodString;
864
+ arguments: z.ZodString;
865
+ completed: z.ZodBoolean;
866
+ output_index: z.ZodNumber;
867
+ }, "strip", z.ZodTypeAny, {
868
+ completed: boolean;
869
+ name: string;
870
+ id: string;
871
+ call_id: string;
872
+ arguments: string;
873
+ output_index: number;
874
+ }, {
875
+ completed: boolean;
876
+ name: string;
877
+ id: string;
878
+ call_id: string;
879
+ arguments: string;
880
+ output_index: number;
881
+ }>, "many">>;
882
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
883
+ type: z.ZodString;
884
+ output: z.ZodString;
885
+ call_id: z.ZodString;
886
+ arguments: z.ZodString;
887
+ function_name: z.ZodString;
888
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
889
+ }, "strip", z.ZodTypeAny, {
890
+ type: string;
891
+ call_id: string;
892
+ arguments: string;
893
+ output: string;
894
+ function_name: string;
895
+ article_sources?: unknown[] | undefined;
896
+ }, {
897
+ type: string;
898
+ call_id: string;
899
+ arguments: string;
900
+ output: string;
901
+ function_name: string;
902
+ article_sources?: unknown[] | undefined;
903
+ }>, "many">>;
904
+ }, z.ZodUnknown, "strip"> | undefined;
905
+ attachments?: {
906
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
907
+ id?: number | undefined;
908
+ data_url?: string | undefined;
909
+ thumb_url?: string | undefined;
910
+ download_url?: string | undefined;
911
+ file_size?: number | undefined;
912
+ filename?: string | undefined;
913
+ }[] | undefined;
249
914
  }, {
250
915
  id: number;
251
916
  created_at: number;
@@ -261,6 +926,62 @@ export declare const MessageSchema: z.ZodObject<{
261
926
  id: number;
262
927
  email?: string | undefined;
263
928
  } | undefined;
929
+ additional_attributes?: z.objectInputType<{
930
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
931
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
932
+ id: z.ZodString;
933
+ name: z.ZodString;
934
+ call_id: z.ZodString;
935
+ arguments: z.ZodString;
936
+ completed: z.ZodBoolean;
937
+ output_index: z.ZodNumber;
938
+ }, "strip", z.ZodTypeAny, {
939
+ completed: boolean;
940
+ name: string;
941
+ id: string;
942
+ call_id: string;
943
+ arguments: string;
944
+ output_index: number;
945
+ }, {
946
+ completed: boolean;
947
+ name: string;
948
+ id: string;
949
+ call_id: string;
950
+ arguments: string;
951
+ output_index: number;
952
+ }>, "many">>;
953
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
954
+ type: z.ZodString;
955
+ output: z.ZodString;
956
+ call_id: z.ZodString;
957
+ arguments: z.ZodString;
958
+ function_name: z.ZodString;
959
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
960
+ }, "strip", z.ZodTypeAny, {
961
+ type: string;
962
+ call_id: string;
963
+ arguments: string;
964
+ output: string;
965
+ function_name: string;
966
+ article_sources?: unknown[] | undefined;
967
+ }, {
968
+ type: string;
969
+ call_id: string;
970
+ arguments: string;
971
+ output: string;
972
+ function_name: string;
973
+ article_sources?: unknown[] | undefined;
974
+ }>, "many">>;
975
+ }, z.ZodUnknown, "strip"> | undefined;
976
+ attachments?: {
977
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
978
+ id?: number | undefined;
979
+ data_url?: string | undefined;
980
+ thumb_url?: string | undefined;
981
+ download_url?: string | undefined;
982
+ file_size?: number | undefined;
983
+ filename?: string | undefined;
984
+ }[] | undefined;
264
985
  }>;
265
986
  export declare const EscalationTypeSchema: z.ZodEnum<["agent", "team"]>;
266
987
  export declare const PrioritySchema: z.ZodEnum<["low", "medium", "high", "urgent"]>;
@@ -603,6 +1324,31 @@ export declare const ConversationSchema: z.ZodObject<{
603
1324
  created_at: z.ZodNumber;
604
1325
  private: z.ZodBoolean;
605
1326
  conversation_id: z.ZodNumber;
1327
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1328
+ id: z.ZodOptional<z.ZodNumber>;
1329
+ file_type: z.ZodEnum<["image", "audio", "video", "document", "sticker"]>;
1330
+ data_url: z.ZodOptional<z.ZodString>;
1331
+ thumb_url: z.ZodOptional<z.ZodString>;
1332
+ download_url: z.ZodOptional<z.ZodString>;
1333
+ file_size: z.ZodOptional<z.ZodNumber>;
1334
+ filename: z.ZodOptional<z.ZodString>;
1335
+ }, "strip", z.ZodTypeAny, {
1336
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
1337
+ id?: number | undefined;
1338
+ data_url?: string | undefined;
1339
+ thumb_url?: string | undefined;
1340
+ download_url?: string | undefined;
1341
+ file_size?: number | undefined;
1342
+ filename?: string | undefined;
1343
+ }, {
1344
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
1345
+ id?: number | undefined;
1346
+ data_url?: string | undefined;
1347
+ thumb_url?: string | undefined;
1348
+ download_url?: string | undefined;
1349
+ file_size?: number | undefined;
1350
+ filename?: string | undefined;
1351
+ }>, "many">>;
606
1352
  sender: z.ZodOptional<z.ZodObject<{
607
1353
  id: z.ZodNumber;
608
1354
  name: z.ZodString;
@@ -619,6 +1365,145 @@ export declare const ConversationSchema: z.ZodObject<{
619
1365
  id: number;
620
1366
  email?: string | undefined;
621
1367
  }>>;
1368
+ additional_attributes: z.ZodOptional<z.ZodObject<{
1369
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1370
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1371
+ id: z.ZodString;
1372
+ name: z.ZodString;
1373
+ call_id: z.ZodString;
1374
+ arguments: z.ZodString;
1375
+ completed: z.ZodBoolean;
1376
+ output_index: z.ZodNumber;
1377
+ }, "strip", z.ZodTypeAny, {
1378
+ completed: boolean;
1379
+ name: string;
1380
+ id: string;
1381
+ call_id: string;
1382
+ arguments: string;
1383
+ output_index: number;
1384
+ }, {
1385
+ completed: boolean;
1386
+ name: string;
1387
+ id: string;
1388
+ call_id: string;
1389
+ arguments: string;
1390
+ output_index: number;
1391
+ }>, "many">>;
1392
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1393
+ type: z.ZodString;
1394
+ output: z.ZodString;
1395
+ call_id: z.ZodString;
1396
+ arguments: z.ZodString;
1397
+ function_name: z.ZodString;
1398
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1399
+ }, "strip", z.ZodTypeAny, {
1400
+ type: string;
1401
+ call_id: string;
1402
+ arguments: string;
1403
+ output: string;
1404
+ function_name: string;
1405
+ article_sources?: unknown[] | undefined;
1406
+ }, {
1407
+ type: string;
1408
+ call_id: string;
1409
+ arguments: string;
1410
+ output: string;
1411
+ function_name: string;
1412
+ article_sources?: unknown[] | undefined;
1413
+ }>, "many">>;
1414
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1415
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1416
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1417
+ id: z.ZodString;
1418
+ name: z.ZodString;
1419
+ call_id: z.ZodString;
1420
+ arguments: z.ZodString;
1421
+ completed: z.ZodBoolean;
1422
+ output_index: z.ZodNumber;
1423
+ }, "strip", z.ZodTypeAny, {
1424
+ completed: boolean;
1425
+ name: string;
1426
+ id: string;
1427
+ call_id: string;
1428
+ arguments: string;
1429
+ output_index: number;
1430
+ }, {
1431
+ completed: boolean;
1432
+ name: string;
1433
+ id: string;
1434
+ call_id: string;
1435
+ arguments: string;
1436
+ output_index: number;
1437
+ }>, "many">>;
1438
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1439
+ type: z.ZodString;
1440
+ output: z.ZodString;
1441
+ call_id: z.ZodString;
1442
+ arguments: z.ZodString;
1443
+ function_name: z.ZodString;
1444
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1445
+ }, "strip", z.ZodTypeAny, {
1446
+ type: string;
1447
+ call_id: string;
1448
+ arguments: string;
1449
+ output: string;
1450
+ function_name: string;
1451
+ article_sources?: unknown[] | undefined;
1452
+ }, {
1453
+ type: string;
1454
+ call_id: string;
1455
+ arguments: string;
1456
+ output: string;
1457
+ function_name: string;
1458
+ article_sources?: unknown[] | undefined;
1459
+ }>, "many">>;
1460
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1461
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1462
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1463
+ id: z.ZodString;
1464
+ name: z.ZodString;
1465
+ call_id: z.ZodString;
1466
+ arguments: z.ZodString;
1467
+ completed: z.ZodBoolean;
1468
+ output_index: z.ZodNumber;
1469
+ }, "strip", z.ZodTypeAny, {
1470
+ completed: boolean;
1471
+ name: string;
1472
+ id: string;
1473
+ call_id: string;
1474
+ arguments: string;
1475
+ output_index: number;
1476
+ }, {
1477
+ completed: boolean;
1478
+ name: string;
1479
+ id: string;
1480
+ call_id: string;
1481
+ arguments: string;
1482
+ output_index: number;
1483
+ }>, "many">>;
1484
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1485
+ type: z.ZodString;
1486
+ output: z.ZodString;
1487
+ call_id: z.ZodString;
1488
+ arguments: z.ZodString;
1489
+ function_name: z.ZodString;
1490
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ type: string;
1493
+ call_id: string;
1494
+ arguments: string;
1495
+ output: string;
1496
+ function_name: string;
1497
+ article_sources?: unknown[] | undefined;
1498
+ }, {
1499
+ type: string;
1500
+ call_id: string;
1501
+ arguments: string;
1502
+ output: string;
1503
+ function_name: string;
1504
+ article_sources?: unknown[] | undefined;
1505
+ }>, "many">>;
1506
+ }, z.ZodUnknown, "strip">>>;
622
1507
  }, "strip", z.ZodTypeAny, {
623
1508
  id: number;
624
1509
  created_at: number;
@@ -634,6 +1519,62 @@ export declare const ConversationSchema: z.ZodObject<{
634
1519
  id: number;
635
1520
  email?: string | undefined;
636
1521
  } | undefined;
1522
+ additional_attributes?: z.objectOutputType<{
1523
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1524
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1525
+ id: z.ZodString;
1526
+ name: z.ZodString;
1527
+ call_id: z.ZodString;
1528
+ arguments: z.ZodString;
1529
+ completed: z.ZodBoolean;
1530
+ output_index: z.ZodNumber;
1531
+ }, "strip", z.ZodTypeAny, {
1532
+ completed: boolean;
1533
+ name: string;
1534
+ id: string;
1535
+ call_id: string;
1536
+ arguments: string;
1537
+ output_index: number;
1538
+ }, {
1539
+ completed: boolean;
1540
+ name: string;
1541
+ id: string;
1542
+ call_id: string;
1543
+ arguments: string;
1544
+ output_index: number;
1545
+ }>, "many">>;
1546
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1547
+ type: z.ZodString;
1548
+ output: z.ZodString;
1549
+ call_id: z.ZodString;
1550
+ arguments: z.ZodString;
1551
+ function_name: z.ZodString;
1552
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ type: string;
1555
+ call_id: string;
1556
+ arguments: string;
1557
+ output: string;
1558
+ function_name: string;
1559
+ article_sources?: unknown[] | undefined;
1560
+ }, {
1561
+ type: string;
1562
+ call_id: string;
1563
+ arguments: string;
1564
+ output: string;
1565
+ function_name: string;
1566
+ article_sources?: unknown[] | undefined;
1567
+ }>, "many">>;
1568
+ }, z.ZodUnknown, "strip"> | undefined;
1569
+ attachments?: {
1570
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
1571
+ id?: number | undefined;
1572
+ data_url?: string | undefined;
1573
+ thumb_url?: string | undefined;
1574
+ download_url?: string | undefined;
1575
+ file_size?: number | undefined;
1576
+ filename?: string | undefined;
1577
+ }[] | undefined;
637
1578
  }, {
638
1579
  id: number;
639
1580
  created_at: number;
@@ -649,6 +1590,62 @@ export declare const ConversationSchema: z.ZodObject<{
649
1590
  id: number;
650
1591
  email?: string | undefined;
651
1592
  } | undefined;
1593
+ additional_attributes?: z.objectInputType<{
1594
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1595
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1596
+ id: z.ZodString;
1597
+ name: z.ZodString;
1598
+ call_id: z.ZodString;
1599
+ arguments: z.ZodString;
1600
+ completed: z.ZodBoolean;
1601
+ output_index: z.ZodNumber;
1602
+ }, "strip", z.ZodTypeAny, {
1603
+ completed: boolean;
1604
+ name: string;
1605
+ id: string;
1606
+ call_id: string;
1607
+ arguments: string;
1608
+ output_index: number;
1609
+ }, {
1610
+ completed: boolean;
1611
+ name: string;
1612
+ id: string;
1613
+ call_id: string;
1614
+ arguments: string;
1615
+ output_index: number;
1616
+ }>, "many">>;
1617
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1618
+ type: z.ZodString;
1619
+ output: z.ZodString;
1620
+ call_id: z.ZodString;
1621
+ arguments: z.ZodString;
1622
+ function_name: z.ZodString;
1623
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1624
+ }, "strip", z.ZodTypeAny, {
1625
+ type: string;
1626
+ call_id: string;
1627
+ arguments: string;
1628
+ output: string;
1629
+ function_name: string;
1630
+ article_sources?: unknown[] | undefined;
1631
+ }, {
1632
+ type: string;
1633
+ call_id: string;
1634
+ arguments: string;
1635
+ output: string;
1636
+ function_name: string;
1637
+ article_sources?: unknown[] | undefined;
1638
+ }>, "many">>;
1639
+ }, z.ZodUnknown, "strip"> | undefined;
1640
+ attachments?: {
1641
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
1642
+ id?: number | undefined;
1643
+ data_url?: string | undefined;
1644
+ thumb_url?: string | undefined;
1645
+ download_url?: string | undefined;
1646
+ file_size?: number | undefined;
1647
+ filename?: string | undefined;
1648
+ }[] | undefined;
652
1649
  }>, "many">>;
653
1650
  meta: z.ZodOptional<z.ZodObject<{
654
1651
  sender: z.ZodObject<{
@@ -806,6 +1803,62 @@ export declare const ConversationSchema: z.ZodObject<{
806
1803
  id: number;
807
1804
  email?: string | undefined;
808
1805
  } | undefined;
1806
+ additional_attributes?: z.objectOutputType<{
1807
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1808
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1809
+ id: z.ZodString;
1810
+ name: z.ZodString;
1811
+ call_id: z.ZodString;
1812
+ arguments: z.ZodString;
1813
+ completed: z.ZodBoolean;
1814
+ output_index: z.ZodNumber;
1815
+ }, "strip", z.ZodTypeAny, {
1816
+ completed: boolean;
1817
+ name: string;
1818
+ id: string;
1819
+ call_id: string;
1820
+ arguments: string;
1821
+ output_index: number;
1822
+ }, {
1823
+ completed: boolean;
1824
+ name: string;
1825
+ id: string;
1826
+ call_id: string;
1827
+ arguments: string;
1828
+ output_index: number;
1829
+ }>, "many">>;
1830
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1831
+ type: z.ZodString;
1832
+ output: z.ZodString;
1833
+ call_id: z.ZodString;
1834
+ arguments: z.ZodString;
1835
+ function_name: z.ZodString;
1836
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1837
+ }, "strip", z.ZodTypeAny, {
1838
+ type: string;
1839
+ call_id: string;
1840
+ arguments: string;
1841
+ output: string;
1842
+ function_name: string;
1843
+ article_sources?: unknown[] | undefined;
1844
+ }, {
1845
+ type: string;
1846
+ call_id: string;
1847
+ arguments: string;
1848
+ output: string;
1849
+ function_name: string;
1850
+ article_sources?: unknown[] | undefined;
1851
+ }>, "many">>;
1852
+ }, z.ZodUnknown, "strip"> | undefined;
1853
+ attachments?: {
1854
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
1855
+ id?: number | undefined;
1856
+ data_url?: string | undefined;
1857
+ thumb_url?: string | undefined;
1858
+ download_url?: string | undefined;
1859
+ file_size?: number | undefined;
1860
+ filename?: string | undefined;
1861
+ }[] | undefined;
809
1862
  }[] | undefined;
810
1863
  meta?: {
811
1864
  sender: {
@@ -880,6 +1933,62 @@ export declare const ConversationSchema: z.ZodObject<{
880
1933
  id: number;
881
1934
  email?: string | undefined;
882
1935
  } | undefined;
1936
+ additional_attributes?: z.objectInputType<{
1937
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1938
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1939
+ id: z.ZodString;
1940
+ name: z.ZodString;
1941
+ call_id: z.ZodString;
1942
+ arguments: z.ZodString;
1943
+ completed: z.ZodBoolean;
1944
+ output_index: z.ZodNumber;
1945
+ }, "strip", z.ZodTypeAny, {
1946
+ completed: boolean;
1947
+ name: string;
1948
+ id: string;
1949
+ call_id: string;
1950
+ arguments: string;
1951
+ output_index: number;
1952
+ }, {
1953
+ completed: boolean;
1954
+ name: string;
1955
+ id: string;
1956
+ call_id: string;
1957
+ arguments: string;
1958
+ output_index: number;
1959
+ }>, "many">>;
1960
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1961
+ type: z.ZodString;
1962
+ output: z.ZodString;
1963
+ call_id: z.ZodString;
1964
+ arguments: z.ZodString;
1965
+ function_name: z.ZodString;
1966
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1967
+ }, "strip", z.ZodTypeAny, {
1968
+ type: string;
1969
+ call_id: string;
1970
+ arguments: string;
1971
+ output: string;
1972
+ function_name: string;
1973
+ article_sources?: unknown[] | undefined;
1974
+ }, {
1975
+ type: string;
1976
+ call_id: string;
1977
+ arguments: string;
1978
+ output: string;
1979
+ function_name: string;
1980
+ article_sources?: unknown[] | undefined;
1981
+ }>, "many">>;
1982
+ }, z.ZodUnknown, "strip"> | undefined;
1983
+ attachments?: {
1984
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
1985
+ id?: number | undefined;
1986
+ data_url?: string | undefined;
1987
+ thumb_url?: string | undefined;
1988
+ download_url?: string | undefined;
1989
+ file_size?: number | undefined;
1990
+ filename?: string | undefined;
1991
+ }[] | undefined;
883
1992
  }[] | undefined;
884
1993
  meta?: {
885
1994
  sender: {
@@ -1012,6 +2121,31 @@ export declare const MessagesResponseSchema: z.ZodObject<{
1012
2121
  created_at: z.ZodNumber;
1013
2122
  private: z.ZodBoolean;
1014
2123
  conversation_id: z.ZodNumber;
2124
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2125
+ id: z.ZodOptional<z.ZodNumber>;
2126
+ file_type: z.ZodEnum<["image", "audio", "video", "document", "sticker"]>;
2127
+ data_url: z.ZodOptional<z.ZodString>;
2128
+ thumb_url: z.ZodOptional<z.ZodString>;
2129
+ download_url: z.ZodOptional<z.ZodString>;
2130
+ file_size: z.ZodOptional<z.ZodNumber>;
2131
+ filename: z.ZodOptional<z.ZodString>;
2132
+ }, "strip", z.ZodTypeAny, {
2133
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
2134
+ id?: number | undefined;
2135
+ data_url?: string | undefined;
2136
+ thumb_url?: string | undefined;
2137
+ download_url?: string | undefined;
2138
+ file_size?: number | undefined;
2139
+ filename?: string | undefined;
2140
+ }, {
2141
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
2142
+ id?: number | undefined;
2143
+ data_url?: string | undefined;
2144
+ thumb_url?: string | undefined;
2145
+ download_url?: string | undefined;
2146
+ file_size?: number | undefined;
2147
+ filename?: string | undefined;
2148
+ }>, "many">>;
1015
2149
  sender: z.ZodOptional<z.ZodObject<{
1016
2150
  id: z.ZodNumber;
1017
2151
  name: z.ZodString;
@@ -1028,6 +2162,145 @@ export declare const MessagesResponseSchema: z.ZodObject<{
1028
2162
  id: number;
1029
2163
  email?: string | undefined;
1030
2164
  }>>;
2165
+ additional_attributes: z.ZodOptional<z.ZodObject<{
2166
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2167
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2168
+ id: z.ZodString;
2169
+ name: z.ZodString;
2170
+ call_id: z.ZodString;
2171
+ arguments: z.ZodString;
2172
+ completed: z.ZodBoolean;
2173
+ output_index: z.ZodNumber;
2174
+ }, "strip", z.ZodTypeAny, {
2175
+ completed: boolean;
2176
+ name: string;
2177
+ id: string;
2178
+ call_id: string;
2179
+ arguments: string;
2180
+ output_index: number;
2181
+ }, {
2182
+ completed: boolean;
2183
+ name: string;
2184
+ id: string;
2185
+ call_id: string;
2186
+ arguments: string;
2187
+ output_index: number;
2188
+ }>, "many">>;
2189
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2190
+ type: z.ZodString;
2191
+ output: z.ZodString;
2192
+ call_id: z.ZodString;
2193
+ arguments: z.ZodString;
2194
+ function_name: z.ZodString;
2195
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2196
+ }, "strip", z.ZodTypeAny, {
2197
+ type: string;
2198
+ call_id: string;
2199
+ arguments: string;
2200
+ output: string;
2201
+ function_name: string;
2202
+ article_sources?: unknown[] | undefined;
2203
+ }, {
2204
+ type: string;
2205
+ call_id: string;
2206
+ arguments: string;
2207
+ output: string;
2208
+ function_name: string;
2209
+ article_sources?: unknown[] | undefined;
2210
+ }>, "many">>;
2211
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2212
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2213
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2214
+ id: z.ZodString;
2215
+ name: z.ZodString;
2216
+ call_id: z.ZodString;
2217
+ arguments: z.ZodString;
2218
+ completed: z.ZodBoolean;
2219
+ output_index: z.ZodNumber;
2220
+ }, "strip", z.ZodTypeAny, {
2221
+ completed: boolean;
2222
+ name: string;
2223
+ id: string;
2224
+ call_id: string;
2225
+ arguments: string;
2226
+ output_index: number;
2227
+ }, {
2228
+ completed: boolean;
2229
+ name: string;
2230
+ id: string;
2231
+ call_id: string;
2232
+ arguments: string;
2233
+ output_index: number;
2234
+ }>, "many">>;
2235
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2236
+ type: z.ZodString;
2237
+ output: z.ZodString;
2238
+ call_id: z.ZodString;
2239
+ arguments: z.ZodString;
2240
+ function_name: z.ZodString;
2241
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2242
+ }, "strip", z.ZodTypeAny, {
2243
+ type: string;
2244
+ call_id: string;
2245
+ arguments: string;
2246
+ output: string;
2247
+ function_name: string;
2248
+ article_sources?: unknown[] | undefined;
2249
+ }, {
2250
+ type: string;
2251
+ call_id: string;
2252
+ arguments: string;
2253
+ output: string;
2254
+ function_name: string;
2255
+ article_sources?: unknown[] | undefined;
2256
+ }>, "many">>;
2257
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2258
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2259
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2260
+ id: z.ZodString;
2261
+ name: z.ZodString;
2262
+ call_id: z.ZodString;
2263
+ arguments: z.ZodString;
2264
+ completed: z.ZodBoolean;
2265
+ output_index: z.ZodNumber;
2266
+ }, "strip", z.ZodTypeAny, {
2267
+ completed: boolean;
2268
+ name: string;
2269
+ id: string;
2270
+ call_id: string;
2271
+ arguments: string;
2272
+ output_index: number;
2273
+ }, {
2274
+ completed: boolean;
2275
+ name: string;
2276
+ id: string;
2277
+ call_id: string;
2278
+ arguments: string;
2279
+ output_index: number;
2280
+ }>, "many">>;
2281
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2282
+ type: z.ZodString;
2283
+ output: z.ZodString;
2284
+ call_id: z.ZodString;
2285
+ arguments: z.ZodString;
2286
+ function_name: z.ZodString;
2287
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2288
+ }, "strip", z.ZodTypeAny, {
2289
+ type: string;
2290
+ call_id: string;
2291
+ arguments: string;
2292
+ output: string;
2293
+ function_name: string;
2294
+ article_sources?: unknown[] | undefined;
2295
+ }, {
2296
+ type: string;
2297
+ call_id: string;
2298
+ arguments: string;
2299
+ output: string;
2300
+ function_name: string;
2301
+ article_sources?: unknown[] | undefined;
2302
+ }>, "many">>;
2303
+ }, z.ZodUnknown, "strip">>>;
1031
2304
  }, "strip", z.ZodTypeAny, {
1032
2305
  id: number;
1033
2306
  created_at: number;
@@ -1043,6 +2316,62 @@ export declare const MessagesResponseSchema: z.ZodObject<{
1043
2316
  id: number;
1044
2317
  email?: string | undefined;
1045
2318
  } | undefined;
2319
+ additional_attributes?: z.objectOutputType<{
2320
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2321
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2322
+ id: z.ZodString;
2323
+ name: z.ZodString;
2324
+ call_id: z.ZodString;
2325
+ arguments: z.ZodString;
2326
+ completed: z.ZodBoolean;
2327
+ output_index: z.ZodNumber;
2328
+ }, "strip", z.ZodTypeAny, {
2329
+ completed: boolean;
2330
+ name: string;
2331
+ id: string;
2332
+ call_id: string;
2333
+ arguments: string;
2334
+ output_index: number;
2335
+ }, {
2336
+ completed: boolean;
2337
+ name: string;
2338
+ id: string;
2339
+ call_id: string;
2340
+ arguments: string;
2341
+ output_index: number;
2342
+ }>, "many">>;
2343
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2344
+ type: z.ZodString;
2345
+ output: z.ZodString;
2346
+ call_id: z.ZodString;
2347
+ arguments: z.ZodString;
2348
+ function_name: z.ZodString;
2349
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2350
+ }, "strip", z.ZodTypeAny, {
2351
+ type: string;
2352
+ call_id: string;
2353
+ arguments: string;
2354
+ output: string;
2355
+ function_name: string;
2356
+ article_sources?: unknown[] | undefined;
2357
+ }, {
2358
+ type: string;
2359
+ call_id: string;
2360
+ arguments: string;
2361
+ output: string;
2362
+ function_name: string;
2363
+ article_sources?: unknown[] | undefined;
2364
+ }>, "many">>;
2365
+ }, z.ZodUnknown, "strip"> | undefined;
2366
+ attachments?: {
2367
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
2368
+ id?: number | undefined;
2369
+ data_url?: string | undefined;
2370
+ thumb_url?: string | undefined;
2371
+ download_url?: string | undefined;
2372
+ file_size?: number | undefined;
2373
+ filename?: string | undefined;
2374
+ }[] | undefined;
1046
2375
  }, {
1047
2376
  id: number;
1048
2377
  created_at: number;
@@ -1058,6 +2387,62 @@ export declare const MessagesResponseSchema: z.ZodObject<{
1058
2387
  id: number;
1059
2388
  email?: string | undefined;
1060
2389
  } | undefined;
2390
+ additional_attributes?: z.objectInputType<{
2391
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2392
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2393
+ id: z.ZodString;
2394
+ name: z.ZodString;
2395
+ call_id: z.ZodString;
2396
+ arguments: z.ZodString;
2397
+ completed: z.ZodBoolean;
2398
+ output_index: z.ZodNumber;
2399
+ }, "strip", z.ZodTypeAny, {
2400
+ completed: boolean;
2401
+ name: string;
2402
+ id: string;
2403
+ call_id: string;
2404
+ arguments: string;
2405
+ output_index: number;
2406
+ }, {
2407
+ completed: boolean;
2408
+ name: string;
2409
+ id: string;
2410
+ call_id: string;
2411
+ arguments: string;
2412
+ output_index: number;
2413
+ }>, "many">>;
2414
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2415
+ type: z.ZodString;
2416
+ output: z.ZodString;
2417
+ call_id: z.ZodString;
2418
+ arguments: z.ZodString;
2419
+ function_name: z.ZodString;
2420
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2421
+ }, "strip", z.ZodTypeAny, {
2422
+ type: string;
2423
+ call_id: string;
2424
+ arguments: string;
2425
+ output: string;
2426
+ function_name: string;
2427
+ article_sources?: unknown[] | undefined;
2428
+ }, {
2429
+ type: string;
2430
+ call_id: string;
2431
+ arguments: string;
2432
+ output: string;
2433
+ function_name: string;
2434
+ article_sources?: unknown[] | undefined;
2435
+ }>, "many">>;
2436
+ }, z.ZodUnknown, "strip"> | undefined;
2437
+ attachments?: {
2438
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
2439
+ id?: number | undefined;
2440
+ data_url?: string | undefined;
2441
+ thumb_url?: string | undefined;
2442
+ download_url?: string | undefined;
2443
+ file_size?: number | undefined;
2444
+ filename?: string | undefined;
2445
+ }[] | undefined;
1061
2446
  }>, "many">;
1062
2447
  }, "strip", z.ZodTypeAny, {
1063
2448
  meta: {
@@ -1087,6 +2472,62 @@ export declare const MessagesResponseSchema: z.ZodObject<{
1087
2472
  id: number;
1088
2473
  email?: string | undefined;
1089
2474
  } | undefined;
2475
+ additional_attributes?: z.objectOutputType<{
2476
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2477
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2478
+ id: z.ZodString;
2479
+ name: z.ZodString;
2480
+ call_id: z.ZodString;
2481
+ arguments: z.ZodString;
2482
+ completed: z.ZodBoolean;
2483
+ output_index: z.ZodNumber;
2484
+ }, "strip", z.ZodTypeAny, {
2485
+ completed: boolean;
2486
+ name: string;
2487
+ id: string;
2488
+ call_id: string;
2489
+ arguments: string;
2490
+ output_index: number;
2491
+ }, {
2492
+ completed: boolean;
2493
+ name: string;
2494
+ id: string;
2495
+ call_id: string;
2496
+ arguments: string;
2497
+ output_index: number;
2498
+ }>, "many">>;
2499
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2500
+ type: z.ZodString;
2501
+ output: z.ZodString;
2502
+ call_id: z.ZodString;
2503
+ arguments: z.ZodString;
2504
+ function_name: z.ZodString;
2505
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2506
+ }, "strip", z.ZodTypeAny, {
2507
+ type: string;
2508
+ call_id: string;
2509
+ arguments: string;
2510
+ output: string;
2511
+ function_name: string;
2512
+ article_sources?: unknown[] | undefined;
2513
+ }, {
2514
+ type: string;
2515
+ call_id: string;
2516
+ arguments: string;
2517
+ output: string;
2518
+ function_name: string;
2519
+ article_sources?: unknown[] | undefined;
2520
+ }>, "many">>;
2521
+ }, z.ZodUnknown, "strip"> | undefined;
2522
+ attachments?: {
2523
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
2524
+ id?: number | undefined;
2525
+ data_url?: string | undefined;
2526
+ thumb_url?: string | undefined;
2527
+ download_url?: string | undefined;
2528
+ file_size?: number | undefined;
2529
+ filename?: string | undefined;
2530
+ }[] | undefined;
1090
2531
  }[];
1091
2532
  }, {
1092
2533
  meta: {
@@ -1116,6 +2557,62 @@ export declare const MessagesResponseSchema: z.ZodObject<{
1116
2557
  id: number;
1117
2558
  email?: string | undefined;
1118
2559
  } | undefined;
2560
+ additional_attributes?: z.objectInputType<{
2561
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2562
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2563
+ id: z.ZodString;
2564
+ name: z.ZodString;
2565
+ call_id: z.ZodString;
2566
+ arguments: z.ZodString;
2567
+ completed: z.ZodBoolean;
2568
+ output_index: z.ZodNumber;
2569
+ }, "strip", z.ZodTypeAny, {
2570
+ completed: boolean;
2571
+ name: string;
2572
+ id: string;
2573
+ call_id: string;
2574
+ arguments: string;
2575
+ output_index: number;
2576
+ }, {
2577
+ completed: boolean;
2578
+ name: string;
2579
+ id: string;
2580
+ call_id: string;
2581
+ arguments: string;
2582
+ output_index: number;
2583
+ }>, "many">>;
2584
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2585
+ type: z.ZodString;
2586
+ output: z.ZodString;
2587
+ call_id: z.ZodString;
2588
+ arguments: z.ZodString;
2589
+ function_name: z.ZodString;
2590
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2591
+ }, "strip", z.ZodTypeAny, {
2592
+ type: string;
2593
+ call_id: string;
2594
+ arguments: string;
2595
+ output: string;
2596
+ function_name: string;
2597
+ article_sources?: unknown[] | undefined;
2598
+ }, {
2599
+ type: string;
2600
+ call_id: string;
2601
+ arguments: string;
2602
+ output: string;
2603
+ function_name: string;
2604
+ article_sources?: unknown[] | undefined;
2605
+ }>, "many">>;
2606
+ }, z.ZodUnknown, "strip"> | undefined;
2607
+ attachments?: {
2608
+ file_type: "image" | "audio" | "video" | "document" | "sticker";
2609
+ id?: number | undefined;
2610
+ data_url?: string | undefined;
2611
+ thumb_url?: string | undefined;
2612
+ download_url?: string | undefined;
2613
+ file_size?: number | undefined;
2614
+ filename?: string | undefined;
2615
+ }[] | undefined;
1119
2616
  }[];
1120
2617
  }>;
1121
2618
  /**
@@ -1126,6 +2623,9 @@ export type ContentType = z.infer<typeof ContentTypeSchema>;
1126
2623
  export type AttachmentFileType = z.infer<typeof AttachmentFileTypeSchema>;
1127
2624
  export type Attachment = z.infer<typeof AttachmentSchema>;
1128
2625
  export type TemplateParams = z.infer<typeof TemplateParamsSchema>;
2626
+ export type FunctionCall = z.infer<typeof FunctionCallSchema>;
2627
+ export type FunctionResult = z.infer<typeof FunctionResultSchema>;
2628
+ export type MessageAdditionalAttributes = z.infer<typeof MessageAdditionalAttributesSchema>;
1129
2629
  export type CreateMessageParams = z.infer<typeof CreateMessageParamsSchema>;
1130
2630
  export type Message = z.infer<typeof MessageSchema>;
1131
2631
  export type EscalationType = z.infer<typeof EscalationTypeSchema>;