@opencode/ai 0.0.0-dev-70 → 0.0.0-dev-80

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 (57) hide show
  1. package/README.md +14 -10
  2. package/dist/decision.d.ts +22 -6
  3. package/dist/decision.js +15 -4
  4. package/dist/effect.d.ts +1 -1
  5. package/dist/effect.js +1 -1
  6. package/dist/image-client.d.ts +0 -9
  7. package/dist/image-client.js +0 -1
  8. package/dist/image.d.ts +0 -135
  9. package/dist/image.js +0 -3
  10. package/dist/index.d.ts +0 -72
  11. package/dist/media.d.ts +0 -7
  12. package/dist/media.js +0 -6
  13. package/dist/protocols/cartesia-speech.d.ts +0 -18
  14. package/dist/protocols/deepgram-speech.d.ts +0 -18
  15. package/dist/protocols/elevenlabs-speech.d.ts +0 -18
  16. package/dist/protocols/fal-images.js +1 -9
  17. package/dist/protocols/google-images.js +6 -33
  18. package/dist/protocols/google-speech.d.ts +0 -18
  19. package/dist/protocols/google-speech.js +0 -1
  20. package/dist/protocols/google-transcription.d.ts +0 -18
  21. package/dist/protocols/google-transcription.js +0 -1
  22. package/dist/protocols/google-video.js +1 -6
  23. package/dist/protocols/meta-images.d.ts +1 -1
  24. package/dist/protocols/meta-images.js +3 -12
  25. package/dist/protocols/openai-decisions.js +25 -5
  26. package/dist/protocols/openai-images.d.ts +0 -18
  27. package/dist/protocols/openai-images.js +3 -7
  28. package/dist/protocols/openai-speech.d.ts +0 -18
  29. package/dist/protocols/openai-speech.js +3 -4
  30. package/dist/protocols/openai-transcription.d.ts +0 -18
  31. package/dist/protocols/openai-transcription.js +3 -4
  32. package/dist/protocols/stability-images.js +0 -3
  33. package/dist/protocols/system-one.d.ts +2 -0
  34. package/dist/protocols/system-one.js +6 -4
  35. package/dist/protocols/utils/gemini-generate-content.d.ts +0 -2
  36. package/dist/protocols/utils/gemini-generate-content.js +3 -14
  37. package/dist/protocols/utils/image-sizing.d.ts +1 -4
  38. package/dist/protocols/utils/image-sizing.js +2 -8
  39. package/dist/protocols/utils/speech-stream.d.ts +0 -1
  40. package/dist/protocols/utils/speech-stream.js +0 -1
  41. package/dist/protocols/xai-images.js +1 -6
  42. package/dist/protocols/xai-video.js +10 -7
  43. package/dist/protocols/zai-images.js +0 -9
  44. package/dist/schema/events.d.ts +7 -0
  45. package/dist/schema/events.js +4 -0
  46. package/dist/speech-client.d.ts +0 -9
  47. package/dist/speech-client.js +0 -1
  48. package/dist/speech.d.ts +0 -135
  49. package/dist/speech.js +0 -3
  50. package/dist/transcription-client.d.ts +0 -9
  51. package/dist/transcription.d.ts +0 -135
  52. package/dist/transcription.js +0 -1
  53. package/dist/video-client.d.ts +0 -9
  54. package/dist/video-client.js +0 -1
  55. package/dist/video.d.ts +0 -135
  56. package/dist/video.js +0 -3
  57. package/package.json +3 -3
@@ -133,11 +133,6 @@ declare const TranscriptionResponse_base: Schema.Class<TranscriptionResponse, Sc
133
133
  readonly type: Schema.Literal<"compute">;
134
134
  readonly seconds: Schema.Number;
135
135
  }>]>>;
136
- notices: Schema.optional<Schema.$Array<Schema.Struct<{
137
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
138
- readonly message: Schema.String;
139
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
140
- }>>>;
141
136
  providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
142
137
  }>, {}>;
