@opencode-ai/schema 0.0.0-next-16211 → 0.0.0-next-16215

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.
@@ -1723,6 +1723,7 @@ export declare const SessionDurable: {
1723
1723
  };
1724
1724
  readonly ordinal: import("effect/Schema").Int;
1725
1725
  readonly text: import("effect/Schema").String;
1726
+ readonly state: 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>;
1726
1727
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1727
1728
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1728
1729
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -1742,6 +1743,7 @@ export declare const SessionDurable: {
1742
1743
  };
1743
1744
  readonly ordinal: import("effect/Schema").Int;
1744
1745
  readonly text: import("effect/Schema").String;
1746
+ readonly state: 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>;
1745
1747
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1746
1748
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1747
1749
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -4326,6 +4326,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4326
4326
  };
4327
4327
  readonly ordinal: Schema.Int;
4328
4328
  readonly text: Schema.String;
4329
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
4329
4330
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4330
4331
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4331
4332
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -4345,6 +4346,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4345
4346
  };
4346
4347
  readonly ordinal: Schema.Int;
4347
4348
  readonly text: Schema.String;
4349
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
4348
4350
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4349
4351
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4350
4352
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -9806,6 +9808,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9806
9808
  };
9807
9809
  readonly ordinal: Schema.Int;
9808
9810
  readonly text: Schema.String;
9811
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
9809
9812
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9810
9813
  create: () => string & import("effect/Brand").Brand<"SessionID">;
9811
9814
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -9825,6 +9828,7 @@ export declare const Definitions: readonly [Schema.Struct<{
9825
9828
  };
9826
9829
  readonly ordinal: Schema.Int;
9827
9830
  readonly text: Schema.String;
9831
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
9828
9832
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9829
9833
  create: () => string & import("effect/Brand").Brand<"SessionID">;
9830
9834
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -1983,6 +1983,7 @@ export declare namespace Text {
1983
1983
  };
1984
1984
  readonly ordinal: Schema.Int;
1985
1985
  readonly text: Schema.String;
1986
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1986
1987
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1987
1988
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1988
1989
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -2002,6 +2003,7 @@ export declare namespace Text {
2002
2003
  };
2003
2004
  readonly ordinal: Schema.Int;
2004
2005
  readonly text: Schema.String;
2006
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2005
2007
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2006
2008
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2007
2009
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -5142,6 +5144,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5142
5144
  };
5143
5145
  readonly ordinal: Schema.Int;
5144
5146
  readonly text: Schema.String;
5147
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
5145
5148
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5146
5149
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5147
5150
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -5161,6 +5164,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5161
5164
  };
5162
5165
  readonly ordinal: Schema.Int;
5163
5166
  readonly text: Schema.String;
5167
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
5164
5168
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5165
5169
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5166
5170
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -8127,6 +8131,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
8127
8131
  };
8128
8132
  readonly ordinal: Schema.Int;
8129
8133
  readonly text: Schema.String;
8134
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
8130
8135
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8131
8136
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8132
8137
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -8146,6 +8151,7 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
8146
8151
  };
8147
8152
  readonly ordinal: Schema.Int;
8148
8153
  readonly text: Schema.String;
8154
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
8149
8155
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8150
8156
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8151
8157
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -10982,6 +10988,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
10982
10988
  };
10983
10989
  readonly ordinal: Schema.Int;
10984
10990
  readonly text: Schema.String;
10991
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
10985
10992
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10986
10993
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10987
10994
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -11001,6 +11008,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
11001
11008
  };
11002
11009
  readonly ordinal: Schema.Int;
11003
11010
  readonly text: Schema.String;
11011
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11004
11012
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11005
11013
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11006
11014
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -13958,6 +13966,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13958
13966
  };
13959
13967
  readonly ordinal: Schema.Int;
13960
13968
  readonly text: Schema.String;
13969
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
13961
13970
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13962
13971
  create: () => string & import("effect/Brand").Brand<"SessionID">;
13963
13972
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -13977,6 +13986,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13977
13986
  };
13978
13987
  readonly ordinal: Schema.Int;
13979
13988
  readonly text: Schema.String;
13989
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
13980
13990
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13981
13991
  create: () => string & import("effect/Brand").Brand<"SessionID">;
13982
13992
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -265,6 +265,7 @@ export var Text;
265
265
  assistantMessageID: SessionMessage.ID,
266
266
  ordinal: NonNegativeInt,
267
267
  text: Schema.String,
268
+ state: SessionMessage.ProviderState.pipe(optional),
268
269
  },
269
270
  });
270
271
  })(Text || (Text = {}));
@@ -464,6 +464,7 @@ export interface AssistantText extends Schema.Schema.Type<typeof AssistantText>
464
464
  export declare const AssistantText: Schema.Struct<{
465
465
  readonly type: Schema.tag<"text">;
466
466
  readonly text: Schema.String;
467
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
467
468
  }>;
468
469
  export interface AssistantReasoning extends Schema.Schema.Type<typeof AssistantReasoning> {
469
470
  }
@@ -482,6 +483,7 @@ export declare const AssistantReasoning: Schema.Struct<{
482
483
  export declare const AssistantContent: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
483
484
  readonly type: Schema.tag<"text">;
484
485
  readonly text: Schema.String;
486
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
485
487
  }>, Schema.Struct<{
486
488
  readonly type: Schema.tag<"reasoning">;
487
489
  readonly text: Schema.String;
@@ -594,6 +596,7 @@ export declare const Assistant: Schema.Struct<{
594
596
  readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
595
597
  readonly type: Schema.tag<"text">;
596
598
  readonly text: Schema.String;
599
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
597
600
  }>, Schema.Struct<{
598
601
  readonly type: Schema.tag<"reasoning">;
599
602
  readonly text: Schema.String;
@@ -1121,6 +1124,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1121
1124
  readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
1122
1125
  readonly type: Schema.tag<"text">;
1123
1126
  readonly text: Schema.String;
1127
+ readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1124
1128
  }>, Schema.Struct<{
1125
1129
  readonly type: Schema.tag<"reasoning">;
1126
1130
  readonly text: Schema.String;
@@ -116,6 +116,7 @@ export const AssistantTool = Schema.Struct({
116
116
  export const AssistantText = Schema.Struct({
117
117
  type: Schema.tag("text"),
118
118
  text: Schema.String,
119
+ state: ProviderState.pipe(optional),
119
120
  }).annotate({ identifier: "Session.Message.Assistant.Text" });
120
121
  export const AssistantReasoning = Schema.Struct({
121
122
  type: Schema.tag("reasoning"),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/schema",
4
- "version": "0.0.0-next-16211",
4
+ "version": "0.0.0-next-16215",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {