@opencode/ai 2.0.15 → 2.0.16

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 (168) hide show
  1. package/README.md +286 -2
  2. package/dist/generation.d.ts +36 -22
  3. package/dist/generation.js +53 -24
  4. package/dist/image-client.d.ts +14 -7
  5. package/dist/image-client.js +24 -8
  6. package/dist/image.d.ts +398 -47
  7. package/dist/image.js +47 -45
  8. package/dist/index.d.ts +13 -1
  9. package/dist/index.js +9 -0
  10. package/dist/media-model.d.ts +44 -0
  11. package/dist/media-model.js +49 -0
  12. package/dist/media.d.ts +10 -9
  13. package/dist/media.js +9 -10
  14. package/dist/promise.d.ts +428 -8
  15. package/dist/promise.js +40 -3
  16. package/dist/protocols/alibaba-chat.d.ts +12 -0
  17. package/dist/protocols/alibaba-responses.d.ts +2 -2
  18. package/dist/protocols/anthropic-messages.js +1 -2
  19. package/dist/protocols/assemblyai-transcription.d.ts +40 -0
  20. package/dist/protocols/assemblyai-transcription.js +138 -0
  21. package/dist/protocols/bedrock-converse.js +5 -11
  22. package/dist/protocols/bfl-images.d.ts +32 -0
  23. package/dist/protocols/bfl-images.js +153 -0
  24. package/dist/protocols/cartesia-speech.d.ts +127 -0
  25. package/dist/protocols/cartesia-speech.js +126 -0
  26. package/dist/protocols/deepgram-speech.d.ts +119 -0
  27. package/dist/protocols/deepgram-speech.js +92 -0
  28. package/dist/protocols/deepgram-transcription.d.ts +25 -0
  29. package/dist/protocols/deepgram-transcription.js +129 -0
  30. package/dist/protocols/elevenlabs-speech.d.ts +122 -0
  31. package/dist/protocols/elevenlabs-speech.js +115 -0
  32. package/dist/protocols/fal-images.d.ts +24 -0
  33. package/dist/protocols/fal-images.js +114 -0
  34. package/dist/protocols/fal-video.d.ts +29 -0
  35. package/dist/protocols/fal-video.js +88 -0
  36. package/dist/protocols/gemini.d.ts +9 -9
  37. package/dist/protocols/gemini.js +8 -34
  38. package/dist/protocols/google-images.js +2 -14
  39. package/dist/protocols/google-speech.d.ts +130 -0
  40. package/dist/protocols/google-speech.js +84 -0
  41. package/dist/protocols/google-transcription.d.ts +173 -0
  42. package/dist/protocols/google-transcription.js +138 -0
  43. package/dist/protocols/google-video.d.ts +26 -0
  44. package/dist/protocols/google-video.js +158 -0
  45. package/dist/protocols/meta-images.js +2 -9
  46. package/dist/protocols/meta-responses.d.ts +4 -4
  47. package/dist/protocols/meta-responses.js +1 -1
  48. package/dist/protocols/open-responses.d.ts +6 -6
  49. package/dist/protocols/open-responses.js +1 -2
  50. package/dist/protocols/openai-chat.d.ts +84 -0
  51. package/dist/protocols/openai-chat.js +26 -14
  52. package/dist/protocols/openai-compatible-chat.d.ts +12 -0
  53. package/dist/protocols/openai-compatible-responses.d.ts +2 -2
  54. package/dist/protocols/openai-images.d.ts +124 -3
  55. package/dist/protocols/openai-images.js +107 -54
  56. package/dist/protocols/openai-responses.d.ts +15 -15
  57. package/dist/protocols/openai-responses.js +5 -6
  58. package/dist/protocols/openai-speech.d.ts +116 -0
  59. package/dist/protocols/openai-speech.js +98 -0
  60. package/dist/protocols/openai-transcription.d.ts +207 -0
  61. package/dist/protocols/openai-transcription.js +190 -0
  62. package/dist/protocols/replicate-images.d.ts +28 -0
  63. package/dist/protocols/replicate-images.js +133 -0
  64. package/dist/protocols/runway-video.d.ts +38 -0
  65. package/dist/protocols/runway-video.js +146 -0
  66. package/dist/protocols/shared.d.ts +13 -3
  67. package/dist/protocols/shared.js +23 -3
  68. package/dist/protocols/stability-images.d.ts +38 -0
  69. package/dist/protocols/stability-images.js +148 -0
  70. package/dist/protocols/utils/fal-queue.d.ts +28 -0
  71. package/dist/protocols/utils/fal-queue.js +69 -0
  72. package/dist/protocols/utils/gemini-generate-content.d.ts +65 -0
  73. package/dist/protocols/utils/gemini-generate-content.js +65 -0
  74. package/dist/protocols/utils/gemini-json-schema.d.ts +3 -0
  75. package/dist/protocols/utils/gemini-json-schema.js +76 -0
  76. package/dist/protocols/utils/media-input.d.ts +8 -0
  77. package/dist/protocols/utils/media-input.js +18 -0
  78. package/dist/protocols/utils/speech-stream.d.ts +49 -0
  79. package/dist/protocols/utils/speech-stream.js +67 -0
  80. package/dist/protocols/utils/tool-schema.d.ts +2 -2
  81. package/dist/protocols/utils/tool-schema.js +40 -17
  82. package/dist/protocols/xai-images.js +1 -12
  83. package/dist/protocols/xai-responses.d.ts +2 -2
  84. package/dist/protocols/xai-video.d.ts +34 -0
  85. package/dist/protocols/xai-video.js +147 -0
  86. package/dist/protocols/zai-chat.d.ts +13 -1
  87. package/dist/provider-error.js +3 -0
  88. package/dist/providers/alibaba.d.ts +14 -2
  89. package/dist/providers/amazon-bedrock-mantle.d.ts +14 -2
  90. package/dist/providers/assemblyai.d.ts +25 -0
  91. package/dist/providers/assemblyai.js +29 -0
  92. package/dist/providers/azure.d.ts +18 -6
  93. package/dist/providers/baseten.d.ts +24 -0
  94. package/dist/providers/black-forest-labs.d.ts +25 -0
  95. package/dist/providers/black-forest-labs.js +28 -0
  96. package/dist/providers/cartesia.d.ts +24 -0
  97. package/dist/providers/cartesia.js +22 -0
  98. package/dist/providers/cerebras.d.ts +24 -0
  99. package/dist/providers/cloudflare-ai-gateway.d.ts +30 -6
  100. package/dist/providers/cloudflare-workers-ai.d.ts +24 -0
  101. package/dist/providers/deepgram.d.ts +29 -0
  102. package/dist/providers/deepgram.js +31 -0
  103. package/dist/providers/deepinfra.d.ts +24 -0
  104. package/dist/providers/deepseek.d.ts +24 -0
  105. package/dist/providers/elevenlabs.d.ts +24 -0
  106. package/dist/providers/elevenlabs.js +28 -0
  107. package/dist/providers/fal.d.ts +29 -0
  108. package/dist/providers/fal.js +33 -0
  109. package/dist/providers/fireworks.d.ts +24 -0
  110. package/dist/providers/google-vertex-chat.d.ts +12 -0
  111. package/dist/providers/google-vertex-responses.d.ts +2 -2
  112. package/dist/providers/google-vertex.d.ts +3 -3
  113. package/dist/providers/google.d.ts +18 -3
  114. package/dist/providers/google.js +11 -2
  115. package/dist/providers/groq.d.ts +24 -0
  116. package/dist/providers/index.d.ts +9 -0
  117. package/dist/providers/index.js +9 -0
  118. package/dist/providers/meta.d.ts +14 -2
  119. package/dist/providers/minimax.d.ts +14 -2
  120. package/dist/providers/moonshot.d.ts +14 -2
  121. package/dist/providers/moonshot.js +3 -3
  122. package/dist/providers/openai-compatible-responses.d.ts +2 -2
  123. package/dist/providers/openai-compatible.d.ts +12 -0
  124. package/dist/providers/openai.d.ts +25 -3
  125. package/dist/providers/openai.js +10 -1
  126. package/dist/providers/openrouter.d.ts +48 -0
  127. package/dist/providers/replicate.d.ts +25 -0
  128. package/dist/providers/replicate.js +22 -0
  129. package/dist/providers/runway.d.ts +24 -0
  130. package/dist/providers/runway.js +22 -0
  131. package/dist/providers/stability.d.ts +28 -0
  132. package/dist/providers/stability.js +23 -0
  133. package/dist/providers/togetherai.d.ts +24 -0
  134. package/dist/providers/xai.d.ts +17 -0
  135. package/dist/providers/xai.js +5 -2
  136. package/dist/providers/zai-coding-plan.d.ts +15 -3
  137. package/dist/providers/zai.d.ts +13 -1
  138. package/dist/route/auth.d.ts +4 -1
  139. package/dist/route/auth.js +6 -0
  140. package/dist/route/framing.d.ts +5 -1
  141. package/dist/route/framing.js +9 -0
  142. package/dist/route/media-protocol.d.ts +116 -3
  143. package/dist/route/media-protocol.js +60 -4
  144. package/dist/route/media.d.ts +58 -7
  145. package/dist/route/media.js +201 -29
  146. package/dist/schema/events.d.ts +0 -6
  147. package/dist/schema/messages.d.ts +0 -3
  148. package/dist/schema/options.d.ts +4 -3
  149. package/dist/schema/options.js +3 -2
  150. package/dist/speech-client.d.ts +21 -0
  151. package/dist/speech-client.js +25 -0
  152. package/dist/speech.d.ts +1150 -0
  153. package/dist/speech.js +119 -0
  154. package/dist/transcription-client.d.ts +28 -0
  155. package/dist/transcription-client.js +44 -0
  156. package/dist/transcription.d.ts +1504 -0
  157. package/dist/transcription.js +133 -0
  158. package/dist/utils/bytes.d.ts +1 -0
  159. package/dist/utils/bytes.js +10 -0
  160. package/dist/utils/media-type.d.ts +1 -0
  161. package/dist/utils/media-type.js +22 -1
  162. package/dist/video-client.d.ts +28 -0
  163. package/dist/video-client.js +40 -0
  164. package/dist/video.d.ts +1359 -0
  165. package/dist/video.js +119 -0
  166. package/package.json +3 -3
  167. package/dist/protocols/utils/gemini-tool-schema.d.ts +0 -2
  168. package/dist/protocols/utils/gemini-tool-schema.js +0 -103
