@opencode/ai 2.1.3 → 2.1.4

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.
Files changed (106) hide show
  1. package/dist/experimental/evaluation.js +3 -10
  2. package/dist/image-client.d.ts +8 -8
  3. package/dist/image.d.ts +148 -148
  4. package/dist/promise.d.ts +120 -120
  5. package/dist/protocols/alibaba-chat.d.ts +12 -12
  6. package/dist/protocols/alibaba-messages.d.ts +11 -11
  7. package/dist/protocols/alibaba-responses.d.ts +35 -35
  8. package/dist/protocols/anthropic-messages.d.ts +40 -44
  9. package/dist/protocols/anthropic-messages.js +3 -3
  10. package/dist/protocols/bedrock-converse.d.ts +30 -32
  11. package/dist/protocols/bedrock-converse.js +2 -3
  12. package/dist/protocols/cartesia-speech.d.ts +32 -32
  13. package/dist/protocols/cohere-chat.d.ts +7 -8
  14. package/dist/protocols/deepgram-speech.d.ts +32 -32
  15. package/dist/protocols/elevenlabs-speech.d.ts +32 -32
  16. package/dist/protocols/gemini.d.ts +34 -34
  17. package/dist/protocols/gemini.js +2 -2
  18. package/dist/protocols/google-interactions.d.ts +14 -14
  19. package/dist/protocols/google-interactions.js +2 -2
  20. package/dist/protocols/google-speech.d.ts +32 -32
  21. package/dist/protocols/google-transcription.d.ts +32 -32
  22. package/dist/protocols/meta-messages.d.ts +23 -23
  23. package/dist/protocols/meta-responses.d.ts +78 -78
  24. package/dist/protocols/mistral-chat.d.ts +81 -78
  25. package/dist/protocols/mistral-chat.js +2 -1
  26. package/dist/protocols/open-responses-channel.js +47 -46
  27. package/dist/protocols/open-responses-continuation.d.ts +8 -2
  28. package/dist/protocols/open-responses-continuation.js +3 -1
  29. package/dist/protocols/open-responses.d.ts +398 -398
  30. package/dist/protocols/open-responses.js +8 -7
  31. package/dist/protocols/openai-chat.d.ts +60 -60
  32. package/dist/protocols/openai-chat.js +3 -3
  33. package/dist/protocols/openai-compatible-chat.d.ts +13 -14
  34. package/dist/protocols/openai-compatible-responses.d.ts +36 -37
  35. package/dist/protocols/openai-images.d.ts +32 -32
  36. package/dist/protocols/openai-responses.d.ts +235 -235
  37. package/dist/protocols/openai-responses.js +1 -1
  38. package/dist/protocols/openai-speech.d.ts +32 -32
  39. package/dist/protocols/openai-transcription.d.ts +32 -32
  40. package/dist/protocols/openai-transcription.js +12 -7
  41. package/dist/protocols/utils/partial-json-options.d.ts +0 -1
  42. package/dist/protocols/utils/partial-json-options.js +0 -1
  43. package/dist/protocols/utils/tool-stream.d.ts +1 -1
  44. package/dist/protocols/venice-chat.d.ts +52 -53
  45. package/dist/protocols/venice-chat.js +6 -5
  46. package/dist/protocols/xai-responses.d.ts +78 -78
  47. package/dist/protocols/zai-chat.d.ts +33 -30
  48. package/dist/protocols/zai-chat.js +8 -3
  49. package/dist/protocols/zai-messages.d.ts +21 -19
  50. package/dist/protocols/zai-messages.js +3 -2
  51. package/dist/provider-error.js +5 -3
  52. package/dist/providers/alibaba.d.ts +69 -69
  53. package/dist/providers/amazon-bedrock-mantle.d.ts +202 -202
  54. package/dist/providers/amazon-bedrock.d.ts +15 -15
  55. package/dist/providers/anthropic-compatible.d.ts +13 -13
  56. package/dist/providers/anthropic.d.ts +13 -13
  57. package/dist/providers/azure.d.ts +106 -106
  58. package/dist/providers/baseten.d.ts +24 -24
  59. package/dist/providers/cerebras.d.ts +24 -24
  60. package/dist/providers/cloudflare-ai-gateway.d.ts +230 -227
  61. package/dist/providers/cloudflare-ai-gateway.js +1 -2
  62. package/dist/providers/cloudflare-workers-ai.d.ts +24 -24
  63. package/dist/providers/cohere.d.ts +75 -75
  64. package/dist/providers/deepinfra.d.ts +24 -24
  65. package/dist/providers/deepseek.d.ts +24 -24
  66. package/dist/providers/digitalocean.d.ts +36 -36
  67. package/dist/providers/fireworks.d.ts +24 -24
  68. package/dist/providers/google-vertex-chat.d.ts +12 -12
  69. package/dist/providers/google-vertex-messages.d.ts +13 -13
  70. package/dist/providers/google-vertex-mistral.d.ts +17 -17
  71. package/dist/providers/google-vertex-responses.d.ts +35 -35
  72. package/dist/providers/google-vertex.d.ts +17 -17
  73. package/dist/providers/google-vertex.js +2 -2
  74. package/dist/providers/google.d.ts +17 -17
  75. package/dist/providers/groq.d.ts +24 -24
  76. package/dist/providers/meta.d.ts +179 -179
  77. package/dist/providers/minimax.d.ts +71 -71
  78. package/dist/providers/mistral.d.ts +28 -28
  79. package/dist/providers/moonshot.d.ts +202 -202
  80. package/dist/providers/open-responses-options.d.ts +0 -1
  81. package/dist/providers/open-responses-options.js +1 -1
  82. package/dist/providers/openai-compatible-responses.d.ts +35 -35
  83. package/dist/providers/openai-compatible.d.ts +12 -12
  84. package/dist/providers/openai-compatible.js +1 -1
  85. package/dist/providers/openai-options.d.ts +0 -1
  86. package/dist/providers/openai-options.js +0 -1
  87. package/dist/providers/openai.d.ts +100 -100
  88. package/dist/providers/openrouter.d.ts +36 -36
  89. package/dist/providers/togetherai.d.ts +24 -24
  90. package/dist/providers/venice.d.ts +195 -20
  91. package/dist/providers/xai.d.ts +12 -12
  92. package/dist/providers/zai-coding-plan.d.ts +149 -69
  93. package/dist/providers/zai.d.ts +84 -19
  94. package/dist/route/auth-options.d.ts +0 -3
  95. package/dist/route/auth.d.ts +0 -2
  96. package/dist/route/auth.js +0 -2
  97. package/dist/route/client.d.ts +0 -2
  98. package/dist/route/client.js +3 -4
  99. package/dist/route/executor-service.js +1 -1
  100. package/dist/speech-client.d.ts +8 -8
  101. package/dist/speech.d.ts +148 -148
  102. package/dist/transcription-client.d.ts +8 -8
  103. package/dist/transcription.d.ts +148 -148
  104. package/dist/video-client.d.ts +8 -8
  105. package/dist/video.d.ts +114 -114
  106. package/package.json +6 -5
