@opencode/ai 0.0.0-dev-20498 → 0.0.0-dev-20501

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 (53) hide show
  1. package/README.md +25 -0
  2. package/dist/protocols/alibaba-chat.d.ts +3 -3
  3. package/dist/protocols/alibaba-responses.d.ts +16 -12
  4. package/dist/protocols/alibaba-responses.js +3 -5
  5. package/dist/protocols/google-interactions.d.ts +236 -0
  6. package/dist/protocols/google-interactions.js +478 -0
  7. package/dist/protocols/index.d.ts +1 -0
  8. package/dist/protocols/index.js +1 -0
  9. package/dist/protocols/meta-responses.d.ts +31 -58
  10. package/dist/protocols/meta-responses.js +5 -24
  11. package/dist/protocols/mistral-chat.d.ts +1 -1
  12. package/dist/protocols/open-responses.d.ts +406 -91
  13. package/dist/protocols/open-responses.js +12 -6
  14. package/dist/protocols/openai-chat.d.ts +5 -5
  15. package/dist/protocols/openai-compatible-chat.d.ts +1 -1
  16. package/dist/protocols/openai-compatible-responses.d.ts +16 -4
  17. package/dist/protocols/openai-responses.d.ts +87 -223
  18. package/dist/protocols/openai-responses.js +3 -10
  19. package/dist/protocols/xai-responses.d.ts +18 -21
  20. package/dist/protocols/xai-responses.js +2 -8
  21. package/dist/protocols/zai-chat.d.ts +3 -3
  22. package/dist/providers/alibaba.d.ts +17 -13
  23. package/dist/providers/amazon-bedrock-mantle.d.ts +17 -5
  24. package/dist/providers/azure.d.ts +13 -61
  25. package/dist/providers/baseten.d.ts +2 -2
  26. package/dist/providers/cerebras.d.ts +2 -2
  27. package/dist/providers/cloudflare-ai-gateway.d.ts +14 -62
  28. package/dist/providers/cloudflare-workers-ai.d.ts +2 -2
  29. package/dist/providers/cohere.d.ts +2 -2
  30. package/dist/providers/deepinfra.d.ts +2 -2
  31. package/dist/providers/deepseek.d.ts +2 -2
  32. package/dist/providers/digitalocean.d.ts +5 -5
  33. package/dist/providers/fireworks.d.ts +2 -2
  34. package/dist/providers/google/interactions.d.ts +7 -0
  35. package/dist/providers/google/interactions.js +8 -0
  36. package/dist/providers/google-vertex-chat.d.ts +1 -1
  37. package/dist/providers/google-vertex-responses.d.ts +16 -4
  38. package/dist/providers/google.d.ts +94 -3
  39. package/dist/providers/google.js +8 -1
  40. package/dist/providers/groq.d.ts +4 -4
  41. package/dist/providers/meta.d.ts +15 -28
  42. package/dist/providers/minimax.d.ts +17 -5
  43. package/dist/providers/moonshot.d.ts +17 -5
  44. package/dist/providers/openai-compatible-responses.d.ts +16 -4
  45. package/dist/providers/openai-compatible.d.ts +1 -1
  46. package/dist/providers/openai.d.ts +7 -31
  47. package/dist/providers/openrouter.d.ts +5 -5
  48. package/dist/providers/togetherai.d.ts +2 -2
  49. package/dist/providers/xai.d.ts +1 -1
  50. package/dist/providers/zai-coding-plan.d.ts +17 -5
  51. package/dist/providers/zai.d.ts +1 -1
  52. package/dist/route/client.js +2 -5
  53. package/package.json +3 -3
@@ -81,14 +81,8 @@ const OpenAIResponsesToolChoice = Schema.Union([
81
81
  OpenResponses.ToolChoice,
82
82
  Schema.Struct({ type: Schema.tag("image_generation") }),
83
83
  ]);
84
- const OpenAIResponsesInputItem = Schema.Union([
85
- OpenResponses.InputItem,
86
- OpenAIResponsesHostedToolItem,
87
- OpenResponses.ConfigurationUpdate,
88
- ]);
89
84
  const OpenAIResponsesCoreFields = {
90
85
  ...OpenResponses.coreFields,
91
- input: Schema.Array(OpenAIResponsesInputItem),
92
86
  tools: optionalArray(OpenAIResponsesTools),
93
87
  tool_choice: Schema.optional(OpenAIResponsesToolChoice),
94
88
  context_management: Schema.optional(Schema.Array(Schema.Struct({
@@ -104,7 +98,7 @@ const OpenAIResponsesBody = Schema.Struct({
104
98
  export const CompactionTrigger = Schema.Struct({ type: Schema.Literal("compaction_trigger") });
105
99
  const CheckpointBody = Schema.Struct({
106
100
  ...OpenAIResponsesBody.fields,
107
- input: Schema.Array(Schema.Union([OpenAIResponsesInputItem, CompactionTrigger])),
101
+ input: Schema.Array(Schema.Union([OpenResponses.InputItem, CompactionTrigger])),
108
102
  });
109
103
  const adapter = {
110
104
  id: ADAPTER,
@@ -164,12 +158,11 @@ const lowerToolChoice = (toolChoice, tools) => ProviderShared.matchToolChoice(NA
164
158
  ? { type: "image_generation" }
165
159
  : { type: "function", name },
166
160
  });
167
- const decodeBody = ProviderShared.validateWith(Schema.decodeUnknownEffect(OpenAIResponsesBody));
168
161
  const fromRequest = Effect.fn("OpenAIResponses.fromRequest")(function* (request) {
169
162
  const management = yield* ProviderShared.validateWith(Schema.decodeUnknownEffect(Schema.UndefinedOr(ContextManagement)))(request.providerOptions?.contextManagement);
170
163
  const options = OpenResponsesOptions.resolve(request);
171
164
  const updates = resolveEffortUpdates(request, options.reasoningEffort);
172
- return yield* decodeBody({
165
+ return {
173
166
  ...(yield* OpenResponses.lowerConversation(updates.request, adapter)),
174
167
  ...OpenResponses.lowerGeneration(request, { ...options, reasoningEffort: updates.effort }),
175
168
  context_management: management?.map((edit) => ({ type: edit.type, compact_threshold: edit.compactThreshold })),
@@ -178,7 +171,7 @@ const fromRequest = Effect.fn("OpenAIResponses.fromRequest")(function* (request)
178
171
  ? undefined
179
172
  : (OpenResponses.allowedToolChoice(request) ??
180
173
  (request.toolChoice ? yield* lowerToolChoice(request.toolChoice, request.tools) : undefined)),
181
- });
174
+ };
182
175
  });
183
176
  const checkpointBody = {
184
177
  schema: CheckpointBody,
@@ -38,6 +38,15 @@ export declare const protocol: Protocol<{
38
38
  readonly error?: unknown;
39
39
  readonly arguments?: string | undefined;
40
40
  readonly server_label?: string | undefined;
41
+ } | {
42
+ readonly type: "configuration_update";
43
+ readonly reasoning: {
44
+ readonly effort: import("../schema/options.js").ReasoningEffort;
45
+ };
46
+ } | {
47
+ readonly [x: string]: unknown;
48
+ readonly type: string;
49
+ readonly id: string;
41
50
  } | {
42
51
  readonly type: "reasoning";
43
52
  readonly summary: readonly {
@@ -114,21 +123,6 @@ export declare const protocol: Protocol<{
114
123
  readonly type: "input_video";
115
124
  readonly video_url: string;
116
125
  })[];
117
- } | {
118
- readonly [x: string]: unknown;
119
- readonly id: string;
120
- readonly type: "x_search_call";
121
- readonly status?: string | undefined;
122
- readonly action?: {
123
- readonly [x: string]: unknown;
124
- } | null | undefined;
125
- } | {
126
- readonly [x: string]: unknown;
127
- readonly id: string;
128
- readonly type: "image_generation_call";
129
- readonly status?: string | undefined;
130
- readonly error?: unknown;
131
- readonly result?: unknown;
132
126
  })[];
133
127
  readonly model: string;
134
128
  readonly stream: true;
@@ -140,7 +134,10 @@ export declare const protocol: Protocol<{
140
134
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
141
135
  readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
142
136
  } | undefined;
143
- readonly tools?: readonly {
137
+ readonly tools?: readonly ({
138
+ readonly [x: string]: unknown;
139
+ readonly type: string;
140
+ } | {
144
141
  readonly type: "function";
145
142
  readonly description: string;
146
143
  readonly name: string;
@@ -148,7 +145,7 @@ export declare const protocol: Protocol<{
148
145
  readonly [x: string]: unknown;
149
146
  };
150
147
  readonly strict?: boolean | undefined;
151
- }[] | undefined;
148
+ })[] | undefined;
152
149
  readonly text?: {
153
150
  readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
154
151
  } | undefined;
@@ -168,9 +165,10 @@ export declare const protocol: Protocol<{
168
165
  readonly top_p?: number | undefined;
169
166
  readonly frequency_penalty?: number | undefined;
170
167
  readonly presence_penalty?: number | undefined;
168
+ readonly store?: boolean | undefined;
169
+ readonly max_output_tokens?: number | undefined;
171
170
  readonly prompt_cache_key?: string | undefined;
172
171
  readonly parallel_tool_calls?: boolean | undefined;
173
- readonly store?: boolean | undefined;
174
172
  readonly include?: readonly import("./utils/open-responses-options.js").ResponseIncludable[] | undefined;
175
173
  readonly truncation?: "auto" | "disabled" | undefined;
176
174
  readonly stream_options?: {
@@ -178,7 +176,6 @@ export declare const protocol: Protocol<{
178
176
  } | undefined;
179
177
  readonly safety_identifier?: string | undefined;
180
178
  readonly top_logprobs?: number | undefined;
181
- readonly max_output_tokens?: number | undefined;
182
179
  readonly max_tool_calls?: number | undefined;
183
180
  }, string, {
184
181
  readonly [x: string]: unknown;
@@ -198,8 +195,8 @@ export declare const protocol: Protocol<{
198
195
  readonly name?: string | undefined;
199
196
  readonly namespace?: string | undefined;
200
197
  readonly arguments?: string | undefined;
201
- readonly encrypted_content?: string | null | undefined;
202
198
  readonly call_id?: string | undefined;
199
+ readonly encrypted_content?: string | null | undefined;
203
200
  }[] | undefined;
204
201
  readonly error?: unknown;
205
202
  readonly usage?: {
@@ -226,8 +223,8 @@ export declare const protocol: Protocol<{
226
223
  readonly name?: string | undefined;
227
224
  readonly namespace?: string | undefined;
228
225
  readonly arguments?: string | undefined;
229
- readonly encrypted_content?: string | null | undefined;
230
226
  readonly call_id?: string | undefined;
227
+ readonly encrypted_content?: string | null | undefined;
231
228
  } | null | undefined;
232
229
  readonly delta?: string | undefined;
233
230
  readonly arguments?: string | undefined;
@@ -21,17 +21,11 @@ const XAIResponsesHostedToolItem = Schema.Union([
21
21
  error: Schema.optional(Schema.Unknown),
22
22
  }), [JsonObject]),
23
23
  ]);
24
- const XAIResponsesBody = Schema.Struct({
25
- ...OpenResponses.coreFields,
26
- input: Schema.Array(Schema.Union([OpenResponses.InputItem, XAIResponsesHostedToolItem])),
27
- stream: Schema.Literal(true),
28
- });
29
24
  const adapter = {
30
25
  id: ADAPTER,
31
26
  name: NAME,
32
27
  restoreHostedToolItem: (item) => (Schema.is(XAIResponsesHostedToolItem)(item) ? item : undefined),
33
28
  };
34
- const decodeBody = ProviderShared.validateWith(Schema.decodeUnknownEffect(XAIResponsesBody));
35
29
  const fromRequest = Effect.fn("XAIResponses.fromRequest")(function* (request) {
36
30
  if (request.providerOptions?.contextManagement !== undefined)
37
31
  return yield* ProviderShared.unsupportedOperation({
@@ -40,7 +34,7 @@ const fromRequest = Effect.fn("XAIResponses.fromRequest")(function* (request) {
40
34
  route: request.model.route.id,
41
35
  message: "xAI requires explicit compaction through LLMClient.compact; automatic context management is not supported",
42
36
  });
43
- return yield* decodeBody(yield* OpenResponses.fromRequestWithAdapter(request, adapter));
37
+ return yield* OpenResponses.fromRequestWithAdapter(request, adapter);
44
38
  });
45
39
  const HOSTED_TOOLS = {
46
40
  web_search_call: { name: "web_search", input: (item) => item.action ?? {} },
@@ -67,7 +61,7 @@ const step = (state, input) => {
67
61
  export const protocol = Protocol.make({
68
62
  id: ADAPTER,
69
63
  body: {
70
- schema: XAIResponsesBody,
64
+ schema: OpenResponses.OpenResponsesBody,
71
65
  from: fromRequest,
72
66
  },
73
67
  stream: {
@@ -142,9 +142,9 @@ export declare const protocol: Protocol<{
142
142
  readonly top_p?: number | undefined;
143
143
  readonly frequency_penalty?: number | undefined;
144
144
  readonly presence_penalty?: number | undefined;
145
+ readonly store?: boolean | undefined;
145
146
  readonly prompt_cache_key?: string | undefined;
146
147
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
147
- readonly store?: boolean | undefined;
148
148
  readonly stream_options?: {
149
149
  readonly include_usage: boolean;
150
150
  } | undefined;
@@ -165,9 +165,9 @@ export declare const protocol: Protocol<{
165
165
  readonly [x: string]: unknown;
166
166
  readonly cache_read_input_tokens?: number | null | undefined;
167
167
  readonly cached_tokens?: number | null | undefined;
168
+ readonly total_tokens?: number | null | undefined;
168
169
  readonly prompt_tokens?: number | null | undefined;
169
170
  readonly completion_tokens?: number | null | undefined;
170
- readonly total_tokens?: number | null | undefined;
171
171
  readonly prompt_tokens_details?: {
172
172
  readonly [x: string]: unknown;
173
173
  readonly cached_tokens?: number | null | undefined;
@@ -206,9 +206,9 @@ export declare const protocol: Protocol<{
206
206
  readonly [x: string]: unknown;
207
207
  readonly cache_read_input_tokens?: number | null | undefined;
208
208
  readonly cached_tokens?: number | null | undefined;
209
+ readonly total_tokens?: number | null | undefined;
209
210
  readonly prompt_tokens?: number | null | undefined;
210
211
  readonly completion_tokens?: number | null | undefined;
211
- readonly total_tokens?: number | null | undefined;
212
212
  readonly prompt_tokens_details?: {
213
213
  readonly [x: string]: unknown;
214
214
  readonly cached_tokens?: number | null | undefined;
@@ -141,10 +141,10 @@ export declare const routes: (Route<{
141
141
  readonly top_k?: number | undefined;
142
142
  readonly frequency_penalty?: number | undefined;
143
143
  readonly presence_penalty?: number | undefined;
144
+ readonly store?: boolean | undefined;
144
145
  readonly prompt_cache_key?: string | undefined;
145
146
  readonly parallel_tool_calls?: boolean | undefined;
146
147
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
147
- readonly store?: boolean | undefined;
148
148
  readonly stream_options?: {
149
149
  readonly include_usage: boolean;
150
150
  } | undefined;
@@ -464,6 +464,15 @@ export declare const routes: (Route<{
464
464
  readonly error?: unknown;
465
465
  readonly arguments?: string | undefined;
466
466
  readonly server_label?: string | undefined;
467
+ } | {
468
+ readonly type: "configuration_update";
469
+ readonly reasoning: {
470
+ readonly effort: import("../schema/options.js").ReasoningEffort;
471
+ };
472
+ } | {
473
+ readonly [x: string]: unknown;
474
+ readonly type: string;
475
+ readonly id: string;
467
476
  } | {
468
477
  readonly type: "reasoning";
469
478
  readonly summary: readonly {
@@ -540,12 +549,6 @@ export declare const routes: (Route<{
540
549
  readonly type: "input_video";
541
550
  readonly video_url: string;
542
551
  })[];
543
- } | {
544
- readonly [x: string]: unknown;
545
- readonly id: string;
546
- readonly type: "web_extractor_call";
547
- readonly urls?: readonly string[] | undefined;
548
- readonly goal?: string | undefined;
549
552
  })[];
550
553
  readonly model: string;
551
554
  readonly stream: true;
@@ -558,6 +561,9 @@ export declare const routes: (Route<{
558
561
  readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
559
562
  } | undefined;
560
563
  readonly tools?: readonly ({
564
+ readonly [x: string]: unknown;
565
+ readonly type: string;
566
+ } | {
561
567
  readonly type: "function";
562
568
  readonly description: string;
563
569
  readonly name: string;
@@ -565,8 +571,6 @@ export declare const routes: (Route<{
565
571
  readonly [x: string]: unknown;
566
572
  };
567
573
  readonly strict?: boolean | undefined;
568
- } | {
569
- readonly type: "web_search" | "code_interpreter" | "web_extractor";
570
574
  })[] | undefined;
571
575
  readonly text?: {
572
576
  readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
@@ -587,9 +591,10 @@ export declare const routes: (Route<{
587
591
  readonly top_p?: number | undefined;
588
592
  readonly frequency_penalty?: number | undefined;
589
593
  readonly presence_penalty?: number | undefined;
594
+ readonly store?: boolean | undefined;
595
+ readonly max_output_tokens?: number | undefined;
590
596
  readonly prompt_cache_key?: string | undefined;
591
597
  readonly parallel_tool_calls?: boolean | undefined;
592
- readonly store?: boolean | undefined;
593
598
  readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
594
599
  readonly truncation?: "auto" | "disabled" | undefined;
595
600
  readonly stream_options?: {
@@ -597,7 +602,6 @@ export declare const routes: (Route<{
597
602
  } | undefined;
598
603
  readonly safety_identifier?: string | undefined;
599
604
  readonly top_logprobs?: number | undefined;
600
- readonly max_output_tokens?: number | undefined;
601
605
  readonly max_tool_calls?: number | undefined;
602
606
  readonly previous_response_id?: string | undefined;
603
607
  readonly conversation?: string | undefined;
@@ -657,8 +661,8 @@ export declare const configure: (input: Config) => {
657
661
  }, import("../route/client.js").CompactionOperations | undefined>;
658
662
  messages: (id: string | ModelID) => import("../schema/options.js").LanguageModel<AlibabaMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
659
663
  responses: (id: string | ModelID) => import("../schema/options.js").LanguageModel<{
660
- readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
661
664
  readonly store?: boolean | undefined;
665
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
662
666
  readonly conversation?: string | undefined;
663
667
  readonly enableThinking?: boolean | undefined;
664
668
  readonly previousResponseId?: string | undefined;
@@ -721,8 +725,8 @@ export declare const provider: {
721
725
  }, import("../route/client.js").CompactionOperations | undefined>;
722
726
  messages: (id: string | ModelID) => import("../schema/options.js").LanguageModel<AlibabaMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
723
727
  responses: (id: string | ModelID) => import("../schema/options.js").LanguageModel<{
724
- readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
725
728
  readonly store?: boolean | undefined;
729
+ readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
726
730
  readonly conversation?: string | undefined;
727
731
  readonly enableThinking?: boolean | undefined;
728
732
  readonly previousResponseId?: string | undefined;
@@ -140,9 +140,9 @@ export declare const routes: (Route<{
140
140
  readonly top_p?: number | undefined;
141
141
  readonly frequency_penalty?: number | undefined;
142
142
  readonly presence_penalty?: number | undefined;
143
+ readonly store?: boolean | undefined;
143
144
  readonly prompt_cache_key?: string | undefined;
144
145
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
145
- readonly store?: boolean | undefined;
146
146
  readonly stream_options?: {
147
147
  readonly include_usage: boolean;
148
148
  } | undefined;
@@ -185,6 +185,15 @@ export declare const routes: (Route<{
185
185
  readonly error?: unknown;
186
186
  readonly arguments?: string | undefined;
187
187
  readonly server_label?: string | undefined;
188
+ } | {
189
+ readonly type: "configuration_update";
190
+ readonly reasoning: {
191
+ readonly effort: import("../schema/options.js").ReasoningEffort;
192
+ };
193
+ } | {
194
+ readonly [x: string]: unknown;
195
+ readonly type: string;
196
+ readonly id: string;
188
197
  } | {
189
198
  readonly type: "reasoning";
190
199
  readonly summary: readonly {
@@ -272,7 +281,10 @@ export declare const routes: (Route<{
272
281
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
273
282
  readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
274
283
  } | undefined;
275
- readonly tools?: readonly {
284
+ readonly tools?: readonly ({
285
+ readonly [x: string]: unknown;
286
+ readonly type: string;
287
+ } | {
276
288
  readonly type: "function";
277
289
  readonly description: string;
278
290
  readonly name: string;
@@ -280,7 +292,7 @@ export declare const routes: (Route<{
280
292
  readonly [x: string]: unknown;
281
293
  };
282
294
  readonly strict?: boolean | undefined;
283
- }[] | undefined;
295
+ })[] | undefined;
284
296
  readonly text?: {
285
297
  readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
286
298
  } | undefined;
@@ -300,9 +312,10 @@ export declare const routes: (Route<{
300
312
  readonly top_p?: number | undefined;
301
313
  readonly frequency_penalty?: number | undefined;
302
314
  readonly presence_penalty?: number | undefined;
315
+ readonly store?: boolean | undefined;
316
+ readonly max_output_tokens?: number | undefined;
303
317
  readonly prompt_cache_key?: string | undefined;
304
318
  readonly parallel_tool_calls?: boolean | undefined;
305
- readonly store?: boolean | undefined;
306
319
  readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
307
320
  readonly truncation?: "auto" | "disabled" | undefined;
308
321
  readonly stream_options?: {
@@ -310,7 +323,6 @@ export declare const routes: (Route<{
310
323
  } | undefined;
311
324
  readonly safety_identifier?: string | undefined;
312
325
  readonly top_logprobs?: number | undefined;
313
- readonly max_output_tokens?: number | undefined;
314
326
  readonly max_tool_calls?: number | undefined;
315
327
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>)[];
316
328
  export declare const configure: (input?: Config) => {
@@ -64,6 +64,10 @@ declare const responsesRoute: Route<{
64
64
  readonly reasoning: {
65
65
  readonly effort: import("../schema/options.js").ReasoningEffort;
66
66
  };
67
+ } | {
68
+ readonly [x: string]: unknown;
69
+ readonly type: string;
70
+ readonly id: string;
67
71
  } | {
68
72
  readonly type: "reasoning";
69
73
  readonly summary: readonly {
@@ -140,34 +144,6 @@ declare const responsesRoute: Route<{
140
144
  readonly type: "input_video";
141
145
  readonly video_url: string;
142
146
  })[];
143
- } | {
144
- readonly [x: string]: unknown;
145
- readonly id: string;
146
- readonly type: "computer_call";
147
- readonly status?: string | undefined;
148
- readonly action?: {
149
- readonly [x: string]: unknown;
150
- } | null | undefined;
151
- readonly call_id?: string | undefined;
152
- readonly pending_safety_checks?: readonly {
153
- readonly [x: string]: unknown;
154
- }[] | undefined;
155
- } | {
156
- readonly [x: string]: unknown;
157
- readonly id: string;
158
- readonly type: "web_search_preview_call";
159
- readonly status?: string | undefined;
160
- readonly action?: {
161
- readonly [x: string]: unknown;
162
- } | null | undefined;
163
- } | {
164
- readonly [x: string]: unknown;
165
- readonly id: string;
166
- readonly type: "image_generation_call";
167
- readonly status?: string | undefined;
168
- readonly result?: string | null | undefined;
169
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
170
- readonly revised_prompt?: string | null | undefined;
171
147
  })[];
172
148
  readonly model: string;
173
149
  readonly stream: true;
@@ -236,9 +212,10 @@ declare const responsesRoute: Route<{
236
212
  readonly top_p?: number | undefined;
237
213
  readonly frequency_penalty?: number | undefined;
238
214
  readonly presence_penalty?: number | undefined;
215
+ readonly store?: boolean | undefined;
216
+ readonly max_output_tokens?: number | undefined;
239
217
  readonly prompt_cache_key?: string | undefined;
240
218
  readonly parallel_tool_calls?: boolean | undefined;
241
- readonly store?: boolean | undefined;
242
219
  readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
243
220
  readonly truncation?: "auto" | "disabled" | undefined;
244
221
  readonly stream_options?: {
@@ -246,7 +223,6 @@ declare const responsesRoute: Route<{
246
223
  } | undefined;
247
224
  readonly safety_identifier?: string | undefined;
248
225
  readonly top_logprobs?: number | undefined;
249
- readonly max_output_tokens?: number | undefined;
250
226
  readonly max_tool_calls?: number | undefined;
251
227
  }, import("../protocols/open-responses-channel.js").Prepared, {
252
228
  endpoint: import("../route/client.js").CompactOperation;
@@ -365,9 +341,9 @@ export declare const routes: (Route<{
365
341
  readonly top_p?: number | undefined;
366
342
  readonly frequency_penalty?: number | undefined;
367
343
  readonly presence_penalty?: number | undefined;
344
+ readonly store?: boolean | undefined;
368
345
  readonly prompt_cache_key?: string | undefined;
369
346
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
370
- readonly store?: boolean | undefined;
371
347
  readonly stream_options?: {
372
348
  readonly include_usage: boolean;
373
349
  } | undefined;
@@ -415,6 +391,10 @@ export declare const routes: (Route<{
415
391
  readonly reasoning: {
416
392
  readonly effort: import("../schema/options.js").ReasoningEffort;
417
393
  };
394
+ } | {
395
+ readonly [x: string]: unknown;
396
+ readonly type: string;
397
+ readonly id: string;
418
398
  } | {
419
399
  readonly type: "reasoning";
420
400
  readonly summary: readonly {
@@ -491,34 +471,6 @@ export declare const routes: (Route<{
491
471
  readonly type: "input_video";
492
472
  readonly video_url: string;
493
473
  })[];
494
- } | {
495
- readonly [x: string]: unknown;
496
- readonly id: string;
497
- readonly type: "computer_call";
498
- readonly status?: string | undefined;
499
- readonly action?: {
500
- readonly [x: string]: unknown;
501
- } | null | undefined;
502
- readonly call_id?: string | undefined;
503
- readonly pending_safety_checks?: readonly {
504
- readonly [x: string]: unknown;
505
- }[] | undefined;
506
- } | {
507
- readonly [x: string]: unknown;
508
- readonly id: string;
509
- readonly type: "web_search_preview_call";
510
- readonly status?: string | undefined;
511
- readonly action?: {
512
- readonly [x: string]: unknown;
513
- } | null | undefined;
514
- } | {
515
- readonly [x: string]: unknown;
516
- readonly id: string;
517
- readonly type: "image_generation_call";
518
- readonly status?: string | undefined;
519
- readonly result?: string | null | undefined;
520
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
521
- readonly revised_prompt?: string | null | undefined;
522
474
  })[];
523
475
  readonly model: string;
524
476
  readonly stream: true;
@@ -587,9 +539,10 @@ export declare const routes: (Route<{
587
539
  readonly top_p?: number | undefined;
588
540
  readonly frequency_penalty?: number | undefined;
589
541
  readonly presence_penalty?: number | undefined;
542
+ readonly store?: boolean | undefined;
543
+ readonly max_output_tokens?: number | undefined;
590
544
  readonly prompt_cache_key?: string | undefined;
591
545
  readonly parallel_tool_calls?: boolean | undefined;
592
- readonly store?: boolean | undefined;
593
546
  readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
594
547
  readonly truncation?: "auto" | "disabled" | undefined;
595
548
  readonly stream_options?: {
@@ -597,7 +550,6 @@ export declare const routes: (Route<{
597
550
  } | undefined;
598
551
  readonly safety_identifier?: string | undefined;
599
552
  readonly top_logprobs?: number | undefined;
600
- readonly max_output_tokens?: number | undefined;
601
553
  readonly max_tool_calls?: number | undefined;
602
554
  }, import("../protocols/open-responses-channel.js").Prepared, {
603
555
  endpoint: import("../route/client.js").CompactOperation;
@@ -126,9 +126,9 @@ export declare const route: Route<{
126
126
  readonly top_p?: number | undefined;
127
127
  readonly frequency_penalty?: number | undefined;
128
128
  readonly presence_penalty?: number | undefined;
129
+ readonly store?: boolean | undefined;
129
130
  readonly prompt_cache_key?: string | undefined;
130
131
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
131
- readonly store?: boolean | undefined;
132
132
  readonly stream_options?: {
133
133
  readonly include_usage: boolean;
134
134
  } | undefined;
@@ -248,9 +248,9 @@ export declare const routes: Route<{
248
248
  readonly top_p?: number | undefined;
249
249
  readonly frequency_penalty?: number | undefined;
250
250
  readonly presence_penalty?: number | undefined;
251
+ readonly store?: boolean | undefined;
251
252
  readonly prompt_cache_key?: string | undefined;
252
253
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
253
- readonly store?: boolean | undefined;
254
254
  readonly stream_options?: {
255
255
  readonly include_usage: boolean;
256
256
  } | undefined;
@@ -126,9 +126,9 @@ export declare const route: Route<{
126
126
  readonly top_p?: number | undefined;
127
127
  readonly frequency_penalty?: number | undefined;
128
128
  readonly presence_penalty?: number | undefined;
129
+ readonly store?: boolean | undefined;
129
130
  readonly prompt_cache_key?: string | undefined;
130
131
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
131
- readonly store?: boolean | undefined;
132
132
  readonly stream_options?: {
133
133
  readonly include_usage: boolean;
134
134
  } | undefined;
@@ -248,9 +248,9 @@ export declare const routes: Route<{
248
248
  readonly top_p?: number | undefined;
249
249
  readonly frequency_penalty?: number | undefined;
250
250
  readonly presence_penalty?: number | undefined;
251
+ readonly store?: boolean | undefined;
251
252
  readonly prompt_cache_key?: string | undefined;
252
253
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
253
- readonly store?: boolean | undefined;
254
254
  readonly stream_options?: {
255
255
  readonly include_usage: boolean;
256
256
  } | undefined;