@opencode/ai 0.0.0-dev-21777 → 0.0.0-dev-21784

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.
@@ -42,6 +42,11 @@ export declare const protocol: Protocol<{
42
42
  readonly image_url: {
43
43
  readonly url: string;
44
44
  };
45
+ } | {
46
+ readonly type: "video_url";
47
+ readonly video_url: {
48
+ readonly url: string;
49
+ };
45
50
  } | {
46
51
  readonly type: "file";
47
52
  readonly file: {
@@ -63,6 +68,11 @@ export declare const protocol: Protocol<{
63
68
  readonly image_url: {
64
69
  readonly url: string;
65
70
  };
71
+ } | {
72
+ readonly type: "video_url";
73
+ readonly video_url: {
74
+ readonly url: string;
75
+ };
66
76
  } | {
67
77
  readonly type: "file";
68
78
  readonly file: {
@@ -77,6 +77,11 @@ export declare const OpenAIChatMessage: Schema.toTaggedUnion<"role", readonly [S
77
77
  readonly image_url: Schema.Struct<{
78
78
  readonly url: Schema.String;
79
79
  }>;
80
+ }>, Schema.Struct<{
81
+ readonly type: Schema.Literal<"video_url">;
82
+ readonly video_url: Schema.Struct<{
83
+ readonly url: Schema.String;
84
+ }>;
80
85
  }>, Schema.Struct<{
81
86
  readonly type: Schema.Literal<"file">;
82
87
  readonly file: Schema.Struct<{
@@ -98,6 +103,11 @@ export declare const OpenAIChatMessage: Schema.toTaggedUnion<"role", readonly [S
98
103
  readonly image_url: Schema.Struct<{
99
104
  readonly url: Schema.String;
100
105
  }>;
106
+ }>, Schema.Struct<{
107
+ readonly type: Schema.Literal<"video_url">;
108
+ readonly video_url: Schema.Struct<{
109
+ readonly url: Schema.String;
110
+ }>;
101
111
  }>, Schema.Struct<{
102
112
  readonly type: Schema.Literal<"file">;
103
113
  readonly file: Schema.Struct<{
@@ -161,6 +171,11 @@ export declare const bodyFields: {
161
171
  readonly image_url: Schema.Struct<{
162
172
  readonly url: Schema.String;
163
173
  }>;
174
+ }>, Schema.Struct<{
175
+ readonly type: Schema.Literal<"video_url">;
176
+ readonly video_url: Schema.Struct<{
177
+ readonly url: Schema.String;
178
+ }>;
164
179
  }>, Schema.Struct<{
165
180
  readonly type: Schema.Literal<"file">;
166
181
  readonly file: Schema.Struct<{
@@ -182,6 +197,11 @@ export declare const bodyFields: {
182
197
  readonly image_url: Schema.Struct<{
183
198
  readonly url: Schema.String;
184
199
  }>;
200
+ }>, Schema.Struct<{
201
+ readonly type: Schema.Literal<"video_url">;
202
+ readonly video_url: Schema.Struct<{
203
+ readonly url: Schema.String;
204
+ }>;
185
205
  }>, Schema.Struct<{
186
206
  readonly type: Schema.Literal<"file">;
187
207
  readonly file: Schema.Struct<{
@@ -280,6 +300,11 @@ declare const OpenAIChatBody: Schema.Struct<{
280
300
  readonly image_url: Schema.Struct<{
281
301
  readonly url: Schema.String;
282
302
  }>;
303
+ }>, Schema.Struct<{
304
+ readonly type: Schema.Literal<"video_url">;
305
+ readonly video_url: Schema.Struct<{
306
+ readonly url: Schema.String;
307
+ }>;
283
308
  }>, Schema.Struct<{
284
309
  readonly type: Schema.Literal<"file">;
285
310
  readonly file: Schema.Struct<{
@@ -301,6 +326,11 @@ declare const OpenAIChatBody: Schema.Struct<{
301
326
  readonly image_url: Schema.Struct<{
302
327
  readonly url: Schema.String;
303
328
  }>;
329
+ }>, Schema.Struct<{
330
+ readonly type: Schema.Literal<"video_url">;
331
+ readonly video_url: Schema.Struct<{
332
+ readonly url: Schema.String;
333
+ }>;
304
334
  }>, Schema.Struct<{
305
335
  readonly type: Schema.Literal<"file">;
306
336
  readonly file: Schema.Struct<{
@@ -575,6 +605,11 @@ export declare const fromRequest: (request: LLMRequest<import("../schema/options
575
605
  readonly image_url: {
576
606
  readonly url: string;
577
607
  };
608
+ } | {
609
+ readonly type: "video_url";
610
+ readonly video_url: {
611
+ readonly url: string;
612
+ };
578
613
  } | {
579
614
  readonly type: "file";
580
615
  readonly file: {
@@ -596,6 +631,11 @@ export declare const fromRequest: (request: LLMRequest<import("../schema/options
596
631
  readonly image_url: {
597
632
  readonly url: string;
598
633
  };
634
+ } | {
635
+ readonly type: "video_url";
636
+ readonly video_url: {
637
+ readonly url: string;
638
+ };
599
639
  } | {
600
640
  readonly type: "file";
601
641
  readonly file: {
@@ -695,6 +735,11 @@ export declare const fromRequest: (request: LLMRequest<import("../schema/options
695
735
  readonly image_url: {
696
736
  readonly url: string;
697
737
  };
738
+ } | {
739
+ readonly type: "video_url";
740
+ readonly video_url: {
741
+ readonly url: string;
742
+ };
698
743
  } | {
699
744
  readonly type: "file";
700
745
  readonly file: {
@@ -716,6 +761,11 @@ export declare const fromRequest: (request: LLMRequest<import("../schema/options
716
761
  readonly image_url: {
717
762
  readonly url: string;
718
763
  };
764
+ } | {
765
+ readonly type: "video_url";
766
+ readonly video_url: {
767
+ readonly url: string;
768
+ };
719
769
  } | {
720
770
  readonly type: "file";
721
771
  readonly file: {
@@ -1035,6 +1085,11 @@ export declare const protocol: Protocol<{
1035
1085
  readonly image_url: {
1036
1086
  readonly url: string;
1037
1087
  };
1088
+ } | {
1089
+ readonly type: "video_url";
1090
+ readonly video_url: {
1091
+ readonly url: string;
1092
+ };
1038
1093
  } | {
1039
1094
  readonly type: "file";
1040
1095
  readonly file: {
@@ -1056,6 +1111,11 @@ export declare const protocol: Protocol<{
1056
1111
  readonly image_url: {
1057
1112
  readonly url: string;
1058
1113
  };
1114
+ } | {
1115
+ readonly type: "video_url";
1116
+ readonly video_url: {
1117
+ readonly url: string;
1118
+ };
1059
1119
  } | {
1060
1120
  readonly type: "file";
1061
1121
  readonly file: {
@@ -1230,6 +1290,11 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
1230
1290
  readonly image_url: {
1231
1291
  readonly url: string;
1232
1292
  };
1293
+ } | {
1294
+ readonly type: "video_url";
1295
+ readonly video_url: {
1296
+ readonly url: string;
1297
+ };
1233
1298
  } | {
1234
1299
  readonly type: "file";
1235
1300
  readonly file: {
@@ -1251,6 +1316,11 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
1251
1316
  readonly image_url: {
1252
1317
  readonly url: string;
1253
1318
  };
1319
+ } | {
1320
+ readonly type: "video_url";
1321
+ readonly video_url: {
1322
+ readonly url: string;
1323
+ };
1254
1324
  } | {
1255
1325
  readonly type: "file";
1256
1326
  readonly file: {
@@ -1352,6 +1422,11 @@ export declare const route: Route<{
1352
1422
  readonly image_url: {
1353
1423
  readonly url: string;
1354
1424
  };
1425
+ } | {
1426
+ readonly type: "video_url";
1427
+ readonly video_url: {
1428
+ readonly url: string;
1429
+ };
1355
1430
  } | {
1356
1431
  readonly type: "file";
1357
1432
  readonly file: {
@@ -1373,6 +1448,11 @@ export declare const route: Route<{
1373
1448
  readonly image_url: {
1374
1449
  readonly url: string;
1375
1450
  };
1451
+ } | {
1452
+ readonly type: "video_url";
1453
+ readonly video_url: {
1454
+ readonly url: string;
1455
+ };
1376
1456
  } | {
1377
1457
  readonly type: "file";
1378
1458
  readonly file: {
@@ -90,6 +90,10 @@ const OpenAIChatUserContent = Schema.Union([
90
90
  type: Schema.Literal("image_url"),
91
91
  image_url: Schema.Struct({ url: Schema.String }),
92
92
  }),
93
+ Schema.Struct({
94
+ type: Schema.Literal("video_url"),
95
+ video_url: Schema.Struct({ url: Schema.String }),
96
+ }),
93
97
  Schema.Struct({
94
98
  type: Schema.Literal("file"),
95
99
  file: Schema.Struct({ filename: Schema.String, file_data: Schema.String }),
@@ -244,9 +248,11 @@ const lowerMedia = Effect.fnUntraced(function* (part) {
244
248
  file_data: (yield* ProviderShared.requireInlineMedia("OpenAI Chat", part.media)).dataUrl,
245
249
  },
246
250
  };
247
- if (part.media.kind !== "image")
251
+ if (part.media.kind !== "image" && part.media.kind !== "video")
248
252
  return yield* ProviderShared.invalidRequest(`OpenAI Chat does not support media type ${part.media.mediaType}`);
249
253
  const url = ProviderShared.mediaUrl(part.media) ?? (yield* ProviderShared.requireInlineMedia("OpenAI Chat", part.media)).dataUrl;
254
+ if (part.media.kind === "video")
255
+ return { type: "video_url", video_url: { url } };
250
256
  return { type: "image_url", image_url: { url } };
251
257
  });
252
258
  const openAICompatibleReasoningContent = (native) => isRecord(native) && typeof native.reasoning_content === "string" ? native.reasoning_content : undefined;
@@ -15,6 +15,11 @@ export declare const route: Route<{
15
15
  readonly image_url: {
16
16
  readonly url: string;
17
17
  };
18
+ } | {
19
+ readonly type: "video_url";
20
+ readonly video_url: {
21
+ readonly url: string;
22
+ };
18
23
  } | {
19
24
  readonly type: "file";
20
25
  readonly file: {
@@ -36,6 +41,11 @@ export declare const route: Route<{
36
41
  readonly image_url: {
37
42
  readonly url: string;
38
43
  };
44
+ } | {
45
+ readonly type: "video_url";
46
+ readonly video_url: {
47
+ readonly url: string;
48
+ };
39
49
  } | {
40
50
  readonly type: "file";
41
51
  readonly file: {
@@ -96,6 +96,11 @@ export declare const protocol: Protocol<{
96
96
  readonly image_url: {
97
97
  readonly url: string;
98
98
  };
99
+ } | {
100
+ readonly type: "video_url";
101
+ readonly video_url: {
102
+ readonly url: string;
103
+ };
99
104
  } | {
100
105
  readonly type: "file";
101
106
  readonly file: {
@@ -117,6 +122,11 @@ export declare const protocol: Protocol<{
117
122
  readonly image_url: {
118
123
  readonly url: string;
119
124
  };
125
+ } | {
126
+ readonly type: "video_url";
127
+ readonly video_url: {
128
+ readonly url: string;
129
+ };
120
130
  } | {
121
131
  readonly type: "file";
122
132
  readonly file: {
@@ -34,6 +34,11 @@ export declare const protocol: Protocol<{
34
34
  readonly image_url: {
35
35
  readonly url: string;
36
36
  };
37
+ } | {
38
+ readonly type: "video_url";
39
+ readonly video_url: {
40
+ readonly url: string;
41
+ };
37
42
  } | {
38
43
  readonly type: "file";
39
44
  readonly file: {
@@ -55,6 +60,11 @@ export declare const protocol: Protocol<{
55
60
  readonly image_url: {
56
61
  readonly url: string;
57
62
  };
63
+ } | {
64
+ readonly type: "video_url";
65
+ readonly video_url: {
66
+ readonly url: string;
67
+ };
58
68
  } | {
59
69
  readonly type: "file";
60
70
  readonly file: {
@@ -33,6 +33,11 @@ export declare const routes: (Route<{
33
33
  readonly image_url: {
34
34
  readonly url: string;
35
35
  };
36
+ } | {
37
+ readonly type: "video_url";
38
+ readonly video_url: {
39
+ readonly url: string;
40
+ };
36
41
  } | {
37
42
  readonly type: "file";
38
43
  readonly file: {
@@ -54,6 +59,11 @@ export declare const routes: (Route<{
54
59
  readonly image_url: {
55
60
  readonly url: string;
56
61
  };
62
+ } | {
63
+ readonly type: "video_url";
64
+ readonly video_url: {
65
+ readonly url: string;
66
+ };
57
67
  } | {
58
68
  readonly type: "file";
59
69
  readonly file: {
@@ -311,6 +311,11 @@ export declare const routes: (Route<{
311
311
  readonly image_url: {
312
312
  readonly url: string;
313
313
  };
314
+ } | {
315
+ readonly type: "video_url";
316
+ readonly video_url: {
317
+ readonly url: string;
318
+ };
314
319
  } | {
315
320
  readonly type: "file";
316
321
  readonly file: {
@@ -332,6 +337,11 @@ export declare const routes: (Route<{
332
337
  readonly image_url: {
333
338
  readonly url: string;
334
339
  };
340
+ } | {
341
+ readonly type: "video_url";
342
+ readonly video_url: {
343
+ readonly url: string;
344
+ };
335
345
  } | {
336
346
  readonly type: "file";
337
347
  readonly file: {
@@ -236,6 +236,11 @@ export declare const routes: (Route<{
236
236
  readonly image_url: {
237
237
  readonly url: string;
238
238
  };
239
+ } | {
240
+ readonly type: "video_url";
241
+ readonly video_url: {
242
+ readonly url: string;
243
+ };
239
244
  } | {
240
245
  readonly type: "file";
241
246
  readonly file: {
@@ -257,6 +262,11 @@ export declare const routes: (Route<{
257
262
  readonly image_url: {
258
263
  readonly url: string;
259
264
  };
265
+ } | {
266
+ readonly type: "video_url";
267
+ readonly video_url: {
268
+ readonly url: string;
269
+ };
260
270
  } | {
261
271
  readonly type: "file";
262
272
  readonly file: {
@@ -25,6 +25,11 @@ export declare const route: Route<{
25
25
  readonly image_url: {
26
26
  readonly url: string;
27
27
  };
28
+ } | {
29
+ readonly type: "video_url";
30
+ readonly video_url: {
31
+ readonly url: string;
32
+ };
28
33
  } | {
29
34
  readonly type: "file";
30
35
  readonly file: {
@@ -46,6 +51,11 @@ export declare const route: Route<{
46
51
  readonly image_url: {
47
52
  readonly url: string;
48
53
  };
54
+ } | {
55
+ readonly type: "video_url";
56
+ readonly video_url: {
57
+ readonly url: string;
58
+ };
49
59
  } | {
50
60
  readonly type: "file";
51
61
  readonly file: {
@@ -147,6 +157,11 @@ export declare const routes: Route<{
147
157
  readonly image_url: {
148
158
  readonly url: string;
149
159
  };
160
+ } | {
161
+ readonly type: "video_url";
162
+ readonly video_url: {
163
+ readonly url: string;
164
+ };
150
165
  } | {
151
166
  readonly type: "file";
152
167
  readonly file: {
@@ -168,6 +183,11 @@ export declare const routes: Route<{
168
183
  readonly image_url: {
169
184
  readonly url: string;
170
185
  };
186
+ } | {
187
+ readonly type: "video_url";
188
+ readonly video_url: {
189
+ readonly url: string;
190
+ };
171
191
  } | {
172
192
  readonly type: "file";
173
193
  readonly file: {
@@ -21,6 +21,11 @@ export declare const route: Route<{
21
21
  readonly image_url: {
22
22
  readonly url: string;
23
23
  };
24
+ } | {
25
+ readonly type: "video_url";
26
+ readonly video_url: {
27
+ readonly url: string;
28
+ };
24
29
  } | {
25
30
  readonly type: "file";
26
31
  readonly file: {
@@ -42,6 +47,11 @@ export declare const route: Route<{
42
47
  readonly image_url: {
43
48
  readonly url: string;
44
49
  };
50
+ } | {
51
+ readonly type: "video_url";
52
+ readonly video_url: {
53
+ readonly url: string;
54
+ };
45
55
  } | {
46
56
  readonly type: "file";
47
57
  readonly file: {
@@ -143,6 +153,11 @@ export declare const routes: Route<{
143
153
  readonly image_url: {
144
154
  readonly url: string;
145
155
  };
156
+ } | {
157
+ readonly type: "video_url";
158
+ readonly video_url: {
159
+ readonly url: string;
160
+ };
146
161
  } | {
147
162
  readonly type: "file";
148
163
  readonly file: {
@@ -164,6 +179,11 @@ export declare const routes: Route<{
164
179
  readonly image_url: {
165
180
  readonly url: string;
166
181
  };
182
+ } | {
183
+ readonly type: "video_url";
184
+ readonly video_url: {
185
+ readonly url: string;
186
+ };
167
187
  } | {
168
188
  readonly type: "file";
169
189
  readonly file: {
@@ -518,6 +518,11 @@ export declare const route: import("../route/client.js").Route<{
518
518
  readonly image_url: {
519
519
  readonly url: string;
520
520
  };
521
+ } | {
522
+ readonly type: "video_url";
523
+ readonly video_url: {
524
+ readonly url: string;
525
+ };
521
526
  } | {
522
527
  readonly type: "file";
523
528
  readonly file: {
@@ -539,6 +544,11 @@ export declare const route: import("../route/client.js").Route<{
539
544
  readonly image_url: {
540
545
  readonly url: string;
541
546
  };
547
+ } | {
548
+ readonly type: "video_url";
549
+ readonly video_url: {
550
+ readonly url: string;
551
+ };
542
552
  } | {
543
553
  readonly type: "file";
544
554
  readonly file: {
@@ -912,6 +922,11 @@ export declare const routes: (import("../route/client.js").Route<{
912
922
  readonly image_url: {
913
923
  readonly url: string;
914
924
  };
925
+ } | {
926
+ readonly type: "video_url";
927
+ readonly video_url: {
928
+ readonly url: string;
929
+ };
915
930
  } | {
916
931
  readonly type: "file";
917
932
  readonly file: {
@@ -933,6 +948,11 @@ export declare const routes: (import("../route/client.js").Route<{
933
948
  readonly image_url: {
934
949
  readonly url: string;
935
950
  };
951
+ } | {
952
+ readonly type: "video_url";
953
+ readonly video_url: {
954
+ readonly url: string;
955
+ };
936
956
  } | {
937
957
  readonly type: "file";
938
958
  readonly file: {
@@ -28,6 +28,11 @@ export declare const route: Route<{
28
28
  readonly image_url: {
29
29
  readonly url: string;
30
30
  };
31
+ } | {
32
+ readonly type: "video_url";
33
+ readonly video_url: {
34
+ readonly url: string;
35
+ };
31
36
  } | {
32
37
  readonly type: "file";
33
38
  readonly file: {
@@ -49,6 +54,11 @@ export declare const route: Route<{
49
54
  readonly image_url: {
50
55
  readonly url: string;
51
56
  };
57
+ } | {
58
+ readonly type: "video_url";
59
+ readonly video_url: {
60
+ readonly url: string;
61
+ };
52
62
  } | {
53
63
  readonly type: "file";
54
64
  readonly file: {
@@ -150,6 +160,11 @@ export declare const routes: Route<{
150
160
  readonly image_url: {
151
161
  readonly url: string;
152
162
  };
163
+ } | {
164
+ readonly type: "video_url";
165
+ readonly video_url: {
166
+ readonly url: string;
167
+ };
153
168
  } | {
154
169
  readonly type: "file";
155
170
  readonly file: {
@@ -171,6 +186,11 @@ export declare const routes: Route<{
171
186
  readonly image_url: {
172
187
  readonly url: string;
173
188
  };
189
+ } | {
190
+ readonly type: "video_url";
191
+ readonly video_url: {
192
+ readonly url: string;
193
+ };
174
194
  } | {
175
195
  readonly type: "file";
176
196
  readonly file: {
@@ -77,6 +77,11 @@ export declare const chatRoute: Route<{
77
77
  readonly image_url: {
78
78
  readonly url: string;
79
79
  };
80
+ } | {
81
+ readonly type: "video_url";
82
+ readonly video_url: {
83
+ readonly url: string;
84
+ };
80
85
  } | {
81
86
  readonly type: "file";
82
87
  readonly file: {
@@ -98,6 +103,11 @@ export declare const chatRoute: Route<{
98
103
  readonly image_url: {
99
104
  readonly url: string;
100
105
  };
106
+ } | {
107
+ readonly type: "video_url";
108
+ readonly video_url: {
109
+ readonly url: string;
110
+ };
101
111
  } | {
102
112
  readonly type: "file";
103
113
  readonly file: {
@@ -250,6 +260,11 @@ export declare const routes: (Route<{
250
260
  readonly image_url: {
251
261
  readonly url: string;
252
262
  };
263
+ } | {
264
+ readonly type: "video_url";
265
+ readonly video_url: {
266
+ readonly url: string;
267
+ };
253
268
  } | {
254
269
  readonly type: "file";
255
270
  readonly file: {
@@ -271,6 +286,11 @@ export declare const routes: (Route<{
271
286
  readonly image_url: {
272
287
  readonly url: string;
273
288
  };
289
+ } | {
290
+ readonly type: "video_url";
291
+ readonly video_url: {
292
+ readonly url: string;
293
+ };
274
294
  } | {
275
295
  readonly type: "file";
276
296
  readonly file: {
@@ -21,6 +21,11 @@ export declare const route: Route<{
21
21
  readonly image_url: {
22
22
  readonly url: string;
23
23
  };
24
+ } | {
25
+ readonly type: "video_url";
26
+ readonly video_url: {
27
+ readonly url: string;
28
+ };
24
29
  } | {
25
30
  readonly type: "file";
26
31
  readonly file: {
@@ -42,6 +47,11 @@ export declare const route: Route<{
42
47
  readonly image_url: {
43
48
  readonly url: string;
44
49
  };
50
+ } | {
51
+ readonly type: "video_url";
52
+ readonly video_url: {
53
+ readonly url: string;
54
+ };
45
55
  } | {
46
56
  readonly type: "file";
47
57
  readonly file: {
@@ -143,6 +153,11 @@ export declare const routes: Route<{
143
153
  readonly image_url: {
144
154
  readonly url: string;
145
155
  };
156
+ } | {
157
+ readonly type: "video_url";
158
+ readonly video_url: {
159
+ readonly url: string;
160
+ };
146
161
  } | {
147
162
  readonly type: "file";
148
163
  readonly file: {
@@ -164,6 +179,11 @@ export declare const routes: Route<{
164
179
  readonly image_url: {
165
180
  readonly url: string;
166
181
  };
182
+ } | {
183
+ readonly type: "video_url";
184
+ readonly video_url: {
185
+ readonly url: string;
186
+ };
167
187
  } | {
168
188
  readonly type: "file";
169
189
  readonly file: {
@@ -21,6 +21,11 @@ export declare const route: Route<{
21
21
  readonly image_url: {
22
22
  readonly url: string;
23
23
  };
24
+ } | {
25
+ readonly type: "video_url";
26
+ readonly video_url: {
27
+ readonly url: string;
28
+ };
24
29
  } | {
25
30
  readonly type: "file";
26
31
  readonly file: {
@@ -42,6 +47,11 @@ export declare const route: Route<{
42
47
  readonly image_url: {
43
48
  readonly url: string;
44
49
  };
50
+ } | {
51
+ readonly type: "video_url";
52
+ readonly video_url: {
53
+ readonly url: string;
54
+ };
45
55
  } | {
46
56
  readonly type: "file";
47
57
  readonly file: {
@@ -143,6 +153,11 @@ export declare const routes: Route<{
143
153
  readonly image_url: {
144
154
  readonly url: string;
145
155
  };
156
+ } | {
157
+ readonly type: "video_url";
158
+ readonly video_url: {
159
+ readonly url: string;
160
+ };
146
161
  } | {
147
162
  readonly type: "file";
148
163
  readonly file: {
@@ -164,6 +179,11 @@ export declare const routes: Route<{
164
179
  readonly image_url: {
165
180
  readonly url: string;
166
181
  };
182
+ } | {
183
+ readonly type: "video_url";
184
+ readonly video_url: {
185
+ readonly url: string;
186
+ };
167
187
  } | {
168
188
  readonly type: "file";
169
189
  readonly file: {
@@ -22,6 +22,11 @@ export declare const protocol: Protocol<{
22
22
  readonly image_url: {
23
23
  readonly url: string;
24
24
  };
25
+ } | {
26
+ readonly type: "video_url";
27
+ readonly video_url: {
28
+ readonly url: string;
29
+ };
25
30
  } | {
26
31
  readonly type: "file";
27
32
  readonly file: {
@@ -43,6 +48,11 @@ export declare const protocol: Protocol<{
43
48
  readonly image_url: {
44
49
  readonly url: string;
45
50
  };
51
+ } | {
52
+ readonly type: "video_url";
53
+ readonly video_url: {
54
+ readonly url: string;
55
+ };
46
56
  } | {
47
57
  readonly type: "file";
48
58
  readonly file: {
@@ -216,6 +226,11 @@ export declare const route: Route<{
216
226
  readonly image_url: {
217
227
  readonly url: string;
218
228
  };
229
+ } | {
230
+ readonly type: "video_url";
231
+ readonly video_url: {
232
+ readonly url: string;
233
+ };
219
234
  } | {
220
235
  readonly type: "file";
221
236
  readonly file: {
@@ -237,6 +252,11 @@ export declare const route: Route<{
237
252
  readonly image_url: {
238
253
  readonly url: string;
239
254
  };
255
+ } | {
256
+ readonly type: "video_url";
257
+ readonly video_url: {
258
+ readonly url: string;
259
+ };
240
260
  } | {
241
261
  readonly type: "file";
242
262
  readonly file: {
@@ -338,6 +358,11 @@ export declare const routes: Route<{
338
358
  readonly image_url: {
339
359
  readonly url: string;
340
360
  };
361
+ } | {
362
+ readonly type: "video_url";
363
+ readonly video_url: {
364
+ readonly url: string;
365
+ };
341
366
  } | {
342
367
  readonly type: "file";
343
368
  readonly file: {
@@ -359,6 +384,11 @@ export declare const routes: Route<{
359
384
  readonly image_url: {
360
385
  readonly url: string;
361
386
  };
387
+ } | {
388
+ readonly type: "video_url";
389
+ readonly video_url: {
390
+ readonly url: string;
391
+ };
362
392
  } | {
363
393
  readonly type: "file";
364
394
  readonly file: {
@@ -21,6 +21,11 @@ export declare const route: Route<{
21
21
  readonly image_url: {
22
22
  readonly url: string;
23
23
  };
24
+ } | {
25
+ readonly type: "video_url";
26
+ readonly video_url: {
27
+ readonly url: string;
28
+ };
24
29
  } | {
25
30
  readonly type: "file";
26
31
  readonly file: {
@@ -42,6 +47,11 @@ export declare const route: Route<{
42
47
  readonly image_url: {
43
48
  readonly url: string;
44
49
  };
50
+ } | {
51
+ readonly type: "video_url";
52
+ readonly video_url: {
53
+ readonly url: string;
54
+ };
45
55
  } | {
46
56
  readonly type: "file";
47
57
  readonly file: {
@@ -143,6 +153,11 @@ export declare const routes: Route<{
143
153
  readonly image_url: {
144
154
  readonly url: string;
145
155
  };
156
+ } | {
157
+ readonly type: "video_url";
158
+ readonly video_url: {
159
+ readonly url: string;
160
+ };
146
161
  } | {
147
162
  readonly type: "file";
148
163
  readonly file: {
@@ -164,6 +179,11 @@ export declare const routes: Route<{
164
179
  readonly image_url: {
165
180
  readonly url: string;
166
181
  };
182
+ } | {
183
+ readonly type: "video_url";
184
+ readonly video_url: {
185
+ readonly url: string;
186
+ };
167
187
  } | {
168
188
  readonly type: "file";
169
189
  readonly file: {
@@ -26,6 +26,11 @@ export declare const routes: Route<{
26
26
  readonly image_url: {
27
27
  readonly url: string;
28
28
  };
29
+ } | {
30
+ readonly type: "video_url";
31
+ readonly video_url: {
32
+ readonly url: string;
33
+ };
29
34
  } | {
30
35
  readonly type: "file";
31
36
  readonly file: {
@@ -47,6 +52,11 @@ export declare const routes: Route<{
47
52
  readonly image_url: {
48
53
  readonly url: string;
49
54
  };
55
+ } | {
56
+ readonly type: "video_url";
57
+ readonly video_url: {
58
+ readonly url: string;
59
+ };
50
60
  } | {
51
61
  readonly type: "file";
52
62
  readonly file: {
@@ -30,6 +30,11 @@ export declare const protocol: Protocol<{
30
30
  readonly image_url: {
31
31
  readonly url: string;
32
32
  };
33
+ } | {
34
+ readonly type: "video_url";
35
+ readonly video_url: {
36
+ readonly url: string;
37
+ };
33
38
  } | {
34
39
  readonly type: "file";
35
40
  readonly file: {
@@ -51,6 +56,11 @@ export declare const protocol: Protocol<{
51
56
  readonly image_url: {
52
57
  readonly url: string;
53
58
  };
59
+ } | {
60
+ readonly type: "video_url";
61
+ readonly video_url: {
62
+ readonly url: string;
63
+ };
54
64
  } | {
55
65
  readonly type: "file";
56
66
  readonly file: {
@@ -229,6 +239,11 @@ export declare const route: Route<{
229
239
  readonly image_url: {
230
240
  readonly url: string;
231
241
  };
242
+ } | {
243
+ readonly type: "video_url";
244
+ readonly video_url: {
245
+ readonly url: string;
246
+ };
232
247
  } | {
233
248
  readonly type: "file";
234
249
  readonly file: {
@@ -250,6 +265,11 @@ export declare const route: Route<{
250
265
  readonly image_url: {
251
266
  readonly url: string;
252
267
  };
268
+ } | {
269
+ readonly type: "video_url";
270
+ readonly video_url: {
271
+ readonly url: string;
272
+ };
253
273
  } | {
254
274
  readonly type: "file";
255
275
  readonly file: {
@@ -47,6 +47,11 @@ export declare const routes: (Route<{
47
47
  readonly image_url: {
48
48
  readonly url: string;
49
49
  };
50
+ } | {
51
+ readonly type: "video_url";
52
+ readonly video_url: {
53
+ readonly url: string;
54
+ };
50
55
  } | {
51
56
  readonly type: "file";
52
57
  readonly file: {
@@ -68,6 +73,11 @@ export declare const routes: (Route<{
68
73
  readonly image_url: {
69
74
  readonly url: string;
70
75
  };
76
+ } | {
77
+ readonly type: "video_url";
78
+ readonly video_url: {
79
+ readonly url: string;
80
+ };
71
81
  } | {
72
82
  readonly type: "file";
73
83
  readonly file: {
@@ -491,6 +491,11 @@ export declare const routes: (Route<{
491
491
  readonly image_url: {
492
492
  readonly url: string;
493
493
  };
494
+ } | {
495
+ readonly type: "video_url";
496
+ readonly video_url: {
497
+ readonly url: string;
498
+ };
494
499
  } | {
495
500
  readonly type: "file";
496
501
  readonly file: {
@@ -512,6 +517,11 @@ export declare const routes: (Route<{
512
517
  readonly image_url: {
513
518
  readonly url: string;
514
519
  };
520
+ } | {
521
+ readonly type: "video_url";
522
+ readonly video_url: {
523
+ readonly url: string;
524
+ };
515
525
  } | {
516
526
  readonly type: "file";
517
527
  readonly file: {
@@ -489,6 +489,11 @@ export declare const routes: (Route<{
489
489
  readonly image_url: {
490
490
  readonly url: string;
491
491
  };
492
+ } | {
493
+ readonly type: "video_url";
494
+ readonly video_url: {
495
+ readonly url: string;
496
+ };
492
497
  } | {
493
498
  readonly type: "file";
494
499
  readonly file: {
@@ -510,6 +515,11 @@ export declare const routes: (Route<{
510
515
  readonly image_url: {
511
516
  readonly url: string;
512
517
  };
518
+ } | {
519
+ readonly type: "video_url";
520
+ readonly video_url: {
521
+ readonly url: string;
522
+ };
513
523
  } | {
514
524
  readonly type: "file";
515
525
  readonly file: {
@@ -23,6 +23,11 @@ export declare const routes: import("../route/client.js").Route<{
23
23
  readonly image_url: {
24
24
  readonly url: string;
25
25
  };
26
+ } | {
27
+ readonly type: "video_url";
28
+ readonly video_url: {
29
+ readonly url: string;
30
+ };
26
31
  } | {
27
32
  readonly type: "file";
28
33
  readonly file: {
@@ -44,6 +49,11 @@ export declare const routes: import("../route/client.js").Route<{
44
49
  readonly image_url: {
45
50
  readonly url: string;
46
51
  };
52
+ } | {
53
+ readonly type: "video_url";
54
+ readonly video_url: {
55
+ readonly url: string;
56
+ };
47
57
  } | {
48
58
  readonly type: "file";
49
59
  readonly file: {
@@ -19,6 +19,11 @@ export declare const routes: (Route<{
19
19
  readonly image_url: {
20
20
  readonly url: string;
21
21
  };
22
+ } | {
23
+ readonly type: "video_url";
24
+ readonly video_url: {
25
+ readonly url: string;
26
+ };
22
27
  } | {
23
28
  readonly type: "file";
24
29
  readonly file: {
@@ -40,6 +45,11 @@ export declare const routes: (Route<{
40
45
  readonly image_url: {
41
46
  readonly url: string;
42
47
  };
48
+ } | {
49
+ readonly type: "video_url";
50
+ readonly video_url: {
51
+ readonly url: string;
52
+ };
43
53
  } | {
44
54
  readonly type: "file";
45
55
  readonly file: {
@@ -103,6 +103,11 @@ declare const OpenRouterBody: Schema.StructWithRest<Schema.Struct<{
103
103
  readonly image_url: Schema.Struct<{
104
104
  readonly url: Schema.String;
105
105
  }>;
106
+ }>, Schema.Struct<{
107
+ readonly type: Schema.Literal<"video_url">;
108
+ readonly video_url: Schema.Struct<{
109
+ readonly url: Schema.String;
110
+ }>;
106
111
  }>, Schema.Struct<{
107
112
  readonly type: Schema.Literal<"file">;
108
113
  readonly file: Schema.Struct<{
@@ -124,6 +129,11 @@ declare const OpenRouterBody: Schema.StructWithRest<Schema.Struct<{
124
129
  readonly image_url: Schema.Struct<{
125
130
  readonly url: Schema.String;
126
131
  }>;
132
+ }>, Schema.Struct<{
133
+ readonly type: Schema.Literal<"video_url">;
134
+ readonly video_url: Schema.Struct<{
135
+ readonly url: Schema.String;
136
+ }>;
127
137
  }>, Schema.Struct<{
128
138
  readonly type: Schema.Literal<"file">;
129
139
  readonly file: Schema.Struct<{
@@ -224,6 +234,11 @@ export declare const protocol: Protocol<{
224
234
  readonly image_url: {
225
235
  readonly url: string;
226
236
  };
237
+ } | {
238
+ readonly type: "video_url";
239
+ readonly video_url: {
240
+ readonly url: string;
241
+ };
227
242
  } | {
228
243
  readonly type: "file";
229
244
  readonly file: {
@@ -245,6 +260,11 @@ export declare const protocol: Protocol<{
245
260
  readonly image_url: {
246
261
  readonly url: string;
247
262
  };
263
+ } | {
264
+ readonly type: "video_url";
265
+ readonly video_url: {
266
+ readonly url: string;
267
+ };
248
268
  } | {
249
269
  readonly type: "file";
250
270
  readonly file: {
@@ -436,6 +456,11 @@ export declare const route: Route<{
436
456
  readonly image_url: {
437
457
  readonly url: string;
438
458
  };
459
+ } | {
460
+ readonly type: "video_url";
461
+ readonly video_url: {
462
+ readonly url: string;
463
+ };
439
464
  } | {
440
465
  readonly type: "file";
441
466
  readonly file: {
@@ -457,6 +482,11 @@ export declare const route: Route<{
457
482
  readonly image_url: {
458
483
  readonly url: string;
459
484
  };
485
+ } | {
486
+ readonly type: "video_url";
487
+ readonly video_url: {
488
+ readonly url: string;
489
+ };
460
490
  } | {
461
491
  readonly type: "file";
462
492
  readonly file: {
@@ -576,6 +606,11 @@ export declare const routes: Route<{
576
606
  readonly image_url: {
577
607
  readonly url: string;
578
608
  };
609
+ } | {
610
+ readonly type: "video_url";
611
+ readonly video_url: {
612
+ readonly url: string;
613
+ };
579
614
  } | {
580
615
  readonly type: "file";
581
616
  readonly file: {
@@ -597,6 +632,11 @@ export declare const routes: Route<{
597
632
  readonly image_url: {
598
633
  readonly url: string;
599
634
  };
635
+ } | {
636
+ readonly type: "video_url";
637
+ readonly video_url: {
638
+ readonly url: string;
639
+ };
600
640
  } | {
601
641
  readonly type: "file";
602
642
  readonly file: {
@@ -21,6 +21,11 @@ export declare const route: Route<{
21
21
  readonly image_url: {
22
22
  readonly url: string;
23
23
  };
24
+ } | {
25
+ readonly type: "video_url";
26
+ readonly video_url: {
27
+ readonly url: string;
28
+ };
24
29
  } | {
25
30
  readonly type: "file";
26
31
  readonly file: {
@@ -42,6 +47,11 @@ export declare const route: Route<{
42
47
  readonly image_url: {
43
48
  readonly url: string;
44
49
  };
50
+ } | {
51
+ readonly type: "video_url";
52
+ readonly video_url: {
53
+ readonly url: string;
54
+ };
45
55
  } | {
46
56
  readonly type: "file";
47
57
  readonly file: {
@@ -143,6 +153,11 @@ export declare const routes: Route<{
143
153
  readonly image_url: {
144
154
  readonly url: string;
145
155
  };
156
+ } | {
157
+ readonly type: "video_url";
158
+ readonly video_url: {
159
+ readonly url: string;
160
+ };
146
161
  } | {
147
162
  readonly type: "file";
148
163
  readonly file: {
@@ -164,6 +179,11 @@ export declare const routes: Route<{
164
179
  readonly image_url: {
165
180
  readonly url: string;
166
181
  };
182
+ } | {
183
+ readonly type: "video_url";
184
+ readonly video_url: {
185
+ readonly url: string;
186
+ };
167
187
  } | {
168
188
  readonly type: "file";
169
189
  readonly file: {
@@ -61,6 +61,11 @@ export declare const routes: Route<{
61
61
  readonly image_url: {
62
62
  readonly url: string;
63
63
  };
64
+ } | {
65
+ readonly type: "video_url";
66
+ readonly video_url: {
67
+ readonly url: string;
68
+ };
64
69
  } | {
65
70
  readonly type: "file";
66
71
  readonly file: {
@@ -82,6 +87,11 @@ export declare const routes: Route<{
82
87
  readonly image_url: {
83
88
  readonly url: string;
84
89
  };
90
+ } | {
91
+ readonly type: "video_url";
92
+ readonly video_url: {
93
+ readonly url: string;
94
+ };
85
95
  } | {
86
96
  readonly type: "file";
87
97
  readonly file: {
@@ -31,6 +31,11 @@ export declare const routes: (Route<unknown, import("../protocols/open-responses
31
31
  readonly image_url: {
32
32
  readonly url: string;
33
33
  };
34
+ } | {
35
+ readonly type: "video_url";
36
+ readonly video_url: {
37
+ readonly url: string;
38
+ };
34
39
  } | {
35
40
  readonly type: "file";
36
41
  readonly file: {
@@ -52,6 +57,11 @@ export declare const routes: (Route<unknown, import("../protocols/open-responses
52
57
  readonly image_url: {
53
58
  readonly url: string;
54
59
  };
60
+ } | {
61
+ readonly type: "video_url";
62
+ readonly video_url: {
63
+ readonly url: string;
64
+ };
55
65
  } | {
56
66
  readonly type: "file";
57
67
  readonly file: {
@@ -205,6 +205,11 @@ export declare const routes: (Route<{
205
205
  readonly image_url: {
206
206
  readonly url: string;
207
207
  };
208
+ } | {
209
+ readonly type: "video_url";
210
+ readonly video_url: {
211
+ readonly url: string;
212
+ };
208
213
  } | {
209
214
  readonly type: "file";
210
215
  readonly file: {
@@ -226,6 +231,11 @@ export declare const routes: (Route<{
226
231
  readonly image_url: {
227
232
  readonly url: string;
228
233
  };
234
+ } | {
235
+ readonly type: "video_url";
236
+ readonly video_url: {
237
+ readonly url: string;
238
+ };
229
239
  } | {
230
240
  readonly type: "file";
231
241
  readonly file: {
@@ -23,6 +23,11 @@ export declare const routes: Route<{
23
23
  readonly image_url: {
24
24
  readonly url: string;
25
25
  };
26
+ } | {
27
+ readonly type: "video_url";
28
+ readonly video_url: {
29
+ readonly url: string;
30
+ };
26
31
  } | {
27
32
  readonly type: "file";
28
33
  readonly file: {
@@ -44,6 +49,11 @@ export declare const routes: Route<{
44
49
  readonly image_url: {
45
50
  readonly url: string;
46
51
  };
52
+ } | {
53
+ readonly type: "video_url";
54
+ readonly video_url: {
55
+ readonly url: string;
56
+ };
47
57
  } | {
48
58
  readonly type: "file";
49
59
  readonly file: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "0.0.0-dev-21777",
3
+ "version": "0.0.0-dev-21784",
4
4
  "name": "@opencode/ai",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  "devDependencies": {
36
36
  "@clack/prompts": "1.0.0-alpha.1",
37
37
  "@effect/platform-node": "4.0.1",
38
- "@opencode/http-recorder": "0.0.0-dev-21777",
38
+ "@opencode/http-recorder": "0.0.0-dev-21784",
39
39
  "@tsconfig/bun": "1.0.9",
40
40
  "@types/bun": "1.4.3",
41
41
  "@typescript/native": "npm:typescript@7.1.0-beta",
@@ -45,7 +45,7 @@
45
45
  "@aws-sdk/credential-providers": "3.1057.0",
46
46
  "@smithy/eventstream-codec": "4.2.14",
47
47
  "@smithy/util-utf8": "4.2.2",
48
- "@opencode/schema": "0.0.0-dev-21777",
48
+ "@opencode/schema": "0.0.0-dev-21784",
49
49
  "aws4fetch": "1.0.20",
50
50
  "effect": "4.0.1",
51
51
  "google-auth-library": "10.5.0"