143
138
  export declare class TranscriptionResponse extends TranscriptionResponse_base {
@@ -191,11 +186,6 @@ export declare const TranscriptionFinishEvent: Schema.Struct<{
191
186
  readonly type: Schema.Literal<"compute">;
192
187
  readonly seconds: Schema.Number;
193
188
  }>]>>;
194
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
195
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
196
- readonly message: Schema.String;
197
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
198
- }>>>;
199
189
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
200
190
  readonly type: Schema.tag<"finish">;
201
191
  }>;
@@ -254,11 +244,6 @@ declare const transcriptionEventTagged: Schema.toTaggedUnion<"type", readonly [S
254
244
  readonly type: Schema.Literal<"compute">;
255
245
  readonly seconds: Schema.Number;
256
246
  }>]>>;
257
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
258
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
259
- readonly message: Schema.String;
260
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
261
- }>>>;
262
247
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
263
248
  readonly type: Schema.tag<"finish">;
264
249
  }>]>;
@@ -317,11 +302,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
317
302
  readonly type: Schema.Literal<"compute">;
318
303
  readonly seconds: Schema.Number;
319
304
  }>]>>;
320
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
321
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
322
- readonly message: Schema.String;
323
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
324
- }>>>;
325
305
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
326
306
  readonly type: Schema.tag<"finish">;
327
307
  }>]> & {
@@ -363,11 +343,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
363
343
  readonly type: Schema.Literal<"compute">;
364
344
  readonly seconds: Schema.Number;
365
345
  }>]>>;
366
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
367
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
368
- readonly message: Schema.String;
369
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
370
- }>>>;
371
346
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
372
347
  readonly type: Schema.tag<"finish">;
373
348
  }>;
@@ -452,15 +427,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
452
427
  readonly [x: string]: unknown;
453
428
  } | undefined;
454
429
  } | undefined;
455
- readonly notices?: readonly {
456
- readonly type: "filtered" | "moderated" | "other";
457
- readonly message: string;
458
- readonly providerMetadata?: {
459
- readonly [x: string]: {
460
- readonly [x: string]: unknown;
461
- };
462
- } | undefined;
463
- }[] | undefined;
464
430
  readonly providerMetadata?: {
465
431
  readonly [x: string]: {
466
432
  readonly [x: string]: unknown;
@@ -532,15 +498,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
532
498
  readonly [x: string]: unknown;
533
499
  } | undefined;
534
500
  } | undefined;
535
- readonly notices?: readonly {
536
- readonly type: "filtered" | "moderated" | "other";
537
- readonly message: string;
538
- readonly providerMetadata?: {
539
- readonly [x: string]: {
540
- readonly [x: string]: unknown;
541
- };
542
- } | undefined;
543
- }[] | undefined;
544
501
  readonly providerMetadata?: {
545
502
  readonly [x: string]: {
546
503
  readonly [x: string]: unknown;
@@ -589,15 +546,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
589
546
  readonly [x: string]: unknown;
590
547
  } | undefined;
591
548
  } | undefined;
592
- readonly notices?: readonly {
593
- readonly type: "filtered" | "moderated" | "other";
594
- readonly message: string;
595
- readonly providerMetadata?: {
596
- readonly [x: string]: {
597
- readonly [x: string]: unknown;
598
- };
599
- } | undefined;
600
- }[] | undefined;
601
549
  readonly providerMetadata?: {
602
550
  readonly [x: string]: {
603
551
  readonly [x: string]: unknown;
@@ -685,11 +633,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
685
633
  readonly type: Schema.Literal<"compute">;
686
634
  readonly seconds: Schema.Number;
687
635
  }>]>>;
688
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
689
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
690
- readonly message: Schema.String;
691
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
692
- }>>>;
693
636
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
694
637
  readonly type: Schema.tag<"finish">;
695
638
  }> as M["Type"]["type"]]: (value: M["Type"]) => any; }>(value: {
@@ -749,15 +692,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
749
692
  readonly [x: string]: unknown;
750
693
  } | undefined;
751
694
  } | undefined;
