@opencode-ai/schema
Advanced tools
+15
-15
@@ -23,7 +23,7 @@ export * as PromptInput from "./prompt-input.js"; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -53,7 +53,7 @@ }; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -78,7 +78,7 @@ }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -85,0 +85,0 @@ }>>, never, never>; |
+65
-65
@@ -43,16 +43,16 @@ import { Schema } from "effect"; | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -101,16 +101,16 @@ }; | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -140,16 +140,16 @@ }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -185,24 +185,24 @@ }>>, never, never>; | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }[] | undefined; | ||
| readonly agents?: readonly { | ||
| readonly name: string; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }[] | undefined; | ||
@@ -214,26 +214,26 @@ }>; | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }[] | undefined; | ||
| readonly agents?: readonly { | ||
| readonly name: string; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }[] | undefined; | ||
| }; | ||
| }; |
+110
-110
@@ -34,16 +34,16 @@ export * as SessionPending from "./session-pending.js"; | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -73,16 +73,16 @@ }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -151,16 +151,16 @@ }>>, never, never>; | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -190,16 +190,16 @@ }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -272,16 +272,16 @@ }>>, never, never>; | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -311,16 +311,16 @@ }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -393,16 +393,16 @@ }>>, never, never>; | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -432,16 +432,16 @@ }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -549,16 +549,16 @@ }>>, never, never>; | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -588,16 +588,16 @@ }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly data: string; | ||
| readonly source: Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"inline">; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly type: Schema.Literal<"uri">; | ||
| readonly uri: Schema.String; | ||
| }, "Type">; | ||
| readonly mime: string; | ||
| readonly source: { | ||
| readonly type: "inline"; | ||
| } | { | ||
| readonly type: "uri"; | ||
| readonly uri: string; | ||
| }; | ||
| readonly name?: string | undefined; | ||
| readonly description?: string | undefined; | ||
| readonly mention?: { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| readonly text: string; | ||
| } | undefined; | ||
| readonly mention?: Schema.Struct.ReadonlySide<{ | ||
| readonly start: Schema.Finite; | ||
| readonly end: Schema.Finite; | ||
| readonly text: Schema.String; | ||
| }, "Type"> | undefined; | ||
| }; | ||
@@ -604,0 +604,0 @@ }>>, never, never>; |
+342
-209
@@ -257,224 +257,357 @@ import { Schema } from "effect"; | ||
| }; | ||
| readonly isAnyOf: <const Keys>(keys: readonly Keys[]) => (value: { | ||
| readonly source: "current"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined; | ||
| readonly files?: readonly { | ||
| readonly file: string; | ||
| readonly patch: string; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| }[] | undefined; | ||
| }; | ||
| } | { | ||
| readonly source: "legacy"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: string | undefined; | ||
| readonly diff?: string | undefined; | ||
| readonly files?: readonly { | ||
| readonly path: string; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly patch: string; | ||
| }[] | undefined; | ||
| }; | ||
| }) => value is Extract<{ | ||
| readonly source: "current"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined; | ||
| readonly files?: readonly { | ||
| readonly file: string; | ||
| readonly patch: string; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| }[] | undefined; | ||
| }; | ||
| }, { | ||
| readonly isAnyOf: <const Keys>(keys: readonly Keys[]) => (value: Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"current">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| /** Legacy V1 compatibility state. */ | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"legacy">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type">) => value is Extract<Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"current">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| /** Legacy V1 compatibility state. */ | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type">, { | ||
| readonly source: Keys; | ||
| }> | Extract<{ | ||
| readonly source: "legacy"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: string | undefined; | ||
| readonly diff?: string | undefined; | ||
| readonly files?: readonly { | ||
| readonly path: string; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly patch: string; | ||
| }[] | undefined; | ||
| }; | ||
| }, { | ||
| }> | Extract<Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"legacy">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type">, { | ||
| readonly source: Keys; | ||
| }>; | ||
| readonly guards: { | ||
| current: (u: unknown) => u is { | ||
| readonly source: "current"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined; | ||
| readonly files?: readonly { | ||
| readonly file: string; | ||
| readonly patch: string; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| }[] | undefined; | ||
| }; | ||
| }; | ||
| legacy: (u: unknown) => u is { | ||
| readonly source: "legacy"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: string | undefined; | ||
| readonly diff?: string | undefined; | ||
| readonly files?: readonly { | ||
| readonly path: string; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly patch: string; | ||
| }[] | undefined; | ||
| }; | ||
| }; | ||
| current: (u: unknown) => u is Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"current">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| /** Legacy V1 compatibility state. */ | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type">; | ||
| legacy: (u: unknown) => u is Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"legacy">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type">; | ||
| }; | ||
| readonly match: { | ||
| <Cases extends { | ||
| current: (value: { | ||
| readonly source: "current"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined; | ||
| readonly files?: readonly { | ||
| readonly file: string; | ||
| readonly patch: string; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| }[] | undefined; | ||
| current: (value: Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"current">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| /** Legacy V1 compatibility state. */ | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type">) => any; | ||
| legacy: (value: Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"legacy">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type">) => any; | ||
| }>(value: Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"current">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| }) => any; | ||
| legacy: (value: { | ||
| readonly source: "legacy"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: string | undefined; | ||
| readonly diff?: string | undefined; | ||
| readonly files?: readonly { | ||
| readonly path: string; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly patch: string; | ||
| }[] | undefined; | ||
| /** Legacy V1 compatibility state. */ | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"legacy">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| }) => any; | ||
| }>(value: { | ||
| readonly source: "current"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined; | ||
| readonly files?: readonly { | ||
| readonly file: string; | ||
| readonly patch: string; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| }[] | undefined; | ||
| }; | ||
| } | { | ||
| readonly source: "legacy"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: string | undefined; | ||
| readonly diff?: string | undefined; | ||
| readonly files?: readonly { | ||
| readonly path: string; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly patch: string; | ||
| }[] | undefined; | ||
| }; | ||
| }, cases: Cases): Cases[keyof Cases] extends (value: any) => infer R ? import("effect/Unify").Unify<R> : never; | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type">, cases: Cases): Cases[keyof Cases] extends (value: any) => infer R ? import("effect/Unify").Unify<R> : never; | ||
| <Cases extends { | ||
| current: (value: { | ||
| readonly source: "current"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined; | ||
| readonly files?: readonly { | ||
| readonly file: string; | ||
| readonly patch: string; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| }[] | undefined; | ||
| current: (value: Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"current">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| /** Legacy V1 compatibility state. */ | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type">) => any; | ||
| legacy: (value: Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"legacy">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type">) => any; | ||
| }>(cases: Cases): (value: Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"current">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| }) => any; | ||
| legacy: (value: { | ||
| readonly source: "legacy"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: string | undefined; | ||
| readonly diff?: string | undefined; | ||
| readonly files?: readonly { | ||
| readonly path: string; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly patch: string; | ||
| }[] | undefined; | ||
| /** Legacy V1 compatibility state. */ | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly file: Schema.String; | ||
| readonly patch: Schema.String; | ||
| readonly additions: Schema.Int; | ||
| readonly deletions: Schema.Int; | ||
| readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type"> | Schema.Struct.ReadonlySide<{ | ||
| readonly source: Schema.tag<"legacy">; | ||
| readonly revert: Schema.toType<Schema.Struct<{ | ||
| readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| }; | ||
| }) => any; | ||
| }>(cases: Cases): (value: { | ||
| readonly source: "current"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined; | ||
| readonly files?: readonly { | ||
| readonly file: string; | ||
| readonly patch: string; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| }[] | undefined; | ||
| }; | ||
| } | { | ||
| readonly source: "legacy"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly partID?: string | undefined; | ||
| readonly snapshot?: string | undefined; | ||
| readonly diff?: string | undefined; | ||
| readonly files?: readonly { | ||
| readonly path: string; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly patch: string; | ||
| }[] | undefined; | ||
| }; | ||
| }) => Cases[keyof Cases] extends (value: any) => infer R ? import("effect/Unify").Unify<R> : never; | ||
| readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{ | ||
| readonly path: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>; | ||
| readonly additions: Schema.Finite; | ||
| readonly deletions: Schema.Finite; | ||
| readonly patch: Schema.String; | ||
| }>>>, never, never>; | ||
| }>>; | ||
| }, "Type">) => Cases[keyof Cases] extends (value: any) => infer R ? import("effect/Unify").Unify<R> : never; | ||
| }; | ||
| }, never, never>; |
+2
-2
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/schema", | ||
| "version": "0.0.0-next-15718", | ||
| "version": "0.0.0-next-15747", | ||
| "type": "module", | ||
@@ -33,3 +33,3 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "effect": "4.0.0-beta.83" | ||
| "effect": "4.0.0-beta.98" | ||
| }, | ||
@@ -36,0 +36,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
3640830
0.68%57029
0.23%+ Added
- Removed
Updated