@@ -0,0 +1,1359 @@
1
+ import { Effect, Schema, Stream } from "effect";
2
+ import { Generation, type AwaitOptions } from "./generation.js";
3
+ import { Media } from "./media.js";
4
+ import { MediaModel } from "./media-model.js";
5
+ import { MediaRoute } from "./route/media.js";
6
+ import type { MediaProtocol } from "./route/media-protocol.js";
7
+ import { AIError, HttpOptions } from "./schema/index.js";
8
+ import { Service } from "./video-client.js";
9
+ export type VideoOptions = Record<string, unknown>;
10
+ export type VideoRoute<Options extends VideoOptions = VideoOptions> = MediaRoute.QueuedRoute<VideoRequestFor<Options>, VideoResponse>;
11
+ export declare class VideoModel<Options extends VideoOptions = VideoOptions> extends MediaModel<VideoRoute<Options>, Options> {
12
+ protected readonly _VideoModel: void;
13
+ static make<Options extends VideoOptions = VideoOptions>(input: MediaModel.Input<VideoRoute<Options>>): VideoModel<Options>;
14
+ /** Compose a queued video protocol with its canonical start path into a model for one deployment. */
15
+ static fromRoute<Options extends VideoOptions = VideoOptions, Token = unknown>(route: VideoModel.RouteInput<Options, Token>, input: MediaRoute.ModelInput): VideoModel<Options>;
16
+ }
17
+ export declare namespace VideoModel {
18
+ type RouteInput<Options extends VideoOptions = VideoOptions, Token = unknown> = MediaModel.RouteInput<VideoRequestFor<Options>, MediaProtocol.Queued<VideoRequestFor<Options>, VideoResponse, Token>>;
19
+ }
20
+ export declare const VideoModelSchema: Schema.declare<VideoModel<VideoOptions>, VideoModel<VideoOptions>>;
21
+ export type VideoAspectRatio = Media.AspectRatio;
22
+ export declare const VideoAspectRatio: Schema.declare<`${number}:${number}`, `${number}:${number}`>;
23
+ export type VideoResolution = "480p" | "720p" | "1080p" | "4k" | (string & {});
24
+ /** Pinned frames. Routes that accept only a first frame fail typed when `last` is present. */
25
+ export declare const VideoFrames: Schema.Struct<{
26
+ readonly first: Schema.optional<Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
27
+ readonly source: Schema.Union<readonly [Schema.Struct<{
28
+ readonly type: Schema.Literal<"bytes">;
29
+ readonly data: Schema.Uint8Array;
30
+ readonly mediaType: Schema.String;
31
+ }>, Schema.Struct<{
32
+ readonly type: Schema.Literal<"base64">;
33
+ readonly data: Schema.String;
34
+ readonly mediaType: Schema.String;
35
+ }>, Schema.Struct<{
36
+ readonly type: Schema.Literal<"url">;
37
+ readonly url: Schema.String;
38
+ readonly mediaType: Schema.optional<Schema.String>;
39
+ readonly expiresAt: Schema.optional<Schema.Number>;
40
+ }>, Schema.Struct<{
41
+ readonly type: Schema.Literal<"ref">;
42
+ readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
43
+ readonly id: Schema.String;
44
+ readonly mediaType: Schema.optional<Schema.String>;
45
+ }>]>;
46
+ readonly info: Schema.optional<Schema.Struct<{
47
+ readonly width: Schema.optional<Schema.Number>;
48
+ readonly height: Schema.optional<Schema.Number>;
49
+ readonly durationSeconds: Schema.optional<Schema.Number>;
50
+ readonly sampleRate: Schema.optional<Schema.Number>;
51
+ readonly channels: Schema.optional<Schema.Number>;
52
+ readonly encoding: Schema.optional<Schema.String>;
53
+ readonly format: Schema.optional<Schema.String>;
54
+ }>>;
55
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
56
+ }>, never, never>>;
57
+ readonly last: Schema.optional<Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
58
+ readonly source: Schema.Union<readonly [Schema.Struct<{
59
+ readonly type: Schema.Literal<"bytes">;
60
+ readonly data: Schema.Uint8Array;
61
+ readonly mediaType: Schema.String;
62
+ }>, Schema.Struct<{
63
+ readonly type: Schema.Literal<"base64">;
64
+ readonly data: Schema.String;
65
+ readonly mediaType: Schema.String;
66
+ }>, Schema.Struct<{
67
+ readonly type: Schema.Literal<"url">;
68
+ readonly url: Schema.String;
69
+ readonly mediaType: Schema.optional<Schema.String>;
70
+ readonly expiresAt: Schema.optional<Schema.Number>;
71
+ }>, Schema.Struct<{
72
+ readonly type: Schema.Literal<"ref">;
73
+ readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
74
+ readonly id: Schema.String;
75
+ readonly mediaType: Schema.optional<Schema.String>;
76
+ }>]>;
77
+ readonly info: Schema.optional<Schema.Struct<{
78
+ readonly width: Schema.optional<Schema.Number>;
79
+ readonly height: Schema.optional<Schema.Number>;
80
+ readonly durationSeconds: Schema.optional<Schema.Number>;
81
+ readonly sampleRate: Schema.optional<Schema.Number>;
82
+ readonly channels: Schema.optional<Schema.Number>;
83
+ readonly encoding: Schema.optional<Schema.String>;
84
+ readonly format: Schema.optional<Schema.String>;
85
+ }>>;
86
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
87
+ }>, never, never>>;
88
+ }>;
89
+ export type VideoFrames = Schema.Schema.Type<typeof VideoFrames>;
90
+ declare const VideoRequest_base: Schema.Class<VideoRequest, Schema.Struct<{
91
+ readonly model: Schema.declare<VideoModel<VideoOptions>, VideoModel<VideoOptions>>;
92
+ readonly prompt: Schema.String;
93
+ readonly frames: Schema.optional<Schema.Struct<{
94
+ readonly first: Schema.optional<Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
95
+ readonly source: Schema.Union<readonly [Schema.Struct<{
96
+ readonly type: Schema.Literal<"bytes">;
97
+ readonly data: Schema.Uint8Array;
98
+ readonly mediaType: Schema.String;
99
+ }>, Schema.Struct<{
100
+ readonly type: Schema.Literal<"base64">;
101
+ readonly data: Schema.String;
102
+ readonly mediaType: Schema.String;
103
+ }>, Schema.Struct<{
104
+ readonly type: Schema.Literal<"url">;
105
+ readonly url: Schema.String;
106
+ readonly mediaType: Schema.optional<Schema.String>;
107
+ readonly expiresAt: Schema.optional<Schema.Number>;
108
+ }>, Schema.Struct<{
109
+ readonly type: Schema.Literal<"ref">;
110
+ readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
111
+ readonly id: Schema.String;
112
+ readonly mediaType: Schema.optional<Schema.String>;
113
+ }>]>;
114
+ readonly info: Schema.optional<Schema.Struct<{
115
+ readonly width: Schema.optional<Schema.Number>;
116
+ readonly height: Schema.optional<Schema.Number>;
117
+ readonly durationSeconds: Schema.optional<Schema.Number>;
118
+ readonly sampleRate: Schema.optional<Schema.Number>;
119
+ readonly channels: Schema.optional<Schema.Number>;
120
+ readonly encoding: Schema.optional<Schema.String>;
121
+ readonly format: Schema.optional<Schema.String>;
122
+ }>>;
123
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
124
+ }>, never, never>>;
125
+ readonly last: Schema.optional<Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
126
+ readonly source: Schema.Union<readonly [Schema.Struct<{
127
+ readonly type: Schema.Literal<"bytes">;
128
+ readonly data: Schema.Uint8Array;
129
+ readonly mediaType: Schema.String;
130
+ }>, Schema.Struct<{
131
+ readonly type: Schema.Literal<"base64">;
132
+ readonly data: Schema.String;
133
+ readonly mediaType: Schema.String;
134
+ }>, Schema.Struct<{
135
+ readonly type: Schema.Literal<"url">;
136
+ readonly url: Schema.String;
137
+ readonly mediaType: Schema.optional<Schema.String>;
138
+ readonly expiresAt: Schema.optional<Schema.Number>;
139
+ }>, Schema.Struct<{
140
+ readonly type: Schema.Literal<"ref">;
141
+ readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
142
+ readonly id: Schema.String;
143
+ readonly mediaType: Schema.optional<Schema.String>;
144
+ }>]>;
145
+ readonly info: Schema.optional<Schema.Struct<{
146
+ readonly width: Schema.optional<Schema.Number>;
147
+ readonly height: Schema.optional<Schema.Number>;
148
+ readonly durationSeconds: Schema.optional<Schema.Number>;
149
+ readonly sampleRate: Schema.optional<Schema.Number>;
150
+ readonly channels: Schema.optional<Schema.Number>;
151
+ readonly encoding: Schema.optional<Schema.String>;
152
+ readonly format: Schema.optional<Schema.String>;
153
+ }>>;
154
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
155
+ }>, never, never>>;
156
+ }>>;
157
+ /** Style or subject references that guide the output without pinning a frame. */
158
+ readonly references: Schema.optional<Schema.$Array<Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
159
+ readonly source: Schema.Union<readonly [Schema.Struct<{
160
+ readonly type: Schema.Literal<"bytes">;
161
+ readonly data: Schema.Uint8Array;
162
+ readonly mediaType: Schema.String;
163
+ }>, Schema.Struct<{
164
+ readonly type: Schema.Literal<"base64">;
165
+ readonly data: Schema.String;
166
+ readonly mediaType: Schema.String;
167
+ }>, Schema.Struct<{
168
+ readonly type: Schema.Literal<"url">;
169
+ readonly url: Schema.String;
170
+ readonly mediaType: Schema.optional<Schema.String>;
171
+ readonly expiresAt: Schema.optional<Schema.Number>;
172
+ }>, Schema.Struct<{
173
+ readonly type: Schema.Literal<"ref">;
174
+ readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
175
+ readonly id: Schema.String;
176
+ readonly mediaType: Schema.optional<Schema.String>;
177
+ }>]>;
178
+ readonly info: Schema.optional<Schema.Struct<{
179
+ readonly width: Schema.optional<Schema.Number>;
180
+ readonly height: Schema.optional<Schema.Number>;
181
+ readonly durationSeconds: Schema.optional<Schema.Number>;
182
+ readonly sampleRate: Schema.optional<Schema.Number>;
183
+ readonly channels: Schema.optional<Schema.Number>;
184
+ readonly encoding: Schema.optional<Schema.String>;
185
+ readonly format: Schema.optional<Schema.String>;
186
+ }>>;
187
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
188
+ }>, never, never>>>;
189
+ /** Source video for edit or extension routes. */
190
+ readonly video: Schema.optional<Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
191
+ readonly source: Schema.Union<readonly [Schema.Struct<{
192
+ readonly type: Schema.Literal<"bytes">;
193
+ readonly data: Schema.Uint8Array;
194
+ readonly mediaType: Schema.String;
195
+ }>, Schema.Struct<{
196
+ readonly type: Schema.Literal<"base64">;
197
+ readonly data: Schema.String;
198
+ readonly mediaType: Schema.String;
199
+ }>, Schema.Struct<{
200
+ readonly type: Schema.Literal<"url">;
201
+ readonly url: Schema.String;
202
+ readonly mediaType: Schema.optional<Schema.String>;
203
+ readonly expiresAt: Schema.optional<Schema.Number>;
204
+ }>, Schema.Struct<{
205
+ readonly type: Schema.Literal<"ref">;
206
+ readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
207
+ readonly id: Schema.String;
208
+ readonly mediaType: Schema.optional<Schema.String>;
209
+ }>]>;
210
+ readonly info: Schema.optional<Schema.Struct<{
211
+ readonly width: Schema.optional<Schema.Number>;
212
+ readonly height: Schema.optional<Schema.Number>;
213
+ readonly durationSeconds: Schema.optional<Schema.Number>;
214
+ readonly sampleRate: Schema.optional<Schema.Number>;
215
+ readonly channels: Schema.optional<Schema.Number>;
216
+ readonly encoding: Schema.optional<Schema.String>;
217
+ readonly format: Schema.optional<Schema.String>;
218
+ }>>;
219
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
220
+ }>, never, never>>;
221
+ readonly durationSeconds: Schema.optional<Schema.Number>;
222
+ readonly aspectRatio: Schema.optional<Schema.declare<`${number}:${number}`, `${number}:${number}`>>;
223
+ readonly resolution: Schema.optional<Schema.String>;
224
+ /** Whether to generate an audio track; routes whose audio is always on fail typed on `false`. */
225
+ readonly audio: Schema.optional<Schema.Boolean>;
226
+ readonly n: Schema.optional<Schema.Int>;
227
+ readonly seed: Schema.optional<Schema.Number>;
228
+ readonly negativePrompt: Schema.optional<Schema.String>;
229
+ readonly providerOptions: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
230
+ readonly http: Schema.optional<typeof HttpOptions>;
231
+ }>, {}>;
232
+ export declare class VideoRequest extends VideoRequest_base {
233
+ protected readonly _VideoRequest: void;
234
+ }
235
+ export type VideoRequestFor<Options extends VideoOptions = VideoOptions> = Omit<VideoRequest, "model" | "providerOptions"> & {
236
+ readonly model: VideoModel<Options>;
237
+ readonly providerOptions?: Options;
238
+ };
239
+ export type VideoModelOptions<Model> = Model extends VideoModel<infer Options> ? Options : never;
240
+ export type VideoRequestInput<Model extends VideoModel = VideoModel> = Omit<ConstructorParameters<typeof VideoRequest>[0], "model" | "providerOptions" | "http" | "resolution"> & {
241
+ readonly model: Model;
242
+ readonly resolution?: VideoResolution;
243
+ readonly providerOptions?: NoInfer<VideoModelOptions<Model>>;
244
+ readonly http?: HttpOptions.Input;
245
+ };
246
+ declare const VideoResponse_base: Schema.Class<VideoResponse, Schema.Struct<{
247
+ readonly videos: Schema.$Array<Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
248
+ readonly source: Schema.Union<readonly [Schema.Struct<{
249
+ readonly type: Schema.Literal<"bytes">;
250
+ readonly data: Schema.Uint8Array;
251
+ readonly mediaType: Schema.String;
252
+ }>, Schema.Struct<{
253
+ readonly type: Schema.Literal<"base64">;
254
+ readonly data: Schema.String;
255
+ readonly mediaType: Schema.String;
256
+ }>, Schema.Struct<{
257
+ readonly type: Schema.Literal<"url">;
258
+ readonly url: Schema.String;
259
+ readonly mediaType: Schema.optional<Schema.String>;
260
+ readonly expiresAt: Schema.optional<Schema.Number>;
261
+ }>, Schema.Struct<{
262
+ readonly type: Schema.Literal<"ref">;
263
+ readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
264
+ readonly id: Schema.String;
265
+ readonly mediaType: Schema.optional<Schema.String>;
266
+ }>]>;
267
+ readonly info: Schema.optional<Schema.Struct<{
268
+ readonly width: Schema.optional<Schema.Number>;
269
+ readonly height: Schema.optional<Schema.Number>;
270
+ readonly durationSeconds: Schema.optional<Schema.Number>;
271
+ readonly sampleRate: Schema.optional<Schema.Number>;
272
+ readonly channels: Schema.optional<Schema.Number>;
273
+ readonly encoding: Schema.optional<Schema.String>;
274
+ readonly format: Schema.optional<Schema.String>;
275
+ }>>;
276
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
277
+ }>, never, never>>;
278
+ readonly usage: Schema.optional<Schema.Union<readonly [Schema.Struct<{
279
+ readonly type: Schema.Literal<"tokens">;
280
+ readonly input: Schema.optional<Schema.Number>;
281
+ readonly output: Schema.optional<Schema.Number>;
282
+ readonly total: Schema.optional<Schema.Number>;
283
+ readonly details: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
284
+ }>, Schema.Struct<{
285
+ readonly type: Schema.Literal<"seconds">;
286
+ readonly seconds: Schema.Number;
287
+ }>, Schema.Struct<{
288
+ readonly type: Schema.Literal<"characters">;
289
+ readonly characters: Schema.Number;
290
+ }>, Schema.Struct<{
291
+ readonly type: Schema.Literal<"credits">;
292
+ readonly credits: Schema.Number;
293
+ }>, Schema.Struct<{
294
+ readonly type: Schema.Literal<"compute">;
295
+ readonly seconds: Schema.Number;
296
+ }>]>>;
297
+ readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
298
+ readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
299
+ readonly message: Schema.String;
300
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
301
+ }>>>;
302
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
303
+ }>, {}>;
304
+ export declare class VideoResponse extends VideoResponse_base {
305
+ get video(): Media.Asset;
306
+ }
307
+ export declare const VideoOutputEvent: Schema.Struct<{
308
+ readonly type: Schema.tag<"video">;
309
+ readonly index: Schema.Number;
310
+ readonly video: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
311
+ readonly source: Schema.Union<readonly [Schema.Struct<{
312
+ readonly type: Schema.Literal<"bytes">;
313
+ readonly data: Schema.Uint8Array;
314
+ readonly mediaType: Schema.String;
315
+ }>, Schema.Struct<{
316
+ readonly type: Schema.Literal<"base64">;
317
+ readonly data: Schema.String;
318
+ readonly mediaType: Schema.String;
319
+ }>, Schema.Struct<{
320
+ readonly type: Schema.Literal<"url">;
321
+ readonly url: Schema.String;
322
+ readonly mediaType: Schema.optional<Schema.String>;
323
+ readonly expiresAt: Schema.optional<Schema.Number>;
324
+ }>, Schema.Struct<{
325
+ readonly type: Schema.Literal<"ref">;
326
+ readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
327
+ readonly id: Schema.String;
328
+ readonly mediaType: Schema.optional<Schema.String>;
329
+ }>]>;
330
+ readonly info: Schema.optional<Schema.Struct<{
331
+ readonly width: Schema.optional<Schema.Number>;
332
+ readonly height: Schema.optional<Schema.Number>;
333
+ readonly durationSeconds: Schema.optional<Schema.Number>;
334
+ readonly sampleRate: Schema.optional<Schema.Number>;
335
+ readonly channels: Schema.optional<Schema.Number>;
336
+ readonly encoding: Schema.optional<Schema.String>;
337
+ readonly format: Schema.optional<Schema.String>;
338
+ }>>;
339
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
340
+ }>, never, never>;
341
+ }>;
342
+ export declare const VideoFinishEvent: Schema.Struct<{
343
+ readonly type: Schema.tag<"finish">;
344
+ readonly usage: Schema.optional<Schema.Union<readonly [Schema.Struct<{
345
+ readonly type: Schema.Literal<"tokens">;
346
+ readonly input: Schema.optional<Schema.Number>;
347
+ readonly output: Schema.optional<Schema.Number>;
348
+ readonly total: Schema.optional<Schema.Number>;
349
+ readonly details: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
350
+ }>, Schema.Struct<{
351
+ readonly type: Schema.Literal<"seconds">;
352
+ readonly seconds: Schema.Number;
353
+ }>, Schema.Struct<{
354
+ readonly type: Schema.Literal<"characters">;
355
+ readonly characters: Schema.Number;
356
+ }>, Schema.Struct<{
357
+ readonly type: Schema.Literal<"credits">;
358
+ readonly credits: Schema.Number;
359
+ }>, Schema.Struct<{
360
+ readonly type: Schema.Literal<"compute">;
361
+ readonly seconds: Schema.Number;
362
+ }>]>>;
363
+ readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
364
+ readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
365
+ readonly message: Schema.String;
366
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
367
+ }>>>;
368
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
369
+ }>;
370
+ declare const videoEventTagged: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
371
+ readonly type: Schema.tag<"generation-queued">;
372
+ readonly id: Schema.String;
373
+ readonly position: Schema.optional<Schema.Number>;
374
+ }>, Schema.Struct<{
375
+ readonly type: Schema.tag<"generation-progress">;
376
+ readonly id: Schema.String;
377
+ readonly progress: Schema.optional<Schema.Number>;
378
+ }>, Schema.Struct<{
379
+ readonly type: Schema.tag<"video">;
380
+ readonly index: Schema.Number;
381
+ readonly video: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
382
+ readonly source: Schema.Union<readonly [Schema.Struct<{
383
+ readonly type: Schema.Literal<"bytes">;
384
+ readonly data: Schema.Uint8Array;
385
+ readonly mediaType: Schema.String;
386
+ }>, Schema.Struct<{
387
+ readonly type: Schema.Literal<"base64">;
388
+ readonly data: Schema.String;
389
+ readonly mediaType: Schema.String;
390
+ }>, Schema.Struct<{
391
+ readonly type: Schema.Literal<"url">;
392
+ readonly url: Schema.String;
393
+ readonly mediaType: Schema.optional<Schema.String>;
394
+ readonly expiresAt: Schema.optional<Schema.Number>;
395
+ }>, Schema.Struct<{
396
+ readonly type: Schema.Literal<"ref">;
397
+ readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
398
+ readonly id: Schema.String;
399
+ readonly mediaType: Schema.optional<Schema.String>;
400
+ }>]>;
401
+ readonly info: Schema.optional<Schema.Struct<{
402
+ readonly width: Schema.optional<Schema.Number>;
403
+ readonly height: Schema.optional<Schema.Number>;
404
+ readonly durationSeconds: Schema.optional<Schema.Number>;
405
+ readonly sampleRate: Schema.optional<Schema.Number>;
406
+ readonly channels: Schema.optional<Schema.Number>;
407
+ readonly encoding: Schema.optional<Schema.String>;
408
+ readonly format: Schema.optional<Schema.String>;
409
+ }>>;
410
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
411
+ }>, never, never>;
412
+ }>, Schema.Struct<{
413
+ readonly type: Schema.tag<"finish">;
414
+ readonly usage: Schema.optional<Schema.Union<readonly [Schema.Struct<{
415
+ readonly type: Schema.Literal<"tokens">;
416
+ readonly input: Schema.optional<Schema.Number>;
417
+ readonly output: Schema.optional<Schema.Number>;
418
+ readonly total: Schema.optional<Schema.Number>;
419
+ readonly details: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
420
+ }>, Schema.Struct<{
421
+ readonly type: Schema.Literal<"seconds">;
422
+ readonly seconds: Schema.Number;
423
+ }>, Schema.Struct<{
424
+ readonly type: Schema.Literal<"characters">;
425
+ readonly characters: Schema.Number;
426
+ }>, Schema.Struct<{
427
+ readonly type: Schema.Literal<"credits">;
428
+ readonly credits: Schema.Number;
429
+ }>, Schema.Struct<{
430
+ readonly type: Schema.Literal<"compute">;
431
+ readonly seconds: Schema.Number;
432
+ }>]>>;
433
+ readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
434
+ readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
435
+ readonly message: Schema.String;
436
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
437
+ }>>>;
438
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
439
+ }>]>;
440
+ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
441
+ readonly type: Schema.tag<"generation-queued">;
442
+ readonly id: Schema.String;
443
+ readonly position: Schema.optional<Schema.Number>;
444
+ }>, Schema.Struct<{
445
+ readonly type: Schema.tag<"generation-progress">;
446
+ readonly id: Schema.String;
447
+ readonly progress: Schema.optional<Schema.Number>;
448
+ }>, Schema.Struct<{
449
+ readonly type: Schema.tag<"video">;
450
+ readonly index: Schema.Number;
451
+ readonly video: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
452
+ readonly source: Schema.Union<readonly [Schema.Struct<{
453
+ readonly type: Schema.Literal<"bytes">;
454
+ readonly data: Schema.Uint8Array;
455
+ readonly mediaType: Schema.String;
456
+ }>, Schema.Struct<{
457
+ readonly type: Schema.Literal<"base64">;
458
+ readonly data: Schema.String;
459
+ readonly mediaType: Schema.String;
460
+ }>, Schema.Struct<{
461
+ readonly type: Schema.Literal<"url">;
462
+ readonly url: Schema.String;
463
+ readonly mediaType: Schema.optional<Schema.String>;
464
+ readonly expiresAt: Schema.optional<Schema.Number>;
465
+ }>, Schema.Struct<{
466
+ readonly type: Schema.Literal<"ref">;
467
+ readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
468
+ readonly id: Schema.String;
469
+ readonly mediaType: Schema.optional<Schema.String>;
470
+ }>]>;
471
+ readonly info: Schema.optional<Schema.Struct<{
472
+ readonly width: Schema.optional<Schema.Number>;
473
+ readonly height: Schema.optional<Schema.Number>;
474
+ readonly durationSeconds: Schema.optional<Schema.Number>;
475
+ readonly sampleRate: Schema.optional<Schema.Number>;
476
+ readonly channels: Schema.optional<Schema.Number>;
477
+ readonly encoding: Schema.optional<Schema.String>;
478
+ readonly format: Schema.optional<Schema.String>;
479
+ }>>;
480
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
481
+ }>, never, never>;
482
+ }>, Schema.Struct<{
483
+ readonly type: Schema.tag<"finish">;
484
+ readonly usage: Schema.optional<Schema.Union<readonly [Schema.Struct<{
485
+ readonly type: Schema.Literal<"tokens">;
486
+ readonly input: Schema.optional<Schema.Number>;
487
+ readonly output: Schema.optional<Schema.Number>;
488
+ readonly total: Schema.optional<Schema.Number>;
489
+ readonly details: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
490
+ }>, Schema.Struct<{
491
+ readonly type: Schema.Literal<"seconds">;
492
+ readonly seconds: Schema.Number;
493
+ }>, Schema.Struct<{
494
+ readonly type: Schema.Literal<"characters">;
495
+ readonly characters: Schema.Number;
496
+ }>, Schema.Struct<{
497
+ readonly type: Schema.Literal<"credits">;
498
+ readonly credits: Schema.Number;
499
+ }>, Schema.Struct<{
500
+ readonly type: Schema.Literal<"compute">;
501
+ readonly seconds: Schema.Number;
502
+ }>]>>;
503
+ readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
504
+ readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
505
+ readonly message: Schema.String;
506
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
507
+ }>>>;
508
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
509
+ }>]> & {
510
+ readonly discriminants: readonly ["generation-queued", "generation-progress", "video", "finish"];
511
+ readonly cases: {
512
+ "generation-queued": Schema.Struct<{
513
+ readonly type: Schema.tag<"generation-queued">;
514
+ readonly id: Schema.String;
515
+ readonly position: Schema.optional<Schema.Number>;
516
+ }>;
517
+ "generation-progress": Schema.Struct<{
518
+ readonly type: Schema.tag<"generation-progress">;
519
+ readonly id: Schema.String;
520
+ readonly progress: Schema.optional<Schema.Number>;
521
+ }>;
522
+ video: Schema.Struct<{
523
+ readonly type: Schema.tag<"video">;
524
+ readonly index: Schema.Number;
525
+ readonly video: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
526
+ readonly source: Schema.Union<readonly [Schema.Struct<{
527
+ readonly type: Schema.Literal<"bytes">;
528
+ readonly data: Schema.Uint8Array;
529
+ readonly mediaType: Schema.String;
530
+ }>, Schema.Struct<{
531
+ readonly type: Schema.Literal<"base64">;
532
+ readonly data: Schema.String;
533
+ readonly mediaType: Schema.String;
534
+ }>, Schema.Struct<{
535
+ readonly type: Schema.Literal<"url">;
536
+ readonly url: Schema.String;
537
+ readonly mediaType: Schema.optional<Schema.String>;
538
+ readonly expiresAt: Schema.optional<Schema.Number>;
539
+ }>, Schema.Struct<{
540
+ readonly type: Schema.Literal<"ref">;
541
+ readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
542
+ readonly id: Schema.String;
543
+ readonly mediaType: Schema.optional<Schema.String>;
544
+ }>]>;
545
+ readonly info: Schema.optional<Schema.Struct<{
546
+ readonly width: Schema.optional<Schema.Number>;
547
+ readonly height: Schema.optional<Schema.Number>;
548
+ readonly durationSeconds: Schema.optional<Schema.Number>;
549
+ readonly sampleRate: Schema.optional<Schema.Number>;
550
+ readonly channels: Schema.optional<Schema.Number>;
551
+ readonly encoding: Schema.optional<Schema.String>;
552
+ readonly format: Schema.optional<Schema.String>;
553
+ }>>;
554
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
555
+ }>, never, never>;
556
+ }>;
557
+ finish: Schema.Struct<{
558
+ readonly type: Schema.tag<"finish">;
559
+ readonly usage: Schema.optional<Schema.Union<readonly [Schema.Struct<{
560
+ readonly type: Schema.Literal<"tokens">;
561
+ readonly input: Schema.optional<Schema.Number>;
562
+ readonly output: Schema.optional<Schema.Number>;
563
+ readonly total: Schema.optional<Schema.Number>;
564
+ readonly details: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
565
+ }>, Schema.Struct<{
566
+ readonly type: Schema.Literal<"seconds">;
567
+ readonly seconds: Schema.Number;
568
+ }>, Schema.Struct<{
569
+ readonly type: Schema.Literal<"characters">;
570
+ readonly characters: Schema.Number;
571
+ }>, Schema.Struct<{
572
+ readonly type: Schema.Literal<"credits">;
573
+ readonly credits: Schema.Number;
574
+ }>, Schema.Struct<{
575
+ readonly type: Schema.Literal<"compute">;
576
+ readonly seconds: Schema.Number;
577
+ }>]>>;
578
+ readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
579
+ readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
580
+ readonly message: Schema.String;
581
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
582
+ }>>>;
583
+ readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
584
+ }>;
585
+ };
586
+ readonly isAnyOf: <const Keys>(keys: readonly Keys[]) => (value: {
587
+ readonly id: string;
588
+ readonly type: "generation-queued";
589
+ readonly position?: number | undefined;
590
+ } | {
591
+ readonly id: string;
592
+ readonly type: "generation-progress";
593
+ readonly progress?: number | undefined;
594
+ } | {
595
+ readonly type: "video";
596
+ readonly index: number;
597
+ readonly video: Media.Asset;
598
+ } | {
599
+ readonly type: "finish";
600
+ readonly providerMetadata?: {
601
+ readonly [x: string]: {
602
+ readonly [x: string]: unknown;
603
+ };
604
+ } | undefined;
605
+ readonly usage?: {
606
+ readonly type: "tokens";
607
+ readonly input?: number | undefined;
608
+ readonly output?: number | undefined;
609
+ readonly total?: number | undefined;
610
+ readonly details?: {
611
+ readonly [x: string]: unknown;
612
+ } | undefined;
613
+ } | {
614
+ readonly type: "seconds";
615
+ readonly seconds: number;
616
+ } | {
617
+ readonly type: "characters";
618
+ readonly characters: number;
619
+ } | {
620
+ readonly type: "credits";
621
+ readonly credits: number;
622
+ } | {
623
+ readonly type: "compute";
624
+ readonly seconds: number;
625
+ } | undefined;
626
+ readonly notices?: readonly {
627
+ readonly type: "other" | "moderated" | "filtered";
628
+ readonly message: string;
629
+ readonly providerMetadata?: {
630
+ readonly [x: string]: {
631
+ readonly [x: string]: unknown;
632
+ };
633
+ } | undefined;
634
+ }[] | undefined;
635
+ }) => value is Extract<{
636
+ readonly id: string;
637
+ readonly type: "generation-queued";
638
+ readonly position?: number | undefined;
639
+ }, {
640
+ readonly type: Keys;
641
+ }> | Extract<{
642
+ readonly id: string;
643
+ readonly type: "generation-progress";
644
+ readonly progress?: number | undefined;
645
+ }, {
646
+ readonly type: Keys;
647
+ }> | Extract<{
648
+ readonly type: "video";
649
+ readonly index: number;
650
+ readonly video: Media.Asset;
651
+ }, {
652
+ readonly type: Keys;
653
+ }> | Extract<{
654
+ readonly type: "finish";
655
+ readonly providerMetadata?: {
656
+ readonly [x: string]: {
657
+ readonly [x: string]: unknown;
658
+ };
659
+ } | undefined;
660
+ readonly usage?: {
661
+ readonly type: "tokens";
662
+ readonly input?: number | undefined;
663
+ readonly output?: number | undefined;
664
+ readonly total?: number | undefined;
665
+ readonly details?: {
666
+ readonly [x: string]: unknown;
667
+ } | undefined;
668
+ } | {
669
+ readonly type: "seconds";
670
+ readonly seconds: number;
671
+ } | {
672
+ readonly type: "characters";
673
+ readonly characters: number;
674
+ } | {
675
+ readonly type: "credits";
676
+ readonly credits: number;
677
+ } | {
678
+ readonly type: "compute";
679
+ readonly seconds: number;
680
+ } | undefined;
681
+ readonly notices?: readonly {
682
+ readonly type: "other" | "moderated" | "filtered";
683
+ readonly message: string;
684
+ readonly providerMetadata?: {
685
+ readonly [x: string]: {
686
+ readonly [x: string]: unknown;
687
+ };
688
+ } | undefined;
689
+ }[] | undefined;
690
+ }, {
691
+ readonly type: Keys;
692
+ }>;
693
+ readonly guards: {
694
+ "generation-queued": (u: unknown) => u is {
695
+ readonly id: string;
696
+ readonly type: "generation-queued";
697
+ readonly position?: number | undefined;
698
+ };
699
+ "generation-progress": (u: unknown) => u is {
700
+ readonly id: string;
701
+ readonly type: "generation-progress";
702
+ readonly progress?: number | undefined;
703
+ };
704
+ video: (u: unknown) => u is {
705
+ readonly type: "video";
706
+ readonly index: number;
707
+ readonly video: Media.Asset;
708
+ };
709
+ finish: (u: unknown) => u is {
710
+ readonly type: "finish";
711
+ readonly providerMetadata?: {
712
+ readonly [x: string]: {
713
+ readonly [x: string]: unknown;
714
+ };
715
+ } | undefined;
716
+ readonly usage?: {
717
+ readonly type: "tokens";
718
+ readonly input?: number | undefined;
719
+ readonly output?: number | undefined;
720
+ readonly total?: number | undefined;
721
+ readonly details?: {
722
+ readonly [x: string]: unknown;
723
+ } | undefined;
724
+ } | {
725
+ readonly type: "seconds";
726
+ readonly seconds: number;
727
+ } | {
728
+ readonly type: "characters";
729
+ readonly characters: number;
730
+ } | {
731
+ readonly type: "credits";
732
+ readonly credits: number;
733
+ } | {
734
+ readonly type: "compute";
735
+ readonly seconds: number;
736
+ } | undefined;
737
+ readonly notices?: readonly {
738
+ readonly type: "other" | "moderated" | "filtered";
739
+ readonly message: string;
740
+ readonly providerMetadata?: {
741
+ readonly [x: string]: {
742
+ readonly [x: string]: unknown;
743
+ };
744
+ } | undefined;
745
+ }[] | undefined;
746
+ };
747
+ };
748
+ readonly match: {
749
+ <Cases extends {
750
+ "generation-queued": (value: {
751
+ readonly id: string;
752
+ readonly type: "generation-queued";
753
+ readonly position?: number | undefined;
754
+ }) => any;
755
+ "generation-progress": (value: {
756
+ readonly id: string;
757
+ readonly type: "generation-progress";
758
+ readonly progress?: number | undefined;
759
+ }) => any;
760
+ video: (value: {
761
+ readonly type: "video";
762
+ readonly index: number;
763
+ readonly video: Media.Asset;
764
+ }) => any;
765
+ finish: (value: {
766
+ readonly type: "finish";
767
+ readonly providerMetadata?: {
768
+ readonly [x: string]: {
769
+ readonly [x: string]: unknown;
770
+ };
771
+ } | undefined;
772
+ readonly usage?: {
773
+ readonly type: "tokens";
774
+ readonly input?: number | undefined;
775
+ readonly output?: number | undefined;
776
+ readonly total?: number | undefined;
777
+ readonly details?: {
778
+ readonly [x: string]: unknown;
779
+ } | undefined;
780
+ } | {
781
+ readonly type: "seconds";
782
+ readonly seconds: number;
783
+ } | {
784
+ readonly type: "characters";
785
+ readonly characters: number;
786
+ } | {
787
+ readonly type: "credits";
788
+ readonly credits: number;
789
+ } | {
790
+ readonly type: "compute";
791
+ readonly seconds: number;
792
+ } | undefined;
793
+ readonly notices?: readonly {
794
+ readonly type: "other" | "moderated" | "filtered";
795
+ readonly message: string;
796
+ readonly providerMetadata?: {
797
+ readonly [x: string]: {
798
+ readonly [x: string]: unknown;
799
+ };
800
+ } | undefined;
801
+ }[] | undefined;
802
+ }) => any;
803
+ }>(value: {
804
+ readonly id: string;
805
+ readonly type: "generation-queued";
806
+ readonly position?: number | undefined;
807
+ } | {
808
+ readonly id: string;
809
+ readonly type: "generation-progress";
810
+ readonly progress?: number | undefined;
811
+ } | {
812
+ readonly type: "video";
813
+ readonly index: number;
814
+ readonly video: Media.Asset;
815
+ } | {
816
+ readonly type: "finish";
817
+ readonly providerMetadata?: {
818
+ readonly [x: string]: {
819
+ readonly [x: string]: unknown;
820
+ };
821
+ } | undefined;
822
+ readonly usage?: {
823
+ readonly type: "tokens";
824
+ readonly input?: number | undefined;
825
+ readonly output?: number | undefined;
826
+ readonly total?: number | undefined;
827
+ readonly details?: {
828
+ readonly [x: string]: unknown;
829
+ } | undefined;
830
+ } | {
831
+ readonly type: "seconds";
832
+ readonly seconds: number;
833
+ } | {
834
+ readonly type: "characters";
835
+ readonly characters: number;
836
+ } | {
837
+ readonly type: "credits";
838
+ readonly credits: number;
839
+ } | {
840
+ readonly type: "compute";
841
+ readonly seconds: number;
842
+ } | undefined;
843
+ readonly notices?: readonly {
844
+ readonly type: "other" | "moderated" | "filtered";
845
+ readonly message: string;
846
+ readonly providerMetadata?: {
847
+ readonly [x: string]: {
848
+ readonly [x: string]: unknown;
849
+ };
850
+ } | undefined;
851
+ }[] | undefined;
852
+ }, cases: Cases): Cases[keyof Cases] extends (value: any) => infer R ? import("effect/Unify").Unify<R> : never;
853
+ <Cases extends {
854
+ "generation-queued": (value: {
855
+ readonly id: string;
856
+ readonly type: "generation-queued";
857
+ readonly position?: number | undefined;
858
+ }) => any;
859
+ "generation-progress": (value: {
860
+ readonly id: string;
861
+ readonly type: "generation-progress";
862
+ readonly progress?: number | undefined;
863
+ }) => any;
864
+ video: (value: {
865
+ readonly type: "video";
866
+ readonly index: number;
867
+ readonly video: Media.Asset;
868
+ }) => any;
869
+ finish: (value: {
870
+ readonly type: "finish";
871
+ readonly providerMetadata?: {
872
+ readonly [x: string]: {
873
+ readonly [x: string]: unknown;
874
+ };
875
+ } | undefined;
876
+ readonly usage?: {
877
+ readonly type: "tokens";
878
+ readonly input?: number | undefined;
879
+ readonly output?: number | undefined;
880
+ readonly total?: number | undefined;
881
+ readonly details?: {
882
+ readonly [x: string]: unknown;
883
+ } | undefined;
884
+ } | {
885
+ readonly type: "seconds";
886
+ readonly seconds: number;
887
+ } | {
888
+ readonly type: "characters";
889
+ readonly characters: number;
890
+ } | {
891
+ readonly type: "credits";
892
+ readonly credits: number;
893
+ } | {
894
+ readonly type: "compute";
895
+ readonly seconds: number;
896
+ } | undefined;
897
+ readonly notices?: readonly {
898
+ readonly type: "other" | "moderated" | "filtered";
899
+ readonly message: string;
900
+ readonly providerMetadata?: {
901
+ readonly [x: string]: {
902
+ readonly [x: string]: unknown;
903
+ };
904
+ } | undefined;
905
+ }[] | undefined;
906
+ }) => any;
907
+ }>(cases: Cases): (value: {
908
+ readonly id: string;
909
+ readonly type: "generation-queued";
910
+ readonly position?: number | undefined;
911
+ } | {
912
+ readonly id: string;
913
+ readonly type: "generation-progress";
914
+ readonly progress?: number | undefined;
915
+ } | {
916
+ readonly type: "video";
917
+ readonly index: number;
918
+ readonly video: Media.Asset;
919
+ } | {
920
+ readonly type: "finish";
921
+ readonly providerMetadata?: {
922
+ readonly [x: string]: {
923
+ readonly [x: string]: unknown;
924
+ };
925
+ } | undefined;
926
+ readonly usage?: {
927
+ readonly type: "tokens";
928
+ readonly input?: number | undefined;
929
+ readonly output?: number | undefined;
930
+ readonly total?: number | undefined;
931
+ readonly details?: {
932
+ readonly [x: string]: unknown;
933
+ } | undefined;
934
+ } | {
935
+ readonly type: "seconds";
936
+ readonly seconds: number;
937
+ } | {
938
+ readonly type: "characters";
939
+ readonly characters: number;
940
+ } | {
941
+ readonly type: "credits";
942
+ readonly credits: number;
943
+ } | {
944
+ readonly type: "compute";
945
+ readonly seconds: number;
946
+ } | undefined;
947
+ readonly notices?: readonly {
948
+ readonly type: "other" | "moderated" | "filtered";
949
+ readonly message: string;
950
+ readonly providerMetadata?: {
951
+ readonly [x: string]: {
952
+ readonly [x: string]: unknown;
953
+ };
954
+ } | undefined;
955
+ }[] | undefined;
956
+ }) => Cases[keyof Cases] extends (value: any) => infer R ? import("effect/Unify").Unify<R> : never;
957
+ };
958
+ readonly matchOrElse: {
959
+ <Cases extends {
960
+ "generation-queued"?: ((value: {
961
+ readonly id: string;
962
+ readonly type: "generation-queued";
963
+ readonly position?: number | undefined;
964
+ }) => any) | undefined;
965
+ "generation-progress"?: ((value: {
966
+ readonly id: string;
967
+ readonly type: "generation-progress";
968
+ readonly progress?: number | undefined;
969
+ }) => any) | undefined;
970
+ video?: ((value: {
971
+ readonly type: "video";
972
+ readonly index: number;
973
+ readonly video: Media.Asset;
974
+ }) => any) | undefined;
975
+ finish?: ((value: {
976
+ readonly type: "finish";
977
+ readonly providerMetadata?: {
978
+ readonly [x: string]: {
979
+ readonly [x: string]: unknown;
980
+ };
981
+ } | undefined;
982
+ readonly usage?: {
983
+ readonly type: "tokens";
984
+ readonly input?: number | undefined;
985
+ readonly output?: number | undefined;
986
+ readonly total?: number | undefined;
987
+ readonly details?: {
988
+ readonly [x: string]: unknown;
989
+ } | undefined;
990
+ } | {
991
+ readonly type: "seconds";
992
+ readonly seconds: number;
993
+ } | {
994
+ readonly type: "characters";
995
+ readonly characters: number;
996
+ } | {
997
+ readonly type: "credits";
998
+ readonly credits: number;
999
+ } | {
1000
+ readonly type: "compute";
1001
+ readonly seconds: number;
1002
+ } | undefined;
1003
+ readonly notices?: readonly {
1004
+ readonly type: "other" | "moderated" | "filtered";
1005
+ readonly message: string;
1006
+ readonly providerMetadata?: {
1007
+ readonly [x: string]: {
1008
+ readonly [x: string]: unknown;
1009
+ };
1010
+ } | undefined;
1011
+ }[] | undefined;
1012
+ }) => any) | undefined;
1013
+ } & { [K in Exclude<keyof Cases, "finish" | "video" | "generation-queued" | "generation-progress">]: never; }, OrElse extends (value: Exclude<{
1014
+ readonly id: string;
1015
+ readonly type: "generation-queued";
1016
+ readonly position?: number | undefined;
1017
+ }, {
1018
+ readonly type: keyof Cases;
1019
+ }> | Exclude<{
1020
+ readonly id: string;
1021
+ readonly type: "generation-progress";
1022
+ readonly progress?: number | undefined;
1023
+ }, {
1024
+ readonly type: keyof Cases;
1025
+ }> | Exclude<{
1026
+ readonly type: "video";
1027
+ readonly index: number;
1028
+ readonly video: Media.Asset;
1029
+ }, {
1030
+ readonly type: keyof Cases;
1031
+ }> | Exclude<{
1032
+ readonly type: "finish";
1033
+ readonly providerMetadata?: {
1034
+ readonly [x: string]: {
1035
+ readonly [x: string]: unknown;
1036
+ };
1037
+ } | undefined;
1038
+ readonly usage?: {
1039
+ readonly type: "tokens";
1040
+ readonly input?: number | undefined;
1041
+ readonly output?: number | undefined;
1042
+ readonly total?: number | undefined;
1043
+ readonly details?: {
1044
+ readonly [x: string]: unknown;
1045
+ } | undefined;
1046
+ } | {
1047
+ readonly type: "seconds";
1048
+ readonly seconds: number;
1049
+ } | {
1050
+ readonly type: "characters";
1051
+ readonly characters: number;
1052
+ } | {
1053
+ readonly type: "credits";
1054
+ readonly credits: number;
1055
+ } | {
1056
+ readonly type: "compute";
1057
+ readonly seconds: number;
1058
+ } | undefined;
1059
+ readonly notices?: readonly {
1060
+ readonly type: "other" | "moderated" | "filtered";
1061
+ readonly message: string;
1062
+ readonly providerMetadata?: {
1063
+ readonly [x: string]: {
1064
+ readonly [x: string]: unknown;
1065
+ };
1066
+ } | undefined;
1067
+ }[] | undefined;
1068
+ }, {
1069
+ readonly type: keyof Cases;
1070
+ }>) => any>(value: {
1071
+ readonly id: string;
1072
+ readonly type: "generation-queued";
1073
+ readonly position?: number | undefined;
1074
+ } | {
1075
+ readonly id: string;
1076
+ readonly type: "generation-progress";
1077
+ readonly progress?: number | undefined;
1078
+ } | {
1079
+ readonly type: "video";
1080
+ readonly index: number;
1081
+ readonly video: Media.Asset;
1082
+ } | {
1083
+ readonly type: "finish";
1084
+ readonly providerMetadata?: {
1085
+ readonly [x: string]: {
1086
+ readonly [x: string]: unknown;
1087
+ };
1088
+ } | undefined;
1089
+ readonly usage?: {
1090
+ readonly type: "tokens";
1091
+ readonly input?: number | undefined;
1092
+ readonly output?: number | undefined;
1093
+ readonly total?: number | undefined;
1094
+ readonly details?: {
1095
+ readonly [x: string]: unknown;
1096
+ } | undefined;
1097
+ } | {
1098
+ readonly type: "seconds";
1099
+ readonly seconds: number;
1100
+ } | {
1101
+ readonly type: "characters";
1102
+ readonly characters: number;
1103
+ } | {
1104
+ readonly type: "credits";
1105
+ readonly credits: number;
1106
+ } | {
1107
+ readonly type: "compute";
1108
+ readonly seconds: number;
1109
+ } | undefined;
1110
+ readonly notices?: readonly {
1111
+ readonly type: "other" | "moderated" | "filtered";
1112
+ readonly message: string;
1113
+ readonly providerMetadata?: {
1114
+ readonly [x: string]: {
1115
+ readonly [x: string]: unknown;
1116
+ };
1117
+ } | undefined;
1118
+ }[] | undefined;
1119
+ }, cases: Cases, orElse: OrElse): import("effect/Unify").Unify<{ [K_1 in keyof Cases]-?: NonNullable<Cases[K_1]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>;
1120
+ <Cases extends {
1121
+ "generation-queued"?: ((value: {
1122
+ readonly id: string;
1123
+ readonly type: "generation-queued";
1124
+ readonly position?: number | undefined;
1125
+ }) => any) | undefined;
1126
+ "generation-progress"?: ((value: {
1127
+ readonly id: string;
1128
+ readonly type: "generation-progress";
1129
+ readonly progress?: number | undefined;
1130
+ }) => any) | undefined;
1131
+ video?: ((value: {
1132
+ readonly type: "video";
1133
+ readonly index: number;
1134
+ readonly video: Media.Asset;
1135
+ }) => any) | undefined;
1136
+ finish?: ((value: {
1137
+ readonly type: "finish";
1138
+ readonly providerMetadata?: {
1139
+ readonly [x: string]: {
1140
+ readonly [x: string]: unknown;
1141
+ };
1142
+ } | undefined;
1143
+ readonly usage?: {
1144
+ readonly type: "tokens";
1145
+ readonly input?: number | undefined;
1146
+ readonly output?: number | undefined;
1147
+ readonly total?: number | undefined;
1148
+ readonly details?: {
1149
+ readonly [x: string]: unknown;
1150
+ } | undefined;
1151
+ } | {
1152
+ readonly type: "seconds";
1153
+ readonly seconds: number;
1154
+ } | {
1155
+ readonly type: "characters";
1156
+ readonly characters: number;
1157
+ } | {
1158
+ readonly type: "credits";
1159
+ readonly credits: number;
1160
+ } | {
1161
+ readonly type: "compute";
1162
+ readonly seconds: number;
1163
+ } | undefined;
1164
+ readonly notices?: readonly {
1165
+ readonly type: "other" | "moderated" | "filtered";
1166
+ readonly message: string;
1167
+ readonly providerMetadata?: {
1168
+ readonly [x: string]: {
1169
+ readonly [x: string]: unknown;
1170
+ };
1171
+ } | undefined;
1172
+ }[] | undefined;
1173
+ }) => any) | undefined;
1174
+ } & { [K in Exclude<keyof Cases, "finish" | "video" | "generation-queued" | "generation-progress">]: never; }, OrElse extends (value: Exclude<{
1175
+ readonly id: string;
1176
+ readonly type: "generation-queued";
1177
+ readonly position?: number | undefined;
1178
+ }, {
1179
+ readonly type: keyof Cases;
1180
+ }> | Exclude<{
1181
+ readonly id: string;
1182
+ readonly type: "generation-progress";
1183
+ readonly progress?: number | undefined;
1184
+ }, {
1185
+ readonly type: keyof Cases;
1186
+ }> | Exclude<{
1187
+ readonly type: "video";
1188
+ readonly index: number;
1189
+ readonly video: Media.Asset;
1190
+ }, {
1191
+ readonly type: keyof Cases;
1192
+ }> | Exclude<{
1193
+ readonly type: "finish";
1194
+ readonly providerMetadata?: {
1195
+ readonly [x: string]: {
1196
+ readonly [x: string]: unknown;
1197
+ };
1198
+ } | undefined;
1199
+ readonly usage?: {
1200
+ readonly type: "tokens";
1201
+ readonly input?: number | undefined;
1202
+ readonly output?: number | undefined;
1203
+ readonly total?: number | undefined;
1204
+ readonly details?: {
1205
+ readonly [x: string]: unknown;
1206
+ } | undefined;
1207
+ } | {
1208
+ readonly type: "seconds";
1209
+ readonly seconds: number;
1210
+ } | {
1211
+ readonly type: "characters";
1212
+ readonly characters: number;
1213
+ } | {
1214
+ readonly type: "credits";
1215
+ readonly credits: number;
1216
+ } | {
1217
+ readonly type: "compute";
1218
+ readonly seconds: number;
1219
+ } | undefined;
1220
+ readonly notices?: readonly {
1221
+ readonly type: "other" | "moderated" | "filtered";
1222
+ readonly message: string;
1223
+ readonly providerMetadata?: {
1224
+ readonly [x: string]: {
1225
+ readonly [x: string]: unknown;
1226
+ };
1227
+ } | undefined;
1228
+ }[] | undefined;
1229
+ }, {
1230
+ readonly type: keyof Cases;
1231
+ }>) => any>(cases: Cases, orElse: OrElse): (value: {
1232
+ readonly id: string;
1233
+ readonly type: "generation-queued";
1234
+ readonly position?: number | undefined;
1235
+ } | {
1236
+ readonly id: string;
1237
+ readonly type: "generation-progress";
1238
+ readonly progress?: number | undefined;
1239
+ } | {
1240
+ readonly type: "video";
1241
+ readonly index: number;
1242
+ readonly video: Media.Asset;
1243
+ } | {
1244
+ readonly type: "finish";
1245
+ readonly providerMetadata?: {
1246
+ readonly [x: string]: {
1247
+ readonly [x: string]: unknown;
1248
+ };
1249
+ } | undefined;
1250
+ readonly usage?: {
1251
+ readonly type: "tokens";
1252
+ readonly input?: number | undefined;
1253
+ readonly output?: number | undefined;
1254
+ readonly total?: number | undefined;
1255
+ readonly details?: {
1256
+ readonly [x: string]: unknown;
1257
+ } | undefined;
1258
+ } | {
1259
+ readonly type: "seconds";
1260
+ readonly seconds: number;
1261
+ } | {
1262
+ readonly type: "characters";
1263
+ readonly characters: number;
1264
+ } | {
1265
+ readonly type: "credits";
1266
+ readonly credits: number;
1267
+ } | {
1268
+ readonly type: "compute";
1269
+ readonly seconds: number;
1270
+ } | undefined;
1271
+ readonly notices?: readonly {
1272
+ readonly type: "other" | "moderated" | "filtered";
1273
+ readonly message: string;
1274
+ readonly providerMetadata?: {
1275
+ readonly [x: string]: {
1276
+ readonly [x: string]: unknown;
1277
+ };
1278
+ } | undefined;
1279
+ }[] | undefined;
1280
+ }) => import("effect/Unify").Unify<{ [K_1 in keyof Cases]-?: NonNullable<Cases[K_1]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>;
1281
+ };
1282
+ } & {
1283
+ is: {
1284
+ generationQueued: (u: unknown) => u is {
1285
+ readonly id: string;
1286
+ readonly type: "generation-queued";
1287
+ readonly position?: number | undefined;
1288
+ };
1289
+ generationProgress: (u: unknown) => u is {
1290
+ readonly id: string;
1291
+ readonly type: "generation-progress";
1292
+ readonly progress?: number | undefined;
1293
+ };
1294
+ video: (u: unknown) => u is {
1295
+ readonly type: "video";
1296
+ readonly index: number;
1297
+ readonly video: Media.Asset;
1298
+ };
1299
+ finish: (u: unknown) => u is {
1300
+ readonly type: "finish";
1301
+ readonly providerMetadata?: {
1302
+ readonly [x: string]: {
1303
+ readonly [x: string]: unknown;
1304
+ };
1305
+ } | undefined;
1306
+ readonly usage?: {
1307
+ readonly type: "tokens";
1308
+ readonly input?: number | undefined;
1309
+ readonly output?: number | undefined;
1310
+ readonly total?: number | undefined;
1311
+ readonly details?: {
1312
+ readonly [x: string]: unknown;
1313
+ } | undefined;
1314
+ } | {
1315
+ readonly type: "seconds";
1316
+ readonly seconds: number;
1317
+ } | {
1318
+ readonly type: "characters";
1319
+ readonly characters: number;
1320
+ } | {
1321
+ readonly type: "credits";
1322
+ readonly credits: number;
1323
+ } | {
1324
+ readonly type: "compute";
1325
+ readonly seconds: number;
1326
+ } | undefined;
1327
+ readonly notices?: readonly {
1328
+ readonly type: "other" | "moderated" | "filtered";
1329
+ readonly message: string;
1330
+ readonly providerMetadata?: {
1331
+ readonly [x: string]: {
1332
+ readonly [x: string]: unknown;
1333
+ };
1334
+ } | undefined;
1335
+ }[] | undefined;
1336
+ };
1337
+ };
1338
+ };
1339
+ export type VideoEvent = Schema.Schema.Type<typeof videoEventTagged>;
1340
+ /** A completed response expanded into the streaming event shape. */
1341
+ export declare const responseEvents: (response: VideoResponse) => ReadonlyArray<VideoEvent>;
1342
+ export declare function request<const Model extends VideoModel>(input: VideoRequestInput<Model>): VideoRequestFor<VideoModelOptions<Model>>;
1343
+ export declare function request(input: VideoRequest): VideoRequest;
1344
+ export declare function start<const Model extends VideoModel>(input: VideoRequestInput<Model>): Effect.Effect<Generation<VideoResponse>, AIError, Service>;
1345
+ export declare function start(input: VideoRequest): Effect.Effect<Generation<VideoResponse>, AIError, Service>;
1346
+ export declare function generate<const Model extends VideoModel>(input: VideoRequestInput<Model>, options?: AwaitOptions): Effect.Effect<VideoResponse, AIError, Service>;
1347
+ export declare function generate(input: VideoRequest, options?: AwaitOptions): Effect.Effect<VideoResponse, AIError, Service>;
1348
+ /** Rebuild a generation handle from a persisted `Generation.token`, refreshing its status once. */
1349
+ export declare const resume: <Options extends VideoOptions>(model: VideoModel<Options>, token: unknown) => Effect.Effect<Generation<VideoResponse>, AIError, Service>;
1350
+ export declare function stream<const Model extends VideoModel>(input: VideoRequestInput<Model>, options?: AwaitOptions): Stream.Stream<VideoEvent, AIError, Service>;
1351
+ export declare function stream(input: VideoRequest, options?: AwaitOptions): Stream.Stream<VideoEvent, AIError, Service>;
1352
+ export declare const Video: {
1353
+ readonly request: typeof request;
1354
+ readonly start: typeof start;
1355
+ readonly generate: typeof generate;
1356
+ readonly resume: <Options extends VideoOptions>(model: VideoModel<Options>, token: unknown) => Effect.Effect<Generation<VideoResponse>, AIError, Service>;
1357
+ readonly stream: typeof stream;
1358
+ };
1359
+ export {};