@opencode/ai 0.0.0-dev-21799 → 0.0.0-dev-21801

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 (33) hide show
  1. package/dist/protocols/alibaba-messages.d.ts +34 -0
  2. package/dist/protocols/alibaba-responses.d.ts +3 -0
  3. package/dist/protocols/anthropic-messages.d.ts +102 -0
  4. package/dist/protocols/anthropic-messages.js +32 -8
  5. package/dist/protocols/meta-messages.d.ts +34 -0
  6. package/dist/protocols/meta-messages.js +12 -0
  7. package/dist/protocols/meta-responses.d.ts +6 -0
  8. package/dist/protocols/meta-responses.js +29 -1
  9. package/dist/protocols/open-responses.d.ts +27 -0
  10. package/dist/protocols/open-responses.js +7 -18
  11. package/dist/protocols/openai-compatible-responses.d.ts +3 -0
  12. package/dist/protocols/openai-responses.d.ts +18 -0
  13. package/dist/protocols/shared.d.ts +1 -1
  14. package/dist/protocols/shared.js +2 -2
  15. package/dist/protocols/xai-responses.d.ts +3 -0
  16. package/dist/protocols/xai-responses.js +9 -0
  17. package/dist/protocols/zai-messages.d.ts +34 -0
  18. package/dist/providers/alibaba.d.ts +37 -0
  19. package/dist/providers/amazon-bedrock-mantle.d.ts +37 -0
  20. package/dist/providers/anthropic-compatible.d.ts +34 -0
  21. package/dist/providers/anthropic.d.ts +34 -0
  22. package/dist/providers/azure.d.ts +6 -0
  23. package/dist/providers/cloudflare-ai-gateway.d.ts +74 -0
  24. package/dist/providers/google-vertex-messages.d.ts +34 -0
  25. package/dist/providers/google-vertex-responses.d.ts +3 -0
  26. package/dist/providers/meta.d.ts +37 -0
  27. package/dist/providers/minimax.d.ts +37 -0
  28. package/dist/providers/moonshot.d.ts +37 -0
  29. package/dist/providers/openai-compatible-responses.d.ts +3 -0
  30. package/dist/providers/openai.d.ts +3 -0
  31. package/dist/providers/zai-coding-plan.d.ts +37 -0
  32. package/dist/route/client.js +11 -0
  33. package/package.json +3 -3
