@voltade/envoy-sdk 1.6.0 → 1.6.1

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.
@@ -71,13 +71,334 @@ export declare const AttachmentSchema: z.ZodObject<{
71
71
  filename?: string | undefined;
72
72
  }>;
73
73
  export declare const FileAttachmentInputSchema: z.ZodType<File | Blob, z.ZodTypeDef, File | Blob>;
74
+ export declare const FunctionCallSchema: z.ZodObject<{
75
+ id: z.ZodString;
76
+ name: z.ZodString;
77
+ call_id: z.ZodString;
78
+ arguments: z.ZodString;
79
+ completed: z.ZodBoolean;
80
+ output_index: z.ZodNumber;
81
+ }, "strip", z.ZodTypeAny, {
82
+ completed: boolean;
83
+ name: string;
84
+ id: string;
85
+ call_id: string;
86
+ arguments: string;
87
+ output_index: number;
88
+ }, {
89
+ completed: boolean;
90
+ name: string;
91
+ id: string;
92
+ call_id: string;
93
+ arguments: string;
94
+ output_index: number;
95
+ }>;
96
+ export declare const FunctionResultSchema: z.ZodObject<{
97
+ type: z.ZodString;
98
+ output: z.ZodString;
99
+ call_id: z.ZodString;
100
+ arguments: z.ZodString;
101
+ function_name: z.ZodString;
102
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ type: string;
105
+ call_id: string;
106
+ arguments: string;
107
+ output: string;
108
+ function_name: string;
109
+ article_sources?: unknown[] | undefined;
110
+ }, {
111
+ type: string;
112
+ call_id: string;
113
+ arguments: string;
114
+ output: string;
115
+ function_name: string;
116
+ article_sources?: unknown[] | undefined;
117
+ }>;
118
+ export declare const MessageAdditionalAttributesSchema: z.ZodObject<{
119
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
120
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
121
+ id: z.ZodString;
122
+ name: z.ZodString;
123
+ call_id: z.ZodString;
124
+ arguments: z.ZodString;
125
+ completed: z.ZodBoolean;
126
+ output_index: z.ZodNumber;
127
+ }, "strip", z.ZodTypeAny, {
128
+ completed: boolean;
129
+ name: string;
130
+ id: string;
131
+ call_id: string;
132
+ arguments: string;
133
+ output_index: number;
134
+ }, {
135
+ completed: boolean;
136
+ name: string;
137
+ id: string;
138
+ call_id: string;
139
+ arguments: string;
140
+ output_index: number;
141
+ }>, "many">>;
142
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
143
+ type: z.ZodString;
144
+ output: z.ZodString;
145
+ call_id: z.ZodString;
146
+ arguments: z.ZodString;
147
+ function_name: z.ZodString;
148
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ type: string;
151
+ call_id: string;
152
+ arguments: string;
153
+ output: string;
154
+ function_name: string;
155
+ article_sources?: unknown[] | undefined;
156
+ }, {
157
+ type: string;
158
+ call_id: string;
159
+ arguments: string;
160
+ output: string;
161
+ function_name: string;
162
+ article_sources?: unknown[] | undefined;
163
+ }>, "many">>;
164
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
165
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
166
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
167
+ id: z.ZodString;
168
+ name: z.ZodString;
169
+ call_id: z.ZodString;
170
+ arguments: z.ZodString;
171
+ completed: z.ZodBoolean;
172
+ output_index: z.ZodNumber;
173
+ }, "strip", z.ZodTypeAny, {
174
+ completed: boolean;
175
+ name: string;
176
+ id: string;
177
+ call_id: string;
178
+ arguments: string;
179
+ output_index: number;
180
+ }, {
181
+ completed: boolean;
182
+ name: string;
183
+ id: string;
184
+ call_id: string;
185
+ arguments: string;
186
+ output_index: number;
187
+ }>, "many">>;
188
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
189
+ type: z.ZodString;
190
+ output: z.ZodString;
191
+ call_id: z.ZodString;
192
+ arguments: z.ZodString;
193
+ function_name: z.ZodString;
194
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
195
+ }, "strip", z.ZodTypeAny, {
196
+ type: string;
197
+ call_id: string;
198
+ arguments: string;
199
+ output: string;
200
+ function_name: string;
201
+ article_sources?: unknown[] | undefined;
202
+ }, {
203
+ type: string;
204
+ call_id: string;
205
+ arguments: string;
206
+ output: string;
207
+ function_name: string;
208
+ article_sources?: unknown[] | undefined;
209
+ }>, "many">>;
210
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
211
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
212
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
213
+ id: z.ZodString;
214
+ name: z.ZodString;
215
+ call_id: z.ZodString;
216
+ arguments: z.ZodString;
217
+ completed: z.ZodBoolean;
218
+ output_index: z.ZodNumber;
219
+ }, "strip", z.ZodTypeAny, {
220
+ completed: boolean;
221
+ name: string;
222
+ id: string;
223
+ call_id: string;
224
+ arguments: string;
225
+ output_index: number;
226
+ }, {
227
+ completed: boolean;
228
+ name: string;
229
+ id: string;
230
+ call_id: string;
231
+ arguments: string;
232
+ output_index: number;
233
+ }>, "many">>;
234
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
235
+ type: z.ZodString;
236
+ output: z.ZodString;
237
+ call_id: z.ZodString;
238
+ arguments: z.ZodString;
239
+ function_name: z.ZodString;
240
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ type: string;
243
+ call_id: string;
244
+ arguments: string;
245
+ output: string;
246
+ function_name: string;
247
+ article_sources?: unknown[] | undefined;
248
+ }, {
249
+ type: string;
250
+ call_id: string;
251
+ arguments: string;
252
+ output: string;
253
+ function_name: string;
254
+ article_sources?: unknown[] | undefined;
255
+ }>, "many">>;
256
+ }, z.ZodUnknown, "strip">>;
74
257
  export declare const CreateMessageParamsSchema: z.ZodObject<{
75
258
  content: z.ZodOptional<z.ZodString>;
76
259
  message_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["incoming", "outgoing"]>>>;
77
260
  private: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
78
261
  content_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "input_select", "cards", "form", "article", "incoming_email"]>>>;
79
262
  content_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
80
- additional_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
263
+ additional_attributes: z.ZodOptional<z.ZodObject<{
264
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
265
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
266
+ id: z.ZodString;
267
+ name: z.ZodString;
268
+ call_id: z.ZodString;
269
+ arguments: z.ZodString;
270
+ completed: z.ZodBoolean;
271
+ output_index: z.ZodNumber;
272
+ }, "strip", z.ZodTypeAny, {
273
+ completed: boolean;
274
+ name: string;
275
+ id: string;
276
+ call_id: string;
277
+ arguments: string;
278
+ output_index: number;
279
+ }, {
280
+ completed: boolean;
281
+ name: string;
282
+ id: string;
283
+ call_id: string;
284
+ arguments: string;
285
+ output_index: number;
286
+ }>, "many">>;
287
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
288
+ type: z.ZodString;
289
+ output: z.ZodString;
290
+ call_id: z.ZodString;
291
+ arguments: z.ZodString;
292
+ function_name: z.ZodString;
293
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ type: string;
296
+ call_id: string;
297
+ arguments: string;
298
+ output: string;
299
+ function_name: string;
300
+ article_sources?: unknown[] | undefined;
301
+ }, {
302
+ type: string;
303
+ call_id: string;
304
+ arguments: string;
305
+ output: string;
306
+ function_name: string;
307
+ article_sources?: unknown[] | undefined;
308
+ }>, "many">>;
309
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
310
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
311
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
312
+ id: z.ZodString;
313
+ name: z.ZodString;
314
+ call_id: z.ZodString;
315
+ arguments: z.ZodString;
316
+ completed: z.ZodBoolean;
317
+ output_index: z.ZodNumber;
318
+ }, "strip", z.ZodTypeAny, {
319
+ completed: boolean;
320
+ name: string;
321
+ id: string;
322
+ call_id: string;
323
+ arguments: string;
324
+ output_index: number;
325
+ }, {
326
+ completed: boolean;
327
+ name: string;
328
+ id: string;
329
+ call_id: string;
330
+ arguments: string;
331
+ output_index: number;
332
+ }>, "many">>;
333
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
334
+ type: z.ZodString;
335
+ output: z.ZodString;
336
+ call_id: z.ZodString;
337
+ arguments: z.ZodString;
338
+ function_name: z.ZodString;
339
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ type: string;
342
+ call_id: string;
343
+ arguments: string;
344
+ output: string;
345
+ function_name: string;
346
+ article_sources?: unknown[] | undefined;
347
+ }, {
348
+ type: string;
349
+ call_id: string;
350
+ arguments: string;
351
+ output: string;
352
+ function_name: string;
353
+ article_sources?: unknown[] | undefined;
354
+ }>, "many">>;
355
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
356
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
357
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
358
+ id: z.ZodString;
359
+ name: z.ZodString;
360
+ call_id: z.ZodString;
361
+ arguments: z.ZodString;
362
+ completed: z.ZodBoolean;
363
+ output_index: z.ZodNumber;
364
+ }, "strip", z.ZodTypeAny, {
365
+ completed: boolean;
366
+ name: string;
367
+ id: string;
368
+ call_id: string;
369
+ arguments: string;
370
+ output_index: number;
371
+ }, {
372
+ completed: boolean;
373
+ name: string;
374
+ id: string;
375
+ call_id: string;
376
+ arguments: string;
377
+ output_index: number;
378
+ }>, "many">>;
379
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
380
+ type: z.ZodString;
381
+ output: z.ZodString;
382
+ call_id: z.ZodString;
383
+ arguments: z.ZodString;
384
+ function_name: z.ZodString;
385
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ type: string;
388
+ call_id: string;
389
+ arguments: string;
390
+ output: string;
391
+ function_name: string;
392
+ article_sources?: unknown[] | undefined;
393
+ }, {
394
+ type: string;
395
+ call_id: string;
396
+ arguments: string;
397
+ output: string;
398
+ function_name: string;
399
+ article_sources?: unknown[] | undefined;
400
+ }>, "many">>;
401
+ }, z.ZodUnknown, "strip">>>;
81
402
  template_params: z.ZodOptional<z.ZodObject<{
82
403
  name: z.ZodString;
83
404
  category: z.ZodString;
@@ -167,7 +488,53 @@ export declare const CreateMessageParamsSchema: z.ZodObject<{
167
488
  } | undefined;
168
489
  content?: string | undefined;
169
490
  content_attributes?: Record<string, unknown> | undefined;
170
- additional_attributes?: Record<string, unknown> | undefined;
491
+ additional_attributes?: z.objectOutputType<{
492
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
493
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
494
+ id: z.ZodString;
495
+ name: z.ZodString;
496
+ call_id: z.ZodString;
497
+ arguments: z.ZodString;
498
+ completed: z.ZodBoolean;
499
+ output_index: z.ZodNumber;
500
+ }, "strip", z.ZodTypeAny, {
501
+ completed: boolean;
502
+ name: string;
503
+ id: string;
504
+ call_id: string;
505
+ arguments: string;
506
+ output_index: number;
507
+ }, {
508
+ completed: boolean;
509
+ name: string;
510
+ id: string;
511
+ call_id: string;
512
+ arguments: string;
513
+ output_index: number;
514
+ }>, "many">>;
515
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
516
+ type: z.ZodString;
517
+ output: z.ZodString;
518
+ call_id: z.ZodString;
519
+ arguments: z.ZodString;
520
+ function_name: z.ZodString;
521
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
522
+ }, "strip", z.ZodTypeAny, {
523
+ type: string;
524
+ call_id: string;
525
+ arguments: string;
526
+ output: string;
527
+ function_name: string;
528
+ article_sources?: unknown[] | undefined;
529
+ }, {
530
+ type: string;
531
+ call_id: string;
532
+ arguments: string;
533
+ output: string;
534
+ function_name: string;
535
+ article_sources?: unknown[] | undefined;
536
+ }>, "many">>;
537
+ }, z.ZodUnknown, "strip"> | undefined;
171
538
  attachments?: {
172
539
  file_type: "image" | "audio" | "video" | "document" | "sticker";
173
540
  download_url: string;
@@ -195,7 +562,53 @@ export declare const CreateMessageParamsSchema: z.ZodObject<{
195
562
  private?: boolean | undefined;
196
563
  content_type?: "text" | "input_select" | "cards" | "form" | "article" | "incoming_email" | undefined;
197
564
  content_attributes?: Record<string, unknown> | undefined;
198
- additional_attributes?: Record<string, unknown> | undefined;
565
+ additional_attributes?: z.objectInputType<{
566
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
567
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
568
+ id: z.ZodString;
569
+ name: z.ZodString;
570
+ call_id: z.ZodString;
571
+ arguments: z.ZodString;
572
+ completed: z.ZodBoolean;
573
+ output_index: z.ZodNumber;
574
+ }, "strip", z.ZodTypeAny, {
575
+ completed: boolean;
576
+ name: string;
577
+ id: string;
578
+ call_id: string;
579
+ arguments: string;
580
+ output_index: number;
581
+ }, {
582
+ completed: boolean;
583
+ name: string;
584
+ id: string;
585
+ call_id: string;
586
+ arguments: string;
587
+ output_index: number;
588
+ }>, "many">>;
589
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
590
+ type: z.ZodString;
591
+ output: z.ZodString;
592
+ call_id: z.ZodString;
593
+ arguments: z.ZodString;
594
+ function_name: z.ZodString;
595
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
596
+ }, "strip", z.ZodTypeAny, {
597
+ type: string;
598
+ call_id: string;
599
+ arguments: string;
600
+ output: string;
601
+ function_name: string;
602
+ article_sources?: unknown[] | undefined;
603
+ }, {
604
+ type: string;
605
+ call_id: string;
606
+ arguments: string;
607
+ output: string;
608
+ function_name: string;
609
+ article_sources?: unknown[] | undefined;
610
+ }>, "many">>;
611
+ }, z.ZodUnknown, "strip"> | undefined;
199
612
  attachments?: {
200
613
  file_type: "image" | "audio" | "video" | "document" | "sticker";
201
614
  download_url: string;
@@ -231,6 +644,145 @@ export declare const MessageSchema: z.ZodObject<{
231
644
  id: number;
232
645
  email?: string | undefined;
233
646
  }>>;
647
+ additional_attributes: z.ZodOptional<z.ZodObject<{
648
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
649
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
650
+ id: z.ZodString;
651
+ name: z.ZodString;
652
+ call_id: z.ZodString;
653
+ arguments: z.ZodString;
654
+ completed: z.ZodBoolean;
655
+ output_index: z.ZodNumber;
656
+ }, "strip", z.ZodTypeAny, {
657
+ completed: boolean;
658
+ name: string;
659
+ id: string;
660
+ call_id: string;
661
+ arguments: string;
662
+ output_index: number;
663
+ }, {
664
+ completed: boolean;
665
+ name: string;
666
+ id: string;
667
+ call_id: string;
668
+ arguments: string;
669
+ output_index: number;
670
+ }>, "many">>;
671
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
672
+ type: z.ZodString;
673
+ output: z.ZodString;
674
+ call_id: z.ZodString;
675
+ arguments: z.ZodString;
676
+ function_name: z.ZodString;
677
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
678
+ }, "strip", z.ZodTypeAny, {
679
+ type: string;
680
+ call_id: string;
681
+ arguments: string;
682
+ output: string;
683
+ function_name: string;
684
+ article_sources?: unknown[] | undefined;
685
+ }, {
686
+ type: string;
687
+ call_id: string;
688
+ arguments: string;
689
+ output: string;
690
+ function_name: string;
691
+ article_sources?: unknown[] | undefined;
692
+ }>, "many">>;
693
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
694
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
695
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
696
+ id: z.ZodString;
697
+ name: z.ZodString;
698
+ call_id: z.ZodString;
699
+ arguments: z.ZodString;
700
+ completed: z.ZodBoolean;
701
+ output_index: z.ZodNumber;
702
+ }, "strip", z.ZodTypeAny, {
703
+ completed: boolean;
704
+ name: string;
705
+ id: string;
706
+ call_id: string;
707
+ arguments: string;
708
+ output_index: number;
709
+ }, {
710
+ completed: boolean;
711
+ name: string;
712
+ id: string;
713
+ call_id: string;
714
+ arguments: string;
715
+ output_index: number;
716
+ }>, "many">>;
717
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
718
+ type: z.ZodString;
719
+ output: z.ZodString;
720
+ call_id: z.ZodString;
721
+ arguments: z.ZodString;
722
+ function_name: z.ZodString;
723
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
724
+ }, "strip", z.ZodTypeAny, {
725
+ type: string;
726
+ call_id: string;
727
+ arguments: string;
728
+ output: string;
729
+ function_name: string;
730
+ article_sources?: unknown[] | undefined;
731
+ }, {
732
+ type: string;
733
+ call_id: string;
734
+ arguments: string;
735
+ output: string;
736
+ function_name: string;
737
+ article_sources?: unknown[] | undefined;
738
+ }>, "many">>;
739
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
740
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
741
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
742
+ id: z.ZodString;
743
+ name: z.ZodString;
744
+ call_id: z.ZodString;
745
+ arguments: z.ZodString;
746
+ completed: z.ZodBoolean;
747
+ output_index: z.ZodNumber;
748
+ }, "strip", z.ZodTypeAny, {
749
+ completed: boolean;
750
+ name: string;
751
+ id: string;
752
+ call_id: string;
753
+ arguments: string;
754
+ output_index: number;
755
+ }, {
756
+ completed: boolean;
757
+ name: string;
758
+ id: string;
759
+ call_id: string;
760
+ arguments: string;
761
+ output_index: number;
762
+ }>, "many">>;
763
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
764
+ type: z.ZodString;
765
+ output: z.ZodString;
766
+ call_id: z.ZodString;
767
+ arguments: z.ZodString;
768
+ function_name: z.ZodString;
769
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
770
+ }, "strip", z.ZodTypeAny, {
771
+ type: string;
772
+ call_id: string;
773
+ arguments: string;
774
+ output: string;
775
+ function_name: string;
776
+ article_sources?: unknown[] | undefined;
777
+ }, {
778
+ type: string;
779
+ call_id: string;
780
+ arguments: string;
781
+ output: string;
782
+ function_name: string;
783
+ article_sources?: unknown[] | undefined;
784
+ }>, "many">>;
785
+ }, z.ZodUnknown, "strip">>>;
234
786
  }, "strip", z.ZodTypeAny, {
235
787
  id: number;
236
788
  created_at: number;
@@ -246,6 +798,53 @@ export declare const MessageSchema: z.ZodObject<{
246
798
  id: number;
247
799
  email?: string | undefined;
248
800
  } | undefined;
801
+ additional_attributes?: z.objectOutputType<{
802
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
803
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
804
+ id: z.ZodString;
805
+ name: z.ZodString;
806
+ call_id: z.ZodString;
807
+ arguments: z.ZodString;
808
+ completed: z.ZodBoolean;
809
+ output_index: z.ZodNumber;
810
+ }, "strip", z.ZodTypeAny, {
811
+ completed: boolean;
812
+ name: string;
813
+ id: string;
814
+ call_id: string;
815
+ arguments: string;
816
+ output_index: number;
817
+ }, {
818
+ completed: boolean;
819
+ name: string;
820
+ id: string;
821
+ call_id: string;
822
+ arguments: string;
823
+ output_index: number;
824
+ }>, "many">>;
825
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
826
+ type: z.ZodString;
827
+ output: z.ZodString;
828
+ call_id: z.ZodString;
829
+ arguments: z.ZodString;
830
+ function_name: z.ZodString;
831
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
832
+ }, "strip", z.ZodTypeAny, {
833
+ type: string;
834
+ call_id: string;
835
+ arguments: string;
836
+ output: string;
837
+ function_name: string;
838
+ article_sources?: unknown[] | undefined;
839
+ }, {
840
+ type: string;
841
+ call_id: string;
842
+ arguments: string;
843
+ output: string;
844
+ function_name: string;
845
+ article_sources?: unknown[] | undefined;
846
+ }>, "many">>;
847
+ }, z.ZodUnknown, "strip"> | undefined;
249
848
  }, {
250
849
  id: number;
251
850
  created_at: number;
@@ -261,6 +860,53 @@ export declare const MessageSchema: z.ZodObject<{
261
860
  id: number;
262
861
  email?: string | undefined;
263
862
  } | undefined;
863
+ additional_attributes?: z.objectInputType<{
864
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
865
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
866
+ id: z.ZodString;
867
+ name: z.ZodString;
868
+ call_id: z.ZodString;
869
+ arguments: z.ZodString;
870
+ completed: z.ZodBoolean;
871
+ output_index: z.ZodNumber;
872
+ }, "strip", z.ZodTypeAny, {
873
+ completed: boolean;
874
+ name: string;
875
+ id: string;
876
+ call_id: string;
877
+ arguments: string;
878
+ output_index: number;
879
+ }, {
880
+ completed: boolean;
881
+ name: string;
882
+ id: string;
883
+ call_id: string;
884
+ arguments: string;
885
+ output_index: number;
886
+ }>, "many">>;
887
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
888
+ type: z.ZodString;
889
+ output: z.ZodString;
890
+ call_id: z.ZodString;
891
+ arguments: z.ZodString;
892
+ function_name: z.ZodString;
893
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
894
+ }, "strip", z.ZodTypeAny, {
895
+ type: string;
896
+ call_id: string;
897
+ arguments: string;
898
+ output: string;
899
+ function_name: string;
900
+ article_sources?: unknown[] | undefined;
901
+ }, {
902
+ type: string;
903
+ call_id: string;
904
+ arguments: string;
905
+ output: string;
906
+ function_name: string;
907
+ article_sources?: unknown[] | undefined;
908
+ }>, "many">>;
909
+ }, z.ZodUnknown, "strip"> | undefined;
264
910
  }>;
265
911
  export declare const EscalationTypeSchema: z.ZodEnum<["agent", "team"]>;
266
912
  export declare const PrioritySchema: z.ZodEnum<["low", "medium", "high", "urgent"]>;
@@ -619,6 +1265,145 @@ export declare const ConversationSchema: z.ZodObject<{
619
1265
  id: number;
620
1266
  email?: string | undefined;
621
1267
  }>>;
1268
+ additional_attributes: z.ZodOptional<z.ZodObject<{
1269
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1270
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1271
+ id: z.ZodString;
1272
+ name: z.ZodString;
1273
+ call_id: z.ZodString;
1274
+ arguments: z.ZodString;
1275
+ completed: z.ZodBoolean;
1276
+ output_index: z.ZodNumber;
1277
+ }, "strip", z.ZodTypeAny, {
1278
+ completed: boolean;
1279
+ name: string;
1280
+ id: string;
1281
+ call_id: string;
1282
+ arguments: string;
1283
+ output_index: number;
1284
+ }, {
1285
+ completed: boolean;
1286
+ name: string;
1287
+ id: string;
1288
+ call_id: string;
1289
+ arguments: string;
1290
+ output_index: number;
1291
+ }>, "many">>;
1292
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1293
+ type: z.ZodString;
1294
+ output: z.ZodString;
1295
+ call_id: z.ZodString;
1296
+ arguments: z.ZodString;
1297
+ function_name: z.ZodString;
1298
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1299
+ }, "strip", z.ZodTypeAny, {
1300
+ type: string;
1301
+ call_id: string;
1302
+ arguments: string;
1303
+ output: string;
1304
+ function_name: string;
1305
+ article_sources?: unknown[] | undefined;
1306
+ }, {
1307
+ type: string;
1308
+ call_id: string;
1309
+ arguments: string;
1310
+ output: string;
1311
+ function_name: string;
1312
+ article_sources?: unknown[] | undefined;
1313
+ }>, "many">>;
1314
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1315
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1316
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1317
+ id: z.ZodString;
1318
+ name: z.ZodString;
1319
+ call_id: z.ZodString;
1320
+ arguments: z.ZodString;
1321
+ completed: z.ZodBoolean;
1322
+ output_index: z.ZodNumber;
1323
+ }, "strip", z.ZodTypeAny, {
1324
+ completed: boolean;
1325
+ name: string;
1326
+ id: string;
1327
+ call_id: string;
1328
+ arguments: string;
1329
+ output_index: number;
1330
+ }, {
1331
+ completed: boolean;
1332
+ name: string;
1333
+ id: string;
1334
+ call_id: string;
1335
+ arguments: string;
1336
+ output_index: number;
1337
+ }>, "many">>;
1338
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1339
+ type: z.ZodString;
1340
+ output: z.ZodString;
1341
+ call_id: z.ZodString;
1342
+ arguments: z.ZodString;
1343
+ function_name: z.ZodString;
1344
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1345
+ }, "strip", z.ZodTypeAny, {
1346
+ type: string;
1347
+ call_id: string;
1348
+ arguments: string;
1349
+ output: string;
1350
+ function_name: string;
1351
+ article_sources?: unknown[] | undefined;
1352
+ }, {
1353
+ type: string;
1354
+ call_id: string;
1355
+ arguments: string;
1356
+ output: string;
1357
+ function_name: string;
1358
+ article_sources?: unknown[] | undefined;
1359
+ }>, "many">>;
1360
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1361
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1362
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1363
+ id: z.ZodString;
1364
+ name: z.ZodString;
1365
+ call_id: z.ZodString;
1366
+ arguments: z.ZodString;
1367
+ completed: z.ZodBoolean;
1368
+ output_index: z.ZodNumber;
1369
+ }, "strip", z.ZodTypeAny, {
1370
+ completed: boolean;
1371
+ name: string;
1372
+ id: string;
1373
+ call_id: string;
1374
+ arguments: string;
1375
+ output_index: number;
1376
+ }, {
1377
+ completed: boolean;
1378
+ name: string;
1379
+ id: string;
1380
+ call_id: string;
1381
+ arguments: string;
1382
+ output_index: number;
1383
+ }>, "many">>;
1384
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1385
+ type: z.ZodString;
1386
+ output: z.ZodString;
1387
+ call_id: z.ZodString;
1388
+ arguments: z.ZodString;
1389
+ function_name: z.ZodString;
1390
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1391
+ }, "strip", z.ZodTypeAny, {
1392
+ type: string;
1393
+ call_id: string;
1394
+ arguments: string;
1395
+ output: string;
1396
+ function_name: string;
1397
+ article_sources?: unknown[] | undefined;
1398
+ }, {
1399
+ type: string;
1400
+ call_id: string;
1401
+ arguments: string;
1402
+ output: string;
1403
+ function_name: string;
1404
+ article_sources?: unknown[] | undefined;
1405
+ }>, "many">>;
1406
+ }, z.ZodUnknown, "strip">>>;
622
1407
  }, "strip", z.ZodTypeAny, {
623
1408
  id: number;
624
1409
  created_at: number;
@@ -634,6 +1419,53 @@ export declare const ConversationSchema: z.ZodObject<{
634
1419
  id: number;
635
1420
  email?: string | undefined;
636
1421
  } | undefined;
1422
+ additional_attributes?: z.objectOutputType<{
1423
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1424
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1425
+ id: z.ZodString;
1426
+ name: z.ZodString;
1427
+ call_id: z.ZodString;
1428
+ arguments: z.ZodString;
1429
+ completed: z.ZodBoolean;
1430
+ output_index: z.ZodNumber;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ completed: boolean;
1433
+ name: string;
1434
+ id: string;
1435
+ call_id: string;
1436
+ arguments: string;
1437
+ output_index: number;
1438
+ }, {
1439
+ completed: boolean;
1440
+ name: string;
1441
+ id: string;
1442
+ call_id: string;
1443
+ arguments: string;
1444
+ output_index: number;
1445
+ }>, "many">>;
1446
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1447
+ type: z.ZodString;
1448
+ output: z.ZodString;
1449
+ call_id: z.ZodString;
1450
+ arguments: z.ZodString;
1451
+ function_name: z.ZodString;
1452
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1453
+ }, "strip", z.ZodTypeAny, {
1454
+ type: string;
1455
+ call_id: string;
1456
+ arguments: string;
1457
+ output: string;
1458
+ function_name: string;
1459
+ article_sources?: unknown[] | undefined;
1460
+ }, {
1461
+ type: string;
1462
+ call_id: string;
1463
+ arguments: string;
1464
+ output: string;
1465
+ function_name: string;
1466
+ article_sources?: unknown[] | undefined;
1467
+ }>, "many">>;
1468
+ }, z.ZodUnknown, "strip"> | undefined;
637
1469
  }, {
638
1470
  id: number;
639
1471
  created_at: number;
@@ -649,6 +1481,53 @@ export declare const ConversationSchema: z.ZodObject<{
649
1481
  id: number;
650
1482
  email?: string | undefined;
651
1483
  } | undefined;
1484
+ additional_attributes?: z.objectInputType<{
1485
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1486
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1487
+ id: z.ZodString;
1488
+ name: z.ZodString;
1489
+ call_id: z.ZodString;
1490
+ arguments: z.ZodString;
1491
+ completed: z.ZodBoolean;
1492
+ output_index: z.ZodNumber;
1493
+ }, "strip", z.ZodTypeAny, {
1494
+ completed: boolean;
1495
+ name: string;
1496
+ id: string;
1497
+ call_id: string;
1498
+ arguments: string;
1499
+ output_index: number;
1500
+ }, {
1501
+ completed: boolean;
1502
+ name: string;
1503
+ id: string;
1504
+ call_id: string;
1505
+ arguments: string;
1506
+ output_index: number;
1507
+ }>, "many">>;
1508
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1509
+ type: z.ZodString;
1510
+ output: z.ZodString;
1511
+ call_id: z.ZodString;
1512
+ arguments: z.ZodString;
1513
+ function_name: z.ZodString;
1514
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1515
+ }, "strip", z.ZodTypeAny, {
1516
+ type: string;
1517
+ call_id: string;
1518
+ arguments: string;
1519
+ output: string;
1520
+ function_name: string;
1521
+ article_sources?: unknown[] | undefined;
1522
+ }, {
1523
+ type: string;
1524
+ call_id: string;
1525
+ arguments: string;
1526
+ output: string;
1527
+ function_name: string;
1528
+ article_sources?: unknown[] | undefined;
1529
+ }>, "many">>;
1530
+ }, z.ZodUnknown, "strip"> | undefined;
652
1531
  }>, "many">>;
653
1532
  meta: z.ZodOptional<z.ZodObject<{
654
1533
  sender: z.ZodObject<{
@@ -806,6 +1685,53 @@ export declare const ConversationSchema: z.ZodObject<{
806
1685
  id: number;
807
1686
  email?: string | undefined;
808
1687
  } | undefined;
1688
+ additional_attributes?: z.objectOutputType<{
1689
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1690
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1691
+ id: z.ZodString;
1692
+ name: z.ZodString;
1693
+ call_id: z.ZodString;
1694
+ arguments: z.ZodString;
1695
+ completed: z.ZodBoolean;
1696
+ output_index: z.ZodNumber;
1697
+ }, "strip", z.ZodTypeAny, {
1698
+ completed: boolean;
1699
+ name: string;
1700
+ id: string;
1701
+ call_id: string;
1702
+ arguments: string;
1703
+ output_index: number;
1704
+ }, {
1705
+ completed: boolean;
1706
+ name: string;
1707
+ id: string;
1708
+ call_id: string;
1709
+ arguments: string;
1710
+ output_index: number;
1711
+ }>, "many">>;
1712
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1713
+ type: z.ZodString;
1714
+ output: z.ZodString;
1715
+ call_id: z.ZodString;
1716
+ arguments: z.ZodString;
1717
+ function_name: z.ZodString;
1718
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1719
+ }, "strip", z.ZodTypeAny, {
1720
+ type: string;
1721
+ call_id: string;
1722
+ arguments: string;
1723
+ output: string;
1724
+ function_name: string;
1725
+ article_sources?: unknown[] | undefined;
1726
+ }, {
1727
+ type: string;
1728
+ call_id: string;
1729
+ arguments: string;
1730
+ output: string;
1731
+ function_name: string;
1732
+ article_sources?: unknown[] | undefined;
1733
+ }>, "many">>;
1734
+ }, z.ZodUnknown, "strip"> | undefined;
809
1735
  }[] | undefined;
