@opencode/ai 0.0.0-dev-420 → 0.0.0-dev-425
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.
- package/dist/image.d.ts +336 -400
- package/dist/schema/events.d.ts +2456 -2168
- package/dist/speech.d.ts +290 -294
- package/dist/transcription.d.ts +298 -242
- package/dist/video.d.ts +252 -264
- package/package.json +5 -5
package/dist/image.d.ts
CHANGED
|
@@ -688,105 +688,111 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
688
688
|
};
|
|
689
689
|
};
|
|
690
690
|
readonly match: {
|
|
691
|
-
<
|
|
692
|
-
readonly
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
readonly type: Schema.tag<"image-partial">;
|
|
701
|
-
readonly index: Schema.Number;
|
|
702
|
-
readonly image: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
703
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
704
|
-
readonly type: Schema.Literal<"bytes">;
|
|
705
|
-
readonly data: Schema.Uint8Array;
|
|
706
|
-
readonly mediaType: Schema.String;
|
|
707
|
-
}>, Schema.Struct<{
|
|
708
|
-
readonly type: Schema.Literal<"base64">;
|
|
709
|
-
readonly data: Schema.String;
|
|
710
|
-
readonly mediaType: Schema.String;
|
|
691
|
+
<Handlers extends { [K in "finish" | "generation-progress" | "generation-queued" | "image" | "image-partial"]: (value: {
|
|
692
|
+
readonly finish: Schema.Struct<{
|
|
693
|
+
readonly type: Schema.tag<"finish">;
|
|
694
|
+
readonly usage: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
695
|
+
readonly type: Schema.Literal<"tokens">;
|
|
696
|
+
readonly input: Schema.optional<Schema.Number>;
|
|
697
|
+
readonly output: Schema.optional<Schema.Number>;
|
|
698
|
+
readonly total: Schema.optional<Schema.Number>;
|
|
699
|
+
readonly details: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
711
700
|
}>, Schema.Struct<{
|
|
712
|
-
readonly type: Schema.Literal<"
|
|
713
|
-
readonly
|
|
714
|
-
readonly mediaType: Schema.optional<Schema.String>;
|
|
715
|
-
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
701
|
+
readonly type: Schema.Literal<"seconds">;
|
|
702
|
+
readonly seconds: Schema.Number;
|
|
716
703
|
}>, Schema.Struct<{
|
|
717
|
-
readonly type: Schema.Literal<"
|
|
718
|
-
readonly
|
|
719
|
-
readonly id: Schema.String;
|
|
720
|
-
readonly mediaType: Schema.optional<Schema.String>;
|
|
721
|
-
}>]>;
|
|
722
|
-
readonly info: Schema.optional<Schema.Struct<{
|
|
723
|
-
readonly width: Schema.optional<Schema.Number>;
|
|
724
|
-
readonly height: Schema.optional<Schema.Number>;
|
|
725
|
-
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
726
|
-
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
727
|
-
readonly channels: Schema.optional<Schema.Number>;
|
|
728
|
-
readonly encoding: Schema.optional<Schema.String>;
|
|
729
|
-
readonly format: Schema.optional<Schema.String>;
|
|
730
|
-
}>>;
|
|
731
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
732
|
-
}>, never, never>;
|
|
733
|
-
}> | Schema.Struct<{
|
|
734
|
-
readonly type: Schema.tag<"image">;
|
|
735
|
-
readonly index: Schema.Number;
|
|
736
|
-
readonly image: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
737
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
738
|
-
readonly type: Schema.Literal<"bytes">;
|
|
739
|
-
readonly data: Schema.Uint8Array;
|
|
740
|
-
readonly mediaType: Schema.String;
|
|
741
|
-
}>, Schema.Struct<{
|
|
742
|
-
readonly type: Schema.Literal<"base64">;
|
|
743
|
-
readonly data: Schema.String;
|
|
744
|
-
readonly mediaType: Schema.String;
|
|
704
|
+
readonly type: Schema.Literal<"characters">;
|
|
705
|
+
readonly characters: Schema.Number;
|
|
745
706
|
}>, Schema.Struct<{
|
|
746
|
-
readonly type: Schema.Literal<"
|
|
747
|
-
readonly
|
|
748
|
-
readonly mediaType: Schema.optional<Schema.String>;
|
|
749
|
-
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
707
|
+
readonly type: Schema.Literal<"credits">;
|
|
708
|
+
readonly credits: Schema.Number;
|
|
750
709
|
}>, Schema.Struct<{
|
|
751
|
-
readonly type: Schema.Literal<"
|
|
752
|
-
readonly
|
|
753
|
-
|
|
754
|
-
readonly mediaType: Schema.optional<Schema.String>;
|
|
755
|
-
}>]>;
|
|
756
|
-
readonly info: Schema.optional<Schema.Struct<{
|
|
757
|
-
readonly width: Schema.optional<Schema.Number>;
|
|
758
|
-
readonly height: Schema.optional<Schema.Number>;
|
|
759
|
-
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
760
|
-
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
761
|
-
readonly channels: Schema.optional<Schema.Number>;
|
|
762
|
-
readonly encoding: Schema.optional<Schema.String>;
|
|
763
|
-
readonly format: Schema.optional<Schema.String>;
|
|
764
|
-
}>>;
|
|
710
|
+
readonly type: Schema.Literal<"compute">;
|
|
711
|
+
readonly seconds: Schema.Number;
|
|
712
|
+
}>]>>;
|
|
765
713
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
readonly
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
readonly
|
|
774
|
-
readonly
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
readonly
|
|
780
|
-
readonly
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
714
|
+
}>;
|
|
715
|
+
readonly "generation-progress": Schema.Struct<{
|
|
716
|
+
readonly type: Schema.tag<"generation-progress">;
|
|
717
|
+
readonly id: Schema.String;
|
|
718
|
+
readonly progress: Schema.optional<Schema.Number>;
|
|
719
|
+
}>;
|
|
720
|
+
readonly "generation-queued": Schema.Struct<{
|
|
721
|
+
readonly type: Schema.tag<"generation-queued">;
|
|
722
|
+
readonly id: Schema.String;
|
|
723
|
+
readonly position: Schema.optional<Schema.Number>;
|
|
724
|
+
}>;
|
|
725
|
+
readonly image: Schema.Struct<{
|
|
726
|
+
readonly type: Schema.tag<"image">;
|
|
727
|
+
readonly index: Schema.Number;
|
|
728
|
+
readonly image: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
729
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
730
|
+
readonly type: Schema.Literal<"bytes">;
|
|
731
|
+
readonly data: Schema.Uint8Array;
|
|
732
|
+
readonly mediaType: Schema.String;
|
|
733
|
+
}>, Schema.Struct<{
|
|
734
|
+
readonly type: Schema.Literal<"base64">;
|
|
735
|
+
readonly data: Schema.String;
|
|
736
|
+
readonly mediaType: Schema.String;
|
|
737
|
+
}>, Schema.Struct<{
|
|
738
|
+
readonly type: Schema.Literal<"url">;
|
|
739
|
+
readonly url: Schema.String;
|
|
740
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
741
|
+
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
742
|
+
}>, Schema.Struct<{
|
|
743
|
+
readonly type: Schema.Literal<"ref">;
|
|
744
|
+
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
745
|
+
readonly id: Schema.String;
|
|
746
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
747
|
+
}>]>;
|
|
748
|
+
readonly info: Schema.optional<Schema.Struct<{
|
|
749
|
+
readonly width: Schema.optional<Schema.Number>;
|
|
750
|
+
readonly height: Schema.optional<Schema.Number>;
|
|
751
|
+
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
752
|
+
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
753
|
+
readonly channels: Schema.optional<Schema.Number>;
|
|
754
|
+
readonly encoding: Schema.optional<Schema.String>;
|
|
755
|
+
readonly format: Schema.optional<Schema.String>;
|
|
756
|
+
}>>;
|
|
757
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
758
|
+
}>, never, never>;
|
|
759
|
+
}>;
|
|
760
|
+
readonly "image-partial": Schema.Struct<{
|
|
761
|
+
readonly type: Schema.tag<"image-partial">;
|
|
762
|
+
readonly index: Schema.Number;
|
|
763
|
+
readonly image: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
764
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
765
|
+
readonly type: Schema.Literal<"bytes">;
|
|
766
|
+
readonly data: Schema.Uint8Array;
|
|
767
|
+
readonly mediaType: Schema.String;
|
|
768
|
+
}>, Schema.Struct<{
|
|
769
|
+
readonly type: Schema.Literal<"base64">;
|
|
770
|
+
readonly data: Schema.String;
|
|
771
|
+
readonly mediaType: Schema.String;
|
|
772
|
+
}>, Schema.Struct<{
|
|
773
|
+
readonly type: Schema.Literal<"url">;
|
|
774
|
+
readonly url: Schema.String;
|
|
775
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
776
|
+
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
777
|
+
}>, Schema.Struct<{
|
|
778
|
+
readonly type: Schema.Literal<"ref">;
|
|
779
|
+
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
780
|
+
readonly id: Schema.String;
|
|
781
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
782
|
+
}>]>;
|
|
783
|
+
readonly info: Schema.optional<Schema.Struct<{
|
|
784
|
+
readonly width: Schema.optional<Schema.Number>;
|
|
785
|
+
readonly height: Schema.optional<Schema.Number>;
|
|
786
|
+
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
787
|
+
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
788
|
+
readonly channels: Schema.optional<Schema.Number>;
|
|
789
|
+
readonly encoding: Schema.optional<Schema.String>;
|
|
790
|
+
readonly format: Schema.optional<Schema.String>;
|
|
791
|
+
}>>;
|
|
792
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
793
|
+
}>, never, never>;
|
|
794
|
+
}>;
|
|
795
|
+
}[K]["Type"]) => any; }>(value: {
|
|
790
796
|
readonly type: "image-partial";
|
|
791
797
|
readonly index: number;
|
|
792
798
|
readonly image: Media.Asset;
|
|
@@ -830,106 +836,112 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
830
836
|
readonly [x: string]: unknown;
|
|
831
837
|
};
|
|
832
838
|
} | undefined;
|
|
833
|
-
}, cases:
|
|
834
|
-
<
|
|
835
|
-
readonly
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
readonly type: Schema.tag<"image-partial">;
|
|
844
|
-
readonly index: Schema.Number;
|
|
845
|
-
readonly image: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
846
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
847
|
-
readonly type: Schema.Literal<"bytes">;
|
|
848
|
-
readonly data: Schema.Uint8Array;
|
|
849
|
-
readonly mediaType: Schema.String;
|
|
839
|
+
}, cases: Handlers): import("effect/Unify").Unify<ReturnType<Handlers["finish" | "generation-progress" | "generation-queued" | "image" | "image-partial"]>>;
|
|
840
|
+
<Handlers extends { [K in "finish" | "generation-progress" | "generation-queued" | "image" | "image-partial"]: (value: {
|
|
841
|
+
readonly finish: Schema.Struct<{
|
|
842
|
+
readonly type: Schema.tag<"finish">;
|
|
843
|
+
readonly usage: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
844
|
+
readonly type: Schema.Literal<"tokens">;
|
|
845
|
+
readonly input: Schema.optional<Schema.Number>;
|
|
846
|
+
readonly output: Schema.optional<Schema.Number>;
|
|
847
|
+
readonly total: Schema.optional<Schema.Number>;
|
|
848
|
+
readonly details: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
850
849
|
}>, Schema.Struct<{
|
|
851
|
-
readonly type: Schema.Literal<"
|
|
852
|
-
readonly
|
|
853
|
-
readonly mediaType: Schema.String;
|
|
850
|
+
readonly type: Schema.Literal<"seconds">;
|
|
851
|
+
readonly seconds: Schema.Number;
|
|
854
852
|
}>, Schema.Struct<{
|
|
855
|
-
readonly type: Schema.Literal<"
|
|
856
|
-
readonly
|
|
857
|
-
readonly mediaType: Schema.optional<Schema.String>;
|
|
858
|
-
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
853
|
+
readonly type: Schema.Literal<"characters">;
|
|
854
|
+
readonly characters: Schema.Number;
|
|
859
855
|
}>, Schema.Struct<{
|
|
860
|
-
readonly type: Schema.Literal<"
|
|
861
|
-
readonly
|
|
862
|
-
readonly id: Schema.String;
|
|
863
|
-
readonly mediaType: Schema.optional<Schema.String>;
|
|
864
|
-
}>]>;
|
|
865
|
-
readonly info: Schema.optional<Schema.Struct<{
|
|
866
|
-
readonly width: Schema.optional<Schema.Number>;
|
|
867
|
-
readonly height: Schema.optional<Schema.Number>;
|
|
868
|
-
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
869
|
-
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
870
|
-
readonly channels: Schema.optional<Schema.Number>;
|
|
871
|
-
readonly encoding: Schema.optional<Schema.String>;
|
|
872
|
-
readonly format: Schema.optional<Schema.String>;
|
|
873
|
-
}>>;
|
|
874
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
875
|
-
}>, never, never>;
|
|
876
|
-
}> | Schema.Struct<{
|
|
877
|
-
readonly type: Schema.tag<"image">;
|
|
878
|
-
readonly index: Schema.Number;
|
|
879
|
-
readonly image: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
880
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
881
|
-
readonly type: Schema.Literal<"bytes">;
|
|
882
|
-
readonly data: Schema.Uint8Array;
|
|
883
|
-
readonly mediaType: Schema.String;
|
|
884
|
-
}>, Schema.Struct<{
|
|
885
|
-
readonly type: Schema.Literal<"base64">;
|
|
886
|
-
readonly data: Schema.String;
|
|
887
|
-
readonly mediaType: Schema.String;
|
|
856
|
+
readonly type: Schema.Literal<"credits">;
|
|
857
|
+
readonly credits: Schema.Number;
|
|
888
858
|
}>, Schema.Struct<{
|
|
889
|
-
readonly type: Schema.Literal<"
|
|
890
|
-
readonly
|
|
891
|
-
|
|
892
|
-
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
893
|
-
}>, Schema.Struct<{
|
|
894
|
-
readonly type: Schema.Literal<"ref">;
|
|
895
|
-
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
896
|
-
readonly id: Schema.String;
|
|
897
|
-
readonly mediaType: Schema.optional<Schema.String>;
|
|
898
|
-
}>]>;
|
|
899
|
-
readonly info: Schema.optional<Schema.Struct<{
|
|
900
|
-
readonly width: Schema.optional<Schema.Number>;
|
|
901
|
-
readonly height: Schema.optional<Schema.Number>;
|
|
902
|
-
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
903
|
-
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
904
|
-
readonly channels: Schema.optional<Schema.Number>;
|
|
905
|
-
readonly encoding: Schema.optional<Schema.String>;
|
|
906
|
-
readonly format: Schema.optional<Schema.String>;
|
|
907
|
-
}>>;
|
|
859
|
+
readonly type: Schema.Literal<"compute">;
|
|
860
|
+
readonly seconds: Schema.Number;
|
|
861
|
+
}>]>>;
|
|
908
862
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
readonly
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
readonly
|
|
917
|
-
readonly
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
readonly
|
|
923
|
-
readonly
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
863
|
+
}>;
|
|
864
|
+
readonly "generation-progress": Schema.Struct<{
|
|
865
|
+
readonly type: Schema.tag<"generation-progress">;
|
|
866
|
+
readonly id: Schema.String;
|
|
867
|
+
readonly progress: Schema.optional<Schema.Number>;
|
|
868
|
+
}>;
|
|
869
|
+
readonly "generation-queued": Schema.Struct<{
|
|
870
|
+
readonly type: Schema.tag<"generation-queued">;
|
|
871
|
+
readonly id: Schema.String;
|
|
872
|
+
readonly position: Schema.optional<Schema.Number>;
|
|
873
|
+
}>;
|
|
874
|
+
readonly image: Schema.Struct<{
|
|
875
|
+
readonly type: Schema.tag<"image">;
|
|
876
|
+
readonly index: Schema.Number;
|
|
877
|
+
readonly image: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
878
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
879
|
+
readonly type: Schema.Literal<"bytes">;
|
|
880
|
+
readonly data: Schema.Uint8Array;
|
|
881
|
+
readonly mediaType: Schema.String;
|
|
882
|
+
}>, Schema.Struct<{
|
|
883
|
+
readonly type: Schema.Literal<"base64">;
|
|
884
|
+
readonly data: Schema.String;
|
|
885
|
+
readonly mediaType: Schema.String;
|
|
886
|
+
}>, Schema.Struct<{
|
|
887
|
+
readonly type: Schema.Literal<"url">;
|
|
888
|
+
readonly url: Schema.String;
|
|
889
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
890
|
+
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
891
|
+
}>, Schema.Struct<{
|
|
892
|
+
readonly type: Schema.Literal<"ref">;
|
|
893
|
+
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
894
|
+
readonly id: Schema.String;
|
|
895
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
896
|
+
}>]>;
|
|
897
|
+
readonly info: Schema.optional<Schema.Struct<{
|
|
898
|
+
readonly width: Schema.optional<Schema.Number>;
|
|
899
|
+
readonly height: Schema.optional<Schema.Number>;
|
|
900
|
+
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
901
|
+
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
902
|
+
readonly channels: Schema.optional<Schema.Number>;
|
|
903
|
+
readonly encoding: Schema.optional<Schema.String>;
|
|
904
|
+
readonly format: Schema.optional<Schema.String>;
|
|
905
|
+
}>>;
|
|
906
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
907
|
+
}>, never, never>;
|
|
908
|
+
}>;
|
|
909
|
+
readonly "image-partial": Schema.Struct<{
|
|
910
|
+
readonly type: Schema.tag<"image-partial">;
|
|
911
|
+
readonly index: Schema.Number;
|
|
912
|
+
readonly image: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
913
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
914
|
+
readonly type: Schema.Literal<"bytes">;
|
|
915
|
+
readonly data: Schema.Uint8Array;
|
|
916
|
+
readonly mediaType: Schema.String;
|
|
917
|
+
}>, Schema.Struct<{
|
|
918
|
+
readonly type: Schema.Literal<"base64">;
|
|
919
|
+
readonly data: Schema.String;
|
|
920
|
+
readonly mediaType: Schema.String;
|
|
921
|
+
}>, Schema.Struct<{
|
|
922
|
+
readonly type: Schema.Literal<"url">;
|
|
923
|
+
readonly url: Schema.String;
|
|
924
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
925
|
+
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
926
|
+
}>, Schema.Struct<{
|
|
927
|
+
readonly type: Schema.Literal<"ref">;
|
|
928
|
+
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
929
|
+
readonly id: Schema.String;
|
|
930
|
+
readonly mediaType: Schema.optional<Schema.String>;
|
|
931
|
+
}>]>;
|
|
932
|
+
readonly info: Schema.optional<Schema.Struct<{
|
|
933
|
+
readonly width: Schema.optional<Schema.Number>;
|
|
934
|
+
readonly height: Schema.optional<Schema.Number>;
|
|
935
|
+
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
936
|
+
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
937
|
+
readonly channels: Schema.optional<Schema.Number>;
|
|
938
|
+
readonly encoding: Schema.optional<Schema.String>;
|
|
939
|
+
readonly format: Schema.optional<Schema.String>;
|
|
940
|
+
}>>;
|
|
941
|
+
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
942
|
+
}>, never, never>;
|
|
943
|
+
}>;
|
|
944
|
+
}[K]["Type"]) => any; }>(cases: Handlers): (value: {
|
|
933
945
|
readonly type: "image-partial";
|
|
934
946
|
readonly index: number;
|
|
935
947
|
readonly image: Media.Asset;
|
|
@@ -973,108 +985,10 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
973
985
|
readonly [x: string]: unknown;
|
|
974
986
|
};
|
|
975
987
|
} | undefined;
|
|
976
|
-
}) =>
|
|
988
|
+
}) => import("effect/Unify").Unify<ReturnType<Handlers["finish" | "generation-progress" | "generation-queued" | "image" | "image-partial"]>>;
|
|
977
989
|
};
|
|
978
990
|
readonly matchOrElse: {
|
|
979
|
-
<
|
|
980
|
-
readonly type: Schema.tag<"generation-queued">;
|
|
981
|
-
readonly id: Schema.String;
|
|
982
|
-
readonly position: Schema.optional<Schema.Number>;
|
|
983
|
-
}> | Schema.Struct<{
|
|
984
|
-
readonly type: Schema.tag<"generation-progress">;
|
|
985
|
-
readonly id: Schema.String;
|
|
986
|
-
readonly progress: Schema.optional<Schema.Number>;
|
|
987
|
-
}> | Schema.Struct<{
|
|
988
|
-
readonly type: Schema.tag<"image-partial">;
|
|
989
|
-
readonly index: Schema.Number;
|
|
990
|
-
readonly image: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
991
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
992
|
-
readonly type: Schema.Literal<"bytes">;
|
|
993
|
-
readonly data: Schema.Uint8Array;
|
|
994
|
-
readonly mediaType: Schema.String;
|
|
995
|
-
}>, Schema.Struct<{
|
|
996
|
-
readonly type: Schema.Literal<"base64">;
|
|
997
|
-
readonly data: Schema.String;
|
|
998
|
-
readonly mediaType: Schema.String;
|
|
999
|
-
}>, Schema.Struct<{
|
|
1000
|
-
readonly type: Schema.Literal<"url">;
|
|
1001
|
-
readonly url: Schema.String;
|
|
1002
|
-
readonly mediaType: Schema.optional<Schema.String>;
|
|
1003
|
-
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
1004
|
-
}>, Schema.Struct<{
|
|
1005
|
-
readonly type: Schema.Literal<"ref">;
|
|
1006
|
-
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
1007
|
-
readonly id: Schema.String;
|
|
1008
|
-
readonly mediaType: Schema.optional<Schema.String>;
|
|
1009
|
-
}>]>;
|
|
1010
|
-
readonly info: Schema.optional<Schema.Struct<{
|
|
1011
|
-
readonly width: Schema.optional<Schema.Number>;
|
|
1012
|
-
readonly height: Schema.optional<Schema.Number>;
|
|
1013
|
-
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
1014
|
-
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
1015
|
-
readonly channels: Schema.optional<Schema.Number>;
|
|
1016
|
-
readonly encoding: Schema.optional<Schema.String>;
|
|
1017
|
-
readonly format: Schema.optional<Schema.String>;
|
|
1018
|
-
}>>;
|
|
1019
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1020
|
-
}>, never, never>;
|
|
1021
|
-
}> | Schema.Struct<{
|
|
1022
|
-
readonly type: Schema.tag<"image">;
|
|
1023
|
-
readonly index: Schema.Number;
|
|
1024
|
-
readonly image: Schema.decodeTo<Schema.declare<Media.Asset, Media.Asset>, Schema.Struct<{
|
|
1025
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1026
|
-
readonly type: Schema.Literal<"bytes">;
|
|
1027
|
-
readonly data: Schema.Uint8Array;
|
|
1028
|
-
readonly mediaType: Schema.String;
|
|
1029
|
-
}>, Schema.Struct<{
|
|
1030
|
-
readonly type: Schema.Literal<"base64">;
|
|
1031
|
-
readonly data: Schema.String;
|
|
1032
|
-
readonly mediaType: Schema.String;
|
|
1033
|
-
}>, Schema.Struct<{
|
|
1034
|
-
readonly type: Schema.Literal<"url">;
|
|
1035
|
-
readonly url: Schema.String;
|
|
1036
|
-
readonly mediaType: Schema.optional<Schema.String>;
|
|
1037
|
-
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
1038
|
-
}>, Schema.Struct<{
|
|
1039
|
-
readonly type: Schema.Literal<"ref">;
|
|
1040
|
-
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
1041
|
-
readonly id: Schema.String;
|
|
1042
|
-
readonly mediaType: Schema.optional<Schema.String>;
|
|
1043
|
-
}>]>;
|
|
1044
|
-
readonly info: Schema.optional<Schema.Struct<{
|
|
1045
|
-
readonly width: Schema.optional<Schema.Number>;
|
|
1046
|
-
readonly height: Schema.optional<Schema.Number>;
|
|
1047
|
-
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
1048
|
-
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
1049
|
-
readonly channels: Schema.optional<Schema.Number>;
|
|
1050
|
-
readonly encoding: Schema.optional<Schema.String>;
|
|
1051
|
-
readonly format: Schema.optional<Schema.String>;
|
|
1052
|
-
}>>;
|
|
1053
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1054
|
-
}>, never, never>;
|
|
1055
|
-
}> | Schema.Struct<{
|
|
1056
|
-
readonly type: Schema.tag<"finish">;
|
|
1057
|
-
readonly usage: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
1058
|
-
readonly type: Schema.Literal<"tokens">;
|
|
1059
|
-
readonly input: Schema.optional<Schema.Number>;
|
|
1060
|
-
readonly output: Schema.optional<Schema.Number>;
|
|
1061
|
-
readonly total: Schema.optional<Schema.Number>;
|
|
1062
|
-
readonly details: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1063
|
-
}>, Schema.Struct<{
|
|
1064
|
-
readonly type: Schema.Literal<"seconds">;
|
|
1065
|
-
readonly seconds: Schema.Number;
|
|
1066
|
-
}>, Schema.Struct<{
|
|
1067
|
-
readonly type: Schema.Literal<"characters">;
|
|
1068
|
-
readonly characters: Schema.Number;
|
|
1069
|
-
}>, Schema.Struct<{
|
|
1070
|
-
readonly type: Schema.Literal<"credits">;
|
|
1071
|
-
readonly credits: Schema.Number;
|
|
1072
|
-
}>, Schema.Struct<{
|
|
1073
|
-
readonly type: Schema.Literal<"compute">;
|
|
1074
|
-
readonly seconds: Schema.Number;
|
|
1075
|
-
}>]>>;
|
|
1076
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1077
|
-
}> as M["Type"]["type"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "finish" | "generation-progress" | "generation-queued" | "image" | "image-partial">]: never; }, OrElse extends (value: Exclude<{
|
|
991
|
+
<Handlers, OrElse>(value: {
|
|
1078
992
|
readonly type: "image-partial";
|
|
1079
993
|
readonly index: number;
|
|
1080
994
|
readonly image: Media.Asset;
|
|
@@ -1118,23 +1032,81 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1118
1032
|
readonly [x: string]: unknown;
|
|
1119
1033
|
};
|
|
1120
1034
|
} | undefined;
|
|
1121
|
-
},
|
|
1035
|
+
}, cases: Handlers & {
|
|
1036
|
+
readonly finish?: ((value: {
|
|
1037
|
+
readonly type: "finish";
|
|
1038
|
+
readonly usage?: {
|
|
1039
|
+
readonly type: "seconds";
|
|
1040
|
+
readonly seconds: number;
|
|
1041
|
+
} | {
|
|
1042
|
+
readonly type: "characters";
|
|
1043
|
+
readonly characters: number;
|
|
1044
|
+
} | {
|
|
1045
|
+
readonly type: "credits";
|
|
1046
|
+
readonly credits: number;
|
|
1047
|
+
} | {
|
|
1048
|
+
readonly type: "compute";
|
|
1049
|
+
readonly seconds: number;
|
|
1050
|
+
} | {
|
|
1051
|
+
readonly type: "tokens";
|
|
1052
|
+
readonly input?: number | undefined;
|
|
1053
|
+
readonly output?: number | undefined;
|
|
1054
|
+
readonly total?: number | undefined;
|
|
1055
|
+
readonly details?: {
|
|
1056
|
+
readonly [x: string]: unknown;
|
|
1057
|
+
} | undefined;
|
|
1058
|
+
} | undefined;
|
|
1059
|
+
readonly providerMetadata?: {
|
|
1060
|
+
readonly [x: string]: {
|
|
1061
|
+
readonly [x: string]: unknown;
|
|
1062
|
+
};
|
|
1063
|
+
} | undefined;
|
|
1064
|
+
}) => any) | undefined;
|
|
1065
|
+
readonly "generation-progress"?: ((value: {
|
|
1066
|
+
readonly type: "generation-progress";
|
|
1067
|
+
readonly id: string;
|
|
1068
|
+
readonly progress?: number | undefined;
|
|
1069
|
+
}) => any) | undefined;
|
|
1070
|
+
readonly "generation-queued"?: ((value: {
|
|
1071
|
+
readonly type: "generation-queued";
|
|
1072
|
+
readonly id: string;
|
|
1073
|
+
readonly position?: number | undefined;
|
|
1074
|
+
}) => any) | undefined;
|
|
1075
|
+
readonly image?: ((value: {
|
|
1076
|
+
readonly type: "image";
|
|
1077
|
+
readonly index: number;
|
|
1078
|
+
readonly image: Media.Asset;
|
|
1079
|
+
}) => any) | undefined;
|
|
1080
|
+
readonly "image-partial"?: ((value: {
|
|
1081
|
+
readonly type: "image-partial";
|
|
1082
|
+
readonly index: number;
|
|
1083
|
+
readonly image: Media.Asset;
|
|
1084
|
+
}) => any) | undefined;
|
|
1085
|
+
} & (Exclude<keyof Handlers, "finish" | "generation-progress" | "generation-queued" | "image" | "image-partial"> extends never ? unknown : never), orElse: OrElse & ((value: Exclude<{
|
|
1122
1086
|
readonly type: "image-partial";
|
|
1123
1087
|
readonly index: number;
|
|
1124
1088
|
readonly image: Media.Asset;
|
|
1125
|
-
}
|
|
1089
|
+
}, {
|
|
1090
|
+
readonly type: keyof Handlers;
|
|
1091
|
+
}> | Exclude<{
|
|
1126
1092
|
readonly type: "image";
|
|
1127
1093
|
readonly index: number;
|
|
1128
1094
|
readonly image: Media.Asset;
|
|
1129
|
-
}
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly type: keyof Handlers;
|
|
1097
|
+
}> | Exclude<{
|
|
1130
1098
|
readonly type: "generation-queued";
|
|
1131
1099
|
readonly id: string;
|
|
1132
1100
|
readonly position?: number | undefined;
|
|
1133
|
-
}
|
|
1101
|
+
}, {
|
|
1102
|
+
readonly type: keyof Handlers;
|
|
1103
|
+
}> | Exclude<{
|
|
1134
1104
|
readonly type: "generation-progress";
|
|
1135
1105
|
readonly id: string;
|
|
1136
1106
|
readonly progress?: number | undefined;
|
|
1137
|
-
}
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly type: keyof Handlers;
|
|
1109
|
+
}> | Exclude<{
|
|
1138
1110
|
readonly type: "finish";
|
|
1139
1111
|
readonly usage?: {
|
|
1140
1112
|
readonly type: "seconds";
|
|
@@ -1162,122 +1134,84 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1162
1134
|
readonly [x: string]: unknown;
|
|
1163
1135
|
};
|
|
1164
1136
|
} | undefined;
|
|
1165
|
-
},
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
readonly
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
readonly
|
|
1180
|
-
|
|
1181
|
-
readonly
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
readonly
|
|
1185
|
-
readonly
|
|
1186
|
-
|
|
1187
|
-
readonly
|
|
1188
|
-
readonly
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
readonly
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
readonly
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
readonly mediaType: Schema.String;
|
|
1220
|
-
}>, Schema.Struct<{
|
|
1221
|
-
readonly type: Schema.Literal<"url">;
|
|
1222
|
-
readonly url: Schema.String;
|
|
1223
|
-
readonly mediaType: Schema.optional<Schema.String>;
|
|
1224
|
-
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
1225
|
-
}>, Schema.Struct<{
|
|
1226
|
-
readonly type: Schema.Literal<"ref">;
|
|
1227
|
-
readonly provider: Schema.brand<Schema.String, "AI.ProviderID">;
|
|
1228
|
-
readonly id: Schema.String;
|
|
1229
|
-
readonly mediaType: Schema.optional<Schema.String>;
|
|
1230
|
-
}>]>;
|
|
1231
|
-
readonly info: Schema.optional<Schema.Struct<{
|
|
1232
|
-
readonly width: Schema.optional<Schema.Number>;
|
|
1233
|
-
readonly height: Schema.optional<Schema.Number>;
|
|
1234
|
-
readonly durationSeconds: Schema.optional<Schema.Number>;
|
|
1235
|
-
readonly sampleRate: Schema.optional<Schema.Number>;
|
|
1236
|
-
readonly channels: Schema.optional<Schema.Number>;
|
|
1237
|
-
readonly encoding: Schema.optional<Schema.String>;
|
|
1238
|
-
readonly format: Schema.optional<Schema.String>;
|
|
1239
|
-
}>>;
|
|
1240
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1241
|
-
}>, never, never>;
|
|
1242
|
-
}> | Schema.Struct<{
|
|
1243
|
-
readonly type: Schema.tag<"finish">;
|
|
1244
|
-
readonly usage: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
1245
|
-
readonly type: Schema.Literal<"tokens">;
|
|
1246
|
-
readonly input: Schema.optional<Schema.Number>;
|
|
1247
|
-
readonly output: Schema.optional<Schema.Number>;
|
|
1248
|
-
readonly total: Schema.optional<Schema.Number>;
|
|
1249
|
-
readonly details: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1250
|
-
}>, Schema.Struct<{
|
|
1251
|
-
readonly type: Schema.Literal<"seconds">;
|
|
1252
|
-
readonly seconds: Schema.Number;
|
|
1253
|
-
}>, Schema.Struct<{
|
|
1254
|
-
readonly type: Schema.Literal<"characters">;
|
|
1255
|
-
readonly characters: Schema.Number;
|
|
1256
|
-
}>, Schema.Struct<{
|
|
1257
|
-
readonly type: Schema.Literal<"credits">;
|
|
1258
|
-
readonly credits: Schema.Number;
|
|
1259
|
-
}>, Schema.Struct<{
|
|
1260
|
-
readonly type: Schema.Literal<"compute">;
|
|
1261
|
-
readonly seconds: Schema.Number;
|
|
1262
|
-
}>]>>;
|
|
1263
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1264
|
-
}> as M["Type"]["type"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "finish" | "generation-progress" | "generation-queued" | "image" | "image-partial">]: never; }, OrElse extends (value: Exclude<{
|
|
1137
|
+
}, {
|
|
1138
|
+
readonly type: keyof Handlers;
|
|
1139
|
+
}>) => any)): import("effect/Unify").Unify<{ [K in keyof Handlers]-?: NonNullable<Handlers[K]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Handlers] | (OrElse extends (...args: Array<any>) => infer R ? R : never)>;
|
|
1140
|
+
<Handlers, OrElse>(cases: Handlers & {
|
|
1141
|
+
readonly finish?: ((value: {
|
|
1142
|
+
readonly type: "finish";
|
|
1143
|
+
readonly usage?: {
|
|
1144
|
+
readonly type: "seconds";
|
|
1145
|
+
readonly seconds: number;
|
|
1146
|
+
} | {
|
|
1147
|
+
readonly type: "characters";
|
|
1148
|
+
readonly characters: number;
|
|
1149
|
+
} | {
|
|
1150
|
+
readonly type: "credits";
|
|
1151
|
+
readonly credits: number;
|
|
1152
|
+
} | {
|
|
1153
|
+
readonly type: "compute";
|
|
1154
|
+
readonly seconds: number;
|
|
1155
|
+
} | {
|
|
1156
|
+
readonly type: "tokens";
|
|
1157
|
+
readonly input?: number | undefined;
|
|
1158
|
+
readonly output?: number | undefined;
|
|
1159
|
+
readonly total?: number | undefined;
|
|
1160
|
+
readonly details?: {
|
|
1161
|
+
readonly [x: string]: unknown;
|
|
1162
|
+
} | undefined;
|
|
1163
|
+
} | undefined;
|
|
1164
|
+
readonly providerMetadata?: {
|
|
1165
|
+
readonly [x: string]: {
|
|
1166
|
+
readonly [x: string]: unknown;
|
|
1167
|
+
};
|
|
1168
|
+
} | undefined;
|
|
1169
|
+
}) => any) | undefined;
|
|
1170
|
+
readonly "generation-progress"?: ((value: {
|
|
1171
|
+
readonly type: "generation-progress";
|
|
1172
|
+
readonly id: string;
|
|
1173
|
+
readonly progress?: number | undefined;
|
|
1174
|
+
}) => any) | undefined;
|
|
1175
|
+
readonly "generation-queued"?: ((value: {
|
|
1176
|
+
readonly type: "generation-queued";
|
|
1177
|
+
readonly id: string;
|
|
1178
|
+
readonly position?: number | undefined;
|
|
1179
|
+
}) => any) | undefined;
|
|
1180
|
+
readonly image?: ((value: {
|
|
1181
|
+
readonly type: "image";
|
|
1182
|
+
readonly index: number;
|
|
1183
|
+
readonly image: Media.Asset;
|
|
1184
|
+
}) => any) | undefined;
|
|
1185
|
+
readonly "image-partial"?: ((value: {
|
|
1186
|
+
readonly type: "image-partial";
|
|
1187
|
+
readonly index: number;
|
|
1188
|
+
readonly image: Media.Asset;
|
|
1189
|
+
}) => any) | undefined;
|
|
1190
|
+
} & (Exclude<keyof Handlers, "finish" | "generation-progress" | "generation-queued" | "image" | "image-partial"> extends never ? unknown : never), orElse: OrElse & ((value: Exclude<{
|
|
1265
1191
|
readonly type: "image-partial";
|
|
1266
1192
|
readonly index: number;
|
|
1267
1193
|
readonly image: Media.Asset;
|
|
1268
|
-
}
|
|
1194
|
+
}, {
|
|
1195
|
+
readonly type: keyof Handlers;
|
|
1196
|
+
}> | Exclude<{
|
|
1269
1197
|
readonly type: "image";
|
|
1270
1198
|
readonly index: number;
|
|
1271
1199
|
readonly image: Media.Asset;
|
|
1272
|
-
}
|
|
1200
|
+
}, {
|
|
1201
|
+
readonly type: keyof Handlers;
|
|
1202
|
+
}> | Exclude<{
|
|
1273
1203
|
readonly type: "generation-queued";
|
|
1274
1204
|
readonly id: string;
|
|
1275
1205
|
readonly position?: number | undefined;
|
|
1276
|
-
}
|
|
1206
|
+
}, {
|
|
1207
|
+
readonly type: keyof Handlers;
|
|
1208
|
+
}> | Exclude<{
|
|
1277
1209
|
readonly type: "generation-progress";
|
|
1278
1210
|
readonly id: string;
|
|
1279
1211
|
readonly progress?: number | undefined;
|
|
1280
|
-
}
|
|
1212
|
+
}, {
|
|
1213
|
+
readonly type: keyof Handlers;
|
|
1214
|
+
}> | Exclude<{
|
|
1281
1215
|
readonly type: "finish";
|
|
1282
1216
|
readonly usage?: {
|
|
1283
1217
|
readonly type: "seconds";
|
|
@@ -1305,7 +1239,9 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1305
1239
|
readonly [x: string]: unknown;
|
|
1306
1240
|
};
|
|
1307
1241
|
} | undefined;
|
|
1308
|
-
}, {
|
|
1242
|
+
}, {
|
|
1243
|
+
readonly type: keyof Handlers;
|
|
1244
|
+
}>) => any)): (value: {
|
|
1309
1245
|
readonly type: "image-partial";
|
|
1310
1246
|
readonly index: number;
|
|
1311
1247
|
readonly image: Media.Asset;
|
|
@@ -1349,7 +1285,7 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1349
1285
|
readonly [x: string]: unknown;
|
|
1350
1286
|
};
|
|
1351
1287
|
} | undefined;
|
|
1352
|
-
}) => import("effect/Unify").Unify<{ [K in keyof
|
|
1288
|
+
}) => import("effect/Unify").Unify<{ [K in keyof Handlers]-?: NonNullable<Handlers[K]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Handlers] | (OrElse extends (...args: Array<any>) => infer R ? R : never)>;
|
|
1353
1289
|
};
|
|
1354
1290
|
} & {
|
|
1355
1291
|
is: {
|