@@ -206,14 +206,6 @@ export declare const CompactionTrigger: Schema.Struct<{
206
206
  export declare const protocol: Protocol<{
207
207
  readonly model: string;
208
208
  readonly input: readonly ({
209
- readonly [x: string]: unknown;
210
- readonly type: string;
211
- readonly id: string;
212
- } | {
213
- readonly type: "compaction";
214
- readonly id?: string | null | undefined;
215
- readonly encrypted_content: string;
216
- } | {
217
209
  readonly type: "configuration_update";
218
210
  readonly reasoning: {
219
211
  readonly effort: OpenResponsesOptions.ReasoningEffort;
@@ -226,10 +218,45 @@ export declare const protocol: Protocol<{
226
218
  readonly type: "message";
227
219
  readonly role: "developer";
228
220
  readonly content: string;
221
+ } | {
222
+ readonly type: "function_call_output";
223
+ readonly call_id: string;
224
+ readonly output: string | readonly ({
225
+ readonly type: "input_text";
226
+ readonly text: string;
227
+ } | {
228
+ readonly type: "input_video";
229
+ readonly video_url: string;
230
+ } | {
231
+ readonly type: "input_image";
232
+ readonly image_url: string;
233
+ readonly detail?: string | undefined;
234
+ } | {
235
+ readonly type: "input_file";
236
+ readonly filename: string;
237
+ readonly detail?: string | undefined;
238
+ readonly file_data?: string | undefined;
239
+ readonly file_url?: string | undefined;
240
+ })[];
241
+ } | {
242
+ readonly type: "reasoning";
243
+ readonly id?: string | undefined;
244
+ readonly summary: readonly {
245
+ readonly type: "summary_text";
246
+ readonly text: string;
247
+ }[];
248
+ readonly encrypted_content?: string | null | undefined;
249
+ } | {
250
+ readonly type: "compaction";
251
+ readonly id?: string | null | undefined;
252
+ readonly encrypted_content: string;
229
253
  } | {
230
254
  readonly type: "message";
231
255
  readonly role: "user";
232
256
  readonly content: readonly ({
257
+ readonly type: "input_text";
258
+ readonly text: string;
259
+ } | {
233
260
  readonly type: "input_image";
234
261
  readonly image_url: string;
235
262
  readonly detail?: string | undefined;
@@ -239,9 +266,6 @@ export declare const protocol: Protocol<{
239
266
  readonly detail?: string | undefined;
240
267
  readonly file_data?: string | undefined;
241
268
  readonly file_url?: string | undefined;
242
- } | {
243
- readonly type: "input_text";
244
- readonly text: string;
245
269
  })[];
246
270
  readonly id?: string | undefined;
247
271
  readonly status?: string | undefined;
@@ -255,14 +279,6 @@ export declare const protocol: Protocol<{
255
279
  }[];
256
280
  readonly phase?: "commentary" | "final_answer" | null | undefined;
257
281
  readonly status?: string | undefined;
258
- } | {
259
- readonly type: "reasoning";
260
- readonly id?: string | undefined;
261
- readonly summary: readonly {
262
- readonly type: "summary_text";
263
- readonly text: string;
264
- }[];
265
- readonly encrypted_content?: string | null | undefined;
266
282
  } | {
267
283
  readonly type: "function_call";
268
284
  readonly id?: string | undefined;
@@ -270,26 +286,6 @@ export declare const protocol: Protocol<{
270
286
  readonly name: string;
271
287
  readonly namespace?: string | undefined;
272
288
  readonly arguments: string;
273
- } | {
274
- readonly type: "function_call_output";
275
- readonly call_id: string;
276
- readonly output: string | readonly ({
277
- readonly type: "input_image";
278
- readonly image_url: string;
279
- readonly detail?: string | undefined;
280
- } | {
281
- readonly type: "input_file";
282
- readonly filename: string;
283
- readonly detail?: string | undefined;
284
- readonly file_data?: string | undefined;
285
- readonly file_url?: string | undefined;
286
- } | {
287
- readonly type: "input_text";
288
- readonly text: string;
289
- } | {
290
- readonly type: "input_video";
291
- readonly video_url: string;
292
- })[];
293
289
  } | {
294
290
  readonly [x: string]: unknown;
295
291
  readonly type: "web_search_call";
@@ -327,6 +323,10 @@ export declare const protocol: Protocol<{
327
323
  readonly arguments?: string | undefined;
328
324
  readonly output?: string | null | undefined;
329
325
  readonly error?: unknown;
326
+ } | {
327
+ readonly [x: string]: unknown;
328
+ readonly type: string;
329
+ readonly id: string;
330
330
  })[];
331
331
  readonly instructions?: string | undefined;
332
332
  readonly store?: boolean | undefined;
@@ -357,14 +357,6 @@ export declare const protocol: Protocol<{
357
357
  readonly presence_penalty?: number | undefined;
358
358
  readonly frequency_penalty?: number | undefined;
359
359
  readonly tools?: readonly ({
360
- readonly type: "function";
361
- readonly name: string;
362
- readonly description: string;
363
- readonly parameters: {
364
- readonly [x: string]: unknown;
365
- };
366
- readonly strict?: boolean | undefined;
367
- } | {
368
360
  readonly type: "namespace";
369
361
  readonly name: string;
370
362
  readonly description: string;
@@ -377,6 +369,14 @@ export declare const protocol: Protocol<{
377
369
  };
378
370
  readonly strict?: boolean | undefined;
379
371
  }[];
372
+ } | {
373
+ readonly type: "function";
374
+ readonly name: string;
375
+ readonly description: string;
376
+ readonly parameters: {
377
+ readonly [x: string]: unknown;
378
+ };
379
+ readonly strict?: boolean | undefined;
380
380
  } | {
381
381
  readonly type: "image_generation";
382
382
  readonly action?: "auto" | "edit" | "generate" | undefined;
@@ -468,14 +468,6 @@ export declare const protocol: Protocol<{
468
468
  export declare const httpTransport: HttpTransport.HttpJsonTransport<{
469
469
  readonly model: string;
470
470
  readonly input: readonly ({
471
- readonly [x: string]: unknown;
472
- readonly type: string;
473
- readonly id: string;
474
- } | {
475
- readonly type: "compaction";
476
- readonly id?: string | null | undefined;
477
- readonly encrypted_content: string;
478
- } | {
479
471
  readonly type: "configuration_update";
480
472
  readonly reasoning: {
481
473
  readonly effort: OpenResponsesOptions.ReasoningEffort;
@@ -488,10 +480,45 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
488
480
  readonly type: "message";
489
481
  readonly role: "developer";
490
482
  readonly content: string;
483
+ } | {
484
+ readonly type: "function_call_output";
485
+ readonly call_id: string;
486
+ readonly output: string | readonly ({
487
+ readonly type: "input_text";
488
+ readonly text: string;
489
+ } | {
490
+ readonly type: "input_video";
491
+ readonly video_url: string;
492
+ } | {
493
+ readonly type: "input_image";
494
+ readonly image_url: string;
495
+ readonly detail?: string | undefined;
496
+ } | {
497
+ readonly type: "input_file";
498
+ readonly filename: string;
499
+ readonly detail?: string | undefined;
500
+ readonly file_data?: string | undefined;
501
+ readonly file_url?: string | undefined;
502
+ })[];
503
+ } | {
504
+ readonly type: "reasoning";
505
+ readonly id?: string | undefined;
506
+ readonly summary: readonly {
507
+ readonly type: "summary_text";
508
+ readonly text: string;
509
+ }[];
510
+ readonly encrypted_content?: string | null | undefined;
511
+ } | {
512
+ readonly type: "compaction";
513
+ readonly id?: string | null | undefined;
514
+ readonly encrypted_content: string;
491
515
  } | {
492
516
  readonly type: "message";
493
517
  readonly role: "user";
494
518
  readonly content: readonly ({
519
+ readonly type: "input_text";
520
+ readonly text: string;
521
+ } | {
495
522
  readonly type: "input_image";
496
523
  readonly image_url: string;
497
524
  readonly detail?: string | undefined;
@@ -501,9 +528,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
501
528
  readonly detail?: string | undefined;
502
529
  readonly file_data?: string | undefined;
503
530
  readonly file_url?: string | undefined;
504
- } | {
505
- readonly type: "input_text";
506
- readonly text: string;
507
531
  })[];
508
532
  readonly id?: string | undefined;
509
533
  readonly status?: string | undefined;
@@ -517,14 +541,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
517
541
  }[];
518
542
  readonly phase?: "commentary" | "final_answer" | null | undefined;
519
543
  readonly status?: string | undefined;
520
- } | {
521
- readonly type: "reasoning";
522
- readonly id?: string | undefined;
523
- readonly summary: readonly {
524
- readonly type: "summary_text";
525
- readonly text: string;
526
- }[];
527
- readonly encrypted_content?: string | null | undefined;
528
544
  } | {
529
545
  readonly type: "function_call";
530
546
  readonly id?: string | undefined;
@@ -532,26 +548,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
532
548
  readonly name: string;
533
549
  readonly namespace?: string | undefined;
534
550
  readonly arguments: string;
535
- } | {
536
- readonly type: "function_call_output";
537
- readonly call_id: string;
538
- readonly output: string | readonly ({
539
- readonly type: "input_image";
540
- readonly image_url: string;
541
- readonly detail?: string | undefined;
542
- } | {
543
- readonly type: "input_file";
544
- readonly filename: string;
545
- readonly detail?: string | undefined;
546
- readonly file_data?: string | undefined;
547
- readonly file_url?: string | undefined;
548
- } | {
549
- readonly type: "input_text";
550
- readonly text: string;
551
- } | {
552
- readonly type: "input_video";
553
- readonly video_url: string;
554
- })[];
555
551
  } | {
556
552
  readonly [x: string]: unknown;
557
553
  readonly type: "web_search_call";
@@ -589,6 +585,10 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
589
585
  readonly arguments?: string | undefined;
590
586
  readonly output?: string | null | undefined;
591
587
  readonly error?: unknown;
588
+ } | {
589
+ readonly [x: string]: unknown;
590
+ readonly type: string;
591
+ readonly id: string;
592
592
  })[];
593
593
  readonly instructions?: string | undefined;
594
594
  readonly store?: boolean | undefined;
@@ -619,14 +619,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
619
619
  readonly presence_penalty?: number | undefined;
620
620
  readonly frequency_penalty?: number | undefined;
621
621
  readonly tools?: readonly ({
622
- readonly type: "function";
623
- readonly name: string;
624
- readonly description: string;
625
- readonly parameters: {
626
- readonly [x: string]: unknown;
627
- };
628
- readonly strict?: boolean | undefined;
629
- } | {
630
622
  readonly type: "namespace";
631
623
  readonly name: string;
632
624
  readonly description: string;
@@ -639,6 +631,14 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
639
631
  };
640
632
  readonly strict?: boolean | undefined;
641
633
  }[];
634
+ } | {
635
+ readonly type: "function";
636
+ readonly name: string;
637
+ readonly description: string;
638
+ readonly parameters: {
639
+ readonly [x: string]: unknown;
640
+ };
641
+ readonly strict?: boolean | undefined;
642
642
  } | {
643
643
  readonly type: "image_generation";
644
644
  readonly action?: "auto" | "edit" | "generate" | undefined;
@@ -672,14 +672,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
672
672
  export declare const channelTransport: (options: import("./open-responses-channel.js").Options) => import("../route/transport/index.js").Transport<{
673
673
  readonly model: string;
674
674
  readonly input: readonly ({
675
- readonly [x: string]: unknown;
676
- readonly type: string;
677
- readonly id: string;
678
- } | {
679
- readonly type: "compaction";
680
- readonly id?: string | null | undefined;
681
- readonly encrypted_content: string;
682
- } | {
683
675
  readonly type: "configuration_update";
684
676
  readonly reasoning: {
685
677
  readonly effort: OpenResponsesOptions.ReasoningEffort;
@@ -692,10 +684,45 @@ export declare const channelTransport: (options: import("./open-responses-channe
692
684
  readonly type: "message";
693
685
  readonly role: "developer";
694
686
  readonly content: string;
687
+ } | {
688
+ readonly type: "function_call_output";
689
+ readonly call_id: string;
690
+ readonly output: string | readonly ({
691
+ readonly type: "input_text";
692
+ readonly text: string;
693
+ } | {
694
+ readonly type: "input_video";
695
+ readonly video_url: string;
696
+ } | {
697
+ readonly type: "input_image";
698
+ readonly image_url: string;
699
+ readonly detail?: string | undefined;
700
+ } | {
701
+ readonly type: "input_file";
702
+ readonly filename: string;
703
+ readonly detail?: string | undefined;
704
+ readonly file_data?: string | undefined;
705
+ readonly file_url?: string | undefined;
706
+ })[];
707
+ } | {
708
+ readonly type: "reasoning";
709
+ readonly id?: string | undefined;
710
+ readonly summary: readonly {
711
+ readonly type: "summary_text";
712
+ readonly text: string;
713
+ }[];
714
+ readonly encrypted_content?: string | null | undefined;
715
+ } | {
716
+ readonly type: "compaction";
717
+ readonly id?: string | null | undefined;
718
+ readonly encrypted_content: string;
695
719
  } | {
696
720
  readonly type: "message";
697
721
  readonly role: "user";
698
722
  readonly content: readonly ({
723
+ readonly type: "input_text";
724
+ readonly text: string;
725
+ } | {
699
726
  readonly type: "input_image";
700
727
  readonly image_url: string;
701
728
  readonly detail?: string | undefined;
@@ -705,9 +732,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
705
732
  readonly detail?: string | undefined;
706
733
  readonly file_data?: string | undefined;
707
734
  readonly file_url?: string | undefined;
708
- } | {
709
- readonly type: "input_text";
710
- readonly text: string;
711
735
  })[];
712
736
  readonly id?: string | undefined;
713
737
  readonly status?: string | undefined;
@@ -721,14 +745,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
721
745
  }[];
722
746
  readonly phase?: "commentary" | "final_answer" | null | undefined;
723
747
  readonly status?: string | undefined;
724
- } | {
725
- readonly type: "reasoning";
726
- readonly id?: string | undefined;
727
- readonly summary: readonly {
728
- readonly type: "summary_text";
729
- readonly text: string;
730
- }[];
731
- readonly encrypted_content?: string | null | undefined;
732
748
  } | {
733
749
  readonly type: "function_call";
734
750
  readonly id?: string | undefined;
@@ -736,26 +752,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
736
752
  readonly name: string;
737
753
  readonly namespace?: string | undefined;
738
754
  readonly arguments: string;
739
- } | {
740
- readonly type: "function_call_output";
741
- readonly call_id: string;
742
- readonly output: string | readonly ({
743
- readonly type: "input_image";
744
- readonly image_url: string;
745
- readonly detail?: string | undefined;
746
- } | {
747
- readonly type: "input_file";
748
- readonly filename: string;
749
- readonly detail?: string | undefined;
750
- readonly file_data?: string | undefined;
751
- readonly file_url?: string | undefined;
752
- } | {
753
- readonly type: "input_text";
754
- readonly text: string;
755
- } | {
756
- readonly type: "input_video";
757
- readonly video_url: string;
758
- })[];
759
755
  } | {
760
756
  readonly [x: string]: unknown;
761
757
  readonly type: "web_search_call";
@@ -793,6 +789,10 @@ export declare const channelTransport: (options: import("./open-responses-channe
793
789
  readonly arguments?: string | undefined;
794
790
  readonly output?: string | null | undefined;
795
791
  readonly error?: unknown;
792
+ } | {
793
+ readonly [x: string]: unknown;
794
+ readonly type: string;
795
+ readonly id: string;
796
796
  })[];
797
797
  readonly instructions?: string | undefined;
798
798
  readonly store?: boolean | undefined;
@@ -823,14 +823,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
823
823
  readonly presence_penalty?: number | undefined;
824
824
  readonly frequency_penalty?: number | undefined;
825
825
  readonly tools?: readonly ({
826
- readonly type: "function";
827
- readonly name: string;
828
- readonly description: string;
829
- readonly parameters: {
830
- readonly [x: string]: unknown;
831
- };
832
- readonly strict?: boolean | undefined;
833
- } | {
834
826
  readonly type: "namespace";
835
827
  readonly name: string;
836
828
  readonly description: string;
@@ -843,6 +835,14 @@ export declare const channelTransport: (options: import("./open-responses-channe
843
835
  };
844
836
  readonly strict?: boolean | undefined;
845
837
  }[];
838
+ } | {
839
+ readonly type: "function";
840
+ readonly name: string;
841
+ readonly description: string;
842
+ readonly parameters: {
843
+ readonly [x: string]: unknown;
844
+ };
845
+ readonly strict?: boolean | undefined;
846
846
  } | {
847
847
  readonly type: "image_generation";
848
848
  readonly action?: "auto" | "edit" | "generate" | undefined;
@@ -876,14 +876,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
876
876
  export declare const transport: import("../route/transport/index.js").Transport<{
877
877
  readonly model: string;
878
878
  readonly input: readonly ({
879
- readonly [x: string]: unknown;
880
- readonly type: string;
881
- readonly id: string;
882
- } | {
883
- readonly type: "compaction";
884
- readonly id?: string | null | undefined;
885
- readonly encrypted_content: string;
886
- } | {
887
879
  readonly type: "configuration_update";
888
880
  readonly reasoning: {
889
881
  readonly effort: OpenResponsesOptions.ReasoningEffort;
@@ -896,10 +888,45 @@ export declare const transport: import("../route/transport/index.js").Transport<
896
888
  readonly type: "message";
897
889
  readonly role: "developer";
898
890
  readonly content: string;
891
+ } | {
892
+ readonly type: "function_call_output";
893
+ readonly call_id: string;
894
+ readonly output: string | readonly ({
895
+ readonly type: "input_text";
896
+ readonly text: string;
897
+ } | {
898
+ readonly type: "input_video";
899
+ readonly video_url: string;
900
+ } | {
901
+ readonly type: "input_image";
902
+ readonly image_url: string;
903
+ readonly detail?: string | undefined;
904
+ } | {
905
+ readonly type: "input_file";
906
+ readonly filename: string;
907
+ readonly detail?: string | undefined;
908
+ readonly file_data?: string | undefined;
909
+ readonly file_url?: string | undefined;
910
+ })[];
911
+ } | {
912
+ readonly type: "reasoning";
913
+ readonly id?: string | undefined;
914
+ readonly summary: readonly {
915
+ readonly type: "summary_text";
916
+ readonly text: string;
917
+ }[];
918
+ readonly encrypted_content?: string | null | undefined;
919
+ } | {
920
+ readonly type: "compaction";
921
+ readonly id?: string | null | undefined;
922
+ readonly encrypted_content: string;
899
923
  } | {
900
924
  readonly type: "message";
901
925
  readonly role: "user";
902
926
  readonly content: readonly ({
927
+ readonly type: "input_text";
928
+ readonly text: string;
929
+ } | {
903
930
  readonly type: "input_image";
904
931
  readonly image_url: string;
905
932
  readonly detail?: string | undefined;
@@ -909,9 +936,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
909
936
  readonly detail?: string | undefined;
910
937
  readonly file_data?: string | undefined;
911
938
  readonly file_url?: string | undefined;
912
- } | {
913
- readonly type: "input_text";
914
- readonly text: string;
915
939
  })[];
916
940
  readonly id?: string | undefined;
917
941
  readonly status?: string | undefined;
@@ -925,14 +949,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
925
949
  }[];
926
950
  readonly phase?: "commentary" | "final_answer" | null | undefined;
927
951
  readonly status?: string | undefined;
928
- } | {
929
- readonly type: "reasoning";
930
- readonly id?: string | undefined;
931
- readonly summary: readonly {
932
- readonly type: "summary_text";
933
- readonly text: string;
934
- }[];
935
- readonly encrypted_content?: string | null | undefined;
936
952
  } | {
937
953
  readonly type: "function_call";
938
954
  readonly id?: string | undefined;
@@ -940,26 +956,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
940
956
  readonly name: string;
941
957
  readonly namespace?: string | undefined;
942
958
  readonly arguments: string;
943
- } | {
944
- readonly type: "function_call_output";
945
- readonly call_id: string;
946
- readonly output: string | readonly ({
947
- readonly type: "input_image";
948
- readonly image_url: string;
949
- readonly detail?: string | undefined;
950
- } | {
951
- readonly type: "input_file";
952
- readonly filename: string;
953
- readonly detail?: string | undefined;
954
- readonly file_data?: string | undefined;
955
- readonly file_url?: string | undefined;
956
- } | {
957
- readonly type: "input_text";
958
- readonly text: string;
959
- } | {
960
- readonly type: "input_video";
961
- readonly video_url: string;
962
- })[];
963
959
  } | {
964
960
  readonly [x: string]: unknown;
965
961
  readonly type: "web_search_call";
@@ -997,6 +993,10 @@ export declare const transport: import("../route/transport/index.js").Transport<
997
993
  readonly arguments?: string | undefined;
998
994
  readonly output?: string | null | undefined;
999
995
  readonly error?: unknown;
996
+ } | {
997
+ readonly [x: string]: unknown;
998
+ readonly type: string;
999
+ readonly id: string;
1000
1000
  })[];
1001
1001
  readonly instructions?: string | undefined;
1002
1002
  readonly store?: boolean | undefined;
@@ -1027,14 +1027,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
1027
1027
  readonly presence_penalty?: number | undefined;
1028
1028
  readonly frequency_penalty?: number | undefined;
1029
1029
  readonly tools?: readonly ({
1030
- readonly type: "function";
1031
- readonly name: string;
1032
- readonly description: string;
1033
- readonly parameters: {
1034
- readonly [x: string]: unknown;
1035
- };
1036
- readonly strict?: boolean | undefined;
1037
- } | {
1038
1030
  readonly type: "namespace";
1039
1031
  readonly name: string;
1040
1032
  readonly description: string;
@@ -1047,6 +1039,14 @@ export declare const transport: import("../route/transport/index.js").Transport<
1047
1039
  };
1048
1040
  readonly strict?: boolean | undefined;
1049
1041
  }[];
1042
+ } | {
1043
+ readonly type: "function";
1044
+ readonly name: string;
1045
+ readonly description: string;
1046
+ readonly parameters: {
1047
+ readonly [x: string]: unknown;
1048
+ };
1049
+ readonly strict?: boolean | undefined;
1050
1050
  } | {
1051
1051
  readonly type: "image_generation";
1052
1052
  readonly action?: "auto" | "edit" | "generate" | undefined;
@@ -1080,14 +1080,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
1080
1080
  export declare const route: Route<{
1081
1081
  readonly model: string;
1082
1082
  readonly input: readonly ({
1083
- readonly [x: string]: unknown;
1084
- readonly type: string;
1085
- readonly id: string;
1086
- } | {
1087
- readonly type: "compaction";
1088
- readonly id?: string | null | undefined;
1089
- readonly encrypted_content: string;
1090
- } | {
1091
1083
  readonly type: "configuration_update";
1092
1084
  readonly reasoning: {
1093
1085
  readonly effort: OpenResponsesOptions.ReasoningEffort;
@@ -1100,10 +1092,45 @@ export declare const route: Route<{
1100
1092
  readonly type: "message";
1101
1093
  readonly role: "developer";
1102
1094
  readonly content: string;
1095
+ } | {
1096
+ readonly type: "function_call_output";
1097
+ readonly call_id: string;
1098
+ readonly output: string | readonly ({
1099
+ readonly type: "input_text";
1100
+ readonly text: string;
1101
+ } | {
1102
+ readonly type: "input_video";
1103
+ readonly video_url: string;
1104
+ } | {
1105
+ readonly type: "input_image";
1106
+ readonly image_url: string;
1107
+ readonly detail?: string | undefined;
1108
+ } | {
1109
+ readonly type: "input_file";
1110
+ readonly filename: string;
1111
+ readonly detail?: string | undefined;
1112
+ readonly file_data?: string | undefined;
1113
+ readonly file_url?: string | undefined;
1114
+ })[];
1115
+ } | {
1116
+ readonly type: "reasoning";
1117
+ readonly id?: string | undefined;
1118
+ readonly summary: readonly {
1119
+ readonly type: "summary_text";
1120
+ readonly text: string;
1121
+ }[];
1122
+ readonly encrypted_content?: string | null | undefined;
1123
+ } | {
1124
+ readonly type: "compaction";
1125
+ readonly id?: string | null | undefined;
1126
+ readonly encrypted_content: string;
1103
1127
  } | {
1104
1128
  readonly type: "message";
1105
1129
  readonly role: "user";
1106
1130
  readonly content: readonly ({
1131
+ readonly type: "input_text";
1132
+ readonly text: string;
1133
+ } | {
1107
1134
  readonly type: "input_image";
1108
1135
  readonly image_url: string;
1109
1136
  readonly detail?: string | undefined;
@@ -1113,9 +1140,6 @@ export declare const route: Route<{
1113
1140
  readonly detail?: string | undefined;
1114
1141
  readonly file_data?: string | undefined;
1115
1142
  readonly file_url?: string | undefined;
1116
- } | {
1117
- readonly type: "input_text";
1118
- readonly text: string;
1119
1143
  })[];
1120
1144
  readonly id?: string | undefined;
1121
1145
  readonly status?: string | undefined;
@@ -1129,14 +1153,6 @@ export declare const route: Route<{
1129
1153
  }[];
1130
1154
  readonly phase?: "commentary" | "final_answer" | null | undefined;
1131
1155
  readonly status?: string | undefined;
1132
- } | {
1133
- readonly type: "reasoning";
1134
- readonly id?: string | undefined;
1135
- readonly summary: readonly {
1136
- readonly type: "summary_text";
1137
- readonly text: string;
1138
- }[];
1139
- readonly encrypted_content?: string | null | undefined;
1140
1156
  } | {
1141
1157
  readonly type: "function_call";
1142
1158
  readonly id?: string | undefined;
@@ -1144,26 +1160,6 @@ export declare const route: Route<{
1144
1160
  readonly name: string;
1145
1161
  readonly namespace?: string | undefined;
1146
1162
  readonly arguments: string;
1147
- } | {
1148
- readonly type: "function_call_output";
1149
- readonly call_id: string;
1150
- readonly output: string | readonly ({
1151
- readonly type: "input_image";
1152
- readonly image_url: string;
1153
- readonly detail?: string | undefined;
1154
- } | {
1155
- readonly type: "input_file";
1156
- readonly filename: string;
1157
- readonly detail?: string | undefined;
1158
- readonly file_data?: string | undefined;
1159
- readonly file_url?: string | undefined;
1160
- } | {
1161
- readonly type: "input_text";
1162
- readonly text: string;
1163
- } | {
1164
- readonly type: "input_video";
1165
- readonly video_url: string;
1166
- })[];
1167
1163
  } | {
1168
1164
  readonly [x: string]: unknown;
1169
1165
  readonly type: "web_search_call";
@@ -1201,6 +1197,10 @@ export declare const route: Route<{
1201
1197
  readonly arguments?: string | undefined;
1202
1198
  readonly output?: string | null | undefined;
1203
1199
  readonly error?: unknown;
1200
+ } | {
1201
+ readonly [x: string]: unknown;
1202
+ readonly type: string;
1203
+ readonly id: string;
1204
1204
  })[];
1205
1205
  readonly instructions?: string | undefined;
1206
1206
  readonly store?: boolean | undefined;
@@ -1231,14 +1231,6 @@ export declare const route: Route<{
1231
1231
  readonly presence_penalty?: number | undefined;
1232
1232
  readonly frequency_penalty?: number | undefined;
1233
1233
  readonly tools?: readonly ({
1234
- readonly type: "function";
1235
- readonly name: string;
1236
- readonly description: string;
1237
- readonly parameters: {
1238
- readonly [x: string]: unknown;
1239
- };
1240
- readonly strict?: boolean | undefined;
1241
- } | {
1242
1234
  readonly type: "namespace";
1243
1235
  readonly name: string;
1244
1236
  readonly description: string;
@@ -1251,6 +1243,14 @@ export declare const route: Route<{
1251
1243
  };
1252
1244
  readonly strict?: boolean | undefined;
1253
1245
  }[];
1246
+ } | {
1247
+ readonly type: "function";
1248
+ readonly name: string;
1249
+ readonly description: string;
1250
+ readonly parameters: {
1251
+ readonly [x: string]: unknown;
1252
+ };
1253
+ readonly strict?: boolean | undefined;
1254
1254
  } | {
1255
1255
  readonly type: "image_generation";
1256
1256
  readonly action?: "auto" | "edit" | "generate" | undefined;