752
- readonly notices?: readonly {
753
- readonly type: "filtered" | "moderated" | "other";
754
- readonly message: string;
755
- readonly providerMetadata?: {
756
- readonly [x: string]: {
757
- readonly [x: string]: unknown;
758
- };
759
- } | undefined;
760
- }[] | undefined;
761
695
  readonly providerMetadata?: {
762
696
  readonly [x: string]: {
763
697
  readonly [x: string]: unknown;
@@ -820,11 +754,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
820
754
  readonly type: Schema.Literal<"compute">;
821
755
  readonly seconds: Schema.Number;
822
756
  }>]>>;
823
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
824
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
825
- readonly message: Schema.String;
826
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
827
- }>>>;
828
757
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
829
758
  readonly type: Schema.tag<"finish">;
830
759
  }> as M["Type"]["type"]]: (value: M["Type"]) => any; }>(cases: Cases): (value: {
@@ -884,15 +813,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
884
813
  readonly [x: string]: unknown;
885
814
  } | undefined;
886
815
  } | undefined;
887
- readonly notices?: readonly {
888
- readonly type: "filtered" | "moderated" | "other";
889
- readonly message: string;
890
- readonly providerMetadata?: {
891
- readonly [x: string]: {
892
- readonly [x: string]: unknown;
893
- };
894
- } | undefined;
895
- }[] | undefined;
896
816
  readonly providerMetadata?: {
897
817
  readonly [x: string]: {
898
818
  readonly [x: string]: unknown;
@@ -957,11 +877,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
957
877
  readonly type: Schema.Literal<"compute">;
958
878
  readonly seconds: Schema.Number;
959
879
  }>]>>;
960
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
961
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
962
- readonly message: Schema.String;
963
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
964
- }>>>;
965
880
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
966
881
  readonly type: Schema.tag<"finish">;
967
882
  }> as M["Type"]["type"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "finish" | "generation-progress" | "generation-queued" | "segment" | "text-delta">]: never; }, OrElse extends (value: Exclude<{
@@ -1021,15 +936,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
1021
936
  readonly [x: string]: unknown;
1022
937
  } | undefined;
1023
938
  } | undefined;
1024
- readonly notices?: readonly {
1025
- readonly type: "filtered" | "moderated" | "other";
1026
- readonly message: string;
1027
- readonly providerMetadata?: {
1028
- readonly [x: string]: {
1029
- readonly [x: string]: unknown;
1030
- };
1031
- } | undefined;
1032
- }[] | undefined;
1033
939
  readonly providerMetadata?: {
1034
940
  readonly [x: string]: {
1035
941
  readonly [x: string]: unknown;
@@ -1093,15 +999,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
1093
999
  readonly [x: string]: unknown;
1094
1000
  } | undefined;
1095
1001
  } | undefined;
1096
- readonly notices?: readonly {
1097
- readonly type: "filtered" | "moderated" | "other";
1098
- readonly message: string;
1099
- readonly providerMetadata?: {
1100
- readonly [x: string]: {
1101
- readonly [x: string]: unknown;
1102
- };
1103
- } | undefined;
1104
- }[] | undefined;
1105
1002
  readonly providerMetadata?: {
1106
1003
  readonly [x: string]: {
1107
1004
  readonly [x: string]: unknown;
@@ -1164,11 +1061,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
1164
1061
  readonly type: Schema.Literal<"compute">;
1165
1062
  readonly seconds: Schema.Number;
1166
1063
  }>]>>;
1167
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
1168
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
1169
- readonly message: Schema.String;
1170
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
1171
- }>>>;
1172
1064
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
1173
1065
  readonly type: Schema.tag<"finish">;
1174
1066
  }> as M["Type"]["type"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "finish" | "generation-progress" | "generation-queued" | "segment" | "text-delta">]: never; }, OrElse extends (value: Exclude<{
@@ -1228,15 +1120,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
1228
1120
  readonly [x: string]: unknown;
1229
1121
  } | undefined;
1230
1122
  } | undefined;
1231
- readonly notices?: readonly {
1232
- readonly type: "filtered" | "moderated" | "other";
1233
- readonly message: string;
1234
- readonly providerMetadata?: {
1235
- readonly [x: string]: {
1236
- readonly [x: string]: unknown;
1237
- };
1238
- } | undefined;
1239
- }[] | undefined;
1240
1123
  readonly providerMetadata?: {
1241
1124
  readonly [x: string]: {
1242
1125
  readonly [x: string]: unknown;
@@ -1300,15 +1183,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
1300
1183
  readonly [x: string]: unknown;
1301
1184
  } | undefined;
1302
1185
  } | undefined;
1303
- readonly notices?: readonly {
1304
- readonly type: "filtered" | "moderated" | "other";
1305
- readonly message: string;
1306
- readonly providerMetadata?: {
1307
- readonly [x: string]: {
1308
- readonly [x: string]: unknown;
1309
- };
1310
- } | undefined;
1311
- }[] | undefined;
1312
1186
  readonly providerMetadata?: {
1313
1187
  readonly [x: string]: {
1314
1188
  readonly [x: string]: unknown;
@@ -1380,15 +1254,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
1380
1254
  readonly [x: string]: unknown;
1381
1255
  } | undefined;
1382
1256
  } | undefined;
1383
- readonly notices?: readonly {
1384
- readonly type: "filtered" | "moderated" | "other";
1385
- readonly message: string;
1386
- readonly providerMetadata?: {
1387
- readonly [x: string]: {
1388
- readonly [x: string]: unknown;
1389
- };
1390
- } | undefined;
1391
- }[] | undefined;
1392
1257
  readonly providerMetadata?: {
1393
1258
  readonly [x: string]: {
1394
1259
  readonly [x: string]: unknown;
@@ -59,7 +59,6 @@ const transcriptFields = {
59
59
  language: Schema.optional(Schema.String),
60
60
  durationSeconds: Schema.optional(Schema.Number),
61
61
  usage: Schema.optional(MediaUsage),
62
- notices: Schema.optional(Schema.Array(Media.Notice)),
63
62
  providerMetadata: Schema.optional(ProviderMetadata),
64
63
  };
65
64
  export class TranscriptionResponse extends Schema.Class("Transcription.Response")(transcriptFields) {
@@ -37,15 +37,6 @@ export declare const VideoClient: {
37
37
  readonly [x: string]: unknown;
38
38
  } | undefined;
39
39
  } | undefined;
40
- readonly notices?: readonly {
41
- readonly type: "filtered" | "moderated" | "other";
42
- readonly message: string;
43
- readonly providerMetadata?: {
44
- readonly [x: string]: {
45
- readonly [x: string]: unknown;
46
- };
47
- } | undefined;
48
- }[] | undefined;
49
40
  readonly providerMetadata?: {
50
41
  readonly [x: string]: {
51
42
  readonly [x: string]: unknown;
@@ -12,7 +12,6 @@ export const VideoClient = {
12
12
  ...response.videos.map((video, index) => VideoOutputEvent.make({ index, video })),
13
13
  VideoFinishEvent.make({
14
14
  usage: response.usage,
15
- notices: response.notices,
16
15
  providerMetadata: response.providerMetadata,
17
16
  }),
18
17
  ],
package/dist/video.d.ts CHANGED
@@ -299,11 +299,6 @@ declare const VideoResponse_base: Schema.Class<VideoResponse, Schema.Struct<{
299
299
  readonly type: Schema.Literal<"compute">;
300
300
  readonly seconds: Schema.Number;
301
301
  }>]>>;
302
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
303
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
304
- readonly message: Schema.String;
305
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
306
- }>>>;
307
302
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
308
303
  }>, {}>;
309
304
  export declare class VideoResponse extends VideoResponse_base {
@@ -365,11 +360,6 @@ export declare const VideoFinishEvent: Schema.Struct<{
365
360
  readonly type: Schema.Literal<"compute">;
366
361
  readonly seconds: Schema.Number;
367
362
  }>]>>;
368
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
369
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
370
- readonly message: Schema.String;
371
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
372
- }>>>;
373
363
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
374
364
  }>;
375
365
  declare const videoEventTagged: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
@@ -435,11 +425,6 @@ declare const videoEventTagged: Schema.toTaggedUnion<"type", readonly [Schema.St
435
425
  readonly type: Schema.Literal<"compute">;
436
426
  readonly seconds: Schema.Number;
437
427
  }>]>>;
438
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
439
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
440
- readonly message: Schema.String;
441
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
442
- }>>>;
443
428
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
444
429
  }>]>;
445
430
  export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
@@ -505,11 +490,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
505
490
  readonly type: Schema.Literal<"compute">;
506
491
  readonly seconds: Schema.Number;
507
492
  }>]>>;
508
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
509
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
510
- readonly message: Schema.String;
511
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
512
- }>>>;
513
493
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
514
494
  }>]> & {
515
495
  readonly discriminants: readonly ["generation-queued", "generation-progress", "video", "finish"];
@@ -535,11 +515,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
535
515
  readonly type: Schema.Literal<"compute">;
536
516
  readonly seconds: Schema.Number;
537
517
  }>]>>;
538
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
539
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
540
- readonly message: Schema.String;
541
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
542
- }>>>;
543
518
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
544
519
  }>;
545
520
  "generation-progress": Schema.Struct<{
@@ -623,15 +598,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
623
598
  readonly [x: string]: unknown;
624
599
  } | undefined;
625
600
  } | undefined;
626
- readonly notices?: readonly {
627
- readonly type: "filtered" | "moderated" | "other";
628
- readonly message: string;
629
- readonly providerMetadata?: {
630
- readonly [x: string]: {
631
- readonly [x: string]: unknown;
632
- };
633
- } | undefined;
634
- }[] | undefined;
635
601
  readonly providerMetadata?: {
636
602
  readonly [x: string]: {
637
603
  readonly [x: string]: unknown;
@@ -678,15 +644,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
678
644
  readonly [x: string]: unknown;
679
645
  } | undefined;
680
646
  } | undefined;
681
- readonly notices?: readonly {
682
- readonly type: "filtered" | "moderated" | "other";
683
- readonly message: string;
684
- readonly providerMetadata?: {
685
- readonly [x: string]: {
686
- readonly [x: string]: unknown;
687
- };
688
- } | undefined;
689
- }[] | undefined;
690
647
  readonly providerMetadata?: {
691
648
  readonly [x: string]: {
692
649
  readonly [x: string]: unknown;
@@ -719,15 +676,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
719
676
  readonly [x: string]: unknown;
720
677
  } | undefined;
721
678
  } | undefined;
722
- readonly notices?: readonly {
723
- readonly type: "filtered" | "moderated" | "other";
724
- readonly message: string;
725
- readonly providerMetadata?: {
726
- readonly [x: string]: {
727
- readonly [x: string]: unknown;
728
- };
729
- } | undefined;
730
- }[] | undefined;
731
679
  readonly providerMetadata?: {
732
680
  readonly [x: string]: {
733
681
  readonly [x: string]: unknown;
@@ -814,11 +762,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
814
762
  readonly type: Schema.Literal<"compute">;
815
763
  readonly seconds: Schema.Number;
816
764
  }>]>>;
817
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
818
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
819
- readonly message: Schema.String;
820
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
821
- }>>>;
822
765
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
823
766
  }> as M["Type"]["type"]]: (value: M["Type"]) => any; }>(value: {
824
767
  readonly type: "video";
@@ -855,15 +798,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
855
798
  readonly [x: string]: unknown;
856
799
  } | undefined;
857
800
  } | undefined;
858
- readonly notices?: readonly {
859
- readonly type: "filtered" | "moderated" | "other";
860
- readonly message: string;
861
- readonly providerMetadata?: {
862
- readonly [x: string]: {
863
- readonly [x: string]: unknown;
864
- };
865
- } | undefined;
866
- }[] | undefined;
867
801
  readonly providerMetadata?: {
868
802
  readonly [x: string]: {
869
803
  readonly [x: string]: unknown;
@@ -933,11 +867,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
933
867
  readonly type: Schema.Literal<"compute">;
934
868
  readonly seconds: Schema.Number;
935
869
  }>]>>;
