@opencode/schema 0.0.0-dev-21173 → 0.0.0-dev-21176

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.
@@ -1012,6 +1012,106 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
1012
1012
  };
1013
1013
  readonly idle: Schema.Finite;
1014
1014
  }>;
1015
+ }, Schema.Struct<{
1016
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
1017
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
1018
+ };
1019
+ readonly created: Schema.Finite;
1020
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1021
+ readonly type: Schema.Literal<"session.archived">;
1022
+ readonly durable: Schema.Struct<{
1023
+ readonly aggregateID: Schema.String;
1024
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1025
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1026
+ }>;
1027
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1028
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
1029
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
1030
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1031
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1032
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
1033
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1034
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1035
+ }>, never, never>;
1036
+ }>>>, Schema.optionalKey<Schema.Struct<{
1037
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
1038
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
1039
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1040
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1041
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
1042
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1043
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1044
+ }>, never, never>;
1045
+ }>>, never, never>;
1046
+ readonly data: Schema.Struct<{
1047
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
1048
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1049
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1050
+ };
1051
+ }>;
1052
+ }> & {
1053
+ type: "session.archived";
1054
+ durability: "durable";
1055
+ durable: {
1056
+ readonly version: number;
1057
+ readonly aggregate: string;
1058
+ };
1059
+ data: Schema.Struct<{
1060
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
1061
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1062
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1063
+ };
1064
+ }>;
1065
+ }, Schema.Struct<{
1066
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
1067
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
1068
+ };
1069
+ readonly created: Schema.Finite;
1070
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1071
+ readonly type: Schema.Literal<"session.unarchived">;
1072
+ readonly durable: Schema.Struct<{
1073
+ readonly aggregateID: Schema.String;
1074
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1075
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1076
+ }>;
1077
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1078
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
1079
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
1080
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1081
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1082
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
1083
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1084
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1085
+ }>, never, never>;
1086
+ }>>>, Schema.optionalKey<Schema.Struct<{
1087
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
1088
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
1089
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1090
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1091
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
1092
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1093
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1094
+ }>, never, never>;
1095
+ }>>, never, never>;
1096
+ readonly data: Schema.Struct<{
1097
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
1098
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1099
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1100
+ };
1101
+ }>;
1102
+ }> & {
1103
+ type: "session.unarchived";
1104
+ durability: "durable";
1105
+ durable: {
1106
+ readonly version: number;
1107
+ readonly aggregate: string;
1108
+ };
1109
+ data: Schema.Struct<{
1110
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
1111
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1112
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1113
+ };
1114
+ }>;
1015
1115
  }, Schema.Struct<{
1016
1116
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
1017
1117
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -7350,6 +7450,106 @@ export declare const Definitions: readonly [Schema.Struct<{
7350
7450
  };
7351
7451
  readonly idle: Schema.Finite;
7352
7452
  }>;
7453
+ }, Schema.Struct<{
7454
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
7455
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
7456
+ };
7457
+ readonly created: Schema.Finite;
7458
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
7459
+ readonly type: Schema.Literal<"session.archived">;
7460
+ readonly durable: Schema.Struct<{
7461
+ readonly aggregateID: Schema.String;
7462
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7463
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7464
+ }>;
7465
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7466
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
7467
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
7468
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
7469
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
7470
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
7471
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
7472
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
7473
+ }>, never, never>;
7474
+ }>>>, Schema.optionalKey<Schema.Struct<{
7475
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
7476
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
7477
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
7478
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
7479
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
7480
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
7481
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
7482
+ }>, never, never>;
7483
+ }>>, never, never>;
7484
+ readonly data: Schema.Struct<{
7485
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
7486
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
7487
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7488
+ };
7489
+ }>;
7490
+ }> & {
7491
+ type: "session.archived";
7492
+ durability: "durable";
7493
+ durable: {
7494
+ readonly version: number;
7495
+ readonly aggregate: string;
7496
+ };
7497
+ data: Schema.Struct<{
7498
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
7499
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
7500
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7501
+ };
7502
+ }>;
7503
+ }, Schema.Struct<{
7504
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
7505
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
7506
+ };
7507
+ readonly created: Schema.Finite;
7508
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
7509
+ readonly type: Schema.Literal<"session.unarchived">;
7510
+ readonly durable: Schema.Struct<{
7511
+ readonly aggregateID: Schema.String;
7512
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7513
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7514
+ }>;
7515
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7516
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
7517
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
7518
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
7519
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
7520
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
7521
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
7522
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
7523
+ }>, never, never>;
7524
+ }>>>, Schema.optionalKey<Schema.Struct<{
7525
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
7526
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
7527
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
7528
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
7529
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
7530
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
7531
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
7532
+ }>, never, never>;
7533
+ }>>, never, never>;
7534
+ readonly data: Schema.Struct<{
7535
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
7536
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
7537
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7538
+ };
7539
+ }>;
7540
+ }> & {
7541
+ type: "session.unarchived";
7542
+ durability: "durable";
7543
+ durable: {
7544
+ readonly version: number;
7545
+ readonly aggregate: string;
7546
+ };
7547
+ data: Schema.Struct<{
7548
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
7549
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
7550
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7551
+ };
7552
+ }>;
7353
7553
  }, Schema.Struct<{
7354
7554
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
7355
7555
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -772,6 +772,110 @@ export declare const Viewed: Schema.Struct<{
772
772
  }>;
773
773
  };
