@opencode/ai 2.2.7 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/README.md +164 -99
  2. package/dist/cache-policy.js +4 -2
  3. package/dist/effect.d.ts +11 -8
  4. package/dist/effect.js +2 -1
  5. package/dist/experimental.d.ts +0 -4
  6. package/dist/experimental.js +0 -3
  7. package/dist/generation.d.ts +10 -10
  8. package/dist/generation.js +8 -14
  9. package/dist/image-client.d.ts +56 -59
  10. package/dist/image-client.js +47 -12
  11. package/dist/image.d.ts +36 -95
  12. package/dist/image.js +11 -14
  13. package/dist/index.d.ts +31 -68
  14. package/dist/index.js +54 -30
  15. package/dist/llm.d.ts +4 -1
  16. package/dist/llm.js +10 -1
  17. package/dist/media-client.d.ts +18 -6
  18. package/dist/media-client.js +42 -37
  19. package/dist/media-model.d.ts +2 -0
  20. package/dist/media-model.js +3 -1
  21. package/dist/media.d.ts +26 -4
  22. package/dist/media.js +52 -11
  23. package/dist/protocols/alibaba-messages.d.ts +24 -2
  24. package/dist/protocols/alibaba-responses.d.ts +26 -0
  25. package/dist/protocols/anthropic-messages.d.ts +70 -6
  26. package/dist/protocols/anthropic-messages.js +74 -9
  27. package/dist/protocols/assemblyai-transcription.js +7 -6
  28. package/dist/protocols/cartesia-speech.d.ts +0 -8
  29. package/dist/protocols/deepgram-speech.d.ts +0 -8
  30. package/dist/protocols/elevenlabs-speech.d.ts +0 -8
  31. package/dist/protocols/google-decisions.d.ts +13 -0
  32. package/dist/protocols/google-decisions.js +133 -0
  33. package/dist/protocols/google-interactions-video.d.ts +38 -0
  34. package/dist/protocols/google-interactions-video.js +185 -0
  35. package/dist/protocols/google-interactions.d.ts +14 -1
  36. package/dist/protocols/google-interactions.js +1 -1
  37. package/dist/protocols/google-speech.d.ts +0 -8
  38. package/dist/protocols/google-transcription.d.ts +0 -8
  39. package/dist/protocols/index.d.ts +1 -0
  40. package/dist/protocols/index.js +1 -0
  41. package/dist/protocols/meta-messages.d.ts +24 -2
  42. package/dist/protocols/meta-responses.d.ts +52 -0
  43. package/dist/protocols/minimax-video.d.ts +45 -0
  44. package/dist/protocols/minimax-video.js +290 -0
  45. package/dist/protocols/open-responses.d.ts +250 -24
  46. package/dist/protocols/open-responses.js +40 -24
  47. package/dist/protocols/openai-chat.js +7 -3
  48. package/dist/protocols/openai-compatible-responses.d.ts +26 -0
  49. package/dist/protocols/openai-freeform.d.ts +1 -1
  50. package/dist/protocols/openai-freeform.js +9 -5
  51. package/dist/protocols/openai-images.d.ts +0 -8
  52. package/dist/protocols/openai-responses.d.ts +153 -0
  53. package/dist/protocols/openai-responses.js +68 -7
  54. package/dist/protocols/openai-speech.d.ts +0 -8
  55. package/dist/protocols/openai-transcription.d.ts +0 -8
  56. package/dist/protocols/openrouter-video.d.ts +36 -0
  57. package/dist/protocols/openrouter-video.js +139 -0
  58. package/dist/protocols/seedance-video.d.ts +45 -0
  59. package/dist/protocols/seedance-video.js +217 -0
  60. package/dist/protocols/system-one.d.ts +45 -1
  61. package/dist/protocols/system-one.js +42 -7
  62. package/dist/protocols/utils/gateway-protocol.js +1 -0
  63. package/dist/protocols/utils/responses-compaction.js +8 -4
  64. package/dist/protocols/xai-responses.d.ts +26 -0
  65. package/dist/protocols/xai-video.d.ts +12 -11
  66. package/dist/protocols/xai-video.js +33 -24
  67. package/dist/protocols/zai-messages.d.ts +24 -2
  68. package/dist/provider-error.js +7 -1
  69. package/dist/providers/alibaba.d.ts +50 -2
  70. package/dist/providers/amazon-bedrock-mantle.d.ts +50 -2
  71. package/dist/providers/anthropic-compatible.d.ts +24 -2
  72. package/dist/providers/anthropic.d.ts +24 -2
  73. package/dist/providers/azure.d.ts +76 -2
  74. package/dist/providers/byteplus/videos.d.ts +2 -0
  75. package/dist/providers/byteplus/videos.js +1 -0
  76. package/dist/providers/byteplus.d.ts +26 -0
  77. package/dist/providers/byteplus.js +21 -0
  78. package/dist/providers/cloudflare-ai-gateway.d.ts +100 -4
  79. package/dist/providers/digitalocean.d.ts +26 -0
  80. package/dist/providers/google/decisions.d.ts +2 -0
  81. package/dist/providers/google/decisions.js +1 -0
  82. package/dist/providers/google/videos.d.ts +2 -0
  83. package/dist/providers/google/videos.js +1 -0
  84. package/dist/providers/google-vertex-messages.d.ts +24 -2
  85. package/dist/providers/google-vertex-messages.js +1 -0
  86. package/dist/providers/google-vertex-responses.d.ts +26 -0
  87. package/dist/providers/google.d.ts +11 -4
  88. package/dist/providers/google.js +16 -3
  89. package/dist/providers/index.d.ts +2 -1
  90. package/dist/providers/index.js +2 -1
  91. package/dist/providers/meta.d.ts +50 -2
  92. package/dist/providers/minimax/videos.d.ts +3 -0
  93. package/dist/providers/minimax/videos.js +1 -0
  94. package/dist/providers/minimax.d.ts +56 -3
  95. package/dist/providers/minimax.js +10 -1
  96. package/dist/providers/moonshot.d.ts +50 -2
  97. package/dist/providers/openai-compatible/decisions.d.ts +2 -0
  98. package/dist/providers/openai-compatible/decisions.js +1 -0
  99. package/dist/providers/openai-compatible-responses.d.ts +26 -0
  100. package/dist/providers/openai-compatible.d.ts +2 -0
  101. package/dist/providers/openai-compatible.js +14 -0
  102. package/dist/providers/openai.d.ts +26 -0
  103. package/dist/providers/openrouter/videos.d.ts +2 -0
  104. package/dist/providers/openrouter/videos.js +1 -0
  105. package/dist/providers/openrouter.d.ts +31 -0
  106. package/dist/providers/openrouter.js +8 -0
  107. package/dist/providers/venice.d.ts +26 -0
  108. package/dist/providers/volcengine/videos.d.ts +2 -0
  109. package/dist/providers/volcengine/videos.js +1 -0
  110. package/dist/providers/volcengine.d.ts +26 -0
  111. package/dist/providers/volcengine.js +21 -0
  112. package/dist/providers/xai/videos.d.ts +2 -0
  113. package/dist/providers/xai/videos.js +1 -0
  114. package/dist/providers/xai.d.ts +4 -3
  115. package/dist/providers/xai.js +5 -1
  116. package/dist/providers/zai-coding-plan.d.ts +50 -2
  117. package/dist/public.d.ts +7 -4
  118. package/dist/public.js +2 -1
  119. package/dist/route/client.d.ts +2 -0
  120. package/dist/route/client.js +5 -1
  121. package/dist/route/executor-service.d.ts +20 -1
  122. package/dist/route/executor-service.js +35 -1
  123. package/dist/route/executor.d.ts +11 -2
  124. package/dist/route/executor.js +25 -5
  125. package/dist/route/media-protocol.d.ts +21 -15
  126. package/dist/route/media-protocol.js +11 -4
  127. package/dist/route/media.d.ts +2 -0
  128. package/dist/route/media.js +40 -22
  129. package/dist/route/protocol.d.ts +3 -0
  130. package/dist/route/transport/http.js +1 -1
  131. package/dist/schema/events.d.ts +5 -0
  132. package/dist/schema/messages.d.ts +25 -2
  133. package/dist/schema/messages.js +27 -7
  134. package/dist/schema/options.d.ts +18 -2
  135. package/dist/schema/options.js +1 -0
  136. package/dist/speech-client.d.ts +6 -6
  137. package/dist/speech-client.js +4 -4
  138. package/dist/speech.d.ts +7 -88
  139. package/dist/speech.js +1 -3
  140. package/dist/tool-updates.d.ts +34 -0
  141. package/dist/tool-updates.js +93 -0
  142. package/dist/tool.d.ts +6 -1
  143. package/dist/tool.js +1 -1
  144. package/dist/transcription-client.d.ts +6 -6
  145. package/dist/transcription-client.js +1 -2
  146. package/dist/transcription.d.ts +7 -88
  147. package/dist/transcription.js +1 -3
  148. package/dist/video-client.d.ts +16 -84
  149. package/dist/video-client.js +30 -13
  150. package/dist/video.d.ts +54 -1126
  151. package/dist/video.js +29 -65
  152. package/package.json +59 -7
  153. package/dist/protocols/google-video.d.ts +0 -26
  154. package/dist/protocols/google-video.js +0 -146
  155. package/dist/protocols/runway-video.d.ts +0 -38
  156. package/dist/protocols/runway-video.js +0 -141
  157. package/dist/providers/runway.d.ts +0 -20
  158. package/dist/providers/runway.js +0 -17
