@opencode/ai 0.0.0-dev-172 → 0.0.0-dev-176

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 (67) hide show
  1. package/README.md +48 -3
  2. package/dist/effect.d.ts +1 -1
  3. package/dist/effect.js +1 -1
  4. package/dist/index.d.ts +2 -1
  5. package/dist/index.js +1 -0
  6. package/dist/protocols/alibaba-chat.d.ts +39 -4
  7. package/dist/protocols/alibaba-responses.d.ts +20 -3
  8. package/dist/protocols/fal-images.d.ts +2 -0
  9. package/dist/protocols/fal-images.js +1 -0
  10. package/dist/protocols/meta-responses.d.ts +40 -6
  11. package/dist/protocols/meta-responses.js +1 -1
  12. package/dist/protocols/minimax-images.d.ts +25 -0
  13. package/dist/protocols/minimax-images.js +150 -0
  14. package/dist/protocols/open-responses.d.ts +182 -27
  15. package/dist/protocols/open-responses.js +108 -36
  16. package/dist/protocols/openai-chat.d.ts +438 -46
  17. package/dist/protocols/openai-chat.js +121 -39
  18. package/dist/protocols/openai-compatible-chat.d.ts +35 -4
  19. package/dist/protocols/openai-compatible-responses.d.ts +20 -3
  20. package/dist/protocols/openai-freeform.d.ts +47 -0
  21. package/dist/protocols/openai-freeform.js +54 -0
  22. package/dist/protocols/openai-images.js +8 -2
  23. package/dist/protocols/openai-responses.d.ts +120 -18
  24. package/dist/protocols/openai-responses.js +17 -8
  25. package/dist/protocols/venice-chat.d.ts +39 -4
  26. package/dist/protocols/venice-chat.js +1 -1
  27. package/dist/protocols/xai-images.d.ts +1 -0
  28. package/dist/protocols/xai-images.js +2 -4
  29. package/dist/protocols/xai-responses.d.ts +20 -3
  30. package/dist/protocols/xai-responses.js +2 -1
  31. package/dist/protocols/zai-chat.d.ts +39 -4
  32. package/dist/providers/alibaba.d.ts +55 -7
  33. package/dist/providers/amazon-bedrock-mantle.d.ts +55 -7
  34. package/dist/providers/azure.d.ts +75 -10
  35. package/dist/providers/baseten.d.ts +70 -8
  36. package/dist/providers/cerebras.d.ts +70 -8
  37. package/dist/providers/cloudflare-ai-gateway.d.ts +110 -14
  38. package/dist/providers/cloudflare-workers-ai.d.ts +70 -8
  39. package/dist/providers/cohere.d.ts +70 -8
  40. package/dist/providers/deepinfra.d.ts +70 -8
  41. package/dist/providers/deepseek.d.ts +70 -8
  42. package/dist/providers/digitalocean.d.ts +109 -12
  43. package/dist/providers/fireworks.d.ts +70 -8
  44. package/dist/providers/google-vertex-chat.d.ts +35 -4
  45. package/dist/providers/google-vertex-responses.d.ts +20 -3
  46. package/dist/providers/groq.d.ts +74 -8
  47. package/dist/providers/meta.d.ts +55 -7
  48. package/dist/providers/minimax/images.d.ts +3 -0
  49. package/dist/providers/minimax/images.js +1 -0
  50. package/dist/providers/minimax.d.ts +62 -8
  51. package/dist/providers/minimax.js +22 -9
  52. package/dist/providers/moonshot.d.ts +55 -7
  53. package/dist/providers/openai-compatible-responses.d.ts +20 -3
  54. package/dist/providers/openai-compatible.d.ts +35 -4
  55. package/dist/providers/openai-compatible.js +9 -2
  56. package/dist/providers/openai.d.ts +55 -7
  57. package/dist/providers/openrouter.d.ts +144 -16
  58. package/dist/providers/togetherai.d.ts +70 -8
  59. package/dist/providers/venice.d.ts +35 -4
  60. package/dist/providers/xai.d.ts +35 -4
  61. package/dist/providers/zai-coding-plan.d.ts +55 -7
  62. package/dist/providers/zai.d.ts +35 -4
  63. package/dist/schema/messages.d.ts +35 -1
  64. package/dist/schema/messages.js +20 -0
  65. package/dist/tool.d.ts +12 -1
  66. package/dist/tool.js +10 -2
  67. package/package.json +7 -3