774
774
  export type Viewed = typeof Viewed.Type;
775
+ export declare const Archived: Schema.Struct<{
776
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
777
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
778
+ };
779
+ readonly created: Schema.Finite;
780
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
781
+ readonly type: Schema.Literal<"session.archived">;
782
+ readonly durable: Schema.Struct<{
783
+ readonly aggregateID: Schema.String;
784
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
785
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
786
+ }>;
787
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
788
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
789
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
790
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
791
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
792
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
793
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
794
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
795
+ }>, never, never>;
796
+ }>>>, Schema.optionalKey<Schema.Struct<{
797
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
798
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
799
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
800
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
801
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
802
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
803
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
804
+ }>, never, never>;
805
+ }>>, never, never>;
806
+ readonly data: Schema.Struct<{
807
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
808
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
809
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
810
+ };
811
+ }>;
812
+ }> & {
813
+ type: "session.archived";
814
+ durability: "durable";
815
+ durable: {
816
+ readonly version: number;
817
+ readonly aggregate: string;
818
+ };
819
+ data: Schema.Struct<{
820
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
821
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
822
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
823
+ };
824
+ }>;
825
+ };
826
+ export type Archived = typeof Archived.Type;
827
+ export declare const Unarchived: Schema.Struct<{
828
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
829
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
830
+ };
831
+ readonly created: Schema.Finite;
832
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
833
+ readonly type: Schema.Literal<"session.unarchived">;
834
+ readonly durable: Schema.Struct<{
835
+ readonly aggregateID: Schema.String;
836
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
837
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
838
+ }>;
839
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
840
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
841
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
842
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
843
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
844
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
845
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
846
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
847
+ }>, never, never>;
848
+ }>>>, Schema.optionalKey<Schema.Struct<{
849
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
850
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
851
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
852
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
853
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
854
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
855
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
856
+ }>, never, never>;
857
+ }>>, never, never>;
858
+ readonly data: Schema.Struct<{
859
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
860
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
861
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
862
+ };
863
+ }>;
864
+ }> & {
865
+ type: "session.unarchived";
866
+ durability: "durable";
867
+ durable: {
868
+ readonly version: number;
869
+ readonly aggregate: string;
870
+ };
871
+ data: Schema.Struct<{
872
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
873
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
874
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
875
+ };
876
+ }>;
877
+ };
878
+ export type Unarchived = typeof Unarchived.Type;
775
879
  export declare const MessageContentUpdated: Schema.Struct<{
776
880
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
777
881
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -5359,6 +5463,106 @@ export declare const Definitions: readonly [Schema.Struct<{
5359
5463
  /** Epoch-millisecond idle watermark the viewer observed; projection never marks a newer idle transition viewed. */
5360
5464
  readonly idle: Schema.Finite;
5361
5465
  }>;
5466
+ }, Schema.Struct<{
5467
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
5468
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
5469
+ };
5470
+ readonly created: Schema.Finite;
5471
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
5472
+ readonly type: Schema.Literal<"session.archived">;
5473
+ readonly durable: Schema.Struct<{
5474
+ readonly aggregateID: Schema.String;
5475
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5476
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5477
+ }>;
5478
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5479
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
5480
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
5481
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5482
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5483
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
5484
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5485
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5486
+ }>, never, never>;
5487
+ }>>>, Schema.optionalKey<Schema.Struct<{
5488
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
5489
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
5490
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5491
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5492
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
5493
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5494
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5495
+ }>, never, never>;
5496
+ }>>, never, never>;
5497
+ readonly data: Schema.Struct<{
5498
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
5499
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
5500
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5501
+ };
5502
+ }>;
5503
+ }> & {
5504
+ type: "session.archived";
5505
+ durability: "durable";
5506
+ durable: {
5507
+ readonly version: number;
5508
+ readonly aggregate: string;
5509
+ };
5510
+ data: Schema.Struct<{
5511
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
5512
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
5513
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5514
+ };
5515
+ }>;
5516
+ }, Schema.Struct<{
5517
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
5518
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
5519
+ };
5520
+ readonly created: Schema.Finite;
5521
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
5522
+ readonly type: Schema.Literal<"session.unarchived">;
5523
+ readonly durable: Schema.Struct<{
5524
+ readonly aggregateID: Schema.String;
5525
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5526
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5527
+ }>;
5528
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5529
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
5530
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
5531
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5532
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5533
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
5534
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5535
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5536
+ }>, never, never>;
5537
+ }>>>, Schema.optionalKey<Schema.Struct<{
5538
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
5539
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
5540
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5541
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5542
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
5543
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5544
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5545
+ }>, never, never>;
5546
+ }>>, never, never>;
5547
+ readonly data: Schema.Struct<{
5548
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
5549
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
5550
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5551
+ };
5552
+ }>;
5553
+ }> & {
5554
+ type: "session.unarchived";
5555
+ durability: "durable";
5556
+ durable: {
5557
+ readonly version: number;
5558
+ readonly aggregate: string;
5559
+ };
5560
+ data: Schema.Struct<{
5561
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
5562
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
5563
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5564
+ };
5565
+ }>;
5362
5566
  }, Schema.Struct<{
5363
5567
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
5364
5568
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -8848,6 +9052,56 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
8848
9052
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
8849
9053
  readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
8850
9054
  }>;
