@opencode-ai/schema 0.0.0-next-15028 → 0.0.0-next-15032
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 +108 -0
- package/dist/event-manifest.d.ts +216 -0
- package/dist/session-event.d.ts +578 -34
- package/dist/session-event.js +14 -1
- package/dist/session-input.d.ts +382 -0
- package/dist/session-input.js +13 -0
- package/dist/session-message.d.ts +2 -0
- package/dist/session-message.js +1 -0
- package/package.json +1 -1
package/dist/session-event.d.ts
CHANGED
|
@@ -2633,6 +2633,66 @@ export declare const RetryScheduled: Schema.Struct<{
|
|
|
2633
2633
|
};
|
|
2634
2634
|
export type RetryScheduled = typeof RetryScheduled.Type;
|
|
2635
2635
|
export declare namespace Compaction {
|
|
2636
|
+
const Admitted: Schema.Struct<{
|
|
2637
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2638
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
2639
|
+
};
|
|
2640
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2641
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2642
|
+
readonly type: Schema.Literal<"session.compaction.admitted">;
|
|
2643
|
+
readonly durable: Schema.Struct<{
|
|
2644
|
+
readonly aggregateID: Schema.String;
|
|
2645
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2646
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2647
|
+
}>;
|
|
2648
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2649
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2650
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2651
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2652
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2653
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2654
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2655
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2656
|
+
}>, never, never>;
|
|
2657
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2658
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2659
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2660
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2661
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2662
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2663
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2664
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2665
|
+
}>, never, never>;
|
|
2666
|
+
}>>, never, never>;
|
|
2667
|
+
readonly data: Schema.Struct<{
|
|
2668
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2669
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2670
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2671
|
+
};
|
|
2672
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2673
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2674
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2675
|
+
};
|
|
2676
|
+
}>;
|
|
2677
|
+
}> & {
|
|
2678
|
+
type: "session.compaction.admitted";
|
|
2679
|
+
durability: "durable";
|
|
2680
|
+
durable: {
|
|
2681
|
+
readonly version: number;
|
|
2682
|
+
readonly aggregate: string;
|
|
2683
|
+
};
|
|
2684
|
+
data: Schema.Struct<{
|
|
2685
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2686
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2687
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2688
|
+
};
|
|
2689
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2690
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2691
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2692
|
+
};
|
|
2693
|
+
}>;
|
|
2694
|
+
};
|
|
2695
|
+
type Admitted = typeof Admitted.Type;
|
|
2636
2696
|
const Started: Schema.Struct<{
|
|
2637
2697
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2638
2698
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -2791,6 +2851,58 @@ export declare namespace Compaction {
|
|
|
2791
2851
|
}>;
|
|
2792
2852
|
};
|
|
2793
2853
|
type Ended = typeof Ended.Type;
|
|
2854
|
+
const Failed: Schema.Struct<{
|
|
2855
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2856
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
2857
|
+
};
|
|
2858
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2859
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2860
|
+
readonly type: Schema.Literal<"session.compaction.failed">;
|
|
2861
|
+
readonly durable: Schema.Struct<{
|
|
2862
|
+
readonly aggregateID: Schema.String;
|
|
2863
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2864
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2865
|
+
}>;
|
|
2866
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2867
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2868
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2869
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2870
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2871
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2872
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2873
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2874
|
+
}>, never, never>;
|
|
2875
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2876
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2877
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2878
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2879
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2880
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2881
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2882
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2883
|
+
}>, never, never>;
|
|
2884
|
+
}>>, never, never>;
|
|
2885
|
+
readonly data: Schema.Struct<{
|
|
2886
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2887
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2888
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2889
|
+
};
|
|
2890
|
+
}>;
|
|
2891
|
+
}> & {
|
|
2892
|
+
type: "session.compaction.failed";
|
|
2893
|
+
durability: "durable";
|
|
2894
|
+
durable: {
|
|
2895
|
+
readonly version: number;
|
|
2896
|
+
readonly aggregate: string;
|
|
2897
|
+
};
|
|
2898
|
+
data: Schema.Struct<{
|
|
2899
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2900
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2901
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2902
|
+
};
|
|
2903
|
+
}>;
|
|
2904
|
+
};
|
|
2905
|
+
type Failed = typeof Failed.Type;
|
|
2794
2906
|
}
|
|
2795
2907
|
export declare namespace RevertEvent {
|
|
2796
2908
|
const Staged: Schema.Struct<{
|
|
@@ -5533,6 +5645,64 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5533
5645
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5534
5646
|
};
|
|
5535
5647
|
}>;
|
|
5648
|
+
}, Schema.Struct<{
|
|
5649
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5650
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
5651
|
+
};
|
|
5652
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
5653
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5654
|
+
readonly type: Schema.Literal<"session.compaction.admitted">;
|
|
5655
|
+
readonly durable: Schema.Struct<{
|
|
5656
|
+
readonly aggregateID: Schema.String;
|
|
5657
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
5658
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
5659
|
+
}>;
|
|
5660
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5661
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5662
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5663
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5664
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5665
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5666
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5667
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5668
|
+
}>, never, never>;
|
|
5669
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
5670
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5671
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5672
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5673
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5674
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5675
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5676
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5677
|
+
}>, never, never>;
|
|
5678
|
+
}>>, never, never>;
|
|
5679
|
+
readonly data: Schema.Struct<{
|
|
5680
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
5681
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5682
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5683
|
+
};
|
|
5684
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
5685
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5686
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5687
|
+
};
|
|
5688
|
+
}>;
|
|
5689
|
+
}> & {
|
|
5690
|
+
type: "session.compaction.admitted";
|
|
5691
|
+
durability: "durable";
|
|
5692
|
+
durable: {
|
|
5693
|
+
readonly version: number;
|
|
5694
|
+
readonly aggregate: string;
|
|
5695
|
+
};
|
|
5696
|
+
data: Schema.Struct<{
|
|
5697
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
5698
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5699
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5700
|
+
};
|
|
5701
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
5702
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5703
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5704
|
+
};
|
|
5705
|
+
}>;
|
|
5536
5706
|
}, Schema.Struct<{
|
|
5537
5707
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5538
5708
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -5685,6 +5855,56 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5685
5855
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5686
5856
|
};
|
|
5687
5857
|
}>;
|
|
5858
|
+
}, Schema.Struct<{
|
|
5859
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5860
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
5861
|
+
};
|
|
5862
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
5863
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5864
|
+
readonly type: Schema.Literal<"session.compaction.failed">;
|
|
5865
|
+
readonly durable: Schema.Struct<{
|
|
5866
|
+
readonly aggregateID: Schema.String;
|
|
5867
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
5868
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
5869
|
+
}>;
|
|
5870
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5871
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5872
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5873
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5874
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5875
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5876
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5877
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5878
|
+
}>, never, never>;
|
|
5879
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
5880
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5881
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5882
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5883
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5884
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5885
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5886
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5887
|
+
}>, never, never>;
|
|
5888
|
+
}>>, never, never>;
|
|
5889
|
+
readonly data: Schema.Struct<{
|
|
5890
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
5891
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5892
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5893
|
+
};
|
|
5894
|
+
}>;
|
|
5895
|
+
}> & {
|
|
5896
|
+
type: "session.compaction.failed";
|
|
5897
|
+
durability: "durable";
|
|
5898
|
+
durable: {
|
|
5899
|
+
readonly version: number;
|
|
5900
|
+
readonly aggregate: string;
|
|
5901
|
+
};
|
|
5902
|
+
data: Schema.Struct<{
|
|
5903
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
5904
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5905
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5906
|
+
};
|
|
5907
|
+
}>;
|
|
5688
5908
|
}, Schema.Struct<{
|
|
5689
5909
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5690
5910
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -8266,7 +8486,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
|
|
|
8266
8486
|
};
|
|
8267
8487
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8268
8488
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8269
|
-
readonly type: Schema.Literal<"session.compaction.
|
|
8489
|
+
readonly type: Schema.Literal<"session.compaction.admitted">;
|
|
8270
8490
|
readonly durable: Schema.Struct<{
|
|
8271
8491
|
readonly aggregateID: Schema.String;
|
|
8272
8492
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -8292,21 +8512,27 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
|
|
|
8292
8512
|
}>, never, never>;
|
|
8293
8513
|
}>>, never, never>;
|
|
8294
8514
|
readonly data: Schema.Struct<{
|
|
8295
|
-
readonly
|
|
8515
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8516
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8517
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8518
|
+
};
|
|
8296
8519
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8297
8520
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8298
8521
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8299
8522
|
};
|
|
8300
8523
|
}>;
|
|
8301
8524
|
}> & {
|
|
8302
|
-
type: "session.compaction.
|
|
8525
|
+
type: "session.compaction.admitted";
|
|
8303
8526
|
durability: "durable";
|
|
8304
8527
|
durable: {
|
|
8305
8528
|
readonly version: number;
|
|
8306
8529
|
readonly aggregate: string;
|
|
8307
8530
|
};
|
|
8308
8531
|
data: Schema.Struct<{
|
|
8309
|
-
readonly
|
|
8532
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8533
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8534
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8535
|
+
};
|
|
8310
8536
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8311
8537
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8312
8538
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8318,7 +8544,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
|
|
|
8318
8544
|
};
|
|
8319
8545
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8320
8546
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8321
|
-
readonly type: Schema.Literal<"session.compaction.
|
|
8547
|
+
readonly type: Schema.Literal<"session.compaction.started">;
|
|
8322
8548
|
readonly durable: Schema.Struct<{
|
|
8323
8549
|
readonly aggregateID: Schema.String;
|
|
8324
8550
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -8345,15 +8571,13 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
|
|
|
8345
8571
|
}>>, never, never>;
|
|
8346
8572
|
readonly data: Schema.Struct<{
|
|
8347
8573
|
readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
|
|
8348
|
-
readonly text: Schema.String;
|
|
8349
|
-
readonly recent: Schema.String;
|
|
8350
8574
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8351
8575
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8352
8576
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8353
8577
|
};
|
|
8354
8578
|
}>;
|
|
8355
8579
|
}> & {
|
|
8356
|
-
type: "session.compaction.
|
|
8580
|
+
type: "session.compaction.started";
|
|
8357
8581
|
durability: "durable";
|
|
8358
8582
|
durable: {
|
|
8359
8583
|
readonly version: number;
|
|
@@ -8361,8 +8585,6 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
|
|
|
8361
8585
|
};
|
|
8362
8586
|
data: Schema.Struct<{
|
|
8363
8587
|
readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
|
|
8364
|
-
readonly text: Schema.String;
|
|
8365
|
-
readonly recent: Schema.String;
|
|
8366
8588
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8367
8589
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8368
8590
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8374,7 +8596,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
|
|
|
8374
8596
|
};
|
|
8375
8597
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8376
8598
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8377
|
-
readonly type: Schema.Literal<"session.
|
|
8599
|
+
readonly type: Schema.Literal<"session.compaction.ended">;
|
|
8378
8600
|
readonly durable: Schema.Struct<{
|
|
8379
8601
|
readonly aggregateID: Schema.String;
|
|
8380
8602
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -8400,35 +8622,141 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
|
|
|
8400
8622
|
}>, never, never>;
|
|
8401
8623
|
}>>, never, never>;
|
|
8402
8624
|
readonly data: Schema.Struct<{
|
|
8403
|
-
readonly
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8407
|
-
};
|
|
8408
|
-
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
8409
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
8410
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
8411
|
-
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
8412
|
-
readonly path: Schema.brand<Schema.String, "RelativePath">;
|
|
8413
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
8414
|
-
readonly additions: Schema.Int;
|
|
8415
|
-
readonly deletions: Schema.Int;
|
|
8416
|
-
readonly patch: Schema.String;
|
|
8417
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
8418
|
-
readonly path: Schema.brand<Schema.String, "RelativePath">;
|
|
8419
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
8420
|
-
readonly additions: Schema.Int;
|
|
8421
|
-
readonly deletions: Schema.Int;
|
|
8422
|
-
readonly patch: Schema.String;
|
|
8423
|
-
}>>>, never, never>;
|
|
8424
|
-
}>;
|
|
8625
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
|
|
8626
|
+
readonly text: Schema.String;
|
|
8627
|
+
readonly recent: Schema.String;
|
|
8425
8628
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8426
8629
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8427
8630
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8428
8631
|
};
|
|
8429
8632
|
}>;
|
|
8430
8633
|
}> & {
|
|
8431
|
-
type: "session.
|
|
8634
|
+
type: "session.compaction.ended";
|
|
8635
|
+
durability: "durable";
|
|
8636
|
+
durable: {
|
|
8637
|
+
readonly version: number;
|
|
8638
|
+
readonly aggregate: string;
|
|
8639
|
+
};
|
|
8640
|
+
data: Schema.Struct<{
|
|
8641
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
|
|
8642
|
+
readonly text: Schema.String;
|
|
8643
|
+
readonly recent: Schema.String;
|
|
8644
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8645
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8646
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8647
|
+
};
|
|
8648
|
+
}>;
|
|
8649
|
+
}) | (Schema.Struct<{
|
|
8650
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8651
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
8652
|
+
};
|
|
8653
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8654
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8655
|
+
readonly type: Schema.Literal<"session.compaction.failed">;
|
|
8656
|
+
readonly durable: Schema.Struct<{
|
|
8657
|
+
readonly aggregateID: Schema.String;
|
|
8658
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
8659
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
8660
|
+
}>;
|
|
8661
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8662
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8663
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8664
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8665
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8666
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8667
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8668
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8669
|
+
}>, never, never>;
|
|
8670
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8671
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8672
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8673
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8674
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8675
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8676
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8677
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8678
|
+
}>, never, never>;
|
|
8679
|
+
}>>, never, never>;
|
|
8680
|
+
readonly data: Schema.Struct<{
|
|
8681
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8682
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8683
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8684
|
+
};
|
|
8685
|
+
}>;
|
|
8686
|
+
}> & {
|
|
8687
|
+
type: "session.compaction.failed";
|
|
8688
|
+
durability: "durable";
|
|
8689
|
+
durable: {
|
|
8690
|
+
readonly version: number;
|
|
8691
|
+
readonly aggregate: string;
|
|
8692
|
+
};
|
|
8693
|
+
data: Schema.Struct<{
|
|
8694
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8695
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8696
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8697
|
+
};
|
|
8698
|
+
}>;
|
|
8699
|
+
}) | (Schema.Struct<{
|
|
8700
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8701
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
8702
|
+
};
|
|
8703
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8704
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8705
|
+
readonly type: Schema.Literal<"session.revert.staged">;
|
|
8706
|
+
readonly durable: Schema.Struct<{
|
|
8707
|
+
readonly aggregateID: Schema.String;
|
|
8708
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
8709
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
8710
|
+
}>;
|
|
8711
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8712
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8713
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8714
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8715
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8716
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8717
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8718
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8719
|
+
}>, never, never>;
|
|
8720
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8721
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8722
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8723
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8724
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8725
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8726
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8727
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8728
|
+
}>, never, never>;
|
|
8729
|
+
}>>, never, never>;
|
|
8730
|
+
readonly data: Schema.Struct<{
|
|
8731
|
+
readonly revert: Schema.Struct<{
|
|
8732
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8733
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8734
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8735
|
+
};
|
|
8736
|
+
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
8737
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
8738
|
+
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
8739
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
8740
|
+
readonly path: Schema.brand<Schema.String, "RelativePath">;
|
|
8741
|
+
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
8742
|
+
readonly additions: Schema.Int;
|
|
8743
|
+
readonly deletions: Schema.Int;
|
|
8744
|
+
readonly patch: Schema.String;
|
|
8745
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
8746
|
+
readonly path: Schema.brand<Schema.String, "RelativePath">;
|
|
8747
|
+
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
8748
|
+
readonly additions: Schema.Int;
|
|
8749
|
+
readonly deletions: Schema.Int;
|
|
8750
|
+
readonly patch: Schema.String;
|
|
8751
|
+
}>>>, never, never>;
|
|
8752
|
+
}>;
|
|
8753
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8754
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8755
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8756
|
+
};
|
|
8757
|
+
}>;
|
|
8758
|
+
}> & {
|
|
8759
|
+
type: "session.revert.staged";
|
|
8432
8760
|
durability: "durable";
|
|
8433
8761
|
durable: {
|
|
8434
8762
|
readonly version: number;
|
|
@@ -10943,6 +11271,64 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
|
|
|
10943
11271
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
10944
11272
|
};
|
|
10945
11273
|
}>;
|
|
11274
|
+
}) | (Schema.Struct<{
|
|
11275
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
11276
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
11277
|
+
};
|
|
11278
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
11279
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11280
|
+
readonly type: Schema.Literal<"session.compaction.admitted">;
|
|
11281
|
+
readonly durable: Schema.Struct<{
|
|
11282
|
+
readonly aggregateID: Schema.String;
|
|
11283
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
11284
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
11285
|
+
}>;
|
|
11286
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11287
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11288
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11289
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11290
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11291
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11292
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11293
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11294
|
+
}>, never, never>;
|
|
11295
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11296
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11297
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11298
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11299
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11300
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11301
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11302
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11303
|
+
}>, never, never>;
|
|
11304
|
+
}>>, never, never>;
|
|
11305
|
+
readonly data: Schema.Struct<{
|
|
11306
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
11307
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11308
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11309
|
+
};
|
|
11310
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11311
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11312
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11313
|
+
};
|
|
11314
|
+
}>;
|
|
11315
|
+
}> & {
|
|
11316
|
+
type: "session.compaction.admitted";
|
|
11317
|
+
durability: "durable";
|
|
11318
|
+
durable: {
|
|
11319
|
+
readonly version: number;
|
|
11320
|
+
readonly aggregate: string;
|
|
11321
|
+
};
|
|
11322
|
+
data: Schema.Struct<{
|
|
11323
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
11324
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11325
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11326
|
+
};
|
|
11327
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11328
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11329
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11330
|
+
};
|
|
11331
|
+
}>;
|
|
10946
11332
|
}) | (Schema.Struct<{
|
|
10947
11333
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
10948
11334
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -11051,6 +11437,56 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
|
|
|
11051
11437
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11052
11438
|
};
|
|
11053
11439
|
}>;
|
|
11440
|
+
}) | (Schema.Struct<{
|
|
11441
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
11442
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
11443
|
+
};
|
|
11444
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
11445
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11446
|
+
readonly type: Schema.Literal<"session.compaction.failed">;
|
|
11447
|
+
readonly durable: Schema.Struct<{
|
|
11448
|
+
readonly aggregateID: Schema.String;
|
|
11449
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
11450
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
11451
|
+
}>;
|
|
11452
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11453
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11454
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11455
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11456
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11457
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11458
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11459
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11460
|
+
}>, never, never>;
|
|
11461
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11462
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11463
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11464
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11465
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11466
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11467
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11468
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11469
|
+
}>, never, never>;
|
|
11470
|
+
}>>, never, never>;
|
|
11471
|
+
readonly data: Schema.Struct<{
|
|
11472
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11473
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11474
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11475
|
+
};
|
|
11476
|
+
}>;
|
|
11477
|
+
}> & {
|
|
11478
|
+
type: "session.compaction.failed";
|
|
11479
|
+
durability: "durable";
|
|
11480
|
+
durable: {
|
|
11481
|
+
readonly version: number;
|
|
11482
|
+
readonly aggregate: string;
|
|
11483
|
+
};
|
|
11484
|
+
data: Schema.Struct<{
|
|
11485
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11486
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11487
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11488
|
+
};
|
|
11489
|
+
}>;
|
|
11054
11490
|
}) | (Schema.Struct<{
|
|
11055
11491
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
11056
11492
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -13789,6 +14225,64 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
13789
14225
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
13790
14226
|
};
|
|
13791
14227
|
}>;
|
|
14228
|
+
}, Schema.Struct<{
|
|
14229
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
14230
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
14231
|
+
};
|
|
14232
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
14233
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14234
|
+
readonly type: Schema.Literal<"session.compaction.admitted">;
|
|
14235
|
+
readonly durable: Schema.Struct<{
|
|
14236
|
+
readonly aggregateID: Schema.String;
|
|
14237
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
14238
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
14239
|
+
}>;
|
|
14240
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
14241
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
14242
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
14243
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14244
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14245
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
14246
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14247
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14248
|
+
}>, never, never>;
|
|
14249
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
14250
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
14251
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
14252
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14253
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14254
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
14255
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14256
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14257
|
+
}>, never, never>;
|
|
14258
|
+
}>>, never, never>;
|
|
14259
|
+
readonly data: Schema.Struct<{
|
|
14260
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
14261
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14262
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14263
|
+
};
|
|
14264
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
14265
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
14266
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
14267
|
+
};
|
|
14268
|
+
}>;
|
|
14269
|
+
}> & {
|
|
14270
|
+
type: "session.compaction.admitted";
|
|
14271
|
+
durability: "durable";
|
|
14272
|
+
durable: {
|
|
14273
|
+
readonly version: number;
|
|
14274
|
+
readonly aggregate: string;
|
|
14275
|
+
};
|
|
14276
|
+
data: Schema.Struct<{
|
|
14277
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
14278
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14279
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14280
|
+
};
|
|
14281
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
14282
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
14283
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
14284
|
+
};
|
|
14285
|
+
}>;
|
|
13792
14286
|
}, Schema.Struct<{
|
|
13793
14287
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
13794
14288
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -13941,6 +14435,56 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
13941
14435
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
13942
14436
|
};
|
|
13943
14437
|
}>;
|
|
14438
|
+
}, Schema.Struct<{
|
|
14439
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
14440
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
14441
|
+
};
|
|
14442
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
14443
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14444
|
+
readonly type: Schema.Literal<"session.compaction.failed">;
|
|
14445
|
+
readonly durable: Schema.Struct<{
|
|
14446
|
+
readonly aggregateID: Schema.String;
|
|
14447
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
14448
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
14449
|
+
}>;
|
|
14450
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
14451
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
14452
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
14453
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14454
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14455
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
14456
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14457
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14458
|
+
}>, never, never>;
|
|
14459
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
14460
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
14461
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
14462
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14463
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14464
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
14465
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14466
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14467
|
+
}>, never, never>;
|
|
14468
|
+
}>>, never, never>;
|
|
14469
|
+
readonly data: Schema.Struct<{
|
|
14470
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
14471
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
14472
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
14473
|
+
};
|
|
14474
|
+
}>;
|
|
14475
|
+
}> & {
|
|
14476
|
+
type: "session.compaction.failed";
|
|
14477
|
+
durability: "durable";
|
|
14478
|
+
durable: {
|
|
14479
|
+
readonly version: number;
|
|
14480
|
+
readonly aggregate: string;
|
|
14481
|
+
};
|
|
14482
|
+
data: Schema.Struct<{
|
|
14483
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
14484
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
14485
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
14486
|
+
};
|
|
14487
|
+
}>;
|
|
13944
14488
|
}, Schema.Struct<{
|
|
13945
14489
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
13946
14490
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|