@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
@@ -121,8 +121,13 @@ export const ConfigurationUpdate = Schema.Struct({
121
121
  type: Schema.Literal("configuration_update"),
122
122
  reasoning: Schema.Struct({ effort: OpenResponsesOptions.ReasoningEffort }),
123
123
  });
124
+ export const HostedToolReplay = Schema.StructWithRest(Schema.Struct({
125
+ type: Schema.String,
126
+ id: Schema.String,
127
+ }), [JsonObject]);
124
128
  export const InputItem = Schema.Union([
125
129
  CompactionItem,
130
+ ConfigurationUpdate,
126
131
  Schema.Struct({ type: Schema.tag("message"), role: Schema.tag("system"), content: Schema.String }),
127
132
  Schema.Struct({ type: Schema.tag("message"), role: Schema.tag("developer"), content: Schema.String }),
128
133
  Schema.Struct({
@@ -155,6 +160,7 @@ export const InputItem = Schema.Union([
155
160
  output: OpenResponsesFunctionCallOutput,
156
161
  }),
157
162
  HostedToolItem,
163
+ HostedToolReplay,
158
164
  ]);
159
165
  export const Tool = Schema.Struct({
160
166
  type: Schema.tag("function"),
@@ -163,6 +169,9 @@ export const Tool = Schema.Struct({
163
169
  parameters: JsonObject,
164
170
  strict: Schema.optional(Schema.Boolean),
165
171
  });
172
+ export const HostedTool = Schema.StructWithRest(Schema.Struct({
173
+ type: Schema.String,
174
+ }), [JsonObject]);
166
175
  export const ToolChoice = Schema.Union([
167
176
  Schema.Literals(["auto", "none", "required"]),
168
177
  Schema.Struct({ type: Schema.tag("function"), name: Schema.String }),
@@ -180,7 +189,7 @@ export const coreFields = {
180
189
  model: Schema.String,
181
190
  input: Schema.Array(InputItem),
182
191
  instructions: Schema.optional(Schema.String),
183
- tools: optionalArray(Tool),
192
+ tools: optionalArray(Schema.Union([Tool, HostedTool])),
184
193
  tool_choice: Schema.optional(ToolChoice),
185
194
  store: Schema.optional(Schema.Boolean),
186
195
  metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)),
@@ -208,7 +217,7 @@ export const coreFields = {
208
217
  presence_penalty: Schema.optional(Schema.Number),
209
218
  frequency_penalty: Schema.optional(Schema.Number),
210
219
  };
211
- const OpenResponsesBody = Schema.Struct({
220
+ export const OpenResponsesBody = Schema.Struct({
212
221
  ...coreFields,
213
222
  stream: Schema.Literal(true),
214
223
  });
@@ -611,10 +620,7 @@ export const fromRequestWithAdapter = Effect.fn("OpenResponses.fromRequestWithAd
611
620
  (request.toolChoice ? yield* lowerToolChoice(adapter.name, request.toolChoice) : undefined),
612
621
  };
613
622
  });
614
- const decodeBody = ProviderShared.validateWith(Schema.decodeUnknownEffect(OpenResponsesBody));
615
- export const fromRequest = Effect.fn("OpenResponses.fromRequest")(function* (request) {
616
- return yield* decodeBody(yield* fromRequestWithAdapter(request, BASE_ADAPTER));
617
- });
623
+ export const fromRequest = (request) => fromRequestWithAdapter(request, BASE_ADAPTER);
618
624
  // =============================================================================
619
625
  // Stream Parsing
620
626
  // =============================================================================
@@ -743,9 +743,9 @@ export declare const protocol: Protocol<{
743
743
  readonly top_p?: number | undefined;
744
744
  readonly frequency_penalty?: number | undefined;
745
745
  readonly presence_penalty?: number | undefined;
746
+ readonly store?: boolean | undefined;
746
747
  readonly prompt_cache_key?: string | undefined;
747
748
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
748
- readonly store?: boolean | undefined;
749
749
  readonly stream_options?: {
750
750
  readonly include_usage: boolean;
751
751
  } | undefined;
@@ -761,9 +761,9 @@ export declare const protocol: Protocol<{
761
761
  readonly [x: string]: unknown;
762
762
  readonly cache_read_input_tokens?: number | null | undefined;
763
763
  readonly cached_tokens?: number | null | undefined;
764
+ readonly total_tokens?: number | null | undefined;
764
765
  readonly prompt_tokens?: number | null | undefined;
765
766
  readonly completion_tokens?: number | null | undefined;
766
- readonly total_tokens?: number | null | undefined;
767
767
  readonly prompt_tokens_details?: {
768
768
  readonly [x: string]: unknown;
769
769
  readonly cached_tokens?: number | null | undefined;
@@ -802,9 +802,9 @@ export declare const protocol: Protocol<{
802
802
  readonly [x: string]: unknown;
803
803
  readonly cache_read_input_tokens?: number | null | undefined;
804
804
  readonly cached_tokens?: number | null | undefined;
805
+ readonly total_tokens?: number | null | undefined;
805
806
  readonly prompt_tokens?: number | null | undefined;
806
807
  readonly completion_tokens?: number | null | undefined;
807
- readonly total_tokens?: number | null | undefined;
808
808
  readonly prompt_tokens_details?: {
809
809
  readonly [x: string]: unknown;
810
810
  readonly cached_tokens?: number | null | undefined;
@@ -938,9 +938,9 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
938
938
  readonly top_p?: number | undefined;
939
939
  readonly frequency_penalty?: number | undefined;
940
940
  readonly presence_penalty?: number | undefined;
941
+ readonly store?: boolean | undefined;
941
942
  readonly prompt_cache_key?: string | undefined;
942
943
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
943
- readonly store?: boolean | undefined;
944
944
  readonly stream_options?: {
945
945
  readonly include_usage: boolean;
946
946
  } | undefined;
@@ -1060,9 +1060,9 @@ export declare const route: Route<{
1060
1060
  readonly top_p?: number | undefined;
1061
1061
  readonly frequency_penalty?: number | undefined;
1062
1062
  readonly presence_penalty?: number | undefined;
1063
+ readonly store?: boolean | undefined;
1063
1064
  readonly prompt_cache_key?: string | undefined;
1064
1065
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
1065
- readonly store?: boolean | undefined;
1066
1066
  readonly stream_options?: {
1067
1067
  readonly include_usage: boolean;
1068
1068
  } | undefined;
@@ -121,9 +121,9 @@ export declare const route: Route<{
121
121
  readonly top_p?: number | undefined;
122
122
  readonly frequency_penalty?: number | undefined;
123
123
  readonly presence_penalty?: number | undefined;
124
+ readonly store?: boolean | undefined;
124
125
  readonly prompt_cache_key?: string | undefined;
125
126
  readonly reasoning_effort?: import("../index.js").ReasoningEffort | undefined;
126
- readonly store?: boolean | undefined;
127
127
  readonly stream_options?: {
128
128
  readonly include_usage: boolean;
129
129
  } | undefined;
@@ -43,6 +43,15 @@ export declare const route: Route<{
43
43
  readonly error?: unknown;
44
44
  readonly arguments?: string | undefined;
45
45
  readonly server_label?: string | undefined;
46
+ } | {
47
+ readonly type: "configuration_update";
48
+ readonly reasoning: {
49
+ readonly effort: import("../index.js").ReasoningEffort;
50
+ };
51
+ } | {
52
+ readonly [x: string]: unknown;
53
+ readonly type: string;
54
+ readonly id: string;
46
55
  } | {
47
56
  readonly type: "reasoning";
48
57
  readonly summary: readonly {
@@ -130,7 +139,10 @@ export declare const route: Route<{
130
139
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
131
140
  readonly effort?: import("../index.js").ReasoningEffort | undefined;
132
141
  } | undefined;
133
- readonly tools?: readonly {
142
+ readonly tools?: readonly ({
143
+ readonly [x: string]: unknown;
144
+ readonly type: string;
145
+ } | {
134
146
  readonly type: "function";
135
147
  readonly description: string;
136
148
  readonly name: string;
@@ -138,7 +150,7 @@ export declare const route: Route<{
138
150
  readonly [x: string]: unknown;
139
151
  };
140
152
  readonly strict?: boolean | undefined;
141
- }[] | undefined;
153
+ })[] | undefined;
142
154
  readonly text?: {
143
155
  readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
144
156
  } | undefined;
@@ -158,9 +170,10 @@ export declare const route: Route<{
158
170
  readonly top_p?: number | undefined;
159
171
  readonly frequency_penalty?: number | undefined;
160
172
  readonly presence_penalty?: number | undefined;
173
+ readonly store?: boolean | undefined;
174
+ readonly max_output_tokens?: number | undefined;
161
175
  readonly prompt_cache_key?: string | undefined;
162
176
  readonly parallel_tool_calls?: boolean | undefined;
163
- readonly store?: boolean | undefined;
164
177
  readonly include?: readonly import("./utils/open-responses-options.js").ResponseIncludable[] | undefined;
165
178
  readonly truncation?: "auto" | "disabled" | undefined;
166
179
  readonly stream_options?: {
@@ -168,7 +181,6 @@ export declare const route: Route<{
168
181
  } | undefined;
169
182
  readonly safety_identifier?: string | undefined;
170
183
  readonly top_logprobs?: number | undefined;
171
- readonly max_output_tokens?: number | undefined;
172
184
  readonly max_tool_calls?: number | undefined;
173
185
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>;
174
186
  export * as OpenAICompatibleResponses from "./openai-compatible-responses.js";
@@ -13,10 +13,61 @@ export declare const ContextManagement: Schema.$Array<Schema.Struct<{
13
13
  export type ContextManagement = typeof ContextManagement.Type;
14
14
  declare const OpenAIResponsesBody: Schema.Struct<{
15
15
  readonly stream: Schema.Literal<true>;
16
- readonly input: Schema.$Array<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
16
+ readonly tools: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17
+ readonly type: Schema.tag<"function">;
18
+ readonly name: Schema.String;
19
+ readonly description: Schema.String;
20
+ readonly parameters: Schema.$Record<Schema.String, Schema.Unknown>;
21
+ readonly strict: Schema.optional<Schema.Boolean>;
22
+ }>, Schema.Struct<{
23
+ readonly type: Schema.tag<"namespace">;
24
+ readonly name: Schema.String;
25
+ readonly description: Schema.String;
26
+ readonly tools: Schema.$Array<Schema.Struct<{
27
+ readonly type: Schema.tag<"function">;
28
+ readonly name: Schema.String;
29
+ readonly description: Schema.String;
30
+ readonly parameters: Schema.$Record<Schema.String, Schema.Unknown>;
31
+ readonly strict: Schema.optional<Schema.Boolean>;
32
+ }>>;
33
+ }>, Schema.Struct<{
34
+ readonly type: Schema.tag<"image_generation">;
35
+ readonly action: Schema.optional<Schema.Literals<readonly ["auto", "generate", "edit"]>>;
36
+ readonly background: Schema.optional<Schema.Literals<readonly ["auto", "opaque", "transparent"]>>;
37
+ readonly input_fidelity: Schema.optional<Schema.Literals<readonly ["low", "high"]>>;
38
+ readonly output_compression: Schema.optional<Schema.Int>;
39
+ readonly output_format: Schema.optional<Schema.Literals<readonly ["png", "jpeg", "webp"]>>;
40
+ readonly partial_images: Schema.optional<Schema.Int>;
41
+ readonly quality: Schema.optional<Schema.Literals<readonly ["auto", "low", "medium", "high"]>>;
42
+ readonly size: Schema.optional<Schema.String>;
43
+ }>]>>>;
44
+ readonly tool_choice: Schema.optional<Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["auto", "none", "required"]>, Schema.Struct<{
45
+ readonly type: Schema.tag<"function">;
46
+ readonly name: Schema.String;
47
+ }>, Schema.Struct<{
48
+ readonly type: Schema.tag<"allowed_tools">;
49
+ readonly mode: Schema.Literals<readonly ["auto", "none", "required"]>;
50
+ readonly tools: Schema.$Array<Schema.Struct<{
51
+ readonly type: Schema.tag<"function">;
52
+ readonly name: Schema.String;
53
+ }>>;
54
+ }>]>, Schema.Struct<{
55
+ readonly type: Schema.tag<"image_generation">;
56
+ }>]>>;
57
+ readonly context_management: Schema.optional<Schema.$Array<Schema.Struct<{
58
+ readonly type: Schema.Literal<"compaction">;
59
+ readonly compact_threshold: Schema.optional<Schema.Int>;
60
+ }>>>;
61
+ readonly model: Schema.String;
62
+ readonly input: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
17
63
  readonly type: Schema.Literal<"compaction">;
18
64
  readonly id: Schema.optional<Schema.NullOr<Schema.String>>;
19
65
  readonly encrypted_content: Schema.String;
66
+ }>, Schema.Struct<{
67
+ readonly type: Schema.Literal<"configuration_update">;
68
+ readonly reasoning: Schema.Struct<{
69
+ readonly effort: Schema.declare<OpenResponsesOptions.ReasoningEffort, OpenResponsesOptions.ReasoningEffort>;
70
+ }>;
20
71
  }>, Schema.Struct<{
21
72
  readonly type: Schema.tag<"message">;
22
73
  readonly role: Schema.tag<"system">;
@@ -116,77 +167,10 @@ declare const OpenAIResponsesBody: Schema.Struct<{
116
167
  readonly arguments: Schema.optional<Schema.String>;
117
168
  readonly output: Schema.optional<Schema.NullOr<Schema.String>>;
118
169
  readonly error: Schema.optional<Schema.Unknown>;
119
- }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>]>]>, Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
120
- readonly type: Schema.tag<"computer_call">;
170
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>]>, Schema.StructWithRest<Schema.Struct<{
171
+ readonly type: Schema.String;
121
172
  readonly id: Schema.String;
122
- readonly status: Schema.optional<Schema.String>;
123
- readonly call_id: Schema.optional<Schema.String>;
124
- readonly action: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>>;
125
- readonly pending_safety_checks: Schema.optional<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>;
126
- }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
127
- readonly type: Schema.tag<"web_search_preview_call">;
128
- readonly id: Schema.String;
129
- readonly status: Schema.optional<Schema.String>;
130
- readonly action: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>>;
131
- }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.StructWithRest<Schema.Struct<{
132
- readonly type: Schema.tag<"image_generation_call">;
133
- readonly id: Schema.String;
134
- readonly status: Schema.optional<Schema.String>;
135
- readonly result: Schema.optional<Schema.NullOr<Schema.String>>;
136
- readonly output_format: Schema.optional<Schema.Literals<readonly ["png", "jpeg", "webp"]>>;
137
- readonly revised_prompt: Schema.optional<Schema.NullOr<Schema.String>>;
138
- }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>]>, Schema.Struct<{
139
- readonly type: Schema.Literal<"configuration_update">;
140
- readonly reasoning: Schema.Struct<{
141
- readonly effort: Schema.declare<OpenResponsesOptions.ReasoningEffort, OpenResponsesOptions.ReasoningEffort>;
142
- }>;
143
- }>]>>;
144
- readonly tools: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
145
- readonly type: Schema.tag<"function">;
146
- readonly name: Schema.String;
147
- readonly description: Schema.String;
148
- readonly parameters: Schema.$Record<Schema.String, Schema.Unknown>;
149
- readonly strict: Schema.optional<Schema.Boolean>;
150
- }>, Schema.Struct<{
151
- readonly type: Schema.tag<"namespace">;
152
- readonly name: Schema.String;
153
- readonly description: Schema.String;
154
- readonly tools: Schema.$Array<Schema.Struct<{
155
- readonly type: Schema.tag<"function">;
156
- readonly name: Schema.String;
157
- readonly description: Schema.String;
158
- readonly parameters: Schema.$Record<Schema.String, Schema.Unknown>;
159
- readonly strict: Schema.optional<Schema.Boolean>;
160
- }>>;
161
- }>, Schema.Struct<{
162
- readonly type: Schema.tag<"image_generation">;
163
- readonly action: Schema.optional<Schema.Literals<readonly ["auto", "generate", "edit"]>>;
164
- readonly background: Schema.optional<Schema.Literals<readonly ["auto", "opaque", "transparent"]>>;
165
- readonly input_fidelity: Schema.optional<Schema.Literals<readonly ["low", "high"]>>;
166
- readonly output_compression: Schema.optional<Schema.Int>;
167
- readonly output_format: Schema.optional<Schema.Literals<readonly ["png", "jpeg", "webp"]>>;
168
- readonly partial_images: Schema.optional<Schema.Int>;
169
- readonly quality: Schema.optional<Schema.Literals<readonly ["auto", "low", "medium", "high"]>>;
170
- readonly size: Schema.optional<Schema.String>;
171
- }>]>>>;
172
- readonly tool_choice: Schema.optional<Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["auto", "none", "required"]>, Schema.Struct<{
173
- readonly type: Schema.tag<"function">;
174
- readonly name: Schema.String;
175
- }>, Schema.Struct<{
176
- readonly type: Schema.tag<"allowed_tools">;
177
- readonly mode: Schema.Literals<readonly ["auto", "none", "required"]>;
178
- readonly tools: Schema.$Array<Schema.Struct<{
179
- readonly type: Schema.tag<"function">;
180
- readonly name: Schema.String;
181
- }>>;
182
- }>]>, Schema.Struct<{
183
- readonly type: Schema.tag<"image_generation">;
184
- }>]>>;
185
- readonly context_management: Schema.optional<Schema.$Array<Schema.Struct<{
186
- readonly type: Schema.Literal<"compaction">;
187
- readonly compact_threshold: Schema.optional<Schema.Int>;
188
- }>>>;
189
- readonly model: Schema.String;
173
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>]>>;
190
174
  readonly instructions: Schema.optional<Schema.String>;
191
175
  readonly store: Schema.optional<Schema.Boolean>;
192
176
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
@@ -262,6 +246,10 @@ export declare const protocol: Protocol<{
262
246
  readonly reasoning: {
263
247
  readonly effort: OpenResponsesOptions.ReasoningEffort;
264
248
  };
249
+ } | {
250
+ readonly [x: string]: unknown;
251
+ readonly type: string;
252
+ readonly id: string;
265
253
  } | {
266
254
  readonly type: "reasoning";
267
255
  readonly summary: readonly {
@@ -338,34 +326,6 @@ export declare const protocol: Protocol<{
338
326
  readonly type: "input_video";
339
327
  readonly video_url: string;
340
328
  })[];
341
- } | {
342
- readonly [x: string]: unknown;
343
- readonly id: string;
344
- readonly type: "computer_call";
345
- readonly status?: string | undefined;
346
- readonly action?: {
347
- readonly [x: string]: unknown;
348
- } | null | undefined;
349
- readonly call_id?: string | undefined;
350
- readonly pending_safety_checks?: readonly {
351
- readonly [x: string]: unknown;
352
- }[] | undefined;
353
- } | {
354
- readonly [x: string]: unknown;
355
- readonly id: string;
356
- readonly type: "web_search_preview_call";
357
- readonly status?: string | undefined;
358
- readonly action?: {
359
- readonly [x: string]: unknown;
360
- } | null | undefined;
361
- } | {
362
- readonly [x: string]: unknown;
363
- readonly id: string;
364
- readonly type: "image_generation_call";
365
- readonly status?: string | undefined;
366
- readonly result?: string | null | undefined;
367
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
368
- readonly revised_prompt?: string | null | undefined;
369
329
  })[];
370
330
  readonly model: string;
371
331
  readonly stream: true;
@@ -434,9 +394,10 @@ export declare const protocol: Protocol<{
434
394
  readonly top_p?: number | undefined;
435
395
  readonly frequency_penalty?: number | undefined;
436
396
  readonly presence_penalty?: number | undefined;
397
+ readonly store?: boolean | undefined;
398
+ readonly max_output_tokens?: number | undefined;
437
399
  readonly prompt_cache_key?: string | undefined;
438
400
  readonly parallel_tool_calls?: boolean | undefined;
439
- readonly store?: boolean | undefined;
440
401
  readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
441
402
  readonly truncation?: "auto" | "disabled" | undefined;
442
403
  readonly stream_options?: {
@@ -444,7 +405,6 @@ export declare const protocol: Protocol<{
444
405
  } | undefined;
445
406
  readonly safety_identifier?: string | undefined;
446
407
  readonly top_logprobs?: number | undefined;
447
- readonly max_output_tokens?: number | undefined;
448
408
  readonly max_tool_calls?: number | undefined;
449
409
  }, string, {
450
410
  readonly [x: string]: unknown;
@@ -464,8 +424,8 @@ export declare const protocol: Protocol<{
464
424
  readonly name?: string | undefined;
465
425
  readonly namespace?: string | undefined;
466
426
  readonly arguments?: string | undefined;
467
- readonly encrypted_content?: string | null | undefined;
468
427
  readonly call_id?: string | undefined;
428
+ readonly encrypted_content?: string | null | undefined;
469
429
  }[] | undefined;
470
430
  readonly error?: unknown;
471
431
  readonly usage?: {
@@ -492,8 +452,8 @@ export declare const protocol: Protocol<{
492
452
  readonly name?: string | undefined;
493
453
  readonly namespace?: string | undefined;
494
454
  readonly arguments?: string | undefined;
495
- readonly encrypted_content?: string | null | undefined;
496
455
  readonly call_id?: string | undefined;
456
+ readonly encrypted_content?: string | null | undefined;
497
457
  } | null | undefined;
498
458
  readonly delta?: string | undefined;
499
459
  readonly arguments?: string | undefined;
@@ -545,6 +505,10 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
545
505
  readonly reasoning: {
546
506
  readonly effort: OpenResponsesOptions.ReasoningEffort;
547
507
  };
508
+ } | {
509
+ readonly [x: string]: unknown;
510
+ readonly type: string;
511
+ readonly id: string;
548
512
  } | {
549
513
  readonly type: "reasoning";
550
514
  readonly summary: readonly {
@@ -621,34 +585,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
621
585
  readonly type: "input_video";
622
586
  readonly video_url: string;
623
587
  })[];
624
- } | {
625
- readonly [x: string]: unknown;
626
- readonly id: string;
627
- readonly type: "computer_call";
628
- readonly status?: string | undefined;
629
- readonly action?: {
630
- readonly [x: string]: unknown;
631
- } | null | undefined;
632
- readonly call_id?: string | undefined;
633
- readonly pending_safety_checks?: readonly {
634
- readonly [x: string]: unknown;
635
- }[] | undefined;
636
- } | {
637
- readonly [x: string]: unknown;
638
- readonly id: string;
639
- readonly type: "web_search_preview_call";
640
- readonly status?: string | undefined;
641
- readonly action?: {
642
- readonly [x: string]: unknown;
643
- } | null | undefined;
644
- } | {
645
- readonly [x: string]: unknown;
646
- readonly id: string;
647
- readonly type: "image_generation_call";
648
- readonly status?: string | undefined;
649
- readonly result?: string | null | undefined;
650
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
651
- readonly revised_prompt?: string | null | undefined;
652
588
  })[];
653
589
  readonly model: string;
654
590
  readonly stream: true;
@@ -717,9 +653,10 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
717
653
  readonly top_p?: number | undefined;
718
654
  readonly frequency_penalty?: number | undefined;
719
655
  readonly presence_penalty?: number | undefined;
656
+ readonly store?: boolean | undefined;
657
+ readonly max_output_tokens?: number | undefined;
720
658
  readonly prompt_cache_key?: string | undefined;
721
659
  readonly parallel_tool_calls?: boolean | undefined;
722
- readonly store?: boolean | undefined;
723
660
  readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
724
661
  readonly truncation?: "auto" | "disabled" | undefined;
725
662
  readonly stream_options?: {
@@ -727,7 +664,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
727
664
  } | undefined;
728
665
  readonly safety_identifier?: string | undefined;
729
666
  readonly top_logprobs?: number | undefined;
730
- readonly max_output_tokens?: number | undefined;
731
667
  readonly max_tool_calls?: number | undefined;
732
668
  }, string>;
733
669
  export declare const channelTransport: (options: import("./open-responses-channel.js").Options) => import("../route/transport/index.js").Transport<{
@@ -773,6 +709,10 @@ export declare const channelTransport: (options: import("./open-responses-channe
773
709
  readonly reasoning: {
774
710
  readonly effort: OpenResponsesOptions.ReasoningEffort;
775
711
  };
712
+ } | {
713
+ readonly [x: string]: unknown;
714
+ readonly type: string;
715
+ readonly id: string;
776
716
  } | {
777
717
  readonly type: "reasoning";
778
718
  readonly summary: readonly {
@@ -849,34 +789,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
849
789
  readonly type: "input_video";
850
790
  readonly video_url: string;
851
791
  })[];
852
- } | {
853
- readonly [x: string]: unknown;
854
- readonly id: string;
855
- readonly type: "computer_call";
856
- readonly status?: string | undefined;
857
- readonly action?: {
858
- readonly [x: string]: unknown;
859
- } | null | undefined;
860
- readonly call_id?: string | undefined;
861
- readonly pending_safety_checks?: readonly {
862
- readonly [x: string]: unknown;
863
- }[] | undefined;
864
- } | {
865
- readonly [x: string]: unknown;
866
- readonly id: string;
867
- readonly type: "web_search_preview_call";
868
- readonly status?: string | undefined;
869
- readonly action?: {
870
- readonly [x: string]: unknown;
871
- } | null | undefined;
872
- } | {
873
- readonly [x: string]: unknown;
874
- readonly id: string;
875
- readonly type: "image_generation_call";
876
- readonly status?: string | undefined;
877
- readonly result?: string | null | undefined;
878
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
879
- readonly revised_prompt?: string | null | undefined;
880
792
  })[];
881
793
  readonly model: string;
882
794
  readonly stream: true;
@@ -945,9 +857,10 @@ export declare const channelTransport: (options: import("./open-responses-channe
945
857
  readonly top_p?: number | undefined;
946
858
  readonly frequency_penalty?: number | undefined;
947
859
  readonly presence_penalty?: number | undefined;
860
+ readonly store?: boolean | undefined;
861
+ readonly max_output_tokens?: number | undefined;
948
862
  readonly prompt_cache_key?: string | undefined;
949
863
  readonly parallel_tool_calls?: boolean | undefined;
950
- readonly store?: boolean | undefined;
951
864
  readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
952
865
  readonly truncation?: "auto" | "disabled" | undefined;
953
866
  readonly stream_options?: {
@@ -955,7 +868,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
955
868
  } | undefined;
956
869
  readonly safety_identifier?: string | undefined;
957
870
  readonly top_logprobs?: number | undefined;
958
- readonly max_output_tokens?: number | undefined;
959
871
  readonly max_tool_calls?: number | undefined;
960
872
  }, import("./open-responses-channel.js").Prepared, string>;
961
873
  export declare const transport: import("../route/transport/index.js").Transport<{
@@ -1001,6 +913,10 @@ export declare const transport: import("../route/transport/index.js").Transport<
1001
913
  readonly reasoning: {
1002
914
  readonly effort: OpenResponsesOptions.ReasoningEffort;
1003
915
  };
916
+ } | {
917
+ readonly [x: string]: unknown;
918
+ readonly type: string;
919
+ readonly id: string;
1004
920
  } | {
1005
921
  readonly type: "reasoning";
1006
922
  readonly summary: readonly {
@@ -1077,34 +993,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
1077
993
  readonly type: "input_video";
1078
994
  readonly video_url: string;
1079
995
  })[];
1080
- } | {
1081
- readonly [x: string]: unknown;
1082
- readonly id: string;
1083
- readonly type: "computer_call";
1084
- readonly status?: string | undefined;
1085
- readonly action?: {
1086
- readonly [x: string]: unknown;
1087
- } | null | undefined;
1088
- readonly call_id?: string | undefined;
1089
- readonly pending_safety_checks?: readonly {
1090
- readonly [x: string]: unknown;
1091
- }[] | undefined;
1092
- } | {
1093
- readonly [x: string]: unknown;
1094
- readonly id: string;
1095
- readonly type: "web_search_preview_call";
1096
- readonly status?: string | undefined;
1097
- readonly action?: {
1098
- readonly [x: string]: unknown;
1099
- } | null | undefined;
1100
- } | {
1101
- readonly [x: string]: unknown;
1102
- readonly id: string;
1103
- readonly type: "image_generation_call";
1104
- readonly status?: string | undefined;
1105
- readonly result?: string | null | undefined;
1106
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
1107
- readonly revised_prompt?: string | null | undefined;
1108
996
  })[];
1109
997
  readonly model: string;
1110
998
  readonly stream: true;
@@ -1173,9 +1061,10 @@ export declare const transport: import("../route/transport/index.js").Transport<
1173
1061
  readonly top_p?: number | undefined;
1174
1062
  readonly frequency_penalty?: number | undefined;
1175
1063
  readonly presence_penalty?: number | undefined;
1064
+ readonly store?: boolean | undefined;
1065
+ readonly max_output_tokens?: number | undefined;
1176
1066
  readonly prompt_cache_key?: string | undefined;
1177
1067
  readonly parallel_tool_calls?: boolean | undefined;
1178
- readonly store?: boolean | undefined;
1179
1068
  readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1180
1069
  readonly truncation?: "auto" | "disabled" | undefined;
1181
1070
  readonly stream_options?: {
@@ -1183,7 +1072,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
1183
1072
  } | undefined;
1184
1073
  readonly safety_identifier?: string | undefined;
1185
1074
  readonly top_logprobs?: number | undefined;
1186
- readonly max_output_tokens?: number | undefined;
1187
1075
  readonly max_tool_calls?: number | undefined;
1188
1076
  }, import("./open-responses-channel.js").Prepared, string>;
1189
1077
  export declare const route: Route<{
@@ -1229,6 +1117,10 @@ export declare const route: Route<{
1229
1117
  readonly reasoning: {
1230
1118
  readonly effort: OpenResponsesOptions.ReasoningEffort;
1231
1119
  };
1120
+ } | {
1121
+ readonly [x: string]: unknown;
1122
+ readonly type: string;
1123
+ readonly id: string;
1232
1124
  } | {
1233
1125
  readonly type: "reasoning";
1234
1126
  readonly summary: readonly {
@@ -1305,34 +1197,6 @@ export declare const route: Route<{
1305
1197
  readonly type: "input_video";
1306
1198
  readonly video_url: string;
1307
1199
  })[];
1308
- } | {
1309
- readonly [x: string]: unknown;
1310
- readonly id: string;
1311
- readonly type: "computer_call";
1312
- readonly status?: string | undefined;
1313
- readonly action?: {
1314
- readonly [x: string]: unknown;
1315
- } | null | undefined;
1316
- readonly call_id?: string | undefined;
1317
- readonly pending_safety_checks?: readonly {
1318
- readonly [x: string]: unknown;
1319
- }[] | undefined;
1320
- } | {
1321
- readonly [x: string]: unknown;
1322
- readonly id: string;
1323
- readonly type: "web_search_preview_call";
1324
- readonly status?: string | undefined;
1325
- readonly action?: {
1326
- readonly [x: string]: unknown;
1327
- } | null | undefined;
1328
- } | {
1329
- readonly [x: string]: unknown;
1330
- readonly id: string;
1331
- readonly type: "image_generation_call";
1332
- readonly status?: string | undefined;
1333
- readonly result?: string | null | undefined;
1334
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
1335
- readonly revised_prompt?: string | null | undefined;
1336
1200
  })[];
1337
1201
  readonly model: string;
1338
1202
  readonly stream: true;
@@ -1401,9 +1265,10 @@ export declare const route: Route<{
1401
1265
  readonly top_p?: number | undefined;
1402
1266
  readonly frequency_penalty?: number | undefined;
1403
1267
  readonly presence_penalty?: number | undefined;
1268
+ readonly store?: boolean | undefined;
1269
+ readonly max_output_tokens?: number | undefined;
1404
1270
  readonly prompt_cache_key?: string | undefined;
1405
1271
  readonly parallel_tool_calls?: boolean | undefined;
1406
- readonly store?: boolean | undefined;
1407
1272
  readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1408
1273
  readonly truncation?: "auto" | "disabled" | undefined;
1409
1274
  readonly stream_options?: {
@@ -1411,7 +1276,6 @@ export declare const route: Route<{
1411
1276
  } | undefined;
1412
1277
  readonly safety_identifier?: string | undefined;
1413
1278
  readonly top_logprobs?: number | undefined;
1414
- readonly max_output_tokens?: number | undefined;
1415
1279
  readonly max_tool_calls?: number | undefined;
1416
1280
  }, import("./open-responses-channel.js").Prepared, {
1417
1281
  endpoint: import("../route/client.js").CompactOperation;