@@ -151,7 +151,7 @@ export type MediaReference = {
151
151
  */
152
152
  export declare const mediaReference: (asset: Media.Asset, provider: ProviderID | undefined, label: string) => Effect.Effect<MediaReference, AIError>;
153
153
  /**
154
- * Lift a tool-result file into a `MediaPart`. Tool files carry either a data URL, an `http(s)` URL, or raw base64 in
154
+ * Lift a tool-result file into a `MediaPart`. Tool files carry either a data URL, a URI, or raw base64 in
155
155
  * `uri`; the declared `mime` wins over any data-URL prefix so tool authors control the type the model sees.
156
156
  */
157
157
  export declare const toolFileMedia: (item: Tool.FileContent) => MediaPart;
@@ -186,14 +186,14 @@ export const mediaReference = (asset, provider, label) => {
186
186
  return Effect.fail(invalidRequest(`${label} accepts inline bytes, data URLs, http(s) URLs${accepted}${got}`));
187
187
  };
188
188
  /**
189
- * Lift a tool-result file into a `MediaPart`. Tool files carry either a data URL, an `http(s)` URL, or raw base64 in
189
+ * Lift a tool-result file into a `MediaPart`. Tool files carry either a data URL, a URI, or raw base64 in
190
190
  * `uri`; the declared `mime` wins over any data-URL prefix so tool authors control the type the model sees.
191
191
  */
192
192
  export const toolFileMedia = (item) => {
193
193
  const parsed = Media.parseDataUrl(item.uri);
194
194
  const asset = parsed
195
195
  ? Media.from({ ...parsed.source, mediaType: item.mime })
196
- : /^https?:\/\//.test(item.uri)
196
+ : item.uri.includes("://")
197
197
  ? Media.url(item.uri, { mediaType: item.mime })
198
198
  : Media.base64(item.uri, item.mime);
199
199
  return Message.media(asset, { filename: item.name });
@@ -53,6 +53,9 @@ export declare const protocol: Protocol<{
53
53
  readonly content: readonly ({
54
54
  readonly type: "input_text";
55
55
  readonly text: string;
56
+ } | {
57
+ readonly type: "input_video";
58
+ readonly video_url: string;
56
59
  } | {
57
60
  readonly type: "input_image";
58
61
  readonly image_url: string;
@@ -24,6 +24,15 @@ const XAIResponsesHostedToolItem = Schema.Union([
24
24
  const adapter = {
25
25
  id: ADAPTER,
26
26
  name: NAME,
27
+ lowerMedia: ({ part, media }) => {
28
+ if (part.media.kind !== "video")
29
+ return undefined;
30
+ const filename = part.filename ?? "file";
31
+ const url = ProviderShared.mediaUrl(part.media);
32
+ if (url)
33
+ return { type: "input_file", filename, file_url: url };
34
+ return media && { type: "input_file", filename, file_data: media.dataUrl };
35
+ },
27
36
  restoreHostedToolItem: (item) => (Schema.is(XAIResponsesHostedToolItem)(item) ? item : undefined),
28
37
  };
29
38
  const fromRequest = Effect.fn("XAIResponses.fromRequest")(function* (request) {
@@ -58,6 +58,23 @@ export declare const protocol: Protocol<{
58
58
  readonly transformations?: {
59
59
  readonly oversized_image?: "downsize" | "error" | undefined;
60
60
  } | undefined;
61
+ } | {
62
+ readonly type: "video";
63
+ readonly source: {
64
+ readonly type: "base64";
65
+ readonly media_type: string;
66
+ readonly data: string;
67
+ } | {
68
+ readonly type: "url";
69
+ readonly url: string;
70
+ } | {
71
+ readonly type: "file";
72
+ readonly file_id: string;
73
+ };
74
+ readonly cache_control?: {
75
+ readonly type: "ephemeral";
76
+ readonly ttl?: "1h" | "5m" | undefined;
77
+ } | undefined;
61
78
  } | {
62
79
  readonly type: "document";
63
80
  readonly source: {
@@ -114,6 +131,23 @@ export declare const protocol: Protocol<{
114
131
  readonly transformations?: {
115
132
  readonly oversized_image?: "downsize" | "error" | undefined;
116
133
  } | undefined;
134
+ } | {
135
+ readonly type: "video";
136
+ readonly source: {
137
+ readonly type: "base64";
138
+ readonly media_type: string;
139
+ readonly data: string;
140
+ } | {
141
+ readonly type: "url";
142
+ readonly url: string;
143
+ } | {
144
+ readonly type: "file";
145
+ readonly file_id: string;
146
+ };
147
+ readonly cache_control?: {
148
+ readonly type: "ephemeral";
149
+ readonly ttl?: "1h" | "5m" | undefined;
150
+ } | undefined;
117
151
  } | {
118
152
  readonly type: "document";
119
153
  readonly source: {
@@ -227,6 +227,23 @@ export declare const routes: (Route<{
227
227
  readonly transformations?: {
228
228
  readonly oversized_image?: "downsize" | "error" | undefined;
229
229
  } | undefined;
230
+ } | {
231
+ readonly type: "video";
232
+ readonly source: {
233
+ readonly type: "base64";
234
+ readonly media_type: string;
235
+ readonly data: string;
236
+ } | {
237
+ readonly type: "url";
238
+ readonly url: string;
239
+ } | {
240
+ readonly type: "file";
241
+ readonly file_id: string;
242
+ };
243
+ readonly cache_control?: {
244
+ readonly type: "ephemeral";
245
+ readonly ttl?: "1h" | "5m" | undefined;
246
+ } | undefined;
230
247
  } | {
231
248
  readonly type: "document";
232
249
  readonly source: {
@@ -283,6 +300,23 @@ export declare const routes: (Route<{
283
300
  readonly transformations?: {
284
301
  readonly oversized_image?: "downsize" | "error" | undefined;
285
302
  } | undefined;
303
+ } | {
304
+ readonly type: "video";
305
+ readonly source: {
306
+ readonly type: "base64";
307
+ readonly media_type: string;
308
+ readonly data: string;
309
+ } | {
310
+ readonly type: "url";
311
+ readonly url: string;
312
+ } | {
313
+ readonly type: "file";
314
+ readonly file_id: string;
315
+ };
316
+ readonly cache_control?: {
317
+ readonly type: "ephemeral";
318
+ readonly ttl?: "1h" | "5m" | undefined;
319
+ } | undefined;
286
320
  } | {
287
321
  readonly type: "document";
288
322
  readonly source: {
@@ -490,6 +524,9 @@ export declare const routes: (Route<{
490
524
  readonly content: readonly ({
491
525
  readonly type: "input_text";
492
526
  readonly text: string;
527
+ } | {
528
+ readonly type: "input_video";
529
+ readonly video_url: string;
493
530
  } | {
494
531
  readonly type: "input_image";
495
532
  readonly image_url: string;
@@ -80,6 +80,23 @@ export declare const routes: (Route<{
80
80
  readonly transformations?: {
81
81
  readonly oversized_image?: "downsize" | "error" | undefined;
82
82
  } | undefined;
83
+ } | {
84
+ readonly type: "video";
85
+ readonly source: {
86
+ readonly type: "base64";
87
+ readonly media_type: string;
88
+ readonly data: string;
89
+ } | {
90
+ readonly type: "url";
91
+ readonly url: string;
92
+ } | {
93
+ readonly type: "file";
94
+ readonly file_id: string;
95
+ };
96
+ readonly cache_control?: {
97
+ readonly type: "ephemeral";
98
+ readonly ttl?: "1h" | "5m" | undefined;
99
+ } | undefined;
83
100
  } | {
84
101
  readonly type: "document";
85
102
  readonly source: {
@@ -136,6 +153,23 @@ export declare const routes: (Route<{
136
153
  readonly transformations?: {
137
154
  readonly oversized_image?: "downsize" | "error" | undefined;
138
155
  } | undefined;
156
+ } | {
157
+ readonly type: "video";
158
+ readonly source: {
159
+ readonly type: "base64";
160
+ readonly media_type: string;
161
+ readonly data: string;
162
+ } | {
163
+ readonly type: "url";
164
+ readonly url: string;
165
+ } | {
166
+ readonly type: "file";
167
+ readonly file_id: string;
168
+ };
169
+ readonly cache_control?: {
170
+ readonly type: "ephemeral";
171
+ readonly ttl?: "1h" | "5m" | undefined;
172
+ } | undefined;
139
173
  } | {
140
174
  readonly type: "document";
141
175
  readonly source: {
@@ -486,6 +520,9 @@ export declare const routes: (Route<{
486
520
  readonly content: readonly ({
487
521
  readonly type: "input_text";
488
522
  readonly text: string;
523
+ } | {
524
+ readonly type: "input_video";
525
+ readonly video_url: string;
489
526
  } | {
490
527
  readonly type: "input_image";
491
528
  readonly image_url: string;
@@ -72,6 +72,23 @@ export declare const routes: import("../route/client.js").Route<{
72
72
  readonly transformations?: {
73
73
  readonly oversized_image?: "downsize" | "error" | undefined;
74
74
  } | undefined;
75
+ } | {
76
+ readonly type: "video";
77
+ readonly source: {
78
+ readonly type: "base64";
79
+ readonly media_type: string;
80
+ readonly data: string;
81
+ } | {
82
+ readonly type: "url";
83
+ readonly url: string;
84
+ } | {
85
+ readonly type: "file";
86
+ readonly file_id: string;
87
+ };
88
+ readonly cache_control?: {
89
+ readonly type: "ephemeral";
90
+ readonly ttl?: "1h" | "5m" | undefined;
91
+ } | undefined;
75
92
  } | {
76
93
  readonly type: "document";
77
94
  readonly source: {
@@ -128,6 +145,23 @@ export declare const routes: import("../route/client.js").Route<{
128
145
  readonly transformations?: {
129
146
  readonly oversized_image?: "downsize" | "error" | undefined;
130
147
  } | undefined;
148
+ } | {
149
+ readonly type: "video";
150
+ readonly source: {
151
+ readonly type: "base64";
152
+ readonly media_type: string;
153
+ readonly data: string;
154
+ } | {
155
+ readonly type: "url";
156
+ readonly url: string;
157
+ } | {
158
+ readonly type: "file";
159
+ readonly file_id: string;
160
+ };
161
+ readonly cache_control?: {
162
+ readonly type: "ephemeral";
163
+ readonly ttl?: "1h" | "5m" | undefined;
164
+ } | undefined;
131
165
  } | {
132
166
  readonly type: "document";
133
167
  readonly source: {
@@ -57,6 +57,23 @@ export declare const routes: import("../route/client.js").Route<{
57
57
  readonly transformations?: {
58
58
  readonly oversized_image?: "downsize" | "error" | undefined;
59
59
  } | undefined;
60
+ } | {
61
+ readonly type: "video";
62
+ readonly source: {
63
+ readonly type: "base64";
64
+ readonly media_type: string;
65
+ readonly data: string;
66
+ } | {
67
+ readonly type: "url";
68
+ readonly url: string;
69
+ } | {
70
+ readonly type: "file";
71
+ readonly file_id: string;
72
+ };
73
+ readonly cache_control?: {
74
+ readonly type: "ephemeral";
75
+ readonly ttl?: "1h" | "5m" | undefined;
76
+ } | undefined;
60
77
  } | {
61
78
  readonly type: "document";
62
79
  readonly source: {
@@ -113,6 +130,23 @@ export declare const routes: import("../route/client.js").Route<{
113
130
  readonly transformations?: {
114
131
  readonly oversized_image?: "downsize" | "error" | undefined;
115
132
  } | undefined;
133
+ } | {
134
+ readonly type: "video";
135
+ readonly source: {
136
+ readonly type: "base64";
137
+ readonly media_type: string;
138
+ readonly data: string;
139
+ } | {
140
+ readonly type: "url";
141
+ readonly url: string;
142
+ } | {
143
+ readonly type: "file";
144
+ readonly file_id: string;
145
+ };
146
+ readonly cache_control?: {
147
+ readonly type: "ephemeral";
148
+ readonly ttl?: "1h" | "5m" | undefined;
149
+ } | undefined;
116
150
  } | {
117
151
  readonly type: "document";
118
152
  readonly source: {
@@ -74,6 +74,9 @@ declare const responsesRoute: Route<{
74
74
  readonly content: readonly ({
75
75
  readonly type: "input_text";
76
76
  readonly text: string;
77
+ } | {
78
+ readonly type: "input_video";
79
+ readonly video_url: string;
77
80
  } | {
78
81
  readonly type: "input_image";
79
82
  readonly image_url: string;
@@ -411,6 +414,9 @@ export declare const routes: (Route<{
411
414
  readonly content: readonly ({
412
415
  readonly type: "input_text";
413
416
  readonly text: string;
417
+ } | {
418
+ readonly type: "input_video";
419
+ readonly video_url: string;
414
420
  } | {
415
421
  readonly type: "input_image";
416
422
  readonly image_url: string;
@@ -82,6 +82,9 @@ export declare const responsesRoute: import("../route/client.js").Route<{
82
82
  readonly content: readonly ({
83
83
  readonly type: "input_text";
84
84
  readonly text: string;
85
+ } | {
86
+ readonly type: "input_video";
87
+ readonly video_url: string;
85
88
  } | {
86
89
  readonly type: "input_image";
87
90
  readonly image_url: string;
@@ -286,6 +289,23 @@ export declare const messagesRoute: import("../route/client.js").Route<{
286
289
  readonly transformations?: {
287
290
  readonly oversized_image?: "downsize" | "error" | undefined;
288
291
  } | undefined;
292
+ } | {
293
+ readonly type: "video";
294
+ readonly source: {
295
+ readonly type: "base64";
296
+ readonly media_type: string;
297
+ readonly data: string;
298
+ } | {
299
+ readonly type: "url";
300
+ readonly url: string;
301
+ } | {
302
+ readonly type: "file";
303
+ readonly file_id: string;
304
+ };
305
+ readonly cache_control?: {
306
+ readonly type: "ephemeral";
307
+ readonly ttl?: "1h" | "5m" | undefined;
308
+ } | undefined;
289
309
  } | {
290
310
  readonly type: "document";
291
311
  readonly source: {
@@ -342,6 +362,23 @@ export declare const messagesRoute: import("../route/client.js").Route<{
342
362
  readonly transformations?: {
343
363
  readonly oversized_image?: "downsize" | "error" | undefined;
344
364
  } | undefined;
365
+ } | {
366
+ readonly type: "video";
367
+ readonly source: {
368
+ readonly type: "base64";
369
+ readonly media_type: string;
370
+ readonly data: string;
371
+ } | {
372
+ readonly type: "url";
373
+ readonly url: string;
374
+ } | {
375
+ readonly type: "file";
376
+ readonly file_id: string;
377
+ };
378
+ readonly cache_control?: {
379
+ readonly type: "ephemeral";
380
+ readonly ttl?: "1h" | "5m" | undefined;
381
+ } | undefined;
345
382
  } | {
346
383
  readonly type: "document";
347
384
  readonly source: {
@@ -691,6 +728,23 @@ export declare const routes: (import("../route/client.js").Route<{
691
728
  readonly transformations?: {
692
729
  readonly oversized_image?: "downsize" | "error" | undefined;
693
730
  } | undefined;
731
+ } | {
732
+ readonly type: "video";
733
+ readonly source: {
734
+ readonly type: "base64";
735
+ readonly media_type: string;
736
+ readonly data: string;
737
+ } | {
738
+ readonly type: "url";
739
+ readonly url: string;
740
+ } | {
741
+ readonly type: "file";
742
+ readonly file_id: string;
743
+ };
744
+ readonly cache_control?: {
745
+ readonly type: "ephemeral";
746
+ readonly ttl?: "1h" | "5m" | undefined;
747
+ } | undefined;
694
748
  } | {
695
749
  readonly type: "document";
696
750
  readonly source: {
@@ -747,6 +801,23 @@ export declare const routes: (import("../route/client.js").Route<{
747
801
  readonly transformations?: {
748
802
  readonly oversized_image?: "downsize" | "error" | undefined;
749
803
  } | undefined;
804
+ } | {
805
+ readonly type: "video";
806
+ readonly source: {
807
+ readonly type: "base64";
808
+ readonly media_type: string;
809
+ readonly data: string;
810
+ } | {
811
+ readonly type: "url";
812
+ readonly url: string;
813
+ } | {
814
+ readonly type: "file";
815
+ readonly file_id: string;
816
+ };
817
+ readonly cache_control?: {
818
+ readonly type: "ephemeral";
819
+ readonly ttl?: "1h" | "5m" | undefined;
820
+ } | undefined;
750
821
  } | {
751
822
  readonly type: "document";
752
823
  readonly source: {
@@ -1097,6 +1168,9 @@ export declare const routes: (import("../route/client.js").Route<{
1097
1168
  readonly content: readonly ({
1098
1169
  readonly type: "input_text";
1099
1170
  readonly text: string;
1171
+ } | {
1172
+ readonly type: "input_video";
1173
+ readonly video_url: string;
1100
1174
  } | {
1101
1175
  readonly type: "input_image";
1102
1176
  readonly image_url: string;
@@ -69,6 +69,23 @@ export declare const routes: Route<{
69
69
  readonly transformations?: {
70
70
  readonly oversized_image?: "downsize" | "error" | undefined;
71
71
  } | undefined;
72
+ } | {
73
+ readonly type: "video";
74
+ readonly source: {
75
+ readonly type: "base64";
76
+ readonly media_type: string;
77
+ readonly data: string;
78
+ } | {
79
+ readonly type: "url";
80
+ readonly url: string;
81
+ } | {
82
+ readonly type: "file";
83
+ readonly file_id: string;
84
+ };
85
+ readonly cache_control?: {
86
+ readonly type: "ephemeral";
87
+ readonly ttl?: "1h" | "5m" | undefined;
88
+ } | undefined;
72
89
  } | {
73
90
  readonly type: "document";
74
91
  readonly source: {
@@ -125,6 +142,23 @@ export declare const routes: Route<{
125
142
  readonly transformations?: {
126
143
  readonly oversized_image?: "downsize" | "error" | undefined;
127
144
  } | undefined;
145
+ } | {
146
+ readonly type: "video";
147
+ readonly source: {
148
+ readonly type: "base64";
149
+ readonly media_type: string;
150
+ readonly data: string;
151
+ } | {
152
+ readonly type: "url";
153
+ readonly url: string;
154
+ } | {
155
+ readonly type: "file";
156
+ readonly file_id: string;
157
+ };
158
+ readonly cache_control?: {
159
+ readonly type: "ephemeral";
160
+ readonly ttl?: "1h" | "5m" | undefined;
161
+ } | undefined;
128
162
  } | {
129
163
  readonly type: "document";
130
164
  readonly source: {
@@ -70,6 +70,9 @@ export declare const routes: Route<{
70
70
  readonly content: readonly ({
71
71
  readonly type: "input_text";
72
72
  readonly text: string;
73
+ } | {
74
+ readonly type: "input_video";
75
+ readonly video_url: string;
73
76
  } | {
74
77
  readonly type: "input_image";
75
78
  readonly image_url: string;
@@ -222,6 +222,9 @@ export declare const routes: (Route<{
222
222
  readonly content: readonly ({
223
223
  readonly type: "input_text";
224
224
  readonly text: string;
225
+ } | {
226
+ readonly type: "input_video";
227
+ readonly video_url: string;
225
228
  } | {
226
229
  readonly type: "input_image";
227
230
  readonly image_url: string;
@@ -396,6 +399,23 @@ export declare const routes: (Route<{
396
399
  readonly transformations?: {
397
400
  readonly oversized_image?: "downsize" | "error" | undefined;
398
401
  } | undefined;
402
+ } | {
403
+ readonly type: "video";
404
+ readonly source: {
405
+ readonly type: "base64";
406
+ readonly media_type: string;
407
+ readonly data: string;
408
+ } | {
409
+ readonly type: "url";
410
+ readonly url: string;
411
+ } | {
412
+ readonly type: "file";
413
+ readonly file_id: string;
414
+ };
415
+ readonly cache_control?: {
416
+ readonly type: "ephemeral";
417
+ readonly ttl?: "1h" | "5m" | undefined;
418
+ } | undefined;
399
419
  } | {
400
420
  readonly type: "document";
401
421
  readonly source: {
@@ -452,6 +472,23 @@ export declare const routes: (Route<{
452
472
  readonly transformations?: {
453
473
  readonly oversized_image?: "downsize" | "error" | undefined;
454
474
  } | undefined;
475
+ } | {
476
+ readonly type: "video";
477
+ readonly source: {
478
+ readonly type: "base64";
479
+ readonly media_type: string;
480
+ readonly data: string;
481
+ } | {
482
+ readonly type: "url";
483
+ readonly url: string;
484
+ } | {
485
+ readonly type: "file";
486
+ readonly file_id: string;
487
+ };
488
+ readonly cache_control?: {
489
+ readonly type: "ephemeral";
490
+ readonly ttl?: "1h" | "5m" | undefined;
491
+ } | undefined;
455
492
  } | {
456
493
  readonly type: "document";
457
494
  readonly source: {
@@ -83,6 +83,23 @@ export declare const routes: (Route<{
83
83
  readonly transformations?: {
84
84
  readonly oversized_image?: "downsize" | "error" | undefined;
85
85
  } | undefined;
86
+ } | {
87
+ readonly type: "video";
88
+ readonly source: {
89
+ readonly type: "base64";
90
+ readonly media_type: string;
91
+ readonly data: string;
92
+ } | {
93
+ readonly type: "url";
94
+ readonly url: string;
95
+ } | {
96
+ readonly type: "file";
97
+ readonly file_id: string;
98
+ };
99
+ readonly cache_control?: {
100
+ readonly type: "ephemeral";
101
+ readonly ttl?: "1h" | "5m" | undefined;
102
+ } | undefined;
86
103
  } | {
87
104
  readonly type: "document";
88
105
  readonly source: {
@@ -139,6 +156,23 @@ export declare const routes: (Route<{
139
156
  readonly transformations?: {
140
157
  readonly oversized_image?: "downsize" | "error" | undefined;
141
158
  } | undefined;
159
+ } | {
160
+ readonly type: "video";
161
+ readonly source: {
162
+ readonly type: "base64";
163
+ readonly media_type: string;
164
+ readonly data: string;
165
+ } | {
166
+ readonly type: "url";
167
+ readonly url: string;
168
+ } | {
169
+ readonly type: "file";
170
+ readonly file_id: string;
171
+ };
172
+ readonly cache_control?: {
173
+ readonly type: "ephemeral";
174
+ readonly ttl?: "1h" | "5m" | undefined;
175
+ } | undefined;
142
176
  } | {
143
177
  readonly type: "document";
144
178
  readonly source: {
@@ -358,6 +392,9 @@ export declare const routes: (Route<{
358
392
  readonly content: readonly ({
359
393
  readonly type: "input_text";
360
394
  readonly text: string;
395
+ } | {
396
+ readonly type: "input_video";
397
+ readonly video_url: string;
361
398
  } | {
362
399
  readonly type: "input_image";
363
400
  readonly image_url: string;