936
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
937
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
938
- readonly message: Schema.String;
939
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
940
- }>>>;
941
870
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
942
871
  }> as M["Type"]["type"]]: (value: M["Type"]) => any; }>(cases: Cases): (value: {
943
872
  readonly type: "video";
@@ -974,15 +903,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
974
903
  readonly [x: string]: unknown;
975
904
  } | undefined;
976
905
  } | undefined;
977
- readonly notices?: readonly {
978
- readonly type: "filtered" | "moderated" | "other";
979
- readonly message: string;
980
- readonly providerMetadata?: {
981
- readonly [x: string]: {
982
- readonly [x: string]: unknown;
983
- };
984
- } | undefined;
985
- }[] | undefined;
986
906
  readonly providerMetadata?: {
987
907
  readonly [x: string]: {
988
908
  readonly [x: string]: unknown;
@@ -1054,11 +974,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
1054
974
  readonly type: Schema.Literal<"compute">;
1055
975
  readonly seconds: Schema.Number;
1056
976
  }>]>>;
1057
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
1058
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
1059
- readonly message: Schema.String;
1060
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
1061
- }>>>;
1062
977
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
1063
978
  }> as M["Type"]["type"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "finish" | "generation-progress" | "generation-queued" | "video">]: never; }, OrElse extends (value: Exclude<{
1064
979
  readonly type: "video";
@@ -1095,15 +1010,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
1095
1010
  readonly [x: string]: unknown;
1096
1011
  } | undefined;
1097
1012
  } | undefined;
1098
- readonly notices?: readonly {
1099
- readonly type: "filtered" | "moderated" | "other";
1100
- readonly message: string;
1101
- readonly providerMetadata?: {
1102
- readonly [x: string]: {
1103
- readonly [x: string]: unknown;
1104
- };
1105
- } | undefined;
1106
- }[] | undefined;
1107
1013
  readonly providerMetadata?: {
1108
1014
  readonly [x: string]: {
1109
1015
  readonly [x: string]: unknown;
@@ -1144,15 +1050,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
1144
1050
  readonly [x: string]: unknown;
1145
1051
  } | undefined;
1146
1052
  } | undefined;
1147
- readonly notices?: readonly {
1148
- readonly type: "filtered" | "moderated" | "other";
1149
- readonly message: string;
1150
- readonly providerMetadata?: {
1151
- readonly [x: string]: {
1152
- readonly [x: string]: unknown;
1153
- };
1154
- } | undefined;
1155
- }[] | undefined;
1156
1053
  readonly providerMetadata?: {
1157
1054
  readonly [x: string]: {
1158
1055
  readonly [x: string]: unknown;
@@ -1222,11 +1119,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
1222
1119
  readonly type: Schema.Literal<"compute">;
1223
1120
  readonly seconds: Schema.Number;
1224
1121
  }>]>>;
1225
- readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
1226
- readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
1227
- readonly message: Schema.String;
1228
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
1229
- }>>>;
1230
1122
  readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
1231
1123
  }> as M["Type"]["type"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "finish" | "generation-progress" | "generation-queued" | "video">]: never; }, OrElse extends (value: Exclude<{
1232
1124
  readonly type: "video";
@@ -1263,15 +1155,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
1263
1155
  readonly [x: string]: unknown;
1264
1156
  } | undefined;
1265
1157
  } | undefined;
1266
- readonly notices?: readonly {
1267
- readonly type: "filtered" | "moderated" | "other";
1268
- readonly message: string;
1269
- readonly providerMetadata?: {
1270
- readonly [x: string]: {
1271
- readonly [x: string]: unknown;
1272
- };
1273
- } | undefined;
1274
- }[] | undefined;
1275
1158
  readonly providerMetadata?: {
1276
1159
  readonly [x: string]: {
1277
1160
  readonly [x: string]: unknown;
@@ -1312,15 +1195,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
1312
1195
  readonly [x: string]: unknown;
1313
1196
  } | undefined;
1314
1197
  } | undefined;
1315
- readonly notices?: readonly {
1316
- readonly type: "filtered" | "moderated" | "other";
1317
- readonly message: string;
1318
- readonly providerMetadata?: {
1319
- readonly [x: string]: {
1320
- readonly [x: string]: unknown;
1321
- };
1322
- } | undefined;
1323
- }[] | undefined;
1324
1198
  readonly providerMetadata?: {
1325
1199
  readonly [x: string]: {
1326
1200
  readonly [x: string]: unknown;
@@ -1368,15 +1242,6 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
1368
1242
  readonly [x: string]: unknown;
1369
1243
  } | undefined;
1370
1244
  } | undefined;
1371
- readonly notices?: readonly {
1372
- readonly type: "filtered" | "moderated" | "other";
1373
- readonly message: string;
1374
- readonly providerMetadata?: {
1375
- readonly [x: string]: {
1376
- readonly [x: string]: unknown;
1377
- };
1378
- } | undefined;
1379
- }[] | undefined;
1380
1245
  readonly providerMetadata?: {
1381
1246
  readonly [x: string]: {
1382
1247
  readonly [x: string]: unknown;
package/dist/video.js CHANGED
@@ -51,7 +51,6 @@ export class VideoRequest extends Schema.Class("Video.Request")({
51
51
  export class VideoResponse extends Schema.Class("Video.Response")({
52
52
  videos: Schema.Array(Media.AssetSchema),
53
53
  usage: Schema.optional(MediaUsage),
54
- notices: Schema.optional(Schema.Array(Media.Notice)),
55
54
  providerMetadata: Schema.optional(ProviderMetadata),
56
55
  }) {
57
56
  get video() {
@@ -66,7 +65,6 @@ export const VideoOutputEvent = Schema.Struct({
66
65
  export const VideoFinishEvent = Schema.Struct({
67
66
  type: Schema.tag("finish"),
68
67
  usage: Schema.optional(MediaUsage),
69
- notices: Schema.optional(Schema.Array(Media.Notice)),
70
68
  providerMetadata: Schema.optional(ProviderMetadata),
71
69
  }).annotate({ identifier: "Video.Event.Finish" });
72
70
  const videoEventTagged = Schema.Union([QueuedEvent, ProgressEvent, VideoOutputEvent, VideoFinishEvent]).pipe(Schema.toTaggedUnion("type"));
@@ -86,7 +84,6 @@ const collectResponse = (events) => {
86
84
  return Effect.succeed(new VideoResponse({
87
85
  videos: events.filter(VideoEvent.is.video).map((event) => event.video),
88
86
  usage: finish.usage,
89
- notices: finish.notices,
90
87
  providerMetadata: finish.providerMetadata,
91
88
  }));
92
89
  };
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-70",
3
+ "version": "0.0.0-dev-80",
4
4
  "name": "@opencode/ai",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -532,7 +532,7 @@
532
532
  "devDependencies": {
533
533
  "@clack/prompts": "1.0.0-alpha.1",
534
534
  "@effect/platform-node": "4.0.1",
535
- "@opencode/http-recorder": "0.0.0-dev-70",
535
+ "@opencode/http-recorder": "0.0.0-dev-80",
536
536
  "@tsconfig/bun": "1.0.9",
537
537
  "@types/bun": "1.4.3",
538
538
  "@typescript/native": "npm:typescript@7.1.0-beta",
@@ -542,7 +542,7 @@
542
542
  "@aws-sdk/credential-providers": "3.1057.0",
543
543
  "@smithy/eventstream-codec": "4.2.14",
544
544
  "@smithy/util-utf8": "4.2.2",
545
- "@opencode/schema": "0.0.0-dev-70",
545
+ "@opencode/schema": "0.0.0-dev-80",
546
546
  "aws4fetch": "1.0.20",
547
547
  "effect": "4.0.1",
548
548
  "google-auth-library": "10.5.0"