810
1736
  meta?: {
811
1737
  sender: {
@@ -880,6 +1806,53 @@ export declare const ConversationSchema: z.ZodObject<{
880
1806
  id: number;
881
1807
  email?: string | undefined;
882
1808
  } | undefined;
1809
+ additional_attributes?: z.objectInputType<{
1810
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1811
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1812
+ id: z.ZodString;
1813
+ name: z.ZodString;
1814
+ call_id: z.ZodString;
1815
+ arguments: z.ZodString;
1816
+ completed: z.ZodBoolean;
1817
+ output_index: z.ZodNumber;
1818
+ }, "strip", z.ZodTypeAny, {
1819
+ completed: boolean;
1820
+ name: string;
1821
+ id: string;
1822
+ call_id: string;
1823
+ arguments: string;
1824
+ output_index: number;
1825
+ }, {
1826
+ completed: boolean;
1827
+ name: string;
1828
+ id: string;
1829
+ call_id: string;
1830
+ arguments: string;
1831
+ output_index: number;
1832
+ }>, "many">>;
1833
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1834
+ type: z.ZodString;
1835
+ output: z.ZodString;
1836
+ call_id: z.ZodString;
1837
+ arguments: z.ZodString;
1838
+ function_name: z.ZodString;
1839
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1840
+ }, "strip", z.ZodTypeAny, {
1841
+ type: string;
1842
+ call_id: string;
1843
+ arguments: string;
1844
+ output: string;
1845
+ function_name: string;
1846
+ article_sources?: unknown[] | undefined;
1847
+ }, {
1848
+ type: string;
1849
+ call_id: string;
1850
+ arguments: string;
1851
+ output: string;
1852
+ function_name: string;
1853
+ article_sources?: unknown[] | undefined;
1854
+ }>, "many">>;
1855
+ }, z.ZodUnknown, "strip"> | undefined;
883
1856
  }[] | undefined;
884
1857
  meta?: {
885
1858
  sender: {
@@ -1028,6 +2001,145 @@ export declare const MessagesResponseSchema: z.ZodObject<{
1028
2001
  id: number;
1029
2002
  email?: string | undefined;
1030
2003
  }>>;
2004
+ additional_attributes: z.ZodOptional<z.ZodObject<{
2005
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2006
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2007
+ id: z.ZodString;
2008
+ name: z.ZodString;
2009
+ call_id: z.ZodString;
2010
+ arguments: z.ZodString;
2011
+ completed: z.ZodBoolean;
2012
+ output_index: z.ZodNumber;
2013
+ }, "strip", z.ZodTypeAny, {
2014
+ completed: boolean;
2015
+ name: string;
2016
+ id: string;
2017
+ call_id: string;
2018
+ arguments: string;
2019
+ output_index: number;
2020
+ }, {
2021
+ completed: boolean;
2022
+ name: string;
2023
+ id: string;
2024
+ call_id: string;
2025
+ arguments: string;
2026
+ output_index: number;
2027
+ }>, "many">>;
2028
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2029
+ type: z.ZodString;
2030
+ output: z.ZodString;
2031
+ call_id: z.ZodString;
2032
+ arguments: z.ZodString;
2033
+ function_name: z.ZodString;
2034
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2035
+ }, "strip", z.ZodTypeAny, {
2036
+ type: string;
2037
+ call_id: string;
2038
+ arguments: string;
2039
+ output: string;
2040
+ function_name: string;
2041
+ article_sources?: unknown[] | undefined;
2042
+ }, {
2043
+ type: string;
2044
+ call_id: string;
2045
+ arguments: string;
2046
+ output: string;
2047
+ function_name: string;
2048
+ article_sources?: unknown[] | undefined;
2049
+ }>, "many">>;
2050
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2051
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2052
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2053
+ id: z.ZodString;
2054
+ name: z.ZodString;
2055
+ call_id: z.ZodString;
2056
+ arguments: z.ZodString;
2057
+ completed: z.ZodBoolean;
2058
+ output_index: z.ZodNumber;
2059
+ }, "strip", z.ZodTypeAny, {
2060
+ completed: boolean;
2061
+ name: string;
2062
+ id: string;
2063
+ call_id: string;
2064
+ arguments: string;
2065
+ output_index: number;
2066
+ }, {
2067
+ completed: boolean;
2068
+ name: string;
2069
+ id: string;
2070
+ call_id: string;
2071
+ arguments: string;
2072
+ output_index: number;
2073
+ }>, "many">>;
2074
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2075
+ type: z.ZodString;
2076
+ output: z.ZodString;
2077
+ call_id: z.ZodString;
2078
+ arguments: z.ZodString;
2079
+ function_name: z.ZodString;
2080
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2081
+ }, "strip", z.ZodTypeAny, {
2082
+ type: string;
2083
+ call_id: string;
2084
+ arguments: string;
2085
+ output: string;
2086
+ function_name: string;
2087
+ article_sources?: unknown[] | undefined;
2088
+ }, {
2089
+ type: string;
2090
+ call_id: string;
2091
+ arguments: string;
2092
+ output: string;
2093
+ function_name: string;
2094
+ article_sources?: unknown[] | undefined;
2095
+ }>, "many">>;
2096
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2097
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2098
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2099
+ id: z.ZodString;
2100
+ name: z.ZodString;
2101
+ call_id: z.ZodString;
2102
+ arguments: z.ZodString;
2103
+ completed: z.ZodBoolean;
2104
+ output_index: z.ZodNumber;
2105
+ }, "strip", z.ZodTypeAny, {
2106
+ completed: boolean;
2107
+ name: string;
2108
+ id: string;
2109
+ call_id: string;
2110
+ arguments: string;
2111
+ output_index: number;
2112
+ }, {
2113
+ completed: boolean;
2114
+ name: string;
2115
+ id: string;
2116
+ call_id: string;
2117
+ arguments: string;
2118
+ output_index: number;
2119
+ }>, "many">>;
2120
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2121
+ type: z.ZodString;
2122
+ output: z.ZodString;
2123
+ call_id: z.ZodString;
2124
+ arguments: z.ZodString;
2125
+ function_name: z.ZodString;
2126
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2127
+ }, "strip", z.ZodTypeAny, {
2128
+ type: string;
2129
+ call_id: string;
2130
+ arguments: string;
2131
+ output: string;
2132
+ function_name: string;
2133
+ article_sources?: unknown[] | undefined;
2134
+ }, {
2135
+ type: string;
2136
+ call_id: string;
2137
+ arguments: string;
2138
+ output: string;
2139
+ function_name: string;
2140
+ article_sources?: unknown[] | undefined;
2141
+ }>, "many">>;
2142
+ }, z.ZodUnknown, "strip">>>;
1031
2143
  }, "strip", z.ZodTypeAny, {
1032
2144
  id: number;
1033
2145
  created_at: number;
@@ -1043,6 +2155,53 @@ export declare const MessagesResponseSchema: z.ZodObject<{
1043
2155
  id: number;
1044
2156
  email?: string | undefined;
1045
2157
  } | undefined;
2158
+ additional_attributes?: z.objectOutputType<{
2159
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2160
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2161
+ id: z.ZodString;
2162
+ name: z.ZodString;
2163
+ call_id: z.ZodString;
2164
+ arguments: z.ZodString;
2165
+ completed: z.ZodBoolean;
2166
+ output_index: z.ZodNumber;
2167
+ }, "strip", z.ZodTypeAny, {
2168
+ completed: boolean;
2169
+ name: string;
2170
+ id: string;
2171
+ call_id: string;
2172
+ arguments: string;
2173
+ output_index: number;
2174
+ }, {
2175
+ completed: boolean;
2176
+ name: string;
2177
+ id: string;
2178
+ call_id: string;
2179
+ arguments: string;
2180
+ output_index: number;
2181
+ }>, "many">>;
2182
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2183
+ type: z.ZodString;
2184
+ output: z.ZodString;
2185
+ call_id: z.ZodString;
2186
+ arguments: z.ZodString;
2187
+ function_name: z.ZodString;
2188
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2189
+ }, "strip", z.ZodTypeAny, {
2190
+ type: string;
2191
+ call_id: string;
2192
+ arguments: string;
2193
+ output: string;
2194
+ function_name: string;
2195
+ article_sources?: unknown[] | undefined;
2196
+ }, {
2197
+ type: string;
2198
+ call_id: string;
2199
+ arguments: string;
2200
+ output: string;
2201
+ function_name: string;
2202
+ article_sources?: unknown[] | undefined;
2203
+ }>, "many">>;
2204
+ }, z.ZodUnknown, "strip"> | undefined;
1046
2205
  }, {
1047
2206
  id: number;
1048
2207
  created_at: number;
@@ -1058,6 +2217,53 @@ export declare const MessagesResponseSchema: z.ZodObject<{
1058
2217
  id: number;
1059
2218
  email?: string | undefined;
1060
2219
  } | undefined;
2220
+ additional_attributes?: z.objectInputType<{
2221
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2222
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2223
+ id: z.ZodString;
2224
+ name: z.ZodString;
2225
+ call_id: z.ZodString;
2226
+ arguments: z.ZodString;
2227
+ completed: z.ZodBoolean;
2228
+ output_index: z.ZodNumber;
2229
+ }, "strip", z.ZodTypeAny, {
2230
+ completed: boolean;
2231
+ name: string;
2232
+ id: string;
2233
+ call_id: string;
2234
+ arguments: string;
2235
+ output_index: number;
2236
+ }, {
2237
+ completed: boolean;
2238
+ name: string;
2239
+ id: string;
2240
+ call_id: string;
2241
+ arguments: string;
2242
+ output_index: number;
2243
+ }>, "many">>;
2244
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2245
+ type: z.ZodString;
2246
+ output: z.ZodString;
2247
+ call_id: z.ZodString;
2248
+ arguments: z.ZodString;
2249
+ function_name: z.ZodString;
2250
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2251
+ }, "strip", z.ZodTypeAny, {
2252
+ type: string;
2253
+ call_id: string;
2254
+ arguments: string;
2255
+ output: string;
2256
+ function_name: string;
2257
+ article_sources?: unknown[] | undefined;
2258
+ }, {
2259
+ type: string;
2260
+ call_id: string;
2261
+ arguments: string;
2262
+ output: string;
2263
+ function_name: string;
2264
+ article_sources?: unknown[] | undefined;
2265
+ }>, "many">>;
2266
+ }, z.ZodUnknown, "strip"> | undefined;
1061
2267
  }>, "many">;
1062
2268
  }, "strip", z.ZodTypeAny, {
1063
2269
  meta: {
@@ -1087,6 +2293,53 @@ export declare const MessagesResponseSchema: z.ZodObject<{
1087
2293
  id: number;
1088
2294
  email?: string | undefined;
1089
2295
  } | undefined;
2296
+ additional_attributes?: z.objectOutputType<{
2297
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2298
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2299
+ id: z.ZodString;
2300
+ name: z.ZodString;
2301
+ call_id: z.ZodString;
2302
+ arguments: z.ZodString;
2303
+ completed: z.ZodBoolean;
2304
+ output_index: z.ZodNumber;
2305
+ }, "strip", z.ZodTypeAny, {
2306
+ completed: boolean;
2307
+ name: string;
2308
+ id: string;
2309
+ call_id: string;
2310
+ arguments: string;
2311
+ output_index: number;
2312
+ }, {
2313
+ completed: boolean;
2314
+ name: string;
2315
+ id: string;
2316
+ call_id: string;
2317
+ arguments: string;
2318
+ output_index: number;
2319
+ }>, "many">>;
2320
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2321
+ type: z.ZodString;
2322
+ output: z.ZodString;
2323
+ call_id: z.ZodString;
2324
+ arguments: z.ZodString;
2325
+ function_name: z.ZodString;
2326
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2327
+ }, "strip", z.ZodTypeAny, {
2328
+ type: string;
2329
+ call_id: string;
2330
+ arguments: string;
2331
+ output: string;
2332
+ function_name: string;
2333
+ article_sources?: unknown[] | undefined;
2334
+ }, {
2335
+ type: string;
2336
+ call_id: string;
2337
+ arguments: string;
2338
+ output: string;
2339
+ function_name: string;
2340
+ article_sources?: unknown[] | undefined;
2341
+ }>, "many">>;
2342
+ }, z.ZodUnknown, "strip"> | undefined;
1090
2343
  }[];
1091
2344
  }, {
1092
2345
  meta: {
@@ -1116,6 +2369,53 @@ export declare const MessagesResponseSchema: z.ZodObject<{
1116
2369
  id: number;
1117
2370
  email?: string | undefined;
1118
2371
  } | undefined;
2372
+ additional_attributes?: z.objectInputType<{
2373
+ response_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2374
+ function_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2375
+ id: z.ZodString;
2376
+ name: z.ZodString;
2377
+ call_id: z.ZodString;
2378
+ arguments: z.ZodString;
2379
+ completed: z.ZodBoolean;
2380
+ output_index: z.ZodNumber;
2381
+ }, "strip", z.ZodTypeAny, {
2382
+ completed: boolean;
2383
+ name: string;
2384
+ id: string;
2385
+ call_id: string;
2386
+ arguments: string;
2387
+ output_index: number;
2388
+ }, {
2389
+ completed: boolean;
2390
+ name: string;
2391
+ id: string;
2392
+ call_id: string;
2393
+ arguments: string;
2394
+ output_index: number;
2395
+ }>, "many">>;
2396
+ function_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
2397
+ type: z.ZodString;
2398
+ output: z.ZodString;
2399
+ call_id: z.ZodString;
2400
+ arguments: z.ZodString;
2401
+ function_name: z.ZodString;
2402
+ article_sources: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2403
+ }, "strip", z.ZodTypeAny, {
2404
+ type: string;
2405
+ call_id: string;
2406
+ arguments: string;
2407
+ output: string;
2408
+ function_name: string;
2409
+ article_sources?: unknown[] | undefined;
2410
+ }, {
2411
+ type: string;
2412
+ call_id: string;
2413
+ arguments: string;
2414
+ output: string;
2415
+ function_name: string;
2416
+ article_sources?: unknown[] | undefined;
2417
+ }>, "many">>;
2418
+ }, z.ZodUnknown, "strip"> | undefined;
1119
2419
  }[];
1120
2420
  }>;
1121
2421
  /**
@@ -1126,6 +2426,9 @@ export type ContentType = z.infer<typeof ContentTypeSchema>;
1126
2426
  export type AttachmentFileType = z.infer<typeof AttachmentFileTypeSchema>;
1127
2427
  export type Attachment = z.infer<typeof AttachmentSchema>;
1128
2428
  export type TemplateParams = z.infer<typeof TemplateParamsSchema>;
2429
+ export type FunctionCall = z.infer<typeof FunctionCallSchema>;
2430
+ export type FunctionResult = z.infer<typeof FunctionResultSchema>;
2431
+ export type MessageAdditionalAttributes = z.infer<typeof MessageAdditionalAttributesSchema>;
1129
2432
  export type CreateMessageParams = z.infer<typeof CreateMessageParamsSchema>;
1130
2433
  export type Message = z.infer<typeof MessageSchema>;
1131
2434
  export type EscalationType = z.infer<typeof EscalationTypeSchema>;