9055
+ }) | (Schema.Struct<{
9056
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
9057
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
9058
+ };
9059
+ readonly created: Schema.Finite;
9060
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
9061
+ readonly type: Schema.Literal<"session.archived">;
9062
+ readonly durable: Schema.Struct<{
9063
+ readonly aggregateID: Schema.String;
9064
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9065
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9066
+ }>;
9067
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9068
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
9069
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
9070
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
9071
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
9072
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
9073
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
9074
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
9075
+ }>, never, never>;
9076
+ }>>>, Schema.optionalKey<Schema.Struct<{
9077
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
9078
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
9079
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
9080
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
9081
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
9082
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
9083
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
9084
+ }>, never, never>;
9085
+ }>>, never, never>;
9086
+ readonly data: Schema.Struct<{
9087
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
9088
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
9089
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
9090
+ };
9091
+ }>;
9092
+ }> & {
9093
+ type: "session.archived";
9094
+ durability: "durable";
9095
+ durable: {
9096
+ readonly version: number;
9097
+ readonly aggregate: string;
9098
+ };
9099
+ data: Schema.Struct<{
9100
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
9101
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
9102
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
9103
+ };
9104
+ }>;
8851
9105
  }) | (Schema.Struct<{
8852
9106
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
8853
9107
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -12596,6 +12850,56 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
12596
12850
  readonly executed: Schema.Boolean;
12597
12851
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12598
12852
  }>;
12853
+ }) | (Schema.Struct<{
12854
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
12855
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
12856
+ };
12857
+ readonly created: Schema.Finite;
12858
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12859
+ readonly type: Schema.Literal<"session.unarchived">;
12860
+ readonly durable: Schema.Struct<{
12861
+ readonly aggregateID: Schema.String;
12862
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12863
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12864
+ }>;
12865
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12866
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
12867
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
12868
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
12869
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
12870
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
12871
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
12872
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
12873
+ }>, never, never>;
12874
+ }>>>, Schema.optionalKey<Schema.Struct<{
12875
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
12876
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
12877
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
12878
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
12879
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
12880
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
12881
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
12882
+ }>, never, never>;
12883
+ }>>, never, never>;
12884
+ readonly data: Schema.Struct<{
12885
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
12886
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
12887
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
12888
+ };
12889
+ }>;
12890
+ }> & {
12891
+ type: "session.unarchived";
12892
+ durability: "durable";
12893
+ durable: {
12894
+ readonly version: number;
12895
+ readonly aggregate: string;
12896
+ };
12897
+ data: Schema.Struct<{
12898
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
12899
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
12900
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
12901
+ };
12902
+ }>;
12599
12903
  }) | (Schema.Struct<{
12600
12904
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
12601
12905
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -13326,6 +13630,56 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
13326
13630
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
13327
13631
  readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
13328
13632
  }>;
13633
+ }) | (Schema.Struct<{
13634
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
13635
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
13636
+ };
13637
+ readonly created: Schema.Finite;
13638
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
13639
+ readonly type: Schema.Literal<"session.archived">;
13640
+ readonly durable: Schema.Struct<{
13641
+ readonly aggregateID: Schema.String;
13642
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13643
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13644
+ }>;
13645
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13646
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
13647
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
13648
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
13649
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
13650
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
13651
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
13652
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
13653
+ }>, never, never>;
13654
+ }>>>, Schema.optionalKey<Schema.Struct<{
13655
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
13656
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
13657
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
13658
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
13659
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
13660
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
13661
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
13662
+ }>, never, never>;
13663
+ }>>, never, never>;
13664
+ readonly data: Schema.Struct<{
13665
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
13666
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
13667
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
13668
+ };
13669
+ }>;
13670
+ }> & {
13671
+ type: "session.archived";
13672
+ durability: "durable";
13673
+ durable: {
13674
+ readonly version: number;
13675
+ readonly aggregate: string;
13676
+ };
13677
+ data: Schema.Struct<{
13678
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
13679
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
13680
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
13681
+ };
13682
+ }>;
13329
13683
  }) | (Schema.Struct<{
13330
13684
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
13331
13685
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -17074,6 +17428,56 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
17074
17428
  readonly executed: Schema.Boolean;
17075
17429
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
17076
17430
  }>;
17431
+ }) | (Schema.Struct<{
17432
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
17433
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
17434
+ };
17435
+ readonly created: Schema.Finite;
17436
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
17437
+ readonly type: Schema.Literal<"session.unarchived">;
17438
+ readonly durable: Schema.Struct<{
17439
+ readonly aggregateID: Schema.String;
17440
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
17441
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
17442
+ }>;
17443
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
17444
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
17445
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
17446
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
17447
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
17448
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
17449
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
17450
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
17451
+ }>, never, never>;
17452
+ }>>>, Schema.optionalKey<Schema.Struct<{
17453
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
17454
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
17455
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
17456
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
17457
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
17458
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
17459
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
17460
+ }>, never, never>;
17461
+ }>>, never, never>;
17462
+ readonly data: Schema.Struct<{
17463
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
17464
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
17465
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
17466
+ };
17467
+ }>;
17468
+ }> & {
17469
+ type: "session.unarchived";
17470
+ durability: "durable";
17471
+ durable: {
17472
+ readonly version: number;
17473
+ readonly aggregate: string;
17474
+ };
17475
+ data: Schema.Struct<{
17476
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
17477
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
17478
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
17479
+ };
17480
+ }>;
17077
17481
  }) | (Schema.Struct<{
17078
17482
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
17079
17483
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -17478,6 +17882,56 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
17478
17882
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
17479
17883
  readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
17480
17884
  }>;
17885
+ }) | (Schema.Struct<{
17886
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
17887
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
17888
+ };
17889
+ readonly created: Schema.Finite;
17890
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
17891
+ readonly type: Schema.Literal<"session.archived">;
17892
+ readonly durable: Schema.Struct<{
17893
+ readonly aggregateID: Schema.String;
17894
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
17895
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
17896
+ }>;
17897
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
17898
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
17899
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
17900
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
17901
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
17902
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
17903
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
17904
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
17905
+ }>, never, never>;
17906
+ }>>>, Schema.optionalKey<Schema.Struct<{
17907
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
17908
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
17909
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
17910
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
17911
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
17912
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
17913
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
17914
+ }>, never, never>;
17915
+ }>>, never, never>;
17916
+ readonly data: Schema.Struct<{
17917
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
17918
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
17919
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
17920
+ };
17921
+ }>;
17922
+ }> & {
17923
+ type: "session.archived";
17924
+ durability: "durable";
17925
+ durable: {
17926
+ readonly version: number;
17927
+ readonly aggregate: string;
17928
+ };
17929
+ data: Schema.Struct<{
17930
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
17931
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
17932
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
17933
+ };
17934
+ }>;
17481
17935
  }) | (Schema.Struct<{
17482
17936
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
17483
17937
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -21226,6 +21680,56 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
21226
21680
  readonly executed: Schema.Boolean;
21227
21681
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
21228
21682
  }>;
21683
+ }) | (Schema.Struct<{
21684
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
21685
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
21686
+ };
21687
+ readonly created: Schema.Finite;
21688
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
21689
+ readonly type: Schema.Literal<"session.unarchived">;
21690
+ readonly durable: Schema.Struct<{
21691
+ readonly aggregateID: Schema.String;
21692
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
21693
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
21694
+ }>;
21695
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
21696
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
21697
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
21698
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
21699
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
21700
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
21701
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
21702
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
21703
+ }>, never, never>;
21704
+ }>>>, Schema.optionalKey<Schema.Struct<{
21705
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
21706
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
21707
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
21708
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
21709
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
21710
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
21711
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
21712
+ }>, never, never>;
21713
+ }>>, never, never>;
21714
+ readonly data: Schema.Struct<{
21715
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
21716
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
21717
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
21718
+ };
21719
+ }>;
21720
+ }> & {
21721
+ type: "session.unarchived";
21722
+ durability: "durable";
21723
+ durable: {
21724
+ readonly version: number;
21725
+ readonly aggregate: string;
21726
+ };
21727
+ data: Schema.Struct<{
21728
+ sessionID: Schema.brand<Schema.String, "SessionID"> & {
21729
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
21730
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
21731
+ };
21732
+ }>;
21229
21733
  }) | (Schema.Struct<{
21230
21734
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
21231
21735
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -118,6 +118,16 @@ export const Viewed = Event.durable({
118
118
  idle: Schema.Finite,
119
119
  },
120
120
  });
121
+ export const Archived = Event.durable({
122
+ type: "session.archived",
123
+ ...options,
124
+ schema: Base,
125
+ });
126
+ export const Unarchived = Event.durable({
127
+ type: "session.unarchived",
128
+ ...options,
129
+ schema: Base,
130
+ });
121
131
  // Replay-only: older releases allowed replacing completed assistant content.
122
132
  export const MessageContentUpdated = Event.durable({
123
133
  type: "session.message.content.updated",
@@ -555,7 +565,7 @@ export var RevertEvent;
555
565
  schema: { ...Base, to: SessionMessage.ID },
556
566
  });
557
567
  })(RevertEvent || (RevertEvent = {}));
