@opencode-ai/schema 0.0.0-dev-18293 → 0.0.0-dev-18296
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/event-manifest.d.ts +416 -0
- package/dist/session-event.d.ts +1042 -0
- package/dist/session-event.js +11 -1
- package/dist/session-message.d.ts +76 -0
- package/dist/session-message.js +3 -0
- package/package.json +1 -1
package/dist/session-event.d.ts
CHANGED
|
@@ -636,6 +636,216 @@ export declare const Viewed: Schema.Struct<{
|
|
|
636
636
|
}>;
|
|
637
637
|
};
|
|
638
638
|
export type Viewed = typeof Viewed.Type;
|
|
639
|
+
export declare const MessageContentUpdated: Schema.Struct<{
|
|
640
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
641
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
642
|
+
};
|
|
643
|
+
readonly created: Schema.Finite;
|
|
644
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
645
|
+
readonly type: Schema.Literal<"session.message.content.updated">;
|
|
646
|
+
readonly durable: Schema.Struct<{
|
|
647
|
+
readonly aggregateID: Schema.String;
|
|
648
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
649
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
650
|
+
}>;
|
|
651
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
652
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
653
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
654
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
655
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
656
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
657
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
658
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
659
|
+
}>, never, never>;
|
|
660
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
661
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
662
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
663
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
664
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
665
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
666
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
667
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
668
|
+
}>, never, never>;
|
|
669
|
+
}>>, never, never>;
|
|
670
|
+
readonly data: Schema.Struct<{
|
|
671
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
672
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
673
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
674
|
+
};
|
|
675
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
676
|
+
readonly type: Schema.tag<"text">;
|
|
677
|
+
readonly text: Schema.String;
|
|
678
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
679
|
+
}>, Schema.Struct<{
|
|
680
|
+
readonly type: Schema.tag<"reasoning">;
|
|
681
|
+
readonly text: Schema.String;
|
|
682
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
683
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
684
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
685
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
686
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
687
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
688
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
689
|
+
}>>, never, never>;
|
|
690
|
+
}>, Schema.Struct<{
|
|
691
|
+
readonly type: Schema.tag<"tool">;
|
|
692
|
+
readonly id: Schema.String;
|
|
693
|
+
readonly name: Schema.String;
|
|
694
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
695
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
696
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
697
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
698
|
+
readonly status: Schema.tag<"streaming">;
|
|
699
|
+
readonly input: Schema.String;
|
|
700
|
+
}>, Schema.Struct<{
|
|
701
|
+
readonly status: Schema.tag<"running">;
|
|
702
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
703
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
704
|
+
}>, Schema.Struct<{
|
|
705
|
+
readonly status: Schema.tag<"completed">;
|
|
706
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
707
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
708
|
+
readonly type: Schema.Literal<"text">;
|
|
709
|
+
readonly text: Schema.String;
|
|
710
|
+
}>, Schema.Struct<{
|
|
711
|
+
readonly type: Schema.Literal<"file">;
|
|
712
|
+
readonly uri: Schema.String;
|
|
713
|
+
readonly mime: Schema.String;
|
|
714
|
+
readonly name: Schema.optional<Schema.String>;
|
|
715
|
+
}>]>>;
|
|
716
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
717
|
+
}>, Schema.Struct<{
|
|
718
|
+
readonly status: Schema.tag<"error">;
|
|
719
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
720
|
+
readonly error: Schema.Struct<{
|
|
721
|
+
readonly type: Schema.String;
|
|
722
|
+
readonly message: Schema.String;
|
|
723
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
724
|
+
}>;
|
|
725
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
726
|
+
readonly type: Schema.Literal<"text">;
|
|
727
|
+
readonly text: Schema.String;
|
|
728
|
+
}>, Schema.Struct<{
|
|
729
|
+
readonly type: Schema.Literal<"file">;
|
|
730
|
+
readonly uri: Schema.String;
|
|
731
|
+
readonly mime: Schema.String;
|
|
732
|
+
readonly name: Schema.optional<Schema.String>;
|
|
733
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
734
|
+
readonly type: Schema.Literal<"text">;
|
|
735
|
+
readonly text: Schema.String;
|
|
736
|
+
}>, Schema.Struct<{
|
|
737
|
+
readonly type: Schema.Literal<"file">;
|
|
738
|
+
readonly uri: Schema.String;
|
|
739
|
+
readonly mime: Schema.String;
|
|
740
|
+
readonly name: Schema.optional<Schema.String>;
|
|
741
|
+
}>]>>>, never, never>;
|
|
742
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
743
|
+
}>]>;
|
|
744
|
+
readonly time: Schema.Struct<{
|
|
745
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
746
|
+
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
747
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
748
|
+
}>;
|
|
749
|
+
}>]>>>;
|
|
750
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
751
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
752
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
753
|
+
};
|
|
754
|
+
}>;
|
|
755
|
+
}> & {
|
|
756
|
+
type: "session.message.content.updated";
|
|
757
|
+
durability: "durable";
|
|
758
|
+
durable: {
|
|
759
|
+
readonly version: number;
|
|
760
|
+
readonly aggregate: string;
|
|
761
|
+
};
|
|
762
|
+
data: Schema.Struct<{
|
|
763
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
764
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
765
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
766
|
+
};
|
|
767
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
768
|
+
readonly type: Schema.tag<"text">;
|
|
769
|
+
readonly text: Schema.String;
|
|
770
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
771
|
+
}>, Schema.Struct<{
|
|
772
|
+
readonly type: Schema.tag<"reasoning">;
|
|
773
|
+
readonly text: Schema.String;
|
|
774
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
775
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
776
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
777
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
778
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
779
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
780
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
781
|
+
}>>, never, never>;
|
|
782
|
+
}>, Schema.Struct<{
|
|
783
|
+
readonly type: Schema.tag<"tool">;
|
|
784
|
+
readonly id: Schema.String;
|
|
785
|
+
readonly name: Schema.String;
|
|
786
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
787
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
788
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
789
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
790
|
+
readonly status: Schema.tag<"streaming">;
|
|
791
|
+
readonly input: Schema.String;
|
|
792
|
+
}>, Schema.Struct<{
|
|
793
|
+
readonly status: Schema.tag<"running">;
|
|
794
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
795
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
796
|
+
}>, Schema.Struct<{
|
|
797
|
+
readonly status: Schema.tag<"completed">;
|
|
798
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
799
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
800
|
+
readonly type: Schema.Literal<"text">;
|
|
801
|
+
readonly text: Schema.String;
|
|
802
|
+
}>, Schema.Struct<{
|
|
803
|
+
readonly type: Schema.Literal<"file">;
|
|
804
|
+
readonly uri: Schema.String;
|
|
805
|
+
readonly mime: Schema.String;
|
|
806
|
+
readonly name: Schema.optional<Schema.String>;
|
|
807
|
+
}>]>>;
|
|
808
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
809
|
+
}>, Schema.Struct<{
|
|
810
|
+
readonly status: Schema.tag<"error">;
|
|
811
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
812
|
+
readonly error: Schema.Struct<{
|
|
813
|
+
readonly type: Schema.String;
|
|
814
|
+
readonly message: Schema.String;
|
|
815
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
816
|
+
}>;
|
|
817
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
818
|
+
readonly type: Schema.Literal<"text">;
|
|
819
|
+
readonly text: Schema.String;
|
|
820
|
+
}>, Schema.Struct<{
|
|
821
|
+
readonly type: Schema.Literal<"file">;
|
|
822
|
+
readonly uri: Schema.String;
|
|
823
|
+
readonly mime: Schema.String;
|
|
824
|
+
readonly name: Schema.optional<Schema.String>;
|
|
825
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
826
|
+
readonly type: Schema.Literal<"text">;
|
|
827
|
+
readonly text: Schema.String;
|
|
828
|
+
}>, Schema.Struct<{
|
|
829
|
+
readonly type: Schema.Literal<"file">;
|
|
830
|
+
readonly uri: Schema.String;
|
|
831
|
+
readonly mime: Schema.String;
|
|
832
|
+
readonly name: Schema.optional<Schema.String>;
|
|
833
|
+
}>]>>>, never, never>;
|
|
834
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
835
|
+
}>]>;
|
|
836
|
+
readonly time: Schema.Struct<{
|
|
837
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
838
|
+
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
839
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
840
|
+
}>;
|
|
841
|
+
}>]>>>;
|
|
842
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
843
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
844
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
845
|
+
};
|
|
846
|
+
}>;
|
|
847
|
+
};
|
|
848
|
+
export type MessageContentUpdated = typeof MessageContentUpdated.Type;
|
|
639
849
|
export declare const UsageRecorded: Schema.Struct<{
|
|
640
850
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
641
851
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -7520,6 +7730,214 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7520
7730
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
7521
7731
|
};
|
|
7522
7732
|
}>;
|
|
7733
|
+
}, Schema.Struct<{
|
|
7734
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
7735
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
7736
|
+
};
|
|
7737
|
+
readonly created: Schema.Finite;
|
|
7738
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7739
|
+
readonly type: Schema.Literal<"session.message.content.updated">;
|
|
7740
|
+
readonly durable: Schema.Struct<{
|
|
7741
|
+
readonly aggregateID: Schema.String;
|
|
7742
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
7743
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
7744
|
+
}>;
|
|
7745
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7746
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
7747
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
7748
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7749
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7750
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
7751
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7752
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7753
|
+
}>, never, never>;
|
|
7754
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7755
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
7756
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
7757
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7758
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7759
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
7760
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7761
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7762
|
+
}>, never, never>;
|
|
7763
|
+
}>>, never, never>;
|
|
7764
|
+
readonly data: Schema.Struct<{
|
|
7765
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
7766
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7767
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7768
|
+
};
|
|
7769
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
7770
|
+
readonly type: Schema.tag<"text">;
|
|
7771
|
+
readonly text: Schema.String;
|
|
7772
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7773
|
+
}>, Schema.Struct<{
|
|
7774
|
+
readonly type: Schema.tag<"reasoning">;
|
|
7775
|
+
readonly text: Schema.String;
|
|
7776
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7777
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7778
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
7779
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
7780
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7781
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
7782
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
7783
|
+
}>>, never, never>;
|
|
7784
|
+
}>, Schema.Struct<{
|
|
7785
|
+
readonly type: Schema.tag<"tool">;
|
|
7786
|
+
readonly id: Schema.String;
|
|
7787
|
+
readonly name: Schema.String;
|
|
7788
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
7789
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7790
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7791
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
7792
|
+
readonly status: Schema.tag<"streaming">;
|
|
7793
|
+
readonly input: Schema.String;
|
|
7794
|
+
}>, Schema.Struct<{
|
|
7795
|
+
readonly status: Schema.tag<"running">;
|
|
7796
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
7797
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
7798
|
+
}>, Schema.Struct<{
|
|
7799
|
+
readonly status: Schema.tag<"completed">;
|
|
7800
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
7801
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
7802
|
+
readonly type: Schema.Literal<"text">;
|
|
7803
|
+
readonly text: Schema.String;
|
|
7804
|
+
}>, Schema.Struct<{
|
|
7805
|
+
readonly type: Schema.Literal<"file">;
|
|
7806
|
+
readonly uri: Schema.String;
|
|
7807
|
+
readonly mime: Schema.String;
|
|
7808
|
+
readonly name: Schema.optional<Schema.String>;
|
|
7809
|
+
}>]>>;
|
|
7810
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
7811
|
+
}>, Schema.Struct<{
|
|
7812
|
+
readonly status: Schema.tag<"error">;
|
|
7813
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
7814
|
+
readonly error: Schema.Struct<{
|
|
7815
|
+
readonly type: Schema.String;
|
|
7816
|
+
readonly message: Schema.String;
|
|
7817
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
7818
|
+
}>;
|
|
7819
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
7820
|
+
readonly type: Schema.Literal<"text">;
|
|
7821
|
+
readonly text: Schema.String;
|
|
7822
|
+
}>, Schema.Struct<{
|
|
7823
|
+
readonly type: Schema.Literal<"file">;
|
|
7824
|
+
readonly uri: Schema.String;
|
|
7825
|
+
readonly mime: Schema.String;
|
|
7826
|
+
readonly name: Schema.optional<Schema.String>;
|
|
7827
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
7828
|
+
readonly type: Schema.Literal<"text">;
|
|
7829
|
+
readonly text: Schema.String;
|
|
7830
|
+
}>, Schema.Struct<{
|
|
7831
|
+
readonly type: Schema.Literal<"file">;
|
|
7832
|
+
readonly uri: Schema.String;
|
|
7833
|
+
readonly mime: Schema.String;
|
|
7834
|
+
readonly name: Schema.optional<Schema.String>;
|
|
7835
|
+
}>]>>>, never, never>;
|
|
7836
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
7837
|
+
}>]>;
|
|
7838
|
+
readonly time: Schema.Struct<{
|
|
7839
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
7840
|
+
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
7841
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
7842
|
+
}>;
|
|
7843
|
+
}>]>>>;
|
|
7844
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7845
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
7846
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
7847
|
+
};
|
|
7848
|
+
}>;
|
|
7849
|
+
}> & {
|
|
7850
|
+
type: "session.message.content.updated";
|
|
7851
|
+
durability: "durable";
|
|
7852
|
+
durable: {
|
|
7853
|
+
readonly version: number;
|
|
7854
|
+
readonly aggregate: string;
|
|
7855
|
+
};
|
|
7856
|
+
data: Schema.Struct<{
|
|
7857
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
7858
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7859
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7860
|
+
};
|
|
7861
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
7862
|
+
readonly type: Schema.tag<"text">;
|
|
7863
|
+
readonly text: Schema.String;
|
|
7864
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7865
|
+
}>, Schema.Struct<{
|
|
7866
|
+
readonly type: Schema.tag<"reasoning">;
|
|
7867
|
+
readonly text: Schema.String;
|
|
7868
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7869
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7870
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
7871
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
7872
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7873
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
7874
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
7875
|
+
}>>, never, never>;
|
|
7876
|
+
}>, Schema.Struct<{
|
|
7877
|
+
readonly type: Schema.tag<"tool">;
|
|
7878
|
+
readonly id: Schema.String;
|
|
7879
|
+
readonly name: Schema.String;
|
|
7880
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
7881
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7882
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7883
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
7884
|
+
readonly status: Schema.tag<"streaming">;
|
|
7885
|
+
readonly input: Schema.String;
|
|
7886
|
+
}>, Schema.Struct<{
|
|
7887
|
+
readonly status: Schema.tag<"running">;
|
|
7888
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
7889
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
7890
|
+
}>, Schema.Struct<{
|
|
7891
|
+
readonly status: Schema.tag<"completed">;
|
|
7892
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
7893
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
7894
|
+
readonly type: Schema.Literal<"text">;
|
|
7895
|
+
readonly text: Schema.String;
|
|
7896
|
+
}>, Schema.Struct<{
|
|
7897
|
+
readonly type: Schema.Literal<"file">;
|
|
7898
|
+
readonly uri: Schema.String;
|
|
7899
|
+
readonly mime: Schema.String;
|
|
7900
|
+
readonly name: Schema.optional<Schema.String>;
|
|
7901
|
+
}>]>>;
|
|
7902
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
7903
|
+
}>, Schema.Struct<{
|
|
7904
|
+
readonly status: Schema.tag<"error">;
|
|
7905
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
7906
|
+
readonly error: Schema.Struct<{
|
|
7907
|
+
readonly type: Schema.String;
|
|
7908
|
+
readonly message: Schema.String;
|
|
7909
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
7910
|
+
}>;
|
|
7911
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
7912
|
+
readonly type: Schema.Literal<"text">;
|
|
7913
|
+
readonly text: Schema.String;
|
|
7914
|
+
}>, Schema.Struct<{
|
|
7915
|
+
readonly type: Schema.Literal<"file">;
|
|
7916
|
+
readonly uri: Schema.String;
|
|
7917
|
+
readonly mime: Schema.String;
|
|
7918
|
+
readonly name: Schema.optional<Schema.String>;
|
|
7919
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
7920
|
+
readonly type: Schema.Literal<"text">;
|
|
7921
|
+
readonly text: Schema.String;
|
|
7922
|
+
}>, Schema.Struct<{
|
|
7923
|
+
readonly type: Schema.Literal<"file">;
|
|
7924
|
+
readonly uri: Schema.String;
|
|
7925
|
+
readonly mime: Schema.String;
|
|
7926
|
+
readonly name: Schema.optional<Schema.String>;
|
|
7927
|
+
}>]>>>, never, never>;
|
|
7928
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
7929
|
+
}>]>;
|
|
7930
|
+
readonly time: Schema.Struct<{
|
|
7931
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
7932
|
+
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
7933
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
7934
|
+
}>;
|
|
7935
|
+
}>]>>>;
|
|
7936
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7937
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
7938
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
7939
|
+
};
|
|
7940
|
+
}>;
|
|
7523
7941
|
}];
|
|
7524
7942
|
export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
7525
7943
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -8135,6 +8553,214 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8135
8553
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8136
8554
|
};
|
|
8137
8555
|
}>;
|
|
8556
|
+
}) | (Schema.Struct<{
|
|
8557
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8558
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
8559
|
+
};
|
|
8560
|
+
readonly created: Schema.Finite;
|
|
8561
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8562
|
+
readonly type: Schema.Literal<"session.message.content.updated">;
|
|
8563
|
+
readonly durable: Schema.Struct<{
|
|
8564
|
+
readonly aggregateID: Schema.String;
|
|
8565
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
8566
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
8567
|
+
}>;
|
|
8568
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8569
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8570
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8571
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8572
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8573
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8574
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8575
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8576
|
+
}>, never, never>;
|
|
8577
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8578
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8579
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8580
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8581
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8582
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8583
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8584
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8585
|
+
}>, never, never>;
|
|
8586
|
+
}>>, never, never>;
|
|
8587
|
+
readonly data: Schema.Struct<{
|
|
8588
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8589
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8590
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8591
|
+
};
|
|
8592
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
8593
|
+
readonly type: Schema.tag<"text">;
|
|
8594
|
+
readonly text: Schema.String;
|
|
8595
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8596
|
+
}>, Schema.Struct<{
|
|
8597
|
+
readonly type: Schema.tag<"reasoning">;
|
|
8598
|
+
readonly text: Schema.String;
|
|
8599
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8600
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8601
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8602
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
8603
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8604
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8605
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
8606
|
+
}>>, never, never>;
|
|
8607
|
+
}>, Schema.Struct<{
|
|
8608
|
+
readonly type: Schema.tag<"tool">;
|
|
8609
|
+
readonly id: Schema.String;
|
|
8610
|
+
readonly name: Schema.String;
|
|
8611
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
8612
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8613
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8614
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
8615
|
+
readonly status: Schema.tag<"streaming">;
|
|
8616
|
+
readonly input: Schema.String;
|
|
8617
|
+
}>, Schema.Struct<{
|
|
8618
|
+
readonly status: Schema.tag<"running">;
|
|
8619
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
8620
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
8621
|
+
}>, Schema.Struct<{
|
|
8622
|
+
readonly status: Schema.tag<"completed">;
|
|
8623
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
8624
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
8625
|
+
readonly type: Schema.Literal<"text">;
|
|
8626
|
+
readonly text: Schema.String;
|
|
8627
|
+
}>, Schema.Struct<{
|
|
8628
|
+
readonly type: Schema.Literal<"file">;
|
|
8629
|
+
readonly uri: Schema.String;
|
|
8630
|
+
readonly mime: Schema.String;
|
|
8631
|
+
readonly name: Schema.optional<Schema.String>;
|
|
8632
|
+
}>]>>;
|
|
8633
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
8634
|
+
}>, Schema.Struct<{
|
|
8635
|
+
readonly status: Schema.tag<"error">;
|
|
8636
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
8637
|
+
readonly error: Schema.Struct<{
|
|
8638
|
+
readonly type: Schema.String;
|
|
8639
|
+
readonly message: Schema.String;
|
|
8640
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
8641
|
+
}>;
|
|
8642
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
8643
|
+
readonly type: Schema.Literal<"text">;
|
|
8644
|
+
readonly text: Schema.String;
|
|
8645
|
+
}>, Schema.Struct<{
|
|
8646
|
+
readonly type: Schema.Literal<"file">;
|
|
8647
|
+
readonly uri: Schema.String;
|
|
8648
|
+
readonly mime: Schema.String;
|
|
8649
|
+
readonly name: Schema.optional<Schema.String>;
|
|
8650
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
8651
|
+
readonly type: Schema.Literal<"text">;
|
|
8652
|
+
readonly text: Schema.String;
|
|
8653
|
+
}>, Schema.Struct<{
|
|
8654
|
+
readonly type: Schema.Literal<"file">;
|
|
8655
|
+
readonly uri: Schema.String;
|
|
8656
|
+
readonly mime: Schema.String;
|
|
8657
|
+
readonly name: Schema.optional<Schema.String>;
|
|
8658
|
+
}>]>>>, never, never>;
|
|
8659
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
8660
|
+
}>]>;
|
|
8661
|
+
readonly time: Schema.Struct<{
|
|
8662
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8663
|
+
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
8664
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
8665
|
+
}>;
|
|
8666
|
+
}>]>>>;
|
|
8667
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8668
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8669
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8670
|
+
};
|
|
8671
|
+
}>;
|
|
8672
|
+
}> & {
|
|
8673
|
+
type: "session.message.content.updated";
|
|
8674
|
+
durability: "durable";
|
|
8675
|
+
durable: {
|
|
8676
|
+
readonly version: number;
|
|
8677
|
+
readonly aggregate: string;
|
|
8678
|
+
};
|
|
8679
|
+
data: Schema.Struct<{
|
|
8680
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8681
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8682
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8683
|
+
};
|
|
8684
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
8685
|
+
readonly type: Schema.tag<"text">;
|
|
8686
|
+
readonly text: Schema.String;
|
|
8687
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8688
|
+
}>, Schema.Struct<{
|
|
8689
|
+
readonly type: Schema.tag<"reasoning">;
|
|
8690
|
+
readonly text: Schema.String;
|
|
8691
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8692
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8693
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8694
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
8695
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8696
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8697
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
8698
|
+
}>>, never, never>;
|
|
8699
|
+
}>, Schema.Struct<{
|
|
8700
|
+
readonly type: Schema.tag<"tool">;
|
|
8701
|
+
readonly id: Schema.String;
|
|
8702
|
+
readonly name: Schema.String;
|
|
8703
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
8704
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8705
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8706
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
8707
|
+
readonly status: Schema.tag<"streaming">;
|
|
8708
|
+
readonly input: Schema.String;
|
|
8709
|
+
}>, Schema.Struct<{
|
|
8710
|
+
readonly status: Schema.tag<"running">;
|
|
8711
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
8712
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
8713
|
+
}>, Schema.Struct<{
|
|
8714
|
+
readonly status: Schema.tag<"completed">;
|
|
8715
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
8716
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
8717
|
+
readonly type: Schema.Literal<"text">;
|
|
8718
|
+
readonly text: Schema.String;
|
|
8719
|
+
}>, Schema.Struct<{
|
|
8720
|
+
readonly type: Schema.Literal<"file">;
|
|
8721
|
+
readonly uri: Schema.String;
|
|
8722
|
+
readonly mime: Schema.String;
|
|
8723
|
+
readonly name: Schema.optional<Schema.String>;
|
|
8724
|
+
}>]>>;
|
|
8725
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
8726
|
+
}>, Schema.Struct<{
|
|
8727
|
+
readonly status: Schema.tag<"error">;
|
|
8728
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
8729
|
+
readonly error: Schema.Struct<{
|
|
8730
|
+
readonly type: Schema.String;
|
|
8731
|
+
readonly message: Schema.String;
|
|
8732
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
8733
|
+
}>;
|
|
8734
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
8735
|
+
readonly type: Schema.Literal<"text">;
|
|
8736
|
+
readonly text: Schema.String;
|
|
8737
|
+
}>, Schema.Struct<{
|
|
8738
|
+
readonly type: Schema.Literal<"file">;
|
|
8739
|
+
readonly uri: Schema.String;
|
|
8740
|
+
readonly mime: Schema.String;
|
|
8741
|
+
readonly name: Schema.optional<Schema.String>;
|
|
8742
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
8743
|
+
readonly type: Schema.Literal<"text">;
|
|
8744
|
+
readonly text: Schema.String;
|
|
8745
|
+
}>, Schema.Struct<{
|
|
8746
|
+
readonly type: Schema.Literal<"file">;
|
|
8747
|
+
readonly uri: Schema.String;
|
|
8748
|
+
readonly mime: Schema.String;
|
|
8749
|
+
readonly name: Schema.optional<Schema.String>;
|
|
8750
|
+
}>]>>>, never, never>;
|
|
8751
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
8752
|
+
}>]>;
|
|
8753
|
+
readonly time: Schema.Struct<{
|
|
8754
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8755
|
+
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
8756
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
8757
|
+
}>;
|
|
8758
|
+
}>]>>>;
|
|
8759
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8760
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8761
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8762
|
+
};
|
|
8763
|
+
}>;
|
|
8138
8764
|
}) | (Schema.Struct<{
|
|
8139
8765
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8140
8766
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -11871,6 +12497,214 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
11871
12497
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11872
12498
|
};
|
|
11873
12499
|
}>;
|
|
12500
|
+
}) | (Schema.Struct<{
|
|
12501
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
12502
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
12503
|
+
};
|
|
12504
|
+
readonly created: Schema.Finite;
|
|
12505
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
12506
|
+
readonly type: Schema.Literal<"session.message.content.updated">;
|
|
12507
|
+
readonly durable: Schema.Struct<{
|
|
12508
|
+
readonly aggregateID: Schema.String;
|
|
12509
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
12510
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
12511
|
+
}>;
|
|
12512
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12513
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
12514
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
12515
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
12516
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
12517
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
12518
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
12519
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
12520
|
+
}>, never, never>;
|
|
12521
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12522
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
12523
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
12524
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
12525
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
12526
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
12527
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
12528
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
12529
|
+
}>, never, never>;
|
|
12530
|
+
}>>, never, never>;
|
|
12531
|
+
readonly data: Schema.Struct<{
|
|
12532
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
12533
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
12534
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
12535
|
+
};
|
|
12536
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
12537
|
+
readonly type: Schema.tag<"text">;
|
|
12538
|
+
readonly text: Schema.String;
|
|
12539
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
12540
|
+
}>, Schema.Struct<{
|
|
12541
|
+
readonly type: Schema.tag<"reasoning">;
|
|
12542
|
+
readonly text: Schema.String;
|
|
12543
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
12544
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12545
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
12546
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
12547
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12548
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
12549
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
12550
|
+
}>>, never, never>;
|
|
12551
|
+
}>, Schema.Struct<{
|
|
12552
|
+
readonly type: Schema.tag<"tool">;
|
|
12553
|
+
readonly id: Schema.String;
|
|
12554
|
+
readonly name: Schema.String;
|
|
12555
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
12556
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
12557
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
12558
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
12559
|
+
readonly status: Schema.tag<"streaming">;
|
|
12560
|
+
readonly input: Schema.String;
|
|
12561
|
+
}>, Schema.Struct<{
|
|
12562
|
+
readonly status: Schema.tag<"running">;
|
|
12563
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
12564
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
12565
|
+
}>, Schema.Struct<{
|
|
12566
|
+
readonly status: Schema.tag<"completed">;
|
|
12567
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
12568
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
12569
|
+
readonly type: Schema.Literal<"text">;
|
|
12570
|
+
readonly text: Schema.String;
|
|
12571
|
+
}>, Schema.Struct<{
|
|
12572
|
+
readonly type: Schema.Literal<"file">;
|
|
12573
|
+
readonly uri: Schema.String;
|
|
12574
|
+
readonly mime: Schema.String;
|
|
12575
|
+
readonly name: Schema.optional<Schema.String>;
|
|
12576
|
+
}>]>>;
|
|
12577
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
12578
|
+
}>, Schema.Struct<{
|
|
12579
|
+
readonly status: Schema.tag<"error">;
|
|
12580
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
12581
|
+
readonly error: Schema.Struct<{
|
|
12582
|
+
readonly type: Schema.String;
|
|
12583
|
+
readonly message: Schema.String;
|
|
12584
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
12585
|
+
}>;
|
|
12586
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
12587
|
+
readonly type: Schema.Literal<"text">;
|
|
12588
|
+
readonly text: Schema.String;
|
|
12589
|
+
}>, Schema.Struct<{
|
|
12590
|
+
readonly type: Schema.Literal<"file">;
|
|
12591
|
+
readonly uri: Schema.String;
|
|
12592
|
+
readonly mime: Schema.String;
|
|
12593
|
+
readonly name: Schema.optional<Schema.String>;
|
|
12594
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
12595
|
+
readonly type: Schema.Literal<"text">;
|
|
12596
|
+
readonly text: Schema.String;
|
|
12597
|
+
}>, Schema.Struct<{
|
|
12598
|
+
readonly type: Schema.Literal<"file">;
|
|
12599
|
+
readonly uri: Schema.String;
|
|
12600
|
+
readonly mime: Schema.String;
|
|
12601
|
+
readonly name: Schema.optional<Schema.String>;
|
|
12602
|
+
}>]>>>, never, never>;
|
|
12603
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
12604
|
+
}>]>;
|
|
12605
|
+
readonly time: Schema.Struct<{
|
|
12606
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
12607
|
+
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
12608
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
12609
|
+
}>;
|
|
12610
|
+
}>]>>>;
|
|
12611
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
12612
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
12613
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
12614
|
+
};
|
|
12615
|
+
}>;
|
|
12616
|
+
}> & {
|
|
12617
|
+
type: "session.message.content.updated";
|
|
12618
|
+
durability: "durable";
|
|
12619
|
+
durable: {
|
|
12620
|
+
readonly version: number;
|
|
12621
|
+
readonly aggregate: string;
|
|
12622
|
+
};
|
|
12623
|
+
data: Schema.Struct<{
|
|
12624
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
12625
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
12626
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
12627
|
+
};
|
|
12628
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
12629
|
+
readonly type: Schema.tag<"text">;
|
|
12630
|
+
readonly text: Schema.String;
|
|
12631
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
12632
|
+
}>, Schema.Struct<{
|
|
12633
|
+
readonly type: Schema.tag<"reasoning">;
|
|
12634
|
+
readonly text: Schema.String;
|
|
12635
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
12636
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12637
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
12638
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
12639
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12640
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
12641
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
12642
|
+
}>>, never, never>;
|
|
12643
|
+
}>, Schema.Struct<{
|
|
12644
|
+
readonly type: Schema.tag<"tool">;
|
|
12645
|
+
readonly id: Schema.String;
|
|
12646
|
+
readonly name: Schema.String;
|
|
12647
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
12648
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
12649
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
12650
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
12651
|
+
readonly status: Schema.tag<"streaming">;
|
|
12652
|
+
readonly input: Schema.String;
|
|
12653
|
+
}>, Schema.Struct<{
|
|
12654
|
+
readonly status: Schema.tag<"running">;
|
|
12655
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
12656
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
12657
|
+
}>, Schema.Struct<{
|
|
12658
|
+
readonly status: Schema.tag<"completed">;
|
|
12659
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
12660
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
12661
|
+
readonly type: Schema.Literal<"text">;
|
|
12662
|
+
readonly text: Schema.String;
|
|
12663
|
+
}>, Schema.Struct<{
|
|
12664
|
+
readonly type: Schema.Literal<"file">;
|
|
12665
|
+
readonly uri: Schema.String;
|
|
12666
|
+
readonly mime: Schema.String;
|
|
12667
|
+
readonly name: Schema.optional<Schema.String>;
|
|
12668
|
+
}>]>>;
|
|
12669
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
12670
|
+
}>, Schema.Struct<{
|
|
12671
|
+
readonly status: Schema.tag<"error">;
|
|
12672
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
12673
|
+
readonly error: Schema.Struct<{
|
|
12674
|
+
readonly type: Schema.String;
|
|
12675
|
+
readonly message: Schema.String;
|
|
12676
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
12677
|
+
}>;
|
|
12678
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
12679
|
+
readonly type: Schema.Literal<"text">;
|
|
12680
|
+
readonly text: Schema.String;
|
|
12681
|
+
}>, Schema.Struct<{
|
|
12682
|
+
readonly type: Schema.Literal<"file">;
|
|
12683
|
+
readonly uri: Schema.String;
|
|
12684
|
+
readonly mime: Schema.String;
|
|
12685
|
+
readonly name: Schema.optional<Schema.String>;
|
|
12686
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
12687
|
+
readonly type: Schema.Literal<"text">;
|
|
12688
|
+
readonly text: Schema.String;
|
|
12689
|
+
}>, Schema.Struct<{
|
|
12690
|
+
readonly type: Schema.Literal<"file">;
|
|
12691
|
+
readonly uri: Schema.String;
|
|
12692
|
+
readonly mime: Schema.String;
|
|
12693
|
+
readonly name: Schema.optional<Schema.String>;
|
|
12694
|
+
}>]>>>, never, never>;
|
|
12695
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
12696
|
+
}>]>;
|
|
12697
|
+
readonly time: Schema.Struct<{
|
|
12698
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
12699
|
+
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
12700
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
12701
|
+
}>;
|
|
12702
|
+
}>]>>>;
|
|
12703
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
12704
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
12705
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
12706
|
+
};
|
|
12707
|
+
}>;
|
|
11874
12708
|
}) | (Schema.Struct<{
|
|
11875
12709
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
11876
12710
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -15281,6 +16115,214 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
15281
16115
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
15282
16116
|
};
|
|
15283
16117
|
}>;
|
|
16118
|
+
}) | (Schema.Struct<{
|
|
16119
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
16120
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
16121
|
+
};
|
|
16122
|
+
readonly created: Schema.Finite;
|
|
16123
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16124
|
+
readonly type: Schema.Literal<"session.message.content.updated">;
|
|
16125
|
+
readonly durable: Schema.Struct<{
|
|
16126
|
+
readonly aggregateID: Schema.String;
|
|
16127
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
16128
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
16129
|
+
}>;
|
|
16130
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
16131
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
16132
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
16133
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
16134
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
16135
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
16136
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
16137
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
16138
|
+
}>, never, never>;
|
|
16139
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
16140
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
16141
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
16142
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
16143
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
16144
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
16145
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
16146
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
16147
|
+
}>, never, never>;
|
|
16148
|
+
}>>, never, never>;
|
|
16149
|
+
readonly data: Schema.Struct<{
|
|
16150
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
16151
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
16152
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
16153
|
+
};
|
|
16154
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
16155
|
+
readonly type: Schema.tag<"text">;
|
|
16156
|
+
readonly text: Schema.String;
|
|
16157
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16158
|
+
}>, Schema.Struct<{
|
|
16159
|
+
readonly type: Schema.tag<"reasoning">;
|
|
16160
|
+
readonly text: Schema.String;
|
|
16161
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16162
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
16163
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
16164
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
16165
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
16166
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
16167
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
16168
|
+
}>>, never, never>;
|
|
16169
|
+
}>, Schema.Struct<{
|
|
16170
|
+
readonly type: Schema.tag<"tool">;
|
|
16171
|
+
readonly id: Schema.String;
|
|
16172
|
+
readonly name: Schema.String;
|
|
16173
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
16174
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16175
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16176
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
16177
|
+
readonly status: Schema.tag<"streaming">;
|
|
16178
|
+
readonly input: Schema.String;
|
|
16179
|
+
}>, Schema.Struct<{
|
|
16180
|
+
readonly status: Schema.tag<"running">;
|
|
16181
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
16182
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
16183
|
+
}>, Schema.Struct<{
|
|
16184
|
+
readonly status: Schema.tag<"completed">;
|
|
16185
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
16186
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
16187
|
+
readonly type: Schema.Literal<"text">;
|
|
16188
|
+
readonly text: Schema.String;
|
|
16189
|
+
}>, Schema.Struct<{
|
|
16190
|
+
readonly type: Schema.Literal<"file">;
|
|
16191
|
+
readonly uri: Schema.String;
|
|
16192
|
+
readonly mime: Schema.String;
|
|
16193
|
+
readonly name: Schema.optional<Schema.String>;
|
|
16194
|
+
}>]>>;
|
|
16195
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
16196
|
+
}>, Schema.Struct<{
|
|
16197
|
+
readonly status: Schema.tag<"error">;
|
|
16198
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
16199
|
+
readonly error: Schema.Struct<{
|
|
16200
|
+
readonly type: Schema.String;
|
|
16201
|
+
readonly message: Schema.String;
|
|
16202
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
16203
|
+
}>;
|
|
16204
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
16205
|
+
readonly type: Schema.Literal<"text">;
|
|
16206
|
+
readonly text: Schema.String;
|
|
16207
|
+
}>, Schema.Struct<{
|
|
16208
|
+
readonly type: Schema.Literal<"file">;
|
|
16209
|
+
readonly uri: Schema.String;
|
|
16210
|
+
readonly mime: Schema.String;
|
|
16211
|
+
readonly name: Schema.optional<Schema.String>;
|
|
16212
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
16213
|
+
readonly type: Schema.Literal<"text">;
|
|
16214
|
+
readonly text: Schema.String;
|
|
16215
|
+
}>, Schema.Struct<{
|
|
16216
|
+
readonly type: Schema.Literal<"file">;
|
|
16217
|
+
readonly uri: Schema.String;
|
|
16218
|
+
readonly mime: Schema.String;
|
|
16219
|
+
readonly name: Schema.optional<Schema.String>;
|
|
16220
|
+
}>]>>>, never, never>;
|
|
16221
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
16222
|
+
}>]>;
|
|
16223
|
+
readonly time: Schema.Struct<{
|
|
16224
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
16225
|
+
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
16226
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
16227
|
+
}>;
|
|
16228
|
+
}>]>>>;
|
|
16229
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
16230
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
16231
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
16232
|
+
};
|
|
16233
|
+
}>;
|
|
16234
|
+
}> & {
|
|
16235
|
+
type: "session.message.content.updated";
|
|
16236
|
+
durability: "durable";
|
|
16237
|
+
durable: {
|
|
16238
|
+
readonly version: number;
|
|
16239
|
+
readonly aggregate: string;
|
|
16240
|
+
};
|
|
16241
|
+
data: Schema.Struct<{
|
|
16242
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
16243
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
16244
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
16245
|
+
};
|
|
16246
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
16247
|
+
readonly type: Schema.tag<"text">;
|
|
16248
|
+
readonly text: Schema.String;
|
|
16249
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16250
|
+
}>, Schema.Struct<{
|
|
16251
|
+
readonly type: Schema.tag<"reasoning">;
|
|
16252
|
+
readonly text: Schema.String;
|
|
16253
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16254
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
16255
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
16256
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
16257
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
16258
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
16259
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
16260
|
+
}>>, never, never>;
|
|
16261
|
+
}>, Schema.Struct<{
|
|
16262
|
+
readonly type: Schema.tag<"tool">;
|
|
16263
|
+
readonly id: Schema.String;
|
|
16264
|
+
readonly name: Schema.String;
|
|
16265
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
16266
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16267
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16268
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
16269
|
+
readonly status: Schema.tag<"streaming">;
|
|
16270
|
+
readonly input: Schema.String;
|
|
16271
|
+
}>, Schema.Struct<{
|
|
16272
|
+
readonly status: Schema.tag<"running">;
|
|
16273
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
16274
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
16275
|
+
}>, Schema.Struct<{
|
|
16276
|
+
readonly status: Schema.tag<"completed">;
|
|
16277
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
16278
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
16279
|
+
readonly type: Schema.Literal<"text">;
|
|
16280
|
+
readonly text: Schema.String;
|
|
16281
|
+
}>, Schema.Struct<{
|
|
16282
|
+
readonly type: Schema.Literal<"file">;
|
|
16283
|
+
readonly uri: Schema.String;
|
|
16284
|
+
readonly mime: Schema.String;
|
|
16285
|
+
readonly name: Schema.optional<Schema.String>;
|
|
16286
|
+
}>]>>;
|
|
16287
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
16288
|
+
}>, Schema.Struct<{
|
|
16289
|
+
readonly status: Schema.tag<"error">;
|
|
16290
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
16291
|
+
readonly error: Schema.Struct<{
|
|
16292
|
+
readonly type: Schema.String;
|
|
16293
|
+
readonly message: Schema.String;
|
|
16294
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
16295
|
+
}>;
|
|
16296
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
16297
|
+
readonly type: Schema.Literal<"text">;
|
|
16298
|
+
readonly text: Schema.String;
|
|
16299
|
+
}>, Schema.Struct<{
|
|
16300
|
+
readonly type: Schema.Literal<"file">;
|
|
16301
|
+
readonly uri: Schema.String;
|
|
16302
|
+
readonly mime: Schema.String;
|
|
16303
|
+
readonly name: Schema.optional<Schema.String>;
|
|
16304
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
16305
|
+
readonly type: Schema.Literal<"text">;
|
|
16306
|
+
readonly text: Schema.String;
|
|
16307
|
+
}>, Schema.Struct<{
|
|
16308
|
+
readonly type: Schema.Literal<"file">;
|
|
16309
|
+
readonly uri: Schema.String;
|
|
16310
|
+
readonly mime: Schema.String;
|
|
16311
|
+
readonly name: Schema.optional<Schema.String>;
|
|
16312
|
+
}>]>>>, never, never>;
|
|
16313
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
16314
|
+
}>]>;
|
|
16315
|
+
readonly time: Schema.Struct<{
|
|
16316
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
16317
|
+
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
16318
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
16319
|
+
}>;
|
|
16320
|
+
}>]>>>;
|
|
16321
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
16322
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
16323
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
16324
|
+
};
|
|
16325
|
+
}>;
|
|
15284
16326
|
}) | (Schema.Struct<{
|
|
15285
16327
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
15286
16328
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|