@@ -100,7 +100,14 @@ export declare const routes: (Route<{
100
100
  readonly ttl?: string | undefined;
101
101
  } | undefined;
102
102
  }[] | null;
103
- readonly tool_calls?: readonly {
103
+ readonly tool_calls?: readonly ({
104
+ readonly id: string;
105
+ readonly type: "custom";
106
+ readonly custom: {
107
+ readonly name: string;
108
+ readonly input: string;
109
+ };
110
+ } | {
104
111
  readonly id: string;
105
112
  readonly type: "function";
106
113
  readonly function: {
@@ -112,13 +119,13 @@ export declare const routes: (Route<{
112
119
  readonly thought_signature: string;
113
120
  };
114
121
  } | undefined;
115
- }[] | undefined;
122
+ })[] | undefined;
116
123
  readonly reasoning_content?: string | undefined;
117
124
  readonly reasoning?: string | undefined;
118
125
  readonly reasoning_text?: string | undefined;
119
126
  readonly reasoning_details?: unknown;
120
127
  })[];
121
- readonly tools?: readonly {
128
+ readonly tools?: readonly ({
122
129
  readonly type: "function";
123
130
  readonly function: {
124
131
  readonly name: string;
@@ -132,12 +139,36 @@ export declare const routes: (Route<{
132
139
  readonly type: "ephemeral";
133
140
  readonly ttl?: string | undefined;
134
141
  } | undefined;
135
- }[] | undefined;
142
+ } | {
143
+ readonly type: "custom";
144
+ readonly custom: {
145
+ readonly name: string;
146
+ readonly description: string;
147
+ readonly format: {
148
+ readonly type: "text";
149
+ } | {
150
+ readonly type: "grammar";
151
+ readonly grammar: {
152
+ readonly syntax: "lark" | "regex";
153
+ readonly definition: string;
154
+ };
155
+ };
156
+ };
157
+ readonly cache_control?: {
158
+ readonly type: "ephemeral";
159
+ readonly ttl?: string | undefined;
160
+ } | undefined;
161
+ })[] | undefined;
136
162
  readonly tool_choice?: "auto" | "none" | "required" | {
137
163
  readonly type: "function";
138
164
  readonly function: {
139
165
  readonly name: string;
140
166
  };
167
+ } | {
168
+ readonly type: "custom";
169
+ readonly custom: {
170
+ readonly name: string;
171
+ };
141
172
  } | undefined;
142
173
  readonly stream: true;
143
174
  readonly stream_options?: {
@@ -498,7 +529,7 @@ export declare const routes: (Route<{
498
529
  readonly role: "developer";
499
530
  readonly content: string;
500
531
  } | {
501
- readonly type: "function_call_output";
532
+ readonly type: "custom_tool_call_output" | "function_call_output";
502
533
  readonly call_id: string;
503
534
  readonly output: string | readonly ({
504
535
  readonly type: "input_text";
@@ -568,6 +599,12 @@ export declare const routes: (Route<{
568
599
  readonly name: string;
569
600
  readonly namespace?: string | undefined;
570
601
  readonly arguments: string;
602
+ } | {
603
+ readonly type: "custom_tool_call";
604
+ readonly id?: string | undefined;
605
+ readonly call_id: string;
606
+ readonly name: string;
607
+ readonly input: string;
571
608
  } | {
572
609
  readonly [x: string]: unknown;
573
610
  readonly type: "web_search_call";
@@ -612,6 +649,17 @@ export declare const routes: (Route<{
612
649
  })[];
613
650
  readonly instructions?: string | undefined;
614
651
  readonly tools?: readonly ({
652
+ readonly type: "custom";
653
+ readonly name: string;
654
+ readonly description: string;
655
+ readonly format: {
656
+ readonly type: "text";
657
+ } | {
658
+ readonly type: "grammar";
659
+ readonly syntax: "lark" | "regex";
660
+ readonly definition: string;
661
+ };
662
+ } | {
615
663
  readonly type: "function";
616
664
  readonly name: string;
617
665
  readonly description: string;
@@ -624,13 +672,13 @@ export declare const routes: (Route<{
624
672
  readonly type: string;
625
673
  })[] | undefined;
626
674
  readonly tool_choice?: "auto" | "none" | "required" | {
627
- readonly type: "function";
675
+ readonly type: "custom" | "function";
628
676
  readonly name: string;
629
677
  } | {
630
678
  readonly type: "allowed_tools";
631
679
  readonly mode: "auto" | "none" | "required";
632
680
  readonly tools: readonly {
633
- readonly type: "function";
681
+ readonly type: "custom" | "function";
634
682
  readonly name: string;
635
683
  }[];
636
684
  } | undefined;
@@ -353,7 +353,7 @@ export declare const routes: (Route<{
353
353
  readonly role: "developer";
354
354
  readonly content: string;
355
355
  } | {
356
- readonly type: "function_call_output";
356
+ readonly type: "custom_tool_call_output" | "function_call_output";
357
357
  readonly call_id: string;
358
358
  readonly output: string | readonly ({
359
359
  readonly type: "input_text";
@@ -423,6 +423,12 @@ export declare const routes: (Route<{
423
423
  readonly name: string;
424
424
  readonly namespace?: string | undefined;
425
425
  readonly arguments: string;
426
+ } | {
427
+ readonly type: "custom_tool_call";
428
+ readonly id?: string | undefined;
429
+ readonly call_id: string;
430
+ readonly name: string;
431
+ readonly input: string;
426
432
  } | {
427
433
  readonly [x: string]: unknown;
428
434
  readonly type: "web_search_call";
@@ -467,6 +473,17 @@ export declare const routes: (Route<{
467
473
  })[];
468
474
  readonly instructions?: string | undefined;
469
475
  readonly tools?: readonly ({
476
+ readonly type: "custom";
477
+ readonly name: string;
478
+ readonly description: string;
479
+ readonly format: {
480
+ readonly type: "text";
481
+ } | {
482
+ readonly type: "grammar";
483
+ readonly syntax: "lark" | "regex";
484
+ readonly definition: string;
485
+ };
486
+ } | {
470
487
  readonly type: "function";
471
488
  readonly name: string;
472
489
  readonly description: string;
@@ -479,13 +496,13 @@ export declare const routes: (Route<{
479
496
  readonly type: string;
480
497
  })[] | undefined;
481
498
  readonly tool_choice?: "auto" | "none" | "required" | {
482
- readonly type: "function";
499
+ readonly type: "custom" | "function";
483
500
  readonly name: string;
484
501
  } | {
485
502
  readonly type: "allowed_tools";
486
503
  readonly mode: "auto" | "none" | "required";
487
504
  readonly tools: readonly {
488
- readonly type: "function";
505
+ readonly type: "custom" | "function";
489
506
  readonly name: string;
490
507
  }[];
491
508
  } | undefined;
@@ -593,7 +610,14 @@ export declare const routes: (Route<{
593
610
  readonly ttl?: string | undefined;
594
611
  } | undefined;
595
612
  }[] | null;
596
- readonly tool_calls?: readonly {
613
+ readonly tool_calls?: readonly ({
614
+ readonly id: string;
615
+ readonly type: "custom";
616
+ readonly custom: {
617
+ readonly name: string;
618
+ readonly input: string;
619
+ };
620
+ } | {
597
621
  readonly id: string;
598
622
  readonly type: "function";
599
623
  readonly function: {
@@ -605,13 +629,13 @@ export declare const routes: (Route<{
605
629
  readonly thought_signature: string;
606
630
  };
607
631
  } | undefined;
608
- }[] | undefined;
632
+ })[] | undefined;
609
633
  readonly reasoning_content?: string | undefined;
610
634
  readonly reasoning?: string | undefined;
611
635
  readonly reasoning_text?: string | undefined;
612
636
  readonly reasoning_details?: unknown;
613
637
  })[];
614
- readonly tools?: readonly {
638
+ readonly tools?: readonly ({
615
639
  readonly type: "function";
616
640
  readonly function: {
617
641
  readonly name: string;
@@ -625,12 +649,36 @@ export declare const routes: (Route<{
625
649
  readonly type: "ephemeral";
626
650
  readonly ttl?: string | undefined;
627
651
  } | undefined;
628
- }[] | undefined;
652
+ } | {
653
+ readonly type: "custom";
654
+ readonly custom: {
655
+ readonly name: string;
656
+ readonly description: string;
657
+ readonly format: {
658
+ readonly type: "text";
659
+ } | {
660
+ readonly type: "grammar";
661
+ readonly grammar: {
662
+ readonly syntax: "lark" | "regex";
663
+ readonly definition: string;
664
+ };
665
+ };
666
+ };
667
+ readonly cache_control?: {
668
+ readonly type: "ephemeral";
669
+ readonly ttl?: string | undefined;
670
+ } | undefined;
671
+ })[] | undefined;
629
672
  readonly tool_choice?: "auto" | "none" | "required" | {
630
673
  readonly type: "function";
631
674
  readonly function: {
632
675
  readonly name: string;
633
676
  };
677
+ } | {
678
+ readonly type: "custom";
679
+ readonly custom: {
680
+ readonly name: string;
681
+ };
634
682
  } | undefined;
635
683
  readonly stream: true;
636
684
  readonly stream_options?: {
@@ -36,7 +36,7 @@ declare const responsesRoute: Route<{
36
36
  readonly role: "developer";
37
37
  readonly content: string;
38
38
  } | {
39
- readonly type: "function_call_output";
39
+ readonly type: "custom_tool_call_output" | "function_call_output";
40
40
  readonly call_id: string;
41
41
  readonly output: string | readonly ({
42
42
  readonly type: "input_text";
@@ -106,6 +106,12 @@ declare const responsesRoute: Route<{
106
106
  readonly name: string;
107
107
  readonly namespace?: string | undefined;
108
108
  readonly arguments: string;
109
+ } | {
110
+ readonly type: "custom_tool_call";
111
+ readonly id?: string | undefined;
112
+ readonly call_id: string;
113
+ readonly name: string;
114
+ readonly input: string;
109
115
  } | {
110
116
  readonly [x: string]: unknown;
111
117
  readonly type: "web_search_call";
@@ -177,6 +183,17 @@ declare const responsesRoute: Route<{
177
183
  readonly ttl?: string | undefined;
178
184
  } | undefined;
179
185
  readonly tools?: readonly ({
186
+ readonly type: "custom";
187
+ readonly name: string;
188
+ readonly description: string;
189
+ readonly format: {
190
+ readonly type: "text";
191
+ } | {
192
+ readonly type: "grammar";
193
+ readonly syntax: "lark" | "regex";
194
+ readonly definition: string;
195
+ };
196
+ } | {
180
197
  readonly type: "namespace";
181
198
  readonly name: string;
182
199
  readonly description: string;
@@ -209,13 +226,13 @@ declare const responsesRoute: Route<{
209
226
  readonly size?: string | undefined;
210
227
  })[] | undefined;
211
228
  readonly tool_choice?: "auto" | "none" | "required" | {
212
- readonly type: "function";
229
+ readonly type: "custom" | "function";
213
230
  readonly name: string;
214
231
  } | {
215
232
  readonly type: "allowed_tools";
216
233
  readonly mode: "auto" | "none" | "required";
217
234
  readonly tools: readonly {
218
- readonly type: "function";
235
+ readonly type: "custom" | "function";
219
236
  readonly name: string;
220
237
  }[];
221
238
  } | {
@@ -311,7 +328,14 @@ export declare const routes: (Route<{
311
328
  readonly ttl?: string | undefined;
312
329
  } | undefined;
313
330
  }[] | null;
314
- readonly tool_calls?: readonly {
331
+ readonly tool_calls?: readonly ({
332
+ readonly id: string;
333
+ readonly type: "custom";
334
+ readonly custom: {
335
+ readonly name: string;
336
+ readonly input: string;
337
+ };
338
+ } | {
315
339
  readonly id: string;
316
340
  readonly type: "function";
317
341
  readonly function: {
@@ -323,13 +347,13 @@ export declare const routes: (Route<{
323
347
  readonly thought_signature: string;
324
348
  };
325
349
  } | undefined;
326
- }[] | undefined;
350
+ })[] | undefined;
327
351
  readonly reasoning_content?: string | undefined;
328
352
  readonly reasoning?: string | undefined;
329
353
  readonly reasoning_text?: string | undefined;
330
354
  readonly reasoning_details?: unknown;
331
355
  })[];
332
- readonly tools?: readonly {
356
+ readonly tools?: readonly ({
333
357
  readonly type: "function";
334
358
  readonly function: {
335
359
  readonly name: string;
@@ -343,12 +367,36 @@ export declare const routes: (Route<{
343
367
  readonly type: "ephemeral";
344
368
  readonly ttl?: string | undefined;
345
369
  } | undefined;
346
- }[] | undefined;
370
+ } | {
371
+ readonly type: "custom";
372
+ readonly custom: {
373
+ readonly name: string;
374
+ readonly description: string;
375
+ readonly format: {
376
+ readonly type: "text";
377
+ } | {
378
+ readonly type: "grammar";
379
+ readonly grammar: {
380
+ readonly syntax: "lark" | "regex";
381
+ readonly definition: string;
382
+ };
383
+ };
384
+ };
385
+ readonly cache_control?: {
386
+ readonly type: "ephemeral";
387
+ readonly ttl?: string | undefined;
388
+ } | undefined;
389
+ })[] | undefined;
347
390
  readonly tool_choice?: "auto" | "none" | "required" | {
348
391
  readonly type: "function";
349
392
  readonly function: {
350
393
  readonly name: string;
351
394
  };
395
+ } | {
396
+ readonly type: "custom";
397
+ readonly custom: {
398
+ readonly name: string;
399
+ };
352
400
  } | undefined;
353
401
  readonly stream: true;
354
402
  readonly stream_options?: {
@@ -393,7 +441,7 @@ export declare const routes: (Route<{
393
441
  readonly role: "developer";
394
442
  readonly content: string;
395
443
  } | {
396
- readonly type: "function_call_output";
444
+ readonly type: "custom_tool_call_output" | "function_call_output";
397
445
  readonly call_id: string;
398
446
  readonly output: string | readonly ({
399
447
  readonly type: "input_text";
@@ -463,6 +511,12 @@ export declare const routes: (Route<{
463
511
  readonly name: string;
464
512
  readonly namespace?: string | undefined;
465
513
  readonly arguments: string;
514
+ } | {
515
+ readonly type: "custom_tool_call";
516
+ readonly id?: string | undefined;
517
+ readonly call_id: string;
518
+ readonly name: string;
519
+ readonly input: string;
466
520
  } | {
467
521
  readonly [x: string]: unknown;
468
522
  readonly type: "web_search_call";
@@ -534,6 +588,17 @@ export declare const routes: (Route<{
534
588
  readonly ttl?: string | undefined;
535
589
  } | undefined;
536
590
  readonly tools?: readonly ({
591
+ readonly type: "custom";
592
+ readonly name: string;
593
+ readonly description: string;
594
+ readonly format: {
595
+ readonly type: "text";
596
+ } | {
597
+ readonly type: "grammar";
598
+ readonly syntax: "lark" | "regex";
599
+ readonly definition: string;
600
+ };
601
+ } | {
537
602
  readonly type: "namespace";
538
603
  readonly name: string;
539
604
  readonly description: string;
@@ -566,13 +631,13 @@ export declare const routes: (Route<{
566
631
  readonly size?: string | undefined;
567
632
  })[] | undefined;
568
633
  readonly tool_choice?: "auto" | "none" | "required" | {
569
- readonly type: "function";
634
+ readonly type: "custom" | "function";
570
635
  readonly name: string;
571
636
  } | {
572
637
  readonly type: "allowed_tools";
573
638
  readonly mode: "auto" | "none" | "required";
574
639
  readonly tools: readonly {
575
- readonly type: "function";
640
+ readonly type: "custom" | "function";
576
641
  readonly name: string;
577
642
  }[];
578
643
  } | {
@@ -92,7 +92,14 @@ export declare const route: Route<{
92
92
  readonly ttl?: string | undefined;
93
93
  } | undefined;
94
94
  }[] | null;
95
- readonly tool_calls?: readonly {
95
+ readonly tool_calls?: readonly ({
96
+ readonly id: string;
97
+ readonly type: "custom";
98
+ readonly custom: {
99
+ readonly name: string;
100
+ readonly input: string;
101
+ };
102
+ } | {
96
103
  readonly id: string;
97
104
  readonly type: "function";
98
105
  readonly function: {
@@ -104,13 +111,13 @@ export declare const route: Route<{
104
111
  readonly thought_signature: string;
105
112
  };
106
113
  } | undefined;
107
- }[] | undefined;
114
+ })[] | undefined;
108
115
  readonly reasoning_content?: string | undefined;
109
116
  readonly reasoning?: string | undefined;
110
117
  readonly reasoning_text?: string | undefined;
111
118
  readonly reasoning_details?: unknown;
112
119
  })[];
113
- readonly tools?: readonly {
120
+ readonly tools?: readonly ({
114
121
  readonly type: "function";
115
122
  readonly function: {
116
123
  readonly name: string;
@@ -124,12 +131,36 @@ export declare const route: Route<{
124
131
  readonly type: "ephemeral";
125
132
  readonly ttl?: string | undefined;
126
133
  } | undefined;
127
- }[] | undefined;
134
+ } | {
135
+ readonly type: "custom";
136
+ readonly custom: {
137
+ readonly name: string;
138
+ readonly description: string;
139
+ readonly format: {
140
+ readonly type: "text";
141
+ } | {
142
+ readonly type: "grammar";
143
+ readonly grammar: {
144
+ readonly syntax: "lark" | "regex";
145
+ readonly definition: string;
146
+ };
147
+ };
148
+ };
149
+ readonly cache_control?: {
150
+ readonly type: "ephemeral";
151
+ readonly ttl?: string | undefined;
152
+ } | undefined;
153
+ })[] | undefined;
128
154
  readonly tool_choice?: "auto" | "none" | "required" | {
129
155
  readonly type: "function";
130
156
  readonly function: {
131
157
  readonly name: string;
132
158
  };
159
+ } | {
160
+ readonly type: "custom";
161
+ readonly custom: {
162
+ readonly name: string;
163
+ };
133
164
  } | undefined;
134
165
  readonly stream: true;
135
166
  readonly stream_options?: {
@@ -235,7 +266,14 @@ export declare const routes: Route<{
235
266
  readonly ttl?: string | undefined;
236
267
  } | undefined;
237
268
  }[] | null;
238
- readonly tool_calls?: readonly {
269
+ readonly tool_calls?: readonly ({
270
+ readonly id: string;
271
+ readonly type: "custom";
272
+ readonly custom: {
273
+ readonly name: string;
274
+ readonly input: string;
275
+ };
276
+ } | {
239
277
  readonly id: string;
240
278
  readonly type: "function";
241
279
  readonly function: {
@@ -247,13 +285,13 @@ export declare const routes: Route<{
247
285
  readonly thought_signature: string;
248
286
  };
249
287
  } | undefined;
250
- }[] | undefined;
288
+ })[] | undefined;
251
289
  readonly reasoning_content?: string | undefined;
252
290
  readonly reasoning?: string | undefined;
253
291
  readonly reasoning_text?: string | undefined;
254
292
  readonly reasoning_details?: unknown;
255
293
  })[];
256
- readonly tools?: readonly {
294
+ readonly tools?: readonly ({
257
295
  readonly type: "function";
258
296
  readonly function: {
259
297
  readonly name: string;
@@ -267,12 +305,36 @@ export declare const routes: Route<{
267
305
  readonly type: "ephemeral";
268
306
  readonly ttl?: string | undefined;
269
307
  } | undefined;
270
- }[] | undefined;
308
+ } | {
309
+ readonly type: "custom";
310
+ readonly custom: {
311
+ readonly name: string;
312
+ readonly description: string;
313
+ readonly format: {
314
+ readonly type: "text";
315
+ } | {
316
+ readonly type: "grammar";
317
+ readonly grammar: {
318
+ readonly syntax: "lark" | "regex";
319
+ readonly definition: string;
320
+ };
321
+ };
322
+ };
323
+ readonly cache_control?: {
324
+ readonly type: "ephemeral";
325
+ readonly ttl?: string | undefined;
326
+ } | undefined;
327
+ })[] | undefined;
271
328
  readonly tool_choice?: "auto" | "none" | "required" | {
272
329
  readonly type: "function";
273
330
  readonly function: {
274
331
  readonly name: string;
275
332
  };
333
+ } | {
334
+ readonly type: "custom";
335
+ readonly custom: {
336
+ readonly name: string;
337
+ };
276
338
  } | undefined;
277
339
  readonly stream: true;
278
340
  readonly stream_options?: {