@@ -1,6 +1,7 @@
1
1
  import { Effect, Schema } from "effect";
2
2
  import { AnthropicMessages } from "../protocols/anthropic-messages.js";
3
3
  import { MiniMaxImages } from "../protocols/minimax-images.js";
4
+ import { MiniMaxVideo } from "../protocols/minimax-video.js";
4
5
  import { OpenAIChat } from "../protocols/openai-chat.js";
5
6
  import { OpenResponses } from "../protocols/open-responses.js";
6
7
  import { ProviderShared } from "../protocols/shared.js";
@@ -75,7 +76,10 @@ export const configure = (input = {}) => {
75
76
  const responses = (modelID) => responsesRoute.with(defaults).model({ id: modelID });
76
77
  const media = MediaRoute.deployment(input, defaults.auth);
77
78
  const image = (modelID, providerOptions) => MiniMaxImages.model({ ...media, id: modelID, providerOptions });
78
- return { id, model: messages, messages, chat, responses, image, configure };
79
+ // H3 is under /v2 and Hailuo under /v1, so video drops the version a shared `baseURL` carries for the other APIs.
80
+ const videoBaseURL = media.baseURL?.replace(/(\/v1)?\/*$/, "");
81
+ const video = (modelID, providerOptions) => MiniMaxVideo.model({ ...media, baseURL: videoBaseURL, id: modelID, providerOptions });
82
+ return { id, model: messages, messages, chat, responses, image, video, configure };
79
83
  };
80
84
  export const provider = configure();
81
85
  export const model = (modelID, settings) => configure(toConfig(settings)).model(modelID);
@@ -83,8 +87,13 @@ export const imageModel = (modelID, settings) => {
83
87
  const input = toConfig(settings);
84
88
  return configure(input).image(modelID, input.providerOptions);
85
89
  };
90
+ export const videoModel = (modelID, settings) => {
91
+ const input = toConfig(settings);
92
+ return configure(input).video(modelID, input.providerOptions);
93
+ };
86
94
  export const messages = provider.messages;
87
95
  export const chat = provider.chat;
88
96
  export const responses = provider.responses;
89
97
  export const image = provider.image;
98
+ export const video = provider.video;
90
99
  export * as MiniMax from "./minimax.js";
@@ -260,14 +260,36 @@ export declare const routes: (Route<{
260
260
  })[];
261
261
  } | {
262
262
  readonly role: "system";
263
- readonly content: readonly {
263
+ readonly content: readonly ({
264
+ readonly type: "tool_addition";
265
+ readonly tool: {
266
+ readonly type: "tool_definition";
267
+ readonly definition: {
268
+ readonly name: string;
269
+ readonly description: string;
270
+ readonly input_schema: {
271
+ readonly [x: string]: unknown;
272
+ };
273
+ readonly cache_control?: {
274
+ readonly type: "ephemeral";
275
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
276
+ } | undefined;
277
+ };
278
+ };
279
+ } | {
280
+ readonly type: "tool_removal";
281
+ readonly tool: {
282
+ readonly type: "tool_reference";
283
+ readonly name: string;
284
+ };
285
+ } | {
264
286
  readonly type: "text";
265
287
  readonly text: string;
266
288
  readonly cache_control?: {
267
289
  readonly type: "ephemeral";
268
290
  readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
269
291
  } | undefined;
270
- }[];
292
+ })[];
271
293
  readonly output_config?: {
272
294
  readonly effort: string;
273
295
  } | undefined;
@@ -345,6 +367,32 @@ export declare const routes: (Route<{
345
367
  readonly reasoning: {
346
368
  readonly effort: import("../schema/options.js").ReasoningEffort;
347
369
  };
370
+ } | {
371
+ readonly type: "additional_tools";
372
+ readonly role: "developer";
373
+ readonly tools: readonly ({
374
+ readonly type: "custom";
375
+ readonly name: string;
376
+ readonly description: string;
377
+ readonly format: {
378
+ readonly type: "text";
379
+ } | {
380
+ readonly type: "grammar";
381
+ readonly syntax: "lark" | "regex";
382
+ readonly definition: string;
383
+ };
384
+ } | {
385
+ readonly type: "function";
386
+ readonly name: string;
387
+ readonly description: string;
388
+ readonly parameters: {
389
+ readonly [x: string]: unknown;
390
+ };
391
+ readonly strict?: boolean | undefined;
392
+ } | {
393
+ readonly [x: string]: unknown;
394
+ readonly type: string;
395
+ })[];
348
396
  } | {
349
397
  readonly type: "message";
350
398
  readonly role: "system";
@@ -0,0 +1,2 @@
1
+ export { decisionModel as model } from "../openai-compatible.js";
2
+ export type { Settings } from "../openai-compatible.js";
@@ -0,0 +1 @@
1
+ export { decisionModel as model } from "../openai-compatible.js";
@@ -21,6 +21,32 @@ export declare const routes: import("../route.js").Route<{
21
21
  readonly reasoning: {
22
22
  readonly effort: import("../schema/options.js").ReasoningEffort;
23
23
  };
24
+ } | {
25
+ readonly type: "additional_tools";
26
+ readonly role: "developer";
27
+ readonly tools: readonly ({
28
+ readonly type: "custom";
29
+ readonly name: string;
30
+ readonly description: string;
31
+ readonly format: {
32
+ readonly type: "text";
33
+ } | {
34
+ readonly type: "grammar";
35
+ readonly syntax: "lark" | "regex";
36
+ readonly definition: string;
37
+ };
38
+ } | {
39
+ readonly type: "function";
40
+ readonly name: string;
41
+ readonly description: string;
42
+ readonly parameters: {
43
+ readonly [x: string]: unknown;
44
+ };
45
+ readonly strict?: boolean | undefined;
46
+ } | {
47
+ readonly [x: string]: unknown;
48
+ readonly type: string;
49
+ })[];
24
50
  } | {
25
51
  readonly type: "message";
26
52
  readonly role: "system";
@@ -194,6 +194,7 @@ export declare const configure: (input: Config) => {
194
194
  model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route.js").CompactionOperations | undefined>;
195
195
  image: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
196
196
  embedding: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../embedding.js").EmbeddingModel<OpenAIEmbeddingOptionsInput>;
197
+ decision: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
197
198
  configure: typeof configure;
198
199
  };
199
200
  export declare const provider: {
@@ -203,4 +204,5 @@ export declare const provider: {
203
204
  export declare const model: ProviderPackage.Model<Settings, OpenAIProviderOptionsInput>;
204
205
  export declare const imageModel: (modelID: string, settings: Settings) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
205
206
  export declare const embeddingModel: (modelID: string, settings: Settings) => import("../embedding.js").EmbeddingModel<OpenAIEmbeddingOptionsInput>;
207
+ export declare const decisionModel: (modelID: string, settings: Settings) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
206
208
  export * as OpenAICompatible from "./openai-compatible.js";
@@ -2,6 +2,7 @@ import { mergeProviderOptions, ProviderID, } from "../schema/index.js";
2
2
  import { OpenAICompatibleChat } from "../protocols/openai-compatible-chat.js";
3
3
  import { OpenAIEmbeddings } from "../protocols/openai-embeddings.js";
4
4
  import { OpenAIImages } from "../protocols/openai-images.js";
5
+ import { SystemOne } from "../protocols/system-one.js";
5
6
  import { MediaRoute } from "../route/media.js";
6
7
  import { AuthOptions } from "../route/auth-options.js";
7
8
  import { toConfig } from "./settings.js";
@@ -25,6 +26,13 @@ export const configure = (input) => {
25
26
  headers: input.headers,
26
27
  http: input.http,
27
28
  });
29
+ const decisionRoute = SystemOne.route.with({
30
+ provider,
31
+ endpoint: { baseURL },
32
+ auth,
33
+ headers: input.headers,
34
+ http: input.http,
35
+ });
28
36
  return {
29
37
  id: ProviderID.make(provider),
30
38
  model: (modelID) => route.model({ id: modelID }),
@@ -37,6 +45,8 @@ export const configure = (input) => {
37
45
  providerOptions: mergeProviderOptions(/gpt-image|chatgpt-image/.test(modelID) ? undefined : { response_format: "b64_json" }, providerOptions),
38
46
  }),
39
47
  embedding: (modelID, providerOptions) => embeddingRoute.model({ id: modelID, providerOptions }),
48
+ // Compatible hosts follow llama.cpp's System One API, which takes inline media in root `images` (alias of `files`).
49
+ decision: (modelID, providerOptions) => decisionRoute.model({ id: modelID, compatibility: { mediaInput: "root" }, providerOptions }),
40
50
  configure,
41
51
  };
42
52
  };
@@ -53,6 +63,10 @@ export const embeddingModel = (modelID, settings) => {
53
63
  const input = config(settings);
54
64
  return configure(input).embedding(modelID, input.providerOptions);
55
65
  };
66
+ export const decisionModel = (modelID, settings) => {
67
+ const input = config(settings);
68
+ return configure(input).decision(modelID, input.providerOptions);
69
+ };
56
70
  function config({ provider, ...settings }) {
57
71
  return { ...toConfig(settings), provider };
58
72
  }
@@ -194,6 +194,32 @@ export declare const routes: (Route<{
194
194
  readonly reasoning: {
195
195
  readonly effort: import("../schema/options.js").ReasoningEffort;
196
196
  };
197
+ } | {
198
+ readonly type: "additional_tools";
199
+ readonly role: "developer";
200
+ readonly tools: readonly ({
201
+ readonly type: "custom";
202
+ readonly name: string;
203
+ readonly description: string;
204
+ readonly format: {
205
+ readonly type: "text";
206
+ } | {
207
+ readonly type: "grammar";
208
+ readonly syntax: "lark" | "regex";
209
+ readonly definition: string;
210
+ };
211
+ } | {
212
+ readonly type: "function";
213
+ readonly name: string;
214
+ readonly description: string;
215
+ readonly parameters: {
216
+ readonly [x: string]: unknown;
217
+ };
218
+ readonly strict?: boolean | undefined;
219
+ } | {
220
+ readonly [x: string]: unknown;
221
+ readonly type: string;
222
+ })[];
197
223
  } | {
198
224
  readonly type: "message";
199
225
  readonly role: "system";
@@ -0,0 +1,2 @@
1
+ export { videoModel as model } from "../openrouter.js";
2
+ export type { Settings } from "../openrouter.js";
@@ -0,0 +1 @@
1
+ export { videoModel as model } from "../openrouter.js";
@@ -7,6 +7,7 @@ import type { ProviderPackage } from "../provider-package.js";
7
7
  import { HttpTransport } from "../route/transport/index.js";
8
8
  import { OpenAIChat } from "../protocols/openai-chat.js";
9
9
  import type { OpenResponsesProviderOptionsInput } from "./open-responses-options.js";
10
+ export type { OpenRouterVideoOptions } from "../protocols/openrouter-video.js";
10
11
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
11
12
  export interface OpenRouterProviderRouting {
12
13
  readonly [key: string]: unknown;
@@ -746,6 +747,32 @@ export declare const routes: (Route<{
746
747
  readonly reasoning: {
747
748
  readonly effort: import("../schema/options.js").ReasoningEffort;
748
749
  };
750
+ } | {
751
+ readonly type: "additional_tools";
752
+ readonly role: "developer";
753
+ readonly tools: readonly ({
754
+ readonly type: "custom";
755
+ readonly name: string;
756
+ readonly description: string;
757
+ readonly format: {
758
+ readonly type: "text";
759
+ } | {
760
+ readonly type: "grammar";
761
+ readonly syntax: "lark" | "regex";
762
+ readonly definition: string;
763
+ };
764
+ } | {
765
+ readonly type: "function";
766
+ readonly name: string;
767
+ readonly description: string;
768
+ readonly parameters: {
769
+ readonly [x: string]: unknown;
770
+ };
771
+ readonly strict?: boolean | undefined;
772
+ } | {
773
+ readonly [x: string]: unknown;
774
+ readonly type: string;
775
+ })[];
749
776
  } | {
750
777
  readonly type: "message";
751
778
  readonly role: "system";
@@ -1146,6 +1173,7 @@ export declare const configure: (input?: Config) => {
1146
1173
  chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<OpenRouterOptions, import("../route/client.js").CompactionOperations | undefined>;
1147
1174
  responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<OpenRouterResponsesProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
1148
1175
  image: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
1176
+ video: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../video.js").VideoModel<import("./openrouter.js").OpenRouterVideoOptions>;
1149
1177
  decision: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../decision.js").DecisionModel<OpenRouterDecisionOptions>;
1150
1178
  embedding: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../embedding.js").EmbeddingModel<OpenRouterEmbeddingOptions>;
1151
1179
  configure: typeof configure;
@@ -1156,6 +1184,7 @@ export declare const provider: {
1156
1184
  chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<OpenRouterOptions, import("../route/client.js").CompactionOperations | undefined>;
1157
1185
  responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<OpenRouterResponsesProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
1158
1186
  image: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
1187
+ video: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../video.js").VideoModel<import("./openrouter.js").OpenRouterVideoOptions>;
1159
1188
  decision: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../decision.js").DecisionModel<OpenRouterDecisionOptions>;
1160
1189
  embedding: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../embedding.js").EmbeddingModel<OpenRouterEmbeddingOptions>;
1161
1190
  configure: typeof configure;
@@ -1163,11 +1192,13 @@ export declare const provider: {
1163
1192
  export declare const decision: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../decision.js").DecisionModel<OpenRouterDecisionOptions>;
1164
1193
  export declare const embedding: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../embedding.js").EmbeddingModel<OpenRouterEmbeddingOptions>;
1165
1194
  export declare const image: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
1195
+ export declare const video: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../video.js").VideoModel<import("./openrouter.js").OpenRouterVideoOptions>;
1166
1196
  export declare const chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<OpenRouterOptions, import("../route/client.js").CompactionOperations | undefined>;
1167
1197
  export declare const responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<OpenRouterResponsesProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
1168
1198
  export declare const model: ProviderPackage.Model<Settings, OpenRouterProviderOptionsInput>;
1169
1199
  export declare const responsesModel: ProviderPackage.Model<Settings<OpenRouterResponsesProviderOptionsInput>, OpenRouterResponsesProviderOptionsInput>;
1170
1200
  export declare const imageModel: (modelID: string, settings?: Settings) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
1201
+ export declare const videoModel: (modelID: string, settings?: Settings) => import("../video.js").VideoModel<import("./openrouter.js").OpenRouterVideoOptions>;
1171
1202
  export declare const decisionModel: (modelID: string, settings?: Settings) => import("../decision.js").DecisionModel<OpenRouterDecisionOptions>;
1172
1203
  export declare const embeddingModel: (modelID: string, settings?: Settings) => import("../embedding.js").EmbeddingModel<OpenRouterEmbeddingOptions>;
1173
1204
  export * as OpenRouter from "./openrouter.js";
@@ -6,6 +6,7 @@ import { ProviderID, } from "../schema/index.js";
6
6
  import { SystemOne } from "../protocols/system-one.js";
7
7
  import { OpenAIEmbeddings } from "../protocols/openai-embeddings.js";
8
8
  import { OpenAIImages } from "../protocols/openai-images.js";
9
+ import { OpenRouterVideo } from "../protocols/openrouter-video.js";
9
10
  import { MediaRoute } from "../route/media.js";
10
11
  import { HttpTransport } from "../route/transport/index.js";
11
12
  import { OpenAIChat } from "../protocols/openai-chat.js";
@@ -155,6 +156,7 @@ export const configure = (input = {}) => {
155
156
  sizing: imageSizing,
156
157
  imageInput: "references",
157
158
  });
159
+ const video = (modelID, providerOptions) => OpenRouterVideo.model({ ...media, id: modelID, providerOptions });
158
160
  const decision = (modelID, providerOptions) => decisionRoute.model({
159
161
  id: modelID,
160
162
  compatibility: { mediaInput: "state" },
@@ -175,6 +177,7 @@ export const configure = (input = {}) => {
175
177
  chat,
176
178
  responses: (modelID) => configuredResponses.model({ id: modelID }),
177
179
  image,
180
+ video,
178
181
  decision,
179
182
  embedding,
180
183
  configure,
@@ -184,6 +187,7 @@ export const provider = configure();
184
187
  export const decision = provider.decision;
185
188
  export const embedding = provider.embedding;
186
189
  export const image = provider.image;
190
+ export const video = provider.video;
187
191
  export const chat = provider.chat;
188
192
  export const responses = provider.responses;
189
193
  export const model = (modelID, settings) => configure(toConfig(settings)).model(modelID);
@@ -192,6 +196,10 @@ export const imageModel = (modelID, settings) => {
192
196
  const input = toConfig(settings);
193
197
  return configure(input).image(modelID, input.providerOptions);
194
198
  };
199
+ export const videoModel = (modelID, settings) => {
200
+ const input = toConfig(settings);
201
+ return configure(input).video(modelID, input.providerOptions);
202
+ };
195
203
  export const decisionModel = (modelID, settings) => {
196
204
  const input = toConfig(settings);
197
205
  return configure(input).decision(modelID, input.providerOptions);
@@ -23,6 +23,32 @@ export declare const routes: (Route<{
23
23
  readonly reasoning: {
24
24
  readonly effort: import("../schema/options.js").ReasoningEffort;
25
25
  };
26
+ } | {
27
+ readonly type: "additional_tools";
28
+ readonly role: "developer";
29
+ readonly tools: readonly ({
30
+ readonly type: "custom";
31
+ readonly name: string;
32
+ readonly description: string;
33
+ readonly format: {
34
+ readonly type: "text";
35
+ } | {
36
+ readonly type: "grammar";
37
+ readonly syntax: "lark" | "regex";
38
+ readonly definition: string;
39
+ };
40
+ } | {
41
+ readonly type: "function";
42
+ readonly name: string;
43
+ readonly description: string;
44
+ readonly parameters: {
45
+ readonly [x: string]: unknown;
46
+ };
47
+ readonly strict?: boolean | undefined;
48
+ } | {
49
+ readonly [x: string]: unknown;
50
+ readonly type: string;
51
+ })[];
26
52
  } | {
27
53
  readonly type: "message";
28
54
  readonly role: "system";
@@ -0,0 +1,2 @@
1
+ export { videoModel as model } from "../volcengine.js";
2
+ export type { Settings } from "../volcengine.js";
@@ -0,0 +1 @@
1
+ export { videoModel as model } from "../volcengine.js";
@@ -0,0 +1,26 @@
1
+ import type { ProviderPackage } from "../provider-package.js";
2
+ import { type ProviderAuthOption } from "../route/auth-options.js";
3
+ import { type HttpOptions, type ModelID, type ProviderOptions } from "../schema/index.js";
4
+ export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
5
+ export type Config = ProviderAuthOption<"optional"> & {
6
+ readonly baseURL?: string;
7
+ readonly headers?: Record<string, string>;
8
+ readonly http?: HttpOptions;
9
+ };
10
+ export type Settings = ProviderPackage.Settings & {
11
+ readonly apiKey?: string | false;
12
+ readonly baseURL?: string;
13
+ };
14
+ export type { SeedanceVideoOptions } from "../protocols/seedance-video.js";
15
+ export declare const configure: (input?: Config) => {
16
+ id: string & import("effect/Brand").Brand<"AI.ProviderID">;
17
+ video: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../video.js").VideoModel<import("../protocols/seedance-video.js").SeedanceVideoOptions>;
18
+ configure: typeof configure;
19
+ };
20
+ export declare const provider: {
21
+ id: string & import("effect/Brand").Brand<"AI.ProviderID">;
22
+ video: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../video.js").VideoModel<import("../protocols/seedance-video.js").SeedanceVideoOptions>;
23
+ configure: typeof configure;
24
+ };
25
+ export declare const videoModel: (modelID: string, settings?: Settings) => import("../video.js").VideoModel<import("../protocols/seedance-video.js").SeedanceVideoOptions>;
26
+ export declare const video: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../video.js").VideoModel<import("../protocols/seedance-video.js").SeedanceVideoOptions>;
@@ -0,0 +1,21 @@
1
+ import { SeedanceVideo } from "../protocols/seedance-video.js";
2
+ import { AuthOptions } from "../route/auth-options.js";
3
+ import { MediaRoute } from "../route/media.js";
4
+ import { ProviderID } from "../schema/index.js";
5
+ import { toConfig } from "./settings.js";
6
+ export const id = ProviderID.make("volcengine");
7
+ const auth = (options) => AuthOptions.bearer(options, "ARK_API_KEY");
8
+ export const configure = (input = {}) => {
9
+ const media = MediaRoute.deployment(input, auth(input));
10
+ return {
11
+ id,
12
+ video: (modelID, providerOptions) => SeedanceVideo.volcengine.model({ ...media, id: modelID, providerOptions }),
13
+ configure,
14
+ };
15
+ };
16
+ export const provider = configure();
17
+ export const videoModel = (modelID, settings) => {
18
+ const input = toConfig(settings);
19
+ return configure(input).video(modelID, input.providerOptions);
20
+ };
21
+ export const video = provider.video;
@@ -0,0 +1,2 @@
1
+ export { videoModel as model } from "../xai.js";
2
+ export type { Settings } from "../xai.js";
@@ -0,0 +1 @@
1
+ export { videoModel as model } from "../xai.js";
@@ -208,7 +208,7 @@ export declare const configure: (input?: Config) => {
208
208
  }>;
209
209
  chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<XAIProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
210
210
  image: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../image.js").ImageModel<import("../protocols/xai-images.js").XAIImageOptions>;
211
- video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/xai-video.js").XAIVideoOptions>;
211
+ video: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../video.js").VideoModel<import("../protocols/xai-video.js").XAIVideoOptions>;
212
212
  configure: typeof configure;
213
213
  };
214
214
  export declare const provider: {
@@ -221,14 +221,15 @@ export declare const provider: {
221
221
  }>;
222
222
  chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<XAIProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
223
223
  image: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../image.js").ImageModel<import("../protocols/xai-images.js").XAIImageOptions>;
224
- video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/xai-video.js").XAIVideoOptions>;
224
+ video: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../video.js").VideoModel<import("../protocols/xai-video.js").XAIVideoOptions>;
225
225
  configure: typeof configure;
226
226
  };
227
227
  export declare const model: ProviderPackage.Model<Settings, XAIProviderOptionsInput, typeof responsesRoute.compact>;
228
228
  export declare const imageModel: (modelID: string, settings?: Settings) => import("../image.js").ImageModel<import("../protocols/xai-images.js").XAIImageOptions>;
229
+ export declare const videoModel: (modelID: string, settings?: Settings) => import("../video.js").VideoModel<import("../protocols/xai-video.js").XAIVideoOptions>;
229
230
  export declare const responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<XAIProviderOptionsInput, {
230
231
  endpoint: import("../route/client.js").CompactOperation;
231
232
  }>;
232
233
  export declare const chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<XAIProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
233
234
  export declare const image: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../image.js").ImageModel<import("../protocols/xai-images.js").XAIImageOptions>;
234
- export declare const video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/xai-video.js").XAIVideoOptions>;
235
+ export declare const video: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../video.js").VideoModel<import("../protocols/xai-video.js").XAIVideoOptions>;
@@ -69,7 +69,7 @@ export const configure = (input = {}) => {
69
69
  responses,
70
70
  chat,
71
71
  image: (modelID, providerOptions) => XAIImages.model({ ...media, id: modelID, providerOptions }),
72
- video: (modelID) => XAIVideo.model({ ...media, id: modelID }),
72
+ video: (modelID, providerOptions) => XAIVideo.model({ ...media, id: modelID, providerOptions }),
73
73
  configure,
74
74
  };
75
75
  };
@@ -79,6 +79,10 @@ export const imageModel = (modelID, settings) => {
79
79
  const input = toConfig(settings);
80
80
  return configure(input).image(modelID, input.providerOptions);
81
81
  };
82
+ export const videoModel = (modelID, settings) => {
83
+ const input = toConfig(settings);
84
+ return configure(input).video(modelID, input.providerOptions);
85
+ };
82
86
  export const responses = provider.responses;
83
87
  export const chat = provider.chat;
84
88
  export const image = provider.image;
@@ -26,6 +26,32 @@ export declare const routes: (Route<{
26
26
  readonly reasoning: {
27
27
  readonly effort: import("../schema/options.js").ReasoningEffort;
28
28
  };
29
+ } | {
30
+ readonly type: "additional_tools";
31
+ readonly role: "developer";
32
+ readonly tools: readonly ({
33
+ readonly type: "custom";
34
+ readonly name: string;
35
+ readonly description: string;
36
+ readonly format: {
37
+ readonly type: "text";
38
+ } | {
39
+ readonly type: "grammar";
40
+ readonly syntax: "lark" | "regex";
41
+ readonly definition: string;
42
+ };
43
+ } | {
44
+ readonly type: "function";
45
+ readonly name: string;
46
+ readonly description: string;
47
+ readonly parameters: {
48
+ readonly [x: string]: unknown;
49
+ };
50
+ readonly strict?: boolean | undefined;
51
+ } | {
52
+ readonly [x: string]: unknown;
53
+ readonly type: string;
54
+ })[];
29
55
  } | {
30
56
  readonly type: "message";
31
57
  readonly role: "system";
@@ -629,14 +655,36 @@ export declare const routes: (Route<{
629
655
  })[];
630
656
  } | {
631
657
  readonly role: "system";
632
- readonly content: readonly {
658
+ readonly content: readonly ({
659
+ readonly type: "tool_addition";
660
+ readonly tool: {
661
+ readonly type: "tool_definition";
662
+ readonly definition: {
663
+ readonly name: string;
664
+ readonly description: string;
665
+ readonly input_schema: {
666
+ readonly [x: string]: unknown;
667
+ };
668
+ readonly cache_control?: {
669
+ readonly type: "ephemeral";
670
+ readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
671
+ } | undefined;
672
+ };
673
+ };
674
+ } | {
675
+ readonly type: "tool_removal";
676
+ readonly tool: {
677
+ readonly type: "tool_reference";
678
+ readonly name: string;
679
+ };
680
+ } | {
633
681
  readonly type: "text";
634
682
  readonly text: string;
635
683
  readonly cache_control?: {
636
684
  readonly type: "ephemeral";
637
685
  readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
638
686
  } | undefined;
639
- }[];
687
+ })[];
640
688
  readonly output_config?: {
641
689
  readonly effort: string;
642
690
  } | undefined;
package/dist/public.d.ts CHANGED
@@ -1,14 +1,17 @@
1
1
  export { isContextOverflow, isContextOverflowFailure, isRetryable } from "./provider-error.js";
2
- export { ProtocolID, RouteID, ModelID, ProviderID, ResponseID, ContentBlockID, ToolCallID, JsonSchema, ProviderOptions, ProviderMetadata, HttpTimeout, RequestEncoding, GENERATION_KEYS, ReasoningEfforts, ReasoningEffort, LanguageModelCompatibility, LanguageModel, LanguageModelSchema, CacheTTL, CacheHint, CachePolicyObject, CachePolicy, MessageRole, SystemPart, TextPart, MediaPart, ToolResultValue, ToolOutput, ToolCallPart, ToolResultPart, ReasoningPart, CompactionPart, EffortPart, ContentPart, Message, SystemMessage, UserMessage, AssistantMessage, ToolMessage, Freeform, ToolDefinition, ToolNamespace, ToolEntry, ToolChoice, FinishReason, Usage, MediaUsage, CompactionResponse, CompactionCheckpointResponse, StepStart, TextStart, TextDelta, TextEnd, ReasoningStart, ReasoningDelta, ReasoningEnd, ToolInputStart, ToolInputDelta, ToolInputEnd, ToolInputError, ToolCall, ToolResult, FinishReasonDetails, StepFinish, Finish, MediaEvent, RawEvent, LLMEvent, LLMResponse, HttpContext, HttpRateLimitDetails, InvalidRequestError, UnsupportedOperationError, ProviderConfigurationError, AuthenticationError, RateLimitError, QuotaExceededError, ContentPolicyError, ProviderInternalError, TransportType, TransportOperation, TransportError, InvalidProviderOutputError, UnknownProviderError, TimeoutError, AIErrorReason, AIError, } from "./schema/index.js";
2
+ export { ProtocolID, RouteID, ModelID, ProviderID, ResponseID, ContentBlockID, ToolCallID, JsonSchema, ProviderOptions, ProviderMetadata, HttpTimeout, RequestEncoding, GENERATION_KEYS, ReasoningEfforts, ReasoningEffort, LanguageModelCompatibility, LanguageModel, LanguageModelSchema, CacheTTL, CacheHint, CachePolicyObject, CachePolicy, MessageRole, SystemPart, TextPart, MediaPart, ToolResultValue, ToolOutput, ToolCallPart, ToolResultPart, ReasoningPart, CompactionPart, EffortPart, ContentPart, ToolChanges, Message, SystemMessage, UserMessage, AssistantMessage, ToolMessage, Freeform, ToolDefinition, ToolNamespace, ToolEntry, ToolChoice, FinishReason, Usage, MediaUsage, CompactionResponse, CompactionCheckpointResponse, StepStart, TextStart, TextDelta, TextEnd, ReasoningStart, ReasoningDelta, ReasoningEnd, ToolInputStart, ToolInputDelta, ToolInputEnd, ToolInputError, ToolCall, ToolResult, FinishReasonDetails, StepFinish, Finish, MediaEvent, RawEvent, LLMEvent, LLMResponse, HttpContext, HttpRateLimitDetails, InvalidRequestError, UnsupportedOperationError, ProviderConfigurationError, AuthenticationError, RateLimitError, QuotaExceededError, ContentPolicyError, ProviderInternalError, TransportType, TransportOperation, TransportError, InvalidProviderOutputError, UnknownProviderError, TimeoutError, AIErrorReason, AIError, } from "./schema/index.js";
3
3
  export type { BaseRequest, ContentPartInput, GenerationOptionsFields, HttpOptions, RequestOptions, LanguageModelInput, LanguageModelProviderOptions, LLMRequest, MediaPartInput, RequestTimeout, TimeoutConfig, ToolDefinitionInput, ToolNamespaceInput, ToolNamespaceEntryInput, ToolEntryInput, TransportOptions, UsageInput, } from "./schema/index.js";
4
4
  export { ImageAspectRatio, ImageEvent, ImageModel, ImageModelSchema, ImageResponse } from "./image.js";
5
- export type { ImageModelOptions, ImageOptions, ImageRequest, ImageRequestInput, ImageResolution, ImageRoute, } from "./image.js";
5
+ export type { ImageJob, ImageModelOptions, ImageOptions, ImageRequest, ImageRequestInput, ImageResolution, ImageRoute, ImageStatus, } from "./image.js";
6
+ export { VideoAspectRatio, VideoDuration, VideoModel, VideoModelSchema, VideoResponse } from "./video.js";
7
+ export type { VideoJob, VideoModelOptions, VideoOptions, VideoRequest, VideoRequestInput, VideoResolution, VideoRoute, VideoStatus, } from "./video.js";
6
8
  export { ChoiceAnswer, ChoiceQuestion, ChoiceValue, DecisionAnswer, DecisionJsonPart, DecisionMediaPart, DecisionModel, DecisionModelCompatibility, DecisionModelSchema, DecisionPart, DecisionQuestion, DecisionResponse, DecisionTextPart, DecisionUsage, ErrorAnswer, ErrorReason, PredicateAnswer, PredicateQuestion, ScoreAnswer, ScoreQuestion, } from "./decision.js";
7
9
  export type { AnswerFor, AnswersFor, DecisionInput, DecisionMediaPartInput, DecisionModelOptions, DecisionOptions, DecisionPartInput, DecisionQuestions, DecisionRequest, DecisionRequestInput, DecisionResponseFor, DecisionModelRoute, } from "./decision.js";
8
10
  export { EmbeddingModel, EmbeddingModelSchema, EmbeddingResponse, EmbeddingUsage, EmbeddingValue } from "./embedding.js";
9
11
  export type { EmbeddingInputType, EmbeddingModelOptions, EmbeddingModelRoute, EmbeddingOptions, EmbeddingRequest, EmbeddingRequestInput, EmbeddingValueInput, } from "./embedding.js";
10
12
  export { Media } from "./media.js";
11
- export type { AwaitOptions as GenerationAwaitOptions, Event as GenerationEvent, Poll, Route as GenerationRoute, Snapshot as GenerationSnapshot, Status as GenerationStatus, } from "./generation.js";
12
- export type { ExecutableTool, Tool, ToolExecute, ToolExecuteContext, ToolInput, ToolInputType, ToolModelOutputInput, ToolOptions, ToolSchema, ToolToModelOutput, } from "./tool.js";
13
+ export type { AwaitOptions as GenerationAwaitOptions, Event as GenerationEvent, Poll, Reason as GenerationReason, Route as GenerationRoute, Snapshot as GenerationSnapshot, Status as GenerationStatus, } from "./generation.js";
14
+ export type { ExecutableTool, Tool, ToolChangesInput, ToolExecute, ToolExecuteContext, ToolInput, ToolInputType, ToolModelOutputInput, ToolOptions, ToolSchema, ToolToModelOutput, } from "./tool.js";
13
15
  export type { LLM } from "./llm.js";
14
16
  export type { LLMLoopInput, LLMRequestInput } from "./llm.js";
17
+ export type { HttpHandler, HttpMiddleware } from "./route/executor-service.js";
package/dist/public.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export { isContextOverflow, isContextOverflowFailure, isRetryable } from "./provider-error.js";
2
- export { ProtocolID, RouteID, ModelID, ProviderID, ResponseID, ContentBlockID, ToolCallID, JsonSchema, ProviderOptions, ProviderMetadata, HttpTimeout, RequestEncoding, GENERATION_KEYS, ReasoningEfforts, ReasoningEffort, LanguageModelCompatibility, LanguageModel, LanguageModelSchema, CacheTTL, CacheHint, CachePolicyObject, CachePolicy, MessageRole, SystemPart, TextPart, MediaPart, ToolResultValue, ToolOutput, ToolCallPart, ToolResultPart, ReasoningPart, CompactionPart, EffortPart, ContentPart, Message, SystemMessage, UserMessage, AssistantMessage, ToolMessage, Freeform, ToolDefinition, ToolNamespace, ToolEntry, ToolChoice, FinishReason, Usage, MediaUsage, CompactionResponse, CompactionCheckpointResponse, StepStart, TextStart, TextDelta, TextEnd, ReasoningStart, ReasoningDelta, ReasoningEnd, ToolInputStart, ToolInputDelta, ToolInputEnd, ToolInputError, ToolCall, ToolResult, FinishReasonDetails, StepFinish, Finish, MediaEvent, RawEvent, LLMEvent, LLMResponse, HttpContext, HttpRateLimitDetails, InvalidRequestError, UnsupportedOperationError, ProviderConfigurationError, AuthenticationError, RateLimitError, QuotaExceededError, ContentPolicyError, ProviderInternalError, TransportType, TransportOperation, TransportError, InvalidProviderOutputError, UnknownProviderError, TimeoutError, AIErrorReason, AIError, } from "./schema/index.js";
2
+ export { ProtocolID, RouteID, ModelID, ProviderID, ResponseID, ContentBlockID, ToolCallID, JsonSchema, ProviderOptions, ProviderMetadata, HttpTimeout, RequestEncoding, GENERATION_KEYS, ReasoningEfforts, ReasoningEffort, LanguageModelCompatibility, LanguageModel, LanguageModelSchema, CacheTTL, CacheHint, CachePolicyObject, CachePolicy, MessageRole, SystemPart, TextPart, MediaPart, ToolResultValue, ToolOutput, ToolCallPart, ToolResultPart, ReasoningPart, CompactionPart, EffortPart, ContentPart, ToolChanges, Message, SystemMessage, UserMessage, AssistantMessage, ToolMessage, Freeform, ToolDefinition, ToolNamespace, ToolEntry, ToolChoice, FinishReason, Usage, MediaUsage, CompactionResponse, CompactionCheckpointResponse, StepStart, TextStart, TextDelta, TextEnd, ReasoningStart, ReasoningDelta, ReasoningEnd, ToolInputStart, ToolInputDelta, ToolInputEnd, ToolInputError, ToolCall, ToolResult, FinishReasonDetails, StepFinish, Finish, MediaEvent, RawEvent, LLMEvent, LLMResponse, HttpContext, HttpRateLimitDetails, InvalidRequestError, UnsupportedOperationError, ProviderConfigurationError, AuthenticationError, RateLimitError, QuotaExceededError, ContentPolicyError, ProviderInternalError, TransportType, TransportOperation, TransportError, InvalidProviderOutputError, UnknownProviderError, TimeoutError, AIErrorReason, AIError, } from "./schema/index.js";
3
3
  export { ImageAspectRatio, ImageEvent, ImageModel, ImageModelSchema, ImageResponse } from "./image.js";
4
+ export { VideoAspectRatio, VideoDuration, VideoModel, VideoModelSchema, VideoResponse } from "./video.js";
4
5
  export { ChoiceAnswer, ChoiceQuestion, ChoiceValue, DecisionAnswer, DecisionJsonPart, DecisionMediaPart, DecisionModel, DecisionModelCompatibility, DecisionModelSchema, DecisionPart, DecisionQuestion, DecisionResponse, DecisionTextPart, DecisionUsage, ErrorAnswer, ErrorReason, PredicateAnswer, PredicateQuestion, ScoreAnswer, ScoreQuestion, } from "./decision.js";
5
6
  export { EmbeddingModel, EmbeddingModelSchema, EmbeddingResponse, EmbeddingUsage, EmbeddingValue } from "./embedding.js";
6
7
  export { Media } from "./media.js";