558
- export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected, Moved, Renamed, MetadataUpdated, Permissions, Viewed, UsageUpdated, Deleted, Forked, InboxDelivered, InboxEnqueued, InboxCancelled, InboxDeliveryChanged, Execution.Started, Execution.Succeeded, Execution.Failed, Execution.Interrupted, InstructionsUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Streamed, Step.Ended, Step.Failed, Text.Started, Text.Delta, Text.Ended, Reasoning.Started, Reasoning.Delta, Reasoning.Ended, Tool.Input.Started, Tool.Input.Delta, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, RetryScheduled, Compaction.Started, Compaction.Delta, Compaction.Ended, Compaction.Failed, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed);
568
+ export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected, Moved, Renamed, MetadataUpdated, Permissions, Viewed, Archived, Unarchived, UsageUpdated, Deleted, Forked, InboxDelivered, InboxEnqueued, InboxCancelled, InboxDeliveryChanged, Execution.Started, Execution.Succeeded, Execution.Failed, Execution.Interrupted, InstructionsUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Streamed, Step.Ended, Step.Failed, Text.Started, Text.Delta, Text.Ended, Reasoning.Started, Reasoning.Delta, Reasoning.Ended, Tool.Input.Started, Tool.Input.Delta, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, RetryScheduled, Compaction.Started, Compaction.Delta, Compaction.Ended, Compaction.Failed, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed);
559
569
  // Internal and replay-only events are excluded from the public manifest.
