@opencode-ai/schema 0.0.0-next-16087 → 0.0.0-next-16091
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/durable-event-manifest.d.ts +6 -10
- package/dist/event-manifest.d.ts +16 -60
- package/dist/session-event.d.ts +43 -111
- package/dist/session-event.js +19 -10
- package/dist/session-message.d.ts +93 -111
- package/dist/session-message.js +5 -8
- package/package.json +1 -1
|
@@ -2095,8 +2095,7 @@ export declare const SessionDurable: {
|
|
|
2095
2095
|
}>, never, never>;
|
|
2096
2096
|
}>>, never, never>;
|
|
2097
2097
|
readonly data: import("effect/Schema").Struct<{
|
|
2098
|
-
readonly
|
|
2099
|
-
readonly content: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
2098
|
+
readonly content: import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
2100
2099
|
readonly type: import("effect/Schema").Literal<"text">;
|
|
2101
2100
|
readonly text: import("effect/Schema").String;
|
|
2102
2101
|
}>, import("effect/Schema").Struct<{
|
|
@@ -2105,7 +2104,7 @@ export declare const SessionDurable: {
|
|
|
2105
2104
|
readonly mime: import("effect/Schema").String;
|
|
2106
2105
|
readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
2107
2106
|
}>]>>;
|
|
2108
|
-
readonly
|
|
2107
|
+
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
|
|
2109
2108
|
readonly executed: import("effect/Schema").Boolean;
|
|
2110
2109
|
readonly resultState: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
2111
2110
|
readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
|
|
@@ -2126,8 +2125,7 @@ export declare const SessionDurable: {
|
|
|
2126
2125
|
readonly aggregate: string;
|
|
2127
2126
|
};
|
|
2128
2127
|
data: import("effect/Schema").Struct<{
|
|
2129
|
-
readonly
|
|
2130
|
-
readonly content: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
2128
|
+
readonly content: import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
2131
2129
|
readonly type: import("effect/Schema").Literal<"text">;
|
|
2132
2130
|
readonly text: import("effect/Schema").String;
|
|
2133
2131
|
}>, import("effect/Schema").Struct<{
|
|
@@ -2136,7 +2134,7 @@ export declare const SessionDurable: {
|
|
|
2136
2134
|
readonly mime: import("effect/Schema").String;
|
|
2137
2135
|
readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
2138
2136
|
}>]>>;
|
|
2139
|
-
readonly
|
|
2137
|
+
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
|
|
2140
2138
|
readonly executed: import("effect/Schema").Boolean;
|
|
2141
2139
|
readonly resultState: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
2142
2140
|
readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
|
|
@@ -2202,8 +2200,7 @@ export declare const SessionDurable: {
|
|
|
2202
2200
|
readonly mime: import("effect/Schema").String;
|
|
2203
2201
|
readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
2204
2202
|
}>]>>>, never, never>;
|
|
2205
|
-
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").
|
|
2206
|
-
readonly result: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Unknown>>, import("effect/Schema").optionalKey<import("effect/Schema").Unknown>, never, never>;
|
|
2203
|
+
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
|
|
2207
2204
|
readonly executed: import("effect/Schema").Boolean;
|
|
2208
2205
|
readonly resultState: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
2209
2206
|
readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
|
|
@@ -2245,8 +2242,7 @@ export declare const SessionDurable: {
|
|
|
2245
2242
|
readonly mime: import("effect/Schema").String;
|
|
2246
2243
|
readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
2247
2244
|
}>]>>>, never, never>;
|
|
2248
|
-
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").
|
|
2249
|
-
readonly result: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Unknown>>, import("effect/Schema").optionalKey<import("effect/Schema").Unknown>, never, never>;
|
|
2245
|
+
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
|
|
2250
2246
|
readonly executed: import("effect/Schema").Boolean;
|
|
2251
2247
|
readonly resultState: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
2252
2248
|
readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
|
package/dist/event-manifest.d.ts
CHANGED
|
@@ -4801,16 +4801,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4801
4801
|
}>, never, never>;
|
|
4802
4802
|
}>>, never, never>;
|
|
4803
4803
|
readonly data: Schema.Struct<{
|
|
4804
|
-
readonly
|
|
4805
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4806
|
-
readonly type: Schema.Literal<"text">;
|
|
4807
|
-
readonly text: Schema.String;
|
|
4808
|
-
}>, Schema.Struct<{
|
|
4809
|
-
readonly type: Schema.Literal<"file">;
|
|
4810
|
-
readonly uri: Schema.String;
|
|
4811
|
-
readonly mime: Schema.String;
|
|
4812
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4813
|
-
}>]>>;
|
|
4804
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
4814
4805
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4815
4806
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4816
4807
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -4826,16 +4817,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4826
4817
|
durability: "ephemeral";
|
|
4827
4818
|
durable: undefined;
|
|
4828
4819
|
data: Schema.Struct<{
|
|
4829
|
-
readonly
|
|
4830
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4831
|
-
readonly type: Schema.Literal<"text">;
|
|
4832
|
-
readonly text: Schema.String;
|
|
4833
|
-
}>, Schema.Struct<{
|
|
4834
|
-
readonly type: Schema.Literal<"file">;
|
|
4835
|
-
readonly uri: Schema.String;
|
|
4836
|
-
readonly mime: Schema.String;
|
|
4837
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4838
|
-
}>]>>;
|
|
4820
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
4839
4821
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4840
4822
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4841
4823
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -4878,8 +4860,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4878
4860
|
}>, never, never>;
|
|
4879
4861
|
}>>, never, never>;
|
|
4880
4862
|
readonly data: Schema.Struct<{
|
|
4881
|
-
readonly
|
|
4882
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4863
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4883
4864
|
readonly type: Schema.Literal<"text">;
|
|
4884
4865
|
readonly text: Schema.String;
|
|
4885
4866
|
}>, Schema.Struct<{
|
|
@@ -4888,7 +4869,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4888
4869
|
readonly mime: Schema.String;
|
|
4889
4870
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4890
4871
|
}>]>>;
|
|
4891
|
-
readonly
|
|
4872
|
+
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>;
|
|
4892
4873
|
readonly executed: Schema.Boolean;
|
|
4893
4874
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4894
4875
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -4909,8 +4890,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4909
4890
|
readonly aggregate: string;
|
|
4910
4891
|
};
|
|
4911
4892
|
data: Schema.Struct<{
|
|
4912
|
-
readonly
|
|
4913
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4893
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4914
4894
|
readonly type: Schema.Literal<"text">;
|
|
4915
4895
|
readonly text: Schema.String;
|
|
4916
4896
|
}>, Schema.Struct<{
|
|
@@ -4919,7 +4899,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4919
4899
|
readonly mime: Schema.String;
|
|
4920
4900
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4921
4901
|
}>]>>;
|
|
4922
|
-
readonly
|
|
4902
|
+
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>;
|
|
4923
4903
|
readonly executed: Schema.Boolean;
|
|
4924
4904
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4925
4905
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -4985,8 +4965,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4985
4965
|
readonly mime: Schema.String;
|
|
4986
4966
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4987
4967
|
}>]>>>, never, never>;
|
|
4988
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
4989
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
4968
|
+
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>;
|
|
4990
4969
|
readonly executed: Schema.Boolean;
|
|
4991
4970
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4992
4971
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -5028,8 +5007,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
5028
5007
|
readonly mime: Schema.String;
|
|
5029
5008
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5030
5009
|
}>]>>>, never, never>;
|
|
5031
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
5032
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
5010
|
+
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>;
|
|
5033
5011
|
readonly executed: Schema.Boolean;
|
|
5034
5012
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5035
5013
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -10303,16 +10281,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10303
10281
|
}>, never, never>;
|
|
10304
10282
|
}>>, never, never>;
|
|
10305
10283
|
readonly data: Schema.Struct<{
|
|
10306
|
-
readonly
|
|
10307
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
10308
|
-
readonly type: Schema.Literal<"text">;
|
|
10309
|
-
readonly text: Schema.String;
|
|
10310
|
-
}>, Schema.Struct<{
|
|
10311
|
-
readonly type: Schema.Literal<"file">;
|
|
10312
|
-
readonly uri: Schema.String;
|
|
10313
|
-
readonly mime: Schema.String;
|
|
10314
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10315
|
-
}>]>>;
|
|
10284
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
10316
10285
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
10317
10286
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
10318
10287
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -10328,16 +10297,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10328
10297
|
durability: "ephemeral";
|
|
10329
10298
|
durable: undefined;
|
|
10330
10299
|
data: Schema.Struct<{
|
|
10331
|
-
readonly
|
|
10332
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
10333
|
-
readonly type: Schema.Literal<"text">;
|
|
10334
|
-
readonly text: Schema.String;
|
|
10335
|
-
}>, Schema.Struct<{
|
|
10336
|
-
readonly type: Schema.Literal<"file">;
|
|
10337
|
-
readonly uri: Schema.String;
|
|
10338
|
-
readonly mime: Schema.String;
|
|
10339
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10340
|
-
}>]>>;
|
|
10300
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
10341
10301
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
10342
10302
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
10343
10303
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -10380,8 +10340,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10380
10340
|
}>, never, never>;
|
|
10381
10341
|
}>>, never, never>;
|
|
10382
10342
|
readonly data: Schema.Struct<{
|
|
10383
|
-
readonly
|
|
10384
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
10343
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
10385
10344
|
readonly type: Schema.Literal<"text">;
|
|
10386
10345
|
readonly text: Schema.String;
|
|
10387
10346
|
}>, Schema.Struct<{
|
|
@@ -10390,7 +10349,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10390
10349
|
readonly mime: Schema.String;
|
|
10391
10350
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10392
10351
|
}>]>>;
|
|
10393
|
-
readonly
|
|
10352
|
+
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>;
|
|
10394
10353
|
readonly executed: Schema.Boolean;
|
|
10395
10354
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10396
10355
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -10411,8 +10370,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10411
10370
|
readonly aggregate: string;
|
|
10412
10371
|
};
|
|
10413
10372
|
data: Schema.Struct<{
|
|
10414
|
-
readonly
|
|
10415
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
10373
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
10416
10374
|
readonly type: Schema.Literal<"text">;
|
|
10417
10375
|
readonly text: Schema.String;
|
|
10418
10376
|
}>, Schema.Struct<{
|
|
@@ -10421,7 +10379,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10421
10379
|
readonly mime: Schema.String;
|
|
10422
10380
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10423
10381
|
}>]>>;
|
|
10424
|
-
readonly
|
|
10382
|
+
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>;
|
|
10425
10383
|
readonly executed: Schema.Boolean;
|
|
10426
10384
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10427
10385
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -10487,8 +10445,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10487
10445
|
readonly mime: Schema.String;
|
|
10488
10446
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10489
10447
|
}>]>>>, never, never>;
|
|
10490
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
10491
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
10448
|
+
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>;
|
|
10492
10449
|
readonly executed: Schema.Boolean;
|
|
10493
10450
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10494
10451
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -10530,8 +10487,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10530
10487
|
readonly mime: Schema.String;
|
|
10531
10488
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10532
10489
|
}>]>>>, never, never>;
|
|
10533
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
10534
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
10490
|
+
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>;
|
|
10535
10491
|
readonly executed: Schema.Boolean;
|
|
10536
10492
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10537
10493
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
package/dist/session-event.d.ts
CHANGED
|
@@ -2453,7 +2453,7 @@ export declare namespace Tool {
|
|
|
2453
2453
|
}>;
|
|
2454
2454
|
};
|
|
2455
2455
|
type Called = typeof Called.Type;
|
|
2456
|
-
/** Live replacement
|
|
2456
|
+
/** Live replacement metadata for a running tool. */
|
|
2457
2457
|
const Progress: Schema.Struct<{
|
|
2458
2458
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2459
2459
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -2481,16 +2481,7 @@ export declare namespace Tool {
|
|
|
2481
2481
|
}>, never, never>;
|
|
2482
2482
|
}>>, never, never>;
|
|
2483
2483
|
readonly data: Schema.Struct<{
|
|
2484
|
-
readonly
|
|
2485
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2486
|
-
readonly type: Schema.Literal<"text">;
|
|
2487
|
-
readonly text: Schema.String;
|
|
2488
|
-
}>, Schema.Struct<{
|
|
2489
|
-
readonly type: Schema.Literal<"file">;
|
|
2490
|
-
readonly uri: Schema.String;
|
|
2491
|
-
readonly mime: Schema.String;
|
|
2492
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2493
|
-
}>]>>;
|
|
2484
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2494
2485
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2495
2486
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2496
2487
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -2506,16 +2497,7 @@ export declare namespace Tool {
|
|
|
2506
2497
|
durability: "ephemeral";
|
|
2507
2498
|
durable: undefined;
|
|
2508
2499
|
data: Schema.Struct<{
|
|
2509
|
-
readonly
|
|
2510
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2511
|
-
readonly type: Schema.Literal<"text">;
|
|
2512
|
-
readonly text: Schema.String;
|
|
2513
|
-
}>, Schema.Struct<{
|
|
2514
|
-
readonly type: Schema.Literal<"file">;
|
|
2515
|
-
readonly uri: Schema.String;
|
|
2516
|
-
readonly mime: Schema.String;
|
|
2517
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2518
|
-
}>]>>;
|
|
2500
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2519
2501
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2520
2502
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2521
2503
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -2528,6 +2510,7 @@ export declare namespace Tool {
|
|
|
2528
2510
|
}>;
|
|
2529
2511
|
};
|
|
2530
2512
|
type Progress = typeof Progress.Type;
|
|
2513
|
+
/** Canonical terminal success: one non-empty model representation plus optional UI metadata. */
|
|
2531
2514
|
const Success: Schema.Struct<{
|
|
2532
2515
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2533
2516
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -2560,8 +2543,7 @@ export declare namespace Tool {
|
|
|
2560
2543
|
}>, never, never>;
|
|
2561
2544
|
}>>, never, never>;
|
|
2562
2545
|
readonly data: Schema.Struct<{
|
|
2563
|
-
readonly
|
|
2564
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2546
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
2565
2547
|
readonly type: Schema.Literal<"text">;
|
|
2566
2548
|
readonly text: Schema.String;
|
|
2567
2549
|
}>, Schema.Struct<{
|
|
@@ -2570,7 +2552,7 @@ export declare namespace Tool {
|
|
|
2570
2552
|
readonly mime: Schema.String;
|
|
2571
2553
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2572
2554
|
}>]>>;
|
|
2573
|
-
readonly
|
|
2555
|
+
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>;
|
|
2574
2556
|
readonly executed: Schema.Boolean;
|
|
2575
2557
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2576
2558
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -2591,8 +2573,7 @@ export declare namespace Tool {
|
|
|
2591
2573
|
readonly aggregate: string;
|
|
2592
2574
|
};
|
|
2593
2575
|
data: Schema.Struct<{
|
|
2594
|
-
readonly
|
|
2595
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2576
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
2596
2577
|
readonly type: Schema.Literal<"text">;
|
|
2597
2578
|
readonly text: Schema.String;
|
|
2598
2579
|
}>, Schema.Struct<{
|
|
@@ -2601,7 +2582,7 @@ export declare namespace Tool {
|
|
|
2601
2582
|
readonly mime: Schema.String;
|
|
2602
2583
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2603
2584
|
}>]>>;
|
|
2604
|
-
readonly
|
|
2585
|
+
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>;
|
|
2605
2586
|
readonly executed: Schema.Boolean;
|
|
2606
2587
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2607
2588
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -2616,6 +2597,11 @@ export declare namespace Tool {
|
|
|
2616
2597
|
}>;
|
|
2617
2598
|
};
|
|
2618
2599
|
type Success = typeof Success.Type;
|
|
2600
|
+
/**
|
|
2601
|
+
* Canonical terminal failure: one error plus the final bounded snapshot of
|
|
2602
|
+
* partial progress. The event is self-contained; projection never reaches
|
|
2603
|
+
* into ephemeral progress history.
|
|
2604
|
+
*/
|
|
2619
2605
|
const Failed: Schema.Struct<{
|
|
2620
2606
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2621
2607
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -2669,8 +2655,7 @@ export declare namespace Tool {
|
|
|
2669
2655
|
readonly mime: Schema.String;
|
|
2670
2656
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2671
2657
|
}>]>>>, never, never>;
|
|
2672
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
2673
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
2658
|
+
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>;
|
|
2674
2659
|
readonly executed: Schema.Boolean;
|
|
2675
2660
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2676
2661
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -2712,8 +2697,7 @@ export declare namespace Tool {
|
|
|
2712
2697
|
readonly mime: Schema.String;
|
|
2713
2698
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2714
2699
|
}>]>>>, never, never>;
|
|
2715
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
2716
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
2700
|
+
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>;
|
|
2717
2701
|
readonly executed: Schema.Boolean;
|
|
2718
2702
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2719
2703
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -5633,16 +5617,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5633
5617
|
}>, never, never>;
|
|
5634
5618
|
}>>, never, never>;
|
|
5635
5619
|
readonly data: Schema.Struct<{
|
|
5636
|
-
readonly
|
|
5637
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5638
|
-
readonly type: Schema.Literal<"text">;
|
|
5639
|
-
readonly text: Schema.String;
|
|
5640
|
-
}>, Schema.Struct<{
|
|
5641
|
-
readonly type: Schema.Literal<"file">;
|
|
5642
|
-
readonly uri: Schema.String;
|
|
5643
|
-
readonly mime: Schema.String;
|
|
5644
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5645
|
-
}>]>>;
|
|
5620
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
5646
5621
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
5647
5622
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5648
5623
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -5658,16 +5633,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5658
5633
|
durability: "ephemeral";
|
|
5659
5634
|
durable: undefined;
|
|
5660
5635
|
data: Schema.Struct<{
|
|
5661
|
-
readonly
|
|
5662
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5663
|
-
readonly type: Schema.Literal<"text">;
|
|
5664
|
-
readonly text: Schema.String;
|
|
5665
|
-
}>, Schema.Struct<{
|
|
5666
|
-
readonly type: Schema.Literal<"file">;
|
|
5667
|
-
readonly uri: Schema.String;
|
|
5668
|
-
readonly mime: Schema.String;
|
|
5669
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5670
|
-
}>]>>;
|
|
5636
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
5671
5637
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
5672
5638
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5673
5639
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -5710,8 +5676,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5710
5676
|
}>, never, never>;
|
|
5711
5677
|
}>>, never, never>;
|
|
5712
5678
|
readonly data: Schema.Struct<{
|
|
5713
|
-
readonly
|
|
5714
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5679
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
5715
5680
|
readonly type: Schema.Literal<"text">;
|
|
5716
5681
|
readonly text: Schema.String;
|
|
5717
5682
|
}>, Schema.Struct<{
|
|
@@ -5720,7 +5685,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5720
5685
|
readonly mime: Schema.String;
|
|
5721
5686
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5722
5687
|
}>]>>;
|
|
5723
|
-
readonly
|
|
5688
|
+
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>;
|
|
5724
5689
|
readonly executed: Schema.Boolean;
|
|
5725
5690
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5726
5691
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -5741,8 +5706,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5741
5706
|
readonly aggregate: string;
|
|
5742
5707
|
};
|
|
5743
5708
|
data: Schema.Struct<{
|
|
5744
|
-
readonly
|
|
5745
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5709
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
5746
5710
|
readonly type: Schema.Literal<"text">;
|
|
5747
5711
|
readonly text: Schema.String;
|
|
5748
5712
|
}>, Schema.Struct<{
|
|
@@ -5751,7 +5715,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5751
5715
|
readonly mime: Schema.String;
|
|
5752
5716
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5753
5717
|
}>]>>;
|
|
5754
|
-
readonly
|
|
5718
|
+
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>;
|
|
5755
5719
|
readonly executed: Schema.Boolean;
|
|
5756
5720
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5757
5721
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -5817,8 +5781,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5817
5781
|
readonly mime: Schema.String;
|
|
5818
5782
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5819
5783
|
}>]>>>, never, never>;
|
|
5820
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
5821
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
5784
|
+
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>;
|
|
5822
5785
|
readonly executed: Schema.Boolean;
|
|
5823
5786
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5824
5787
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -5860,8 +5823,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5860
5823
|
readonly mime: Schema.String;
|
|
5861
5824
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5862
5825
|
}>]>>>, never, never>;
|
|
5863
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
5864
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
5826
|
+
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>;
|
|
5865
5827
|
readonly executed: Schema.Boolean;
|
|
5866
5828
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5867
5829
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -8537,8 +8499,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8537
8499
|
}>, never, never>;
|
|
8538
8500
|
}>>, never, never>;
|
|
8539
8501
|
readonly data: Schema.Struct<{
|
|
8540
|
-
readonly
|
|
8541
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
8502
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
8542
8503
|
readonly type: Schema.Literal<"text">;
|
|
8543
8504
|
readonly text: Schema.String;
|
|
8544
8505
|
}>, Schema.Struct<{
|
|
@@ -8547,7 +8508,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8547
8508
|
readonly mime: Schema.String;
|
|
8548
8509
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
8549
8510
|
}>]>>;
|
|
8550
|
-
readonly
|
|
8511
|
+
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>;
|
|
8551
8512
|
readonly executed: Schema.Boolean;
|
|
8552
8513
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8553
8514
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -8568,8 +8529,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8568
8529
|
readonly aggregate: string;
|
|
8569
8530
|
};
|
|
8570
8531
|
data: Schema.Struct<{
|
|
8571
|
-
readonly
|
|
8572
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
8532
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
8573
8533
|
readonly type: Schema.Literal<"text">;
|
|
8574
8534
|
readonly text: Schema.String;
|
|
8575
8535
|
}>, Schema.Struct<{
|
|
@@ -8578,7 +8538,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8578
8538
|
readonly mime: Schema.String;
|
|
8579
8539
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
8580
8540
|
}>]>>;
|
|
8581
|
-
readonly
|
|
8541
|
+
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>;
|
|
8582
8542
|
readonly executed: Schema.Boolean;
|
|
8583
8543
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8584
8544
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -8644,8 +8604,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8644
8604
|
readonly mime: Schema.String;
|
|
8645
8605
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
8646
8606
|
}>]>>>, never, never>;
|
|
8647
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
8648
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
8607
|
+
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>;
|
|
8649
8608
|
readonly executed: Schema.Boolean;
|
|
8650
8609
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8651
8610
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -8687,8 +8646,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
8687
8646
|
readonly mime: Schema.String;
|
|
8688
8647
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
8689
8648
|
}>]>>>, never, never>;
|
|
8690
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
8691
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
8649
|
+
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>;
|
|
8692
8650
|
readonly executed: Schema.Boolean;
|
|
8693
8651
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8694
8652
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -11396,8 +11354,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
11396
11354
|
}>, never, never>;
|
|
11397
11355
|
}>>, never, never>;
|
|
11398
11356
|
readonly data: Schema.Struct<{
|
|
11399
|
-
readonly
|
|
11400
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
11357
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
11401
11358
|
readonly type: Schema.Literal<"text">;
|
|
11402
11359
|
readonly text: Schema.String;
|
|
11403
11360
|
}>, Schema.Struct<{
|
|
@@ -11406,7 +11363,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
11406
11363
|
readonly mime: Schema.String;
|
|
11407
11364
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11408
11365
|
}>]>>;
|
|
11409
|
-
readonly
|
|
11366
|
+
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>;
|
|
11410
11367
|
readonly executed: Schema.Boolean;
|
|
11411
11368
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11412
11369
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -11427,8 +11384,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
11427
11384
|
readonly aggregate: string;
|
|
11428
11385
|
};
|
|
11429
11386
|
data: Schema.Struct<{
|
|
11430
|
-
readonly
|
|
11431
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
11387
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
11432
11388
|
readonly type: Schema.Literal<"text">;
|
|
11433
11389
|
readonly text: Schema.String;
|
|
11434
11390
|
}>, Schema.Struct<{
|
|
@@ -11437,7 +11393,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
11437
11393
|
readonly mime: Schema.String;
|
|
11438
11394
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11439
11395
|
}>]>>;
|
|
11440
|
-
readonly
|
|
11396
|
+
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>;
|
|
11441
11397
|
readonly executed: Schema.Boolean;
|
|
11442
11398
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11443
11399
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -11503,8 +11459,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
11503
11459
|
readonly mime: Schema.String;
|
|
11504
11460
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11505
11461
|
}>]>>>, never, never>;
|
|
11506
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
11507
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
11462
|
+
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>;
|
|
11508
11463
|
readonly executed: Schema.Boolean;
|
|
11509
11464
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11510
11465
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -11546,8 +11501,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
11546
11501
|
readonly mime: Schema.String;
|
|
11547
11502
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11548
11503
|
}>]>>>, never, never>;
|
|
11549
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
11550
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
11504
|
+
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>;
|
|
11551
11505
|
readonly executed: Schema.Boolean;
|
|
11552
11506
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11553
11507
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -14479,16 +14433,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
14479
14433
|
}>, never, never>;
|
|
14480
14434
|
}>>, never, never>;
|
|
14481
14435
|
readonly data: Schema.Struct<{
|
|
14482
|
-
readonly
|
|
14483
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
14484
|
-
readonly type: Schema.Literal<"text">;
|
|
14485
|
-
readonly text: Schema.String;
|
|
14486
|
-
}>, Schema.Struct<{
|
|
14487
|
-
readonly type: Schema.Literal<"file">;
|
|
14488
|
-
readonly uri: Schema.String;
|
|
14489
|
-
readonly mime: Schema.String;
|
|
14490
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14491
|
-
}>]>>;
|
|
14436
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
14492
14437
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
14493
14438
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14494
14439
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -14504,16 +14449,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
14504
14449
|
durability: "ephemeral";
|
|
14505
14450
|
durable: undefined;
|
|
14506
14451
|
data: Schema.Struct<{
|
|
14507
|
-
readonly
|
|
14508
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
14509
|
-
readonly type: Schema.Literal<"text">;
|
|
14510
|
-
readonly text: Schema.String;
|
|
14511
|
-
}>, Schema.Struct<{
|
|
14512
|
-
readonly type: Schema.Literal<"file">;
|
|
14513
|
-
readonly uri: Schema.String;
|
|
14514
|
-
readonly mime: Schema.String;
|
|
14515
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14516
|
-
}>]>>;
|
|
14452
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
14517
14453
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
14518
14454
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14519
14455
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -14556,8 +14492,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
14556
14492
|
}>, never, never>;
|
|
14557
14493
|
}>>, never, never>;
|
|
14558
14494
|
readonly data: Schema.Struct<{
|
|
14559
|
-
readonly
|
|
14560
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
14495
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
14561
14496
|
readonly type: Schema.Literal<"text">;
|
|
14562
14497
|
readonly text: Schema.String;
|
|
14563
14498
|
}>, Schema.Struct<{
|
|
@@ -14566,7 +14501,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
14566
14501
|
readonly mime: Schema.String;
|
|
14567
14502
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14568
14503
|
}>]>>;
|
|
14569
|
-
readonly
|
|
14504
|
+
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>;
|
|
14570
14505
|
readonly executed: Schema.Boolean;
|
|
14571
14506
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14572
14507
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -14587,8 +14522,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
14587
14522
|
readonly aggregate: string;
|
|
14588
14523
|
};
|
|
14589
14524
|
data: Schema.Struct<{
|
|
14590
|
-
readonly
|
|
14591
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
14525
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
14592
14526
|
readonly type: Schema.Literal<"text">;
|
|
14593
14527
|
readonly text: Schema.String;
|
|
14594
14528
|
}>, Schema.Struct<{
|
|
@@ -14597,7 +14531,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
14597
14531
|
readonly mime: Schema.String;
|
|
14598
14532
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14599
14533
|
}>]>>;
|
|
14600
|
-
readonly
|
|
14534
|
+
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>;
|
|
14601
14535
|
readonly executed: Schema.Boolean;
|
|
14602
14536
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14603
14537
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -14663,8 +14597,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
14663
14597
|
readonly mime: Schema.String;
|
|
14664
14598
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14665
14599
|
}>]>>>, never, never>;
|
|
14666
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
14667
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
14600
|
+
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>;
|
|
14668
14601
|
readonly executed: Schema.Boolean;
|
|
14669
14602
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14670
14603
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -14706,8 +14639,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
14706
14639
|
readonly mime: Schema.String;
|
|
14707
14640
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14708
14641
|
}>]>>>, never, never>;
|
|
14709
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
14710
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
14642
|
+
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>;
|
|
14711
14643
|
readonly executed: Schema.Boolean;
|
|
14712
14644
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14713
14645
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
package/dist/session-event.js
CHANGED
|
@@ -346,36 +346,45 @@ export var Tool;
|
|
|
346
346
|
state: SessionMessage.ProviderState.pipe(optional),
|
|
347
347
|
},
|
|
348
348
|
});
|
|
349
|
-
/** Live replacement
|
|
349
|
+
/** Live replacement metadata for a running tool. */
|
|
350
350
|
Tool.Progress = Event.ephemeral({
|
|
351
351
|
type: "session.tool.progress",
|
|
352
352
|
schema: {
|
|
353
353
|
...ToolBase,
|
|
354
|
-
|
|
355
|
-
content: Schema.Array(ToolContent),
|
|
354
|
+
metadata: Schema.Record(Schema.String, Schema.Json),
|
|
356
355
|
},
|
|
357
356
|
});
|
|
357
|
+
/** Canonical terminal success: one non-empty model representation plus optional UI metadata. */
|
|
358
358
|
Tool.Success = Event.durable({
|
|
359
359
|
type: "session.tool.success",
|
|
360
|
-
|
|
360
|
+
durable: {
|
|
361
|
+
aggregate: "sessionID",
|
|
362
|
+
version: 2,
|
|
363
|
+
},
|
|
361
364
|
schema: {
|
|
362
365
|
...ToolBase,
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
result: Schema.Unknown.pipe(optional),
|
|
366
|
+
content: Schema.NonEmptyArray(ToolContent),
|
|
367
|
+
metadata: Schema.Record(Schema.String, Schema.Json).pipe(optional),
|
|
366
368
|
executed: Schema.Boolean,
|
|
367
369
|
resultState: SessionMessage.ProviderState.pipe(optional),
|
|
368
370
|
},
|
|
369
371
|
});
|
|
372
|
+
/**
|
|
373
|
+
* Canonical terminal failure: one error plus the final bounded snapshot of
|
|
374
|
+
* partial progress. The event is self-contained; projection never reaches
|
|
375
|
+
* into ephemeral progress history.
|
|
376
|
+
*/
|
|
370
377
|
Tool.Failed = Event.durable({
|
|
371
378
|
type: "session.tool.failed",
|
|
372
|
-
|
|
379
|
+
durable: {
|
|
380
|
+
aggregate: "sessionID",
|
|
381
|
+
version: 2,
|
|
382
|
+
},
|
|
373
383
|
schema: {
|
|
374
384
|
...ToolBase,
|
|
375
385
|
error: SessionError.Error,
|
|
376
386
|
content: Schema.NonEmptyArray(ToolContent).pipe(optional),
|
|
377
|
-
metadata: Schema.Record(Schema.String, Schema.
|
|
378
|
-
result: Schema.Unknown.pipe(optional),
|
|
387
|
+
metadata: Schema.Record(Schema.String, Schema.Json).pipe(optional),
|
|
379
388
|
executed: Schema.Boolean,
|
|
380
389
|
resultState: SessionMessage.ProviderState.pipe(optional),
|
|
381
390
|
},
|
|
@@ -305,23 +305,14 @@ export interface ToolStateRunning extends Schema.Schema.Type<typeof ToolStateRun
|
|
|
305
305
|
export declare const ToolStateRunning: Schema.Struct<{
|
|
306
306
|
readonly status: Schema.tag<"running">;
|
|
307
307
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
308
|
-
readonly
|
|
309
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
310
|
-
readonly type: Schema.Literal<"text">;
|
|
311
|
-
readonly text: Schema.String;
|
|
312
|
-
}>, Schema.Struct<{
|
|
313
|
-
readonly type: Schema.Literal<"file">;
|
|
314
|
-
readonly uri: Schema.String;
|
|
315
|
-
readonly mime: Schema.String;
|
|
316
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
317
|
-
}>]>>;
|
|
308
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
318
309
|
}>;
|
|
319
310
|
export interface ToolStateCompleted extends Schema.Schema.Type<typeof ToolStateCompleted> {
|
|
320
311
|
}
|
|
321
312
|
export declare const ToolStateCompleted: Schema.Struct<{
|
|
322
313
|
readonly status: Schema.tag<"completed">;
|
|
323
314
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
324
|
-
readonly content: Schema
|
|
315
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
325
316
|
readonly type: Schema.Literal<"text">;
|
|
326
317
|
readonly text: Schema.String;
|
|
327
318
|
}>, Schema.Struct<{
|
|
@@ -330,15 +321,18 @@ export declare const ToolStateCompleted: Schema.Struct<{
|
|
|
330
321
|
readonly mime: Schema.String;
|
|
331
322
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
332
323
|
}>]>>;
|
|
333
|
-
readonly
|
|
334
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
324
|
+
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>;
|
|
335
325
|
}>;
|
|
336
326
|
export interface ToolStateError extends Schema.Schema.Type<typeof ToolStateError> {
|
|
337
327
|
}
|
|
338
328
|
export declare const ToolStateError: Schema.Struct<{
|
|
339
329
|
readonly status: Schema.tag<"error">;
|
|
340
330
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
341
|
-
readonly
|
|
331
|
+
readonly error: Schema.Struct<{
|
|
332
|
+
readonly type: Schema.String;
|
|
333
|
+
readonly message: Schema.String;
|
|
334
|
+
}>;
|
|
335
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
342
336
|
readonly type: Schema.Literal<"text">;
|
|
343
337
|
readonly text: Schema.String;
|
|
344
338
|
}>, Schema.Struct<{
|
|
@@ -346,13 +340,16 @@ export declare const ToolStateError: Schema.Struct<{
|
|
|
346
340
|
readonly uri: Schema.String;
|
|
347
341
|
readonly mime: Schema.String;
|
|
348
342
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
349
|
-
}>]
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
readonly
|
|
354
|
-
|
|
355
|
-
|
|
343
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
344
|
+
readonly type: Schema.Literal<"text">;
|
|
345
|
+
readonly text: Schema.String;
|
|
346
|
+
}>, Schema.Struct<{
|
|
347
|
+
readonly type: Schema.Literal<"file">;
|
|
348
|
+
readonly uri: Schema.String;
|
|
349
|
+
readonly mime: Schema.String;
|
|
350
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
351
|
+
}>]>>>, never, never>;
|
|
352
|
+
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>;
|
|
356
353
|
}>;
|
|
357
354
|
export declare const ToolState: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
358
355
|
readonly status: Schema.tag<"streaming">;
|
|
@@ -360,8 +357,11 @@ export declare const ToolState: Schema.toTaggedUnion<"status", readonly [Schema.
|
|
|
360
357
|
}>, Schema.Struct<{
|
|
361
358
|
readonly status: Schema.tag<"running">;
|
|
362
359
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
363
|
-
readonly
|
|
364
|
-
|
|
360
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
361
|
+
}>, Schema.Struct<{
|
|
362
|
+
readonly status: Schema.tag<"completed">;
|
|
363
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
364
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
365
365
|
readonly type: Schema.Literal<"text">;
|
|
366
366
|
readonly text: Schema.String;
|
|
367
367
|
}>, Schema.Struct<{
|
|
@@ -370,10 +370,15 @@ export declare const ToolState: Schema.toTaggedUnion<"status", readonly [Schema.
|
|
|
370
370
|
readonly mime: Schema.String;
|
|
371
371
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
372
372
|
}>]>>;
|
|
373
|
+
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>;
|
|
373
374
|
}>, Schema.Struct<{
|
|
374
|
-
readonly status: Schema.tag<"
|
|
375
|
+
readonly status: Schema.tag<"error">;
|
|
375
376
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
376
|
-
readonly
|
|
377
|
+
readonly error: Schema.Struct<{
|
|
378
|
+
readonly type: Schema.String;
|
|
379
|
+
readonly message: Schema.String;
|
|
380
|
+
}>;
|
|
381
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
377
382
|
readonly type: Schema.Literal<"text">;
|
|
378
383
|
readonly text: Schema.String;
|
|
379
384
|
}>, Schema.Struct<{
|
|
@@ -381,13 +386,7 @@ export declare const ToolState: Schema.toTaggedUnion<"status", readonly [Schema.
|
|
|
381
386
|
readonly uri: Schema.String;
|
|
382
387
|
readonly mime: Schema.String;
|
|
383
388
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
384
|
-
}>]
|
|
385
|
-
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
386
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
387
|
-
}>, Schema.Struct<{
|
|
388
|
-
readonly status: Schema.tag<"error">;
|
|
389
|
-
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
390
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
389
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
391
390
|
readonly type: Schema.Literal<"text">;
|
|
392
391
|
readonly text: Schema.String;
|
|
393
392
|
}>, Schema.Struct<{
|
|
@@ -395,13 +394,8 @@ export declare const ToolState: Schema.toTaggedUnion<"status", readonly [Schema.
|
|
|
395
394
|
readonly uri: Schema.String;
|
|
396
395
|
readonly mime: Schema.String;
|
|
397
396
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
398
|
-
}>]
|
|
399
|
-
readonly
|
|
400
|
-
readonly error: Schema.Struct<{
|
|
401
|
-
readonly type: Schema.String;
|
|
402
|
-
readonly message: Schema.String;
|
|
403
|
-
}>;
|
|
404
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
397
|
+
}>]>>>, never, never>;
|
|
398
|
+
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>;
|
|
405
399
|
}>]>;
|
|
406
400
|
export type ToolState = ToolStateStreaming | ToolStateRunning | ToolStateCompleted | ToolStateError;
|
|
407
401
|
export interface AssistantTool extends Schema.Schema.Type<typeof AssistantTool> {
|
|
@@ -419,8 +413,11 @@ export declare const AssistantTool: Schema.Struct<{
|
|
|
419
413
|
}>, Schema.Struct<{
|
|
420
414
|
readonly status: Schema.tag<"running">;
|
|
421
415
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
422
|
-
readonly
|
|
423
|
-
|
|
416
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
417
|
+
}>, Schema.Struct<{
|
|
418
|
+
readonly status: Schema.tag<"completed">;
|
|
419
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
420
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
424
421
|
readonly type: Schema.Literal<"text">;
|
|
425
422
|
readonly text: Schema.String;
|
|
426
423
|
}>, Schema.Struct<{
|
|
@@ -429,10 +426,15 @@ export declare const AssistantTool: Schema.Struct<{
|
|
|
429
426
|
readonly mime: Schema.String;
|
|
430
427
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
431
428
|
}>]>>;
|
|
429
|
+
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>;
|
|
432
430
|
}>, Schema.Struct<{
|
|
433
|
-
readonly status: Schema.tag<"
|
|
431
|
+
readonly status: Schema.tag<"error">;
|
|
434
432
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
435
|
-
readonly
|
|
433
|
+
readonly error: Schema.Struct<{
|
|
434
|
+
readonly type: Schema.String;
|
|
435
|
+
readonly message: Schema.String;
|
|
436
|
+
}>;
|
|
437
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
436
438
|
readonly type: Schema.Literal<"text">;
|
|
437
439
|
readonly text: Schema.String;
|
|
438
440
|
}>, Schema.Struct<{
|
|
@@ -440,13 +442,7 @@ export declare const AssistantTool: Schema.Struct<{
|
|
|
440
442
|
readonly uri: Schema.String;
|
|
441
443
|
readonly mime: Schema.String;
|
|
442
444
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
443
|
-
}>]
|
|
444
|
-
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
445
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
446
|
-
}>, Schema.Struct<{
|
|
447
|
-
readonly status: Schema.tag<"error">;
|
|
448
|
-
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
449
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
445
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
450
446
|
readonly type: Schema.Literal<"text">;
|
|
451
447
|
readonly text: Schema.String;
|
|
452
448
|
}>, Schema.Struct<{
|
|
@@ -454,13 +450,8 @@ export declare const AssistantTool: Schema.Struct<{
|
|
|
454
450
|
readonly uri: Schema.String;
|
|
455
451
|
readonly mime: Schema.String;
|
|
456
452
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
457
|
-
}>]
|
|
458
|
-
readonly
|
|
459
|
-
readonly error: Schema.Struct<{
|
|
460
|
-
readonly type: Schema.String;
|
|
461
|
-
readonly message: Schema.String;
|
|
462
|
-
}>;
|
|
463
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
453
|
+
}>]>>>, never, never>;
|
|
454
|
+
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>;
|
|
464
455
|
}>]>;
|
|
465
456
|
readonly time: Schema.Struct<{
|
|
466
457
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
@@ -515,8 +506,11 @@ export declare const AssistantContent: Schema.toTaggedUnion<"type", readonly [Sc
|
|
|
515
506
|
}>, Schema.Struct<{
|
|
516
507
|
readonly status: Schema.tag<"running">;
|
|
517
508
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
518
|
-
readonly
|
|
519
|
-
|
|
509
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
510
|
+
}>, Schema.Struct<{
|
|
511
|
+
readonly status: Schema.tag<"completed">;
|
|
512
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
513
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
520
514
|
readonly type: Schema.Literal<"text">;
|
|
521
515
|
readonly text: Schema.String;
|
|
522
516
|
}>, Schema.Struct<{
|
|
@@ -525,10 +519,15 @@ export declare const AssistantContent: Schema.toTaggedUnion<"type", readonly [Sc
|
|
|
525
519
|
readonly mime: Schema.String;
|
|
526
520
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
527
521
|
}>]>>;
|
|
522
|
+
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>;
|
|
528
523
|
}>, Schema.Struct<{
|
|
529
|
-
readonly status: Schema.tag<"
|
|
524
|
+
readonly status: Schema.tag<"error">;
|
|
530
525
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
531
|
-
readonly
|
|
526
|
+
readonly error: Schema.Struct<{
|
|
527
|
+
readonly type: Schema.String;
|
|
528
|
+
readonly message: Schema.String;
|
|
529
|
+
}>;
|
|
530
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
532
531
|
readonly type: Schema.Literal<"text">;
|
|
533
532
|
readonly text: Schema.String;
|
|
534
533
|
}>, Schema.Struct<{
|
|
@@ -536,13 +535,7 @@ export declare const AssistantContent: Schema.toTaggedUnion<"type", readonly [Sc
|
|
|
536
535
|
readonly uri: Schema.String;
|
|
537
536
|
readonly mime: Schema.String;
|
|
538
537
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
539
|
-
}>]
|
|
540
|
-
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
541
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
542
|
-
}>, Schema.Struct<{
|
|
543
|
-
readonly status: Schema.tag<"error">;
|
|
544
|
-
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
545
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
538
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
546
539
|
readonly type: Schema.Literal<"text">;
|
|
547
540
|
readonly text: Schema.String;
|
|
548
541
|
}>, Schema.Struct<{
|
|
@@ -550,13 +543,8 @@ export declare const AssistantContent: Schema.toTaggedUnion<"type", readonly [Sc
|
|
|
550
543
|
readonly uri: Schema.String;
|
|
551
544
|
readonly mime: Schema.String;
|
|
552
545
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
553
|
-
}>]
|
|
554
|
-
readonly
|
|
555
|
-
readonly error: Schema.Struct<{
|
|
556
|
-
readonly type: Schema.String;
|
|
557
|
-
readonly message: Schema.String;
|
|
558
|
-
}>;
|
|
559
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
546
|
+
}>]>>>, never, never>;
|
|
547
|
+
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>;
|
|
560
548
|
}>]>;
|
|
561
549
|
readonly time: Schema.Struct<{
|
|
562
550
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
@@ -630,8 +618,11 @@ export declare const Assistant: Schema.Struct<{
|
|
|
630
618
|
}>, Schema.Struct<{
|
|
631
619
|
readonly status: Schema.tag<"running">;
|
|
632
620
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
633
|
-
readonly
|
|
634
|
-
|
|
621
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
622
|
+
}>, Schema.Struct<{
|
|
623
|
+
readonly status: Schema.tag<"completed">;
|
|
624
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
625
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
635
626
|
readonly type: Schema.Literal<"text">;
|
|
636
627
|
readonly text: Schema.String;
|
|
637
628
|
}>, Schema.Struct<{
|
|
@@ -640,10 +631,15 @@ export declare const Assistant: Schema.Struct<{
|
|
|
640
631
|
readonly mime: Schema.String;
|
|
641
632
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
642
633
|
}>]>>;
|
|
634
|
+
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>;
|
|
643
635
|
}>, Schema.Struct<{
|
|
644
|
-
readonly status: Schema.tag<"
|
|
636
|
+
readonly status: Schema.tag<"error">;
|
|
645
637
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
646
|
-
readonly
|
|
638
|
+
readonly error: Schema.Struct<{
|
|
639
|
+
readonly type: Schema.String;
|
|
640
|
+
readonly message: Schema.String;
|
|
641
|
+
}>;
|
|
642
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
647
643
|
readonly type: Schema.Literal<"text">;
|
|
648
644
|
readonly text: Schema.String;
|
|
649
645
|
}>, Schema.Struct<{
|
|
@@ -651,13 +647,7 @@ export declare const Assistant: Schema.Struct<{
|
|
|
651
647
|
readonly uri: Schema.String;
|
|
652
648
|
readonly mime: Schema.String;
|
|
653
649
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
654
|
-
}>]
|
|
655
|
-
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
656
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
657
|
-
}>, Schema.Struct<{
|
|
658
|
-
readonly status: Schema.tag<"error">;
|
|
659
|
-
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
660
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
650
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
661
651
|
readonly type: Schema.Literal<"text">;
|
|
662
652
|
readonly text: Schema.String;
|
|
663
653
|
}>, Schema.Struct<{
|
|
@@ -665,13 +655,8 @@ export declare const Assistant: Schema.Struct<{
|
|
|
665
655
|
readonly uri: Schema.String;
|
|
666
656
|
readonly mime: Schema.String;
|
|
667
657
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
668
|
-
}>]
|
|
669
|
-
readonly
|
|
670
|
-
readonly error: Schema.Struct<{
|
|
671
|
-
readonly type: Schema.String;
|
|
672
|
-
readonly message: Schema.String;
|
|
673
|
-
}>;
|
|
674
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
658
|
+
}>]>>>, never, never>;
|
|
659
|
+
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>;
|
|
675
660
|
}>]>;
|
|
676
661
|
readonly time: Schema.Struct<{
|
|
677
662
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
@@ -1160,8 +1145,11 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1160
1145
|
}>, Schema.Struct<{
|
|
1161
1146
|
readonly status: Schema.tag<"running">;
|
|
1162
1147
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1163
|
-
readonly
|
|
1164
|
-
|
|
1148
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1149
|
+
}>, Schema.Struct<{
|
|
1150
|
+
readonly status: Schema.tag<"completed">;
|
|
1151
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1152
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1165
1153
|
readonly type: Schema.Literal<"text">;
|
|
1166
1154
|
readonly text: Schema.String;
|
|
1167
1155
|
}>, Schema.Struct<{
|
|
@@ -1170,10 +1158,15 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1170
1158
|
readonly mime: Schema.String;
|
|
1171
1159
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1172
1160
|
}>]>>;
|
|
1161
|
+
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>;
|
|
1173
1162
|
}>, Schema.Struct<{
|
|
1174
|
-
readonly status: Schema.tag<"
|
|
1163
|
+
readonly status: Schema.tag<"error">;
|
|
1175
1164
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1176
|
-
readonly
|
|
1165
|
+
readonly error: Schema.Struct<{
|
|
1166
|
+
readonly type: Schema.String;
|
|
1167
|
+
readonly message: Schema.String;
|
|
1168
|
+
}>;
|
|
1169
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1177
1170
|
readonly type: Schema.Literal<"text">;
|
|
1178
1171
|
readonly text: Schema.String;
|
|
1179
1172
|
}>, Schema.Struct<{
|
|
@@ -1181,13 +1174,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1181
1174
|
readonly uri: Schema.String;
|
|
1182
1175
|
readonly mime: Schema.String;
|
|
1183
1176
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1184
|
-
}>]
|
|
1185
|
-
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1186
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
1187
|
-
}>, Schema.Struct<{
|
|
1188
|
-
readonly status: Schema.tag<"error">;
|
|
1189
|
-
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1190
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1177
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1191
1178
|
readonly type: Schema.Literal<"text">;
|
|
1192
1179
|
readonly text: Schema.String;
|
|
1193
1180
|
}>, Schema.Struct<{
|
|
@@ -1195,13 +1182,8 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1195
1182
|
readonly uri: Schema.String;
|
|
1196
1183
|
readonly mime: Schema.String;
|
|
1197
1184
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1198
|
-
}>]
|
|
1199
|
-
readonly
|
|
1200
|
-
readonly error: Schema.Struct<{
|
|
1201
|
-
readonly type: Schema.String;
|
|
1202
|
-
readonly message: Schema.String;
|
|
1203
|
-
}>;
|
|
1204
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
1185
|
+
}>]>>>, never, never>;
|
|
1186
|
+
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>;
|
|
1205
1187
|
}>]>;
|
|
1206
1188
|
readonly time: Schema.Struct<{
|
|
1207
1189
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
package/dist/session-message.js
CHANGED
|
@@ -83,23 +83,20 @@ export const ToolStateStreaming = Schema.Struct({
|
|
|
83
83
|
export const ToolStateRunning = Schema.Struct({
|
|
84
84
|
status: Schema.tag("running"),
|
|
85
85
|
input: Schema.Record(Schema.String, Schema.Unknown),
|
|
86
|
-
|
|
87
|
-
content: ToolContent.pipe(Schema.Array),
|
|
86
|
+
metadata: Schema.Record(Schema.String, Schema.Json),
|
|
88
87
|
}).annotate({ identifier: "Session.Message.ToolState.Running" });
|
|
89
88
|
export const ToolStateCompleted = Schema.Struct({
|
|
90
89
|
status: Schema.tag("completed"),
|
|
91
90
|
input: Schema.Record(Schema.String, Schema.Unknown),
|
|
92
|
-
content:
|
|
93
|
-
|
|
94
|
-
result: Schema.Unknown.pipe(optional),
|
|
91
|
+
content: Schema.NonEmptyArray(ToolContent),
|
|
92
|
+
metadata: Schema.Record(Schema.String, Schema.Json).pipe(optional),
|
|
95
93
|
}).annotate({ identifier: "Session.Message.ToolState.Completed" });
|
|
96
94
|
export const ToolStateError = Schema.Struct({
|
|
97
95
|
status: Schema.tag("error"),
|
|
98
96
|
input: Schema.Record(Schema.String, Schema.Unknown),
|
|
99
|
-
content: ToolContent.pipe(Schema.Array),
|
|
100
|
-
structured: Schema.Record(Schema.String, Schema.Unknown),
|
|
101
97
|
error: SessionError.Error,
|
|
102
|
-
|
|
98
|
+
content: Schema.NonEmptyArray(ToolContent).pipe(optional),
|
|
99
|
+
metadata: Schema.Record(Schema.String, Schema.Json).pipe(optional),
|
|
103
100
|
}).annotate({ identifier: "Session.Message.ToolState.Error" });
|
|
104
101
|
export const ToolState = Schema.Union([ToolStateStreaming, ToolStateRunning, ToolStateCompleted, ToolStateError]).pipe(Schema.toTaggedUnion("status"));
|
|
105
102
|
export const AssistantTool = Schema.Struct({
|