@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/event-manifest.d.ts
CHANGED
|
@@ -3853,6 +3853,214 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
3853
3853
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3854
3854
|
};
|
|
3855
3855
|
}>;
|
|
3856
|
+
}, Schema.Struct<{
|
|
3857
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
3858
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
3859
|
+
};
|
|
3860
|
+
readonly created: Schema.Finite;
|
|
3861
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3862
|
+
readonly type: Schema.Literal<"session.message.content.updated">;
|
|
3863
|
+
readonly durable: Schema.Struct<{
|
|
3864
|
+
readonly aggregateID: Schema.String;
|
|
3865
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3866
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3867
|
+
}>;
|
|
3868
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3869
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
3870
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3871
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3872
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3873
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3874
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3875
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3876
|
+
}>, never, never>;
|
|
3877
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3878
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
3879
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3880
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3881
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3882
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3883
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3884
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3885
|
+
}>, never, never>;
|
|
3886
|
+
}>>, never, never>;
|
|
3887
|
+
readonly data: Schema.Struct<{
|
|
3888
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3889
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3890
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3891
|
+
};
|
|
3892
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
3893
|
+
readonly type: Schema.tag<"text">;
|
|
3894
|
+
readonly text: Schema.String;
|
|
3895
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3896
|
+
}>, Schema.Struct<{
|
|
3897
|
+
readonly type: Schema.tag<"reasoning">;
|
|
3898
|
+
readonly text: Schema.String;
|
|
3899
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3900
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3901
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3902
|
+
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>;
|
|
3903
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3904
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3905
|
+
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>;
|
|
3906
|
+
}>>, never, never>;
|
|
3907
|
+
}>, Schema.Struct<{
|
|
3908
|
+
readonly type: Schema.tag<"tool">;
|
|
3909
|
+
readonly id: Schema.String;
|
|
3910
|
+
readonly name: Schema.String;
|
|
3911
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
3912
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3913
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3914
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
3915
|
+
readonly status: Schema.tag<"streaming">;
|
|
3916
|
+
readonly input: Schema.String;
|
|
3917
|
+
}>, Schema.Struct<{
|
|
3918
|
+
readonly status: Schema.tag<"running">;
|
|
3919
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
3920
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3921
|
+
}>, Schema.Struct<{
|
|
3922
|
+
readonly status: Schema.tag<"completed">;
|
|
3923
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
3924
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3925
|
+
readonly type: Schema.Literal<"text">;
|
|
3926
|
+
readonly text: Schema.String;
|
|
3927
|
+
}>, Schema.Struct<{
|
|
3928
|
+
readonly type: Schema.Literal<"file">;
|
|
3929
|
+
readonly uri: Schema.String;
|
|
3930
|
+
readonly mime: Schema.String;
|
|
3931
|
+
readonly name: Schema.optional<Schema.String>;
|
|
3932
|
+
}>]>>;
|
|
3933
|
+
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>;
|
|
3934
|
+
}>, Schema.Struct<{
|
|
3935
|
+
readonly status: Schema.tag<"error">;
|
|
3936
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
3937
|
+
readonly error: Schema.Struct<{
|
|
3938
|
+
readonly type: Schema.String;
|
|
3939
|
+
readonly message: Schema.String;
|
|
3940
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3941
|
+
}>;
|
|
3942
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3943
|
+
readonly type: Schema.Literal<"text">;
|
|
3944
|
+
readonly text: Schema.String;
|
|
3945
|
+
}>, Schema.Struct<{
|
|
3946
|
+
readonly type: Schema.Literal<"file">;
|
|
3947
|
+
readonly uri: Schema.String;
|
|
3948
|
+
readonly mime: Schema.String;
|
|
3949
|
+
readonly name: Schema.optional<Schema.String>;
|
|
3950
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3951
|
+
readonly type: Schema.Literal<"text">;
|
|
3952
|
+
readonly text: Schema.String;
|
|
3953
|
+
}>, Schema.Struct<{
|
|
3954
|
+
readonly type: Schema.Literal<"file">;
|
|
3955
|
+
readonly uri: Schema.String;
|
|
3956
|
+
readonly mime: Schema.String;
|
|
3957
|
+
readonly name: Schema.optional<Schema.String>;
|
|
3958
|
+
}>]>>>, never, never>;
|
|
3959
|
+
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>;
|
|
3960
|
+
}>]>;
|
|
3961
|
+
readonly time: Schema.Struct<{
|
|
3962
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3963
|
+
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>;
|
|
3964
|
+
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>;
|
|
3965
|
+
}>;
|
|
3966
|
+
}>]>>>;
|
|
3967
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3968
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3969
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3970
|
+
};
|
|
3971
|
+
}>;
|
|
3972
|
+
}> & {
|
|
3973
|
+
type: "session.message.content.updated";
|
|
3974
|
+
durability: "durable";
|
|
3975
|
+
durable: {
|
|
3976
|
+
readonly version: number;
|
|
3977
|
+
readonly aggregate: string;
|
|
3978
|
+
};
|
|
3979
|
+
data: Schema.Struct<{
|
|
3980
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3981
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3982
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3983
|
+
};
|
|
3984
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
3985
|
+
readonly type: Schema.tag<"text">;
|
|
3986
|
+
readonly text: Schema.String;
|
|
3987
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3988
|
+
}>, Schema.Struct<{
|
|
3989
|
+
readonly type: Schema.tag<"reasoning">;
|
|
3990
|
+
readonly text: Schema.String;
|
|
3991
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3992
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3993
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3994
|
+
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>;
|
|
3995
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3996
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3997
|
+
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>;
|
|
3998
|
+
}>>, never, never>;
|
|
3999
|
+
}>, Schema.Struct<{
|
|
4000
|
+
readonly type: Schema.tag<"tool">;
|
|
4001
|
+
readonly id: Schema.String;
|
|
4002
|
+
readonly name: Schema.String;
|
|
4003
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
4004
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4005
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4006
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
4007
|
+
readonly status: Schema.tag<"streaming">;
|
|
4008
|
+
readonly input: Schema.String;
|
|
4009
|
+
}>, Schema.Struct<{
|
|
4010
|
+
readonly status: Schema.tag<"running">;
|
|
4011
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
4012
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
4013
|
+
}>, Schema.Struct<{
|
|
4014
|
+
readonly status: Schema.tag<"completed">;
|
|
4015
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
4016
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4017
|
+
readonly type: Schema.Literal<"text">;
|
|
4018
|
+
readonly text: Schema.String;
|
|
4019
|
+
}>, Schema.Struct<{
|
|
4020
|
+
readonly type: Schema.Literal<"file">;
|
|
4021
|
+
readonly uri: Schema.String;
|
|
4022
|
+
readonly mime: Schema.String;
|
|
4023
|
+
readonly name: Schema.optional<Schema.String>;
|
|
4024
|
+
}>]>>;
|
|
4025
|
+
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>;
|
|
4026
|
+
}>, Schema.Struct<{
|
|
4027
|
+
readonly status: Schema.tag<"error">;
|
|
4028
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
4029
|
+
readonly error: Schema.Struct<{
|
|
4030
|
+
readonly type: Schema.String;
|
|
4031
|
+
readonly message: Schema.String;
|
|
4032
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4033
|
+
}>;
|
|
4034
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4035
|
+
readonly type: Schema.Literal<"text">;
|
|
4036
|
+
readonly text: Schema.String;
|
|
4037
|
+
}>, Schema.Struct<{
|
|
4038
|
+
readonly type: Schema.Literal<"file">;
|
|
4039
|
+
readonly uri: Schema.String;
|
|
4040
|
+
readonly mime: Schema.String;
|
|
4041
|
+
readonly name: Schema.optional<Schema.String>;
|
|
4042
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4043
|
+
readonly type: Schema.Literal<"text">;
|
|
4044
|
+
readonly text: Schema.String;
|
|
4045
|
+
}>, Schema.Struct<{
|
|
4046
|
+
readonly type: Schema.Literal<"file">;
|
|
4047
|
+
readonly uri: Schema.String;
|
|
4048
|
+
readonly mime: Schema.String;
|
|
4049
|
+
readonly name: Schema.optional<Schema.String>;
|
|
4050
|
+
}>]>>>, never, never>;
|
|
4051
|
+
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>;
|
|
4052
|
+
}>]>;
|
|
4053
|
+
readonly time: Schema.Struct<{
|
|
4054
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4055
|
+
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>;
|
|
4056
|
+
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>;
|
|
4057
|
+
}>;
|
|
4058
|
+
}>]>>>;
|
|
4059
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4060
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4061
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4062
|
+
};
|
|
4063
|
+
}>;
|
|
3856
4064
|
}, Schema.Struct<{
|
|
3857
4065
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
3858
4066
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -9629,6 +9837,214 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9629
9837
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
9630
9838
|
};
|
|
9631
9839
|
}>;
|
|
9840
|
+
}, Schema.Struct<{
|
|
9841
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
9842
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
9843
|
+
};
|
|
9844
|
+
readonly created: Schema.Finite;
|
|
9845
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9846
|
+
readonly type: Schema.Literal<"session.message.content.updated">;
|
|
9847
|
+
readonly durable: Schema.Struct<{
|
|
9848
|
+
readonly aggregateID: Schema.String;
|
|
9849
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
9850
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
9851
|
+
}>;
|
|
9852
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9853
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
9854
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9855
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9856
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9857
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9858
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9859
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9860
|
+
}>, never, never>;
|
|
9861
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9862
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
9863
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9864
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9865
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9866
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9867
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9868
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9869
|
+
}>, never, never>;
|
|
9870
|
+
}>>, never, never>;
|
|
9871
|
+
readonly data: Schema.Struct<{
|
|
9872
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
9873
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9874
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9875
|
+
};
|
|
9876
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
9877
|
+
readonly type: Schema.tag<"text">;
|
|
9878
|
+
readonly text: Schema.String;
|
|
9879
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9880
|
+
}>, Schema.Struct<{
|
|
9881
|
+
readonly type: Schema.tag<"reasoning">;
|
|
9882
|
+
readonly text: Schema.String;
|
|
9883
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9884
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9885
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
9886
|
+
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>;
|
|
9887
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9888
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
9889
|
+
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>;
|
|
9890
|
+
}>>, never, never>;
|
|
9891
|
+
}>, Schema.Struct<{
|
|
9892
|
+
readonly type: Schema.tag<"tool">;
|
|
9893
|
+
readonly id: Schema.String;
|
|
9894
|
+
readonly name: Schema.String;
|
|
9895
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
9896
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9897
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9898
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
9899
|
+
readonly status: Schema.tag<"streaming">;
|
|
9900
|
+
readonly input: Schema.String;
|
|
9901
|
+
}>, Schema.Struct<{
|
|
9902
|
+
readonly status: Schema.tag<"running">;
|
|
9903
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
9904
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
9905
|
+
}>, Schema.Struct<{
|
|
9906
|
+
readonly status: Schema.tag<"completed">;
|
|
9907
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
9908
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
9909
|
+
readonly type: Schema.Literal<"text">;
|
|
9910
|
+
readonly text: Schema.String;
|
|
9911
|
+
}>, Schema.Struct<{
|
|
9912
|
+
readonly type: Schema.Literal<"file">;
|
|
9913
|
+
readonly uri: Schema.String;
|
|
9914
|
+
readonly mime: Schema.String;
|
|
9915
|
+
readonly name: Schema.optional<Schema.String>;
|
|
9916
|
+
}>]>>;
|
|
9917
|
+
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>;
|
|
9918
|
+
}>, Schema.Struct<{
|
|
9919
|
+
readonly status: Schema.tag<"error">;
|
|
9920
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
9921
|
+
readonly error: Schema.Struct<{
|
|
9922
|
+
readonly type: Schema.String;
|
|
9923
|
+
readonly message: Schema.String;
|
|
9924
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
9925
|
+
}>;
|
|
9926
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
9927
|
+
readonly type: Schema.Literal<"text">;
|
|
9928
|
+
readonly text: Schema.String;
|
|
9929
|
+
}>, Schema.Struct<{
|
|
9930
|
+
readonly type: Schema.Literal<"file">;
|
|
9931
|
+
readonly uri: Schema.String;
|
|
9932
|
+
readonly mime: Schema.String;
|
|
9933
|
+
readonly name: Schema.optional<Schema.String>;
|
|
9934
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
9935
|
+
readonly type: Schema.Literal<"text">;
|
|
9936
|
+
readonly text: Schema.String;
|
|
9937
|
+
}>, Schema.Struct<{
|
|
9938
|
+
readonly type: Schema.Literal<"file">;
|
|
9939
|
+
readonly uri: Schema.String;
|
|
9940
|
+
readonly mime: Schema.String;
|
|
9941
|
+
readonly name: Schema.optional<Schema.String>;
|
|
9942
|
+
}>]>>>, never, never>;
|
|
9943
|
+
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>;
|
|
9944
|
+
}>]>;
|
|
9945
|
+
readonly time: Schema.Struct<{
|
|
9946
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
9947
|
+
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>;
|
|
9948
|
+
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>;
|
|
9949
|
+
}>;
|
|
9950
|
+
}>]>>>;
|
|
9951
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9952
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
9953
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
9954
|
+
};
|
|
9955
|
+
}>;
|
|
9956
|
+
}> & {
|
|
9957
|
+
type: "session.message.content.updated";
|
|
9958
|
+
durability: "durable";
|
|
9959
|
+
durable: {
|
|
9960
|
+
readonly version: number;
|
|
9961
|
+
readonly aggregate: string;
|
|
9962
|
+
};
|
|
9963
|
+
data: Schema.Struct<{
|
|
9964
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
9965
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9966
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9967
|
+
};
|
|
9968
|
+
readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
9969
|
+
readonly type: Schema.tag<"text">;
|
|
9970
|
+
readonly text: Schema.String;
|
|
9971
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9972
|
+
}>, Schema.Struct<{
|
|
9973
|
+
readonly type: Schema.tag<"reasoning">;
|
|
9974
|
+
readonly text: Schema.String;
|
|
9975
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9976
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9977
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
9978
|
+
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>;
|
|
9979
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9980
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
9981
|
+
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>;
|
|
9982
|
+
}>>, never, never>;
|
|
9983
|
+
}>, Schema.Struct<{
|
|
9984
|
+
readonly type: Schema.tag<"tool">;
|
|
9985
|
+
readonly id: Schema.String;
|
|
9986
|
+
readonly name: Schema.String;
|
|
9987
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
9988
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9989
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9990
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
9991
|
+
readonly status: Schema.tag<"streaming">;
|
|
9992
|
+
readonly input: Schema.String;
|
|
9993
|
+
}>, Schema.Struct<{
|
|
9994
|
+
readonly status: Schema.tag<"running">;
|
|
9995
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
9996
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
9997
|
+
}>, Schema.Struct<{
|
|
9998
|
+
readonly status: Schema.tag<"completed">;
|
|
9999
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
10000
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
10001
|
+
readonly type: Schema.Literal<"text">;
|
|
10002
|
+
readonly text: Schema.String;
|
|
10003
|
+
}>, Schema.Struct<{
|
|
10004
|
+
readonly type: Schema.Literal<"file">;
|
|
10005
|
+
readonly uri: Schema.String;
|
|
10006
|
+
readonly mime: Schema.String;
|
|
10007
|
+
readonly name: Schema.optional<Schema.String>;
|
|
10008
|
+
}>]>>;
|
|
10009
|
+
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>;
|
|
10010
|
+
}>, Schema.Struct<{
|
|
10011
|
+
readonly status: Schema.tag<"error">;
|
|
10012
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
10013
|
+
readonly error: Schema.Struct<{
|
|
10014
|
+
readonly type: Schema.String;
|
|
10015
|
+
readonly message: Schema.String;
|
|
10016
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10017
|
+
}>;
|
|
10018
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
10019
|
+
readonly type: Schema.Literal<"text">;
|
|
10020
|
+
readonly text: Schema.String;
|
|
10021
|
+
}>, Schema.Struct<{
|
|
10022
|
+
readonly type: Schema.Literal<"file">;
|
|
10023
|
+
readonly uri: Schema.String;
|
|
10024
|
+
readonly mime: Schema.String;
|
|
10025
|
+
readonly name: Schema.optional<Schema.String>;
|
|
10026
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
10027
|
+
readonly type: Schema.Literal<"text">;
|
|
10028
|
+
readonly text: Schema.String;
|
|
10029
|
+
}>, Schema.Struct<{
|
|
10030
|
+
readonly type: Schema.Literal<"file">;
|
|
10031
|
+
readonly uri: Schema.String;
|
|
10032
|
+
readonly mime: Schema.String;
|
|
10033
|
+
readonly name: Schema.optional<Schema.String>;
|
|
10034
|
+
}>]>>>, never, never>;
|
|
10035
|
+
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>;
|
|
10036
|
+
}>]>;
|
|
10037
|
+
readonly time: Schema.Struct<{
|
|
10038
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
10039
|
+
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>;
|
|
10040
|
+
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>;
|
|
10041
|
+
}>;
|
|
10042
|
+
}>]>>>;
|
|
10043
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
10044
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
10045
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
10046
|
+
};
|
|
10047
|
+
}>;
|
|
9632
10048
|
}, Schema.Struct<{
|
|
9633
10049
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
9634
10050
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|