560
570
  export const DurableDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "durable"), UsageRecorded, MessageContentUpdated);
561
571
  export const EphemeralDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "ephemeral"));
package/dist/session.d.ts CHANGED
@@ -231,6 +231,7 @@ export declare const ListFilter: Schema.Struct<{
231
231
  create: () => string & import("effect/Brand").Brand<"SessionID">;
232
232
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
233
233
  }, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
234
+ readonly archived: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
234
235
  readonly directory: Schema.optional<Schema.brand<Schema.String, "AbsolutePath">>;
235
236
  readonly project: Schema.optional<Schema.brand<Schema.String, "Project.ID"> & {
236
237
  global: string & import("effect/Brand").Brand<"Project.ID">;
@@ -246,6 +247,7 @@ declare const ListCursorInput: Schema.Union<readonly [Schema.Struct<{
246
247
  create: () => string & import("effect/Brand").Brand<"SessionID">;
247
248
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
248
249
  }, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
250
+ readonly archived: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
249
251
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
250
252
  readonly anchor: Schema.Struct<{
251
253
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
@@ -262,6 +264,7 @@ declare const ListCursorInput: Schema.Union<readonly [Schema.Struct<{
262
264
  create: () => string & import("effect/Brand").Brand<"SessionID">;
263
265
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
264
266
  }, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
267
+ readonly archived: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
265
268
  readonly project: Schema.brand<Schema.String, "Project.ID"> & {
266
269
  global: string & import("effect/Brand").Brand<"Project.ID">;
267
270
  };
@@ -281,6 +284,7 @@ declare const ListCursorInput: Schema.Union<readonly [Schema.Struct<{
281
284
  create: () => string & import("effect/Brand").Brand<"SessionID">;
282
285
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
283
286
  }, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
287
+ readonly archived: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
284
288
  readonly anchor: Schema.Struct<{
285
289
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
286
290
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -296,6 +300,7 @@ export declare const ListCursor: Schema.brand<Schema.String, "SessionsCursor"> &
296
300
  readonly order?: "asc" | "desc" | undefined;
297
301
  readonly search?: string | undefined;
298
302
  readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | null | undefined;
303
+ readonly archived?: boolean | undefined;
299
304
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
300
305
  readonly anchor: {
301
306
  readonly id: string & import("effect/Brand").Brand<"SessionID">;
@@ -306,6 +311,7 @@ export declare const ListCursor: Schema.brand<Schema.String, "SessionsCursor"> &
306
311
  readonly order?: "asc" | "desc" | undefined;
307
312
  readonly search?: string | undefined;
308
313
  readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | null | undefined;
314
+ readonly archived?: boolean | undefined;
309
315
  readonly project: string & import("effect/Brand").Brand<"Project.ID">;
310
316
  readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
311
317
  readonly anchor: {
@@ -317,6 +323,7 @@ export declare const ListCursor: Schema.brand<Schema.String, "SessionsCursor"> &
317
323
  readonly order?: "asc" | "desc" | undefined;
318
324
  readonly search?: string | undefined;
319
325
  readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | null | undefined;
326
+ readonly archived?: boolean | undefined;
320
327
  readonly anchor: {
321
328
  readonly id: string & import("effect/Brand").Brand<"SessionID">;
322
329
  readonly time: number;
package/dist/session.js CHANGED
@@ -69,6 +69,15 @@ const ListFilterFields = {
69
69
  ])
70
70
  .annotate({ description: "Filter by parent session. Use null to return only root sessions." })
71
71
  .pipe(Schema.optional),
72
+ archived: Schema.Literals(["true", "false"])
73
+ .pipe(Schema.decodeTo(Schema.Boolean, {
74
+ decode: SchemaGetter.transform((value) => value === "true"),
75
+ encode: SchemaGetter.transform((value) => (value ? "true" : "false")),
76
+ }))
77
+ .annotate({
78
+ description: "Filter by archive state. Use true to return only archived sessions or false to exclude them. Omit to include both.",
79
+ })
80
+ .pipe(Schema.optional),
72
81
  };
73
82
  export const ListFilter = Schema.Struct({
74
83
  ...ListFilterFields,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/schema",
4
- "version": "0.0.0-dev-21173",
4
+ "version": "0.0.0-dev-21176",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {