@opencode/schema 0.0.0-dev-20011 → 0.0.0-dev-20013
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/event-manifest.d.ts +104 -0
- package/dist/session-event.d.ts +262 -0
- package/dist/session-event.js +9 -1
- package/dist/session-metadata.d.ts +3 -3
- package/dist/session-metadata.js +3 -3
- package/package.json +1 -1
package/dist/event-manifest.d.ts
CHANGED
|
@@ -849,6 +849,58 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
849
849
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
850
850
|
};
|
|
851
851
|
}>;
|
|
852
|
+
}, Schema.Struct<{
|
|
853
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
854
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
855
|
+
};
|
|
856
|
+
readonly created: Schema.Finite;
|
|
857
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
858
|
+
readonly type: Schema.Literal<"session.metadata.updated">;
|
|
859
|
+
readonly durable: Schema.Struct<{
|
|
860
|
+
readonly aggregateID: Schema.String;
|
|
861
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
862
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
863
|
+
}>;
|
|
864
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
865
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
866
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
867
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
868
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
869
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
870
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
871
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
872
|
+
}>, never, never>;
|
|
873
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
874
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
875
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
876
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
877
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
878
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
879
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
880
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
881
|
+
}>, never, never>;
|
|
882
|
+
}>>, never, never>;
|
|
883
|
+
readonly data: Schema.Struct<{
|
|
884
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
885
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
886
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
887
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
888
|
+
};
|
|
889
|
+
}>;
|
|
890
|
+
}> & {
|
|
891
|
+
type: "session.metadata.updated";
|
|
892
|
+
durability: "durable";
|
|
893
|
+
durable: {
|
|
894
|
+
readonly version: number;
|
|
895
|
+
readonly aggregate: string;
|
|
896
|
+
};
|
|
897
|
+
data: Schema.Struct<{
|
|
898
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
899
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
900
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
901
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
902
|
+
};
|
|
903
|
+
}>;
|
|
852
904
|
}, Schema.Struct<{
|
|
853
905
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
854
906
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -7075,6 +7127,58 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7075
7127
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
7076
7128
|
};
|
|
7077
7129
|
}>;
|
|
7130
|
+
}, Schema.Struct<{
|
|
7131
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
7132
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
7133
|
+
};
|
|
7134
|
+
readonly created: Schema.Finite;
|
|
7135
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7136
|
+
readonly type: Schema.Literal<"session.metadata.updated">;
|
|
7137
|
+
readonly durable: Schema.Struct<{
|
|
7138
|
+
readonly aggregateID: Schema.String;
|
|
7139
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
7140
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
7141
|
+
}>;
|
|
7142
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7143
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
7144
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
7145
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7146
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7147
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
7148
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7149
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7150
|
+
}>, never, never>;
|
|
7151
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7152
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
7153
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
7154
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7155
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7156
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
7157
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7158
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7159
|
+
}>, never, never>;
|
|
7160
|
+
}>>, never, never>;
|
|
7161
|
+
readonly data: Schema.Struct<{
|
|
7162
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
7163
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7164
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
7165
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
7166
|
+
};
|
|
7167
|
+
}>;
|
|
7168
|
+
}> & {
|
|
7169
|
+
type: "session.metadata.updated";
|
|
7170
|
+
durability: "durable";
|
|
7171
|
+
durable: {
|
|
7172
|
+
readonly version: number;
|
|
7173
|
+
readonly aggregate: string;
|
|
7174
|
+
};
|
|
7175
|
+
data: Schema.Struct<{
|
|
7176
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
7177
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7178
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
7179
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
7180
|
+
};
|
|
7181
|
+
}>;
|
|
7078
7182
|
}, Schema.Struct<{
|
|
7079
7183
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
7080
7184
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/session-event.d.ts
CHANGED
|
@@ -602,6 +602,60 @@ export declare const Renamed: Schema.Struct<{
|
|
|
602
602
|
}>;
|
|
603
603
|
};
|
|
604
604
|
export type Renamed = typeof Renamed.Type;
|
|
605
|
+
export declare const MetadataUpdated: Schema.Struct<{
|
|
606
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
607
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
608
|
+
};
|
|
609
|
+
readonly created: Schema.Finite;
|
|
610
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
611
|
+
readonly type: Schema.Literal<"session.metadata.updated">;
|
|
612
|
+
readonly durable: Schema.Struct<{
|
|
613
|
+
readonly aggregateID: Schema.String;
|
|
614
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
615
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
616
|
+
}>;
|
|
617
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
618
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
619
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
620
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
621
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
622
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
623
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
624
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
625
|
+
}>, never, never>;
|
|
626
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
627
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
628
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
629
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
630
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
631
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
632
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
633
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
634
|
+
}>, never, never>;
|
|
635
|
+
}>>, never, never>;
|
|
636
|
+
readonly data: Schema.Struct<{
|
|
637
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
638
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
639
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
640
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
641
|
+
};
|
|
642
|
+
}>;
|
|
643
|
+
}> & {
|
|
644
|
+
type: "session.metadata.updated";
|
|
645
|
+
durability: "durable";
|
|
646
|
+
durable: {
|
|
647
|
+
readonly version: number;
|
|
648
|
+
readonly aggregate: string;
|
|
649
|
+
};
|
|
650
|
+
data: Schema.Struct<{
|
|
651
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
652
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
653
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
654
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
655
|
+
};
|
|
656
|
+
}>;
|
|
657
|
+
};
|
|
658
|
+
export type MetadataUpdated = typeof MetadataUpdated.Type;
|
|
605
659
|
export declare const Permissions: Schema.Struct<{
|
|
606
660
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
607
661
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -5077,6 +5131,58 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5077
5131
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5078
5132
|
};
|
|
5079
5133
|
}>;
|
|
5134
|
+
}, Schema.Struct<{
|
|
5135
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5136
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
5137
|
+
};
|
|
5138
|
+
readonly created: Schema.Finite;
|
|
5139
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5140
|
+
readonly type: Schema.Literal<"session.metadata.updated">;
|
|
5141
|
+
readonly durable: Schema.Struct<{
|
|
5142
|
+
readonly aggregateID: Schema.String;
|
|
5143
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
5144
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
5145
|
+
}>;
|
|
5146
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5147
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5148
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
5149
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5150
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5151
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
5152
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5153
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5154
|
+
}>, never, never>;
|
|
5155
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
5156
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5157
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
5158
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5159
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5160
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
5161
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5162
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5163
|
+
}>, never, never>;
|
|
5164
|
+
}>>, never, never>;
|
|
5165
|
+
readonly data: Schema.Struct<{
|
|
5166
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
5167
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
5168
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5169
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5170
|
+
};
|
|
5171
|
+
}>;
|
|
5172
|
+
}> & {
|
|
5173
|
+
type: "session.metadata.updated";
|
|
5174
|
+
durability: "durable";
|
|
5175
|
+
durable: {
|
|
5176
|
+
readonly version: number;
|
|
5177
|
+
readonly aggregate: string;
|
|
5178
|
+
};
|
|
5179
|
+
data: Schema.Struct<{
|
|
5180
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
5181
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
5182
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5183
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5184
|
+
};
|
|
5185
|
+
}>;
|
|
5080
5186
|
}, Schema.Struct<{
|
|
5081
5187
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5082
5188
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -9154,6 +9260,58 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
9154
9260
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
9155
9261
|
};
|
|
9156
9262
|
}>;
|
|
9263
|
+
}) | (Schema.Struct<{
|
|
9264
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
9265
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
9266
|
+
};
|
|
9267
|
+
readonly created: Schema.Finite;
|
|
9268
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9269
|
+
readonly type: Schema.Literal<"session.metadata.updated">;
|
|
9270
|
+
readonly durable: Schema.Struct<{
|
|
9271
|
+
readonly aggregateID: Schema.String;
|
|
9272
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
9273
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
9274
|
+
}>;
|
|
9275
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9276
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
9277
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9278
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9279
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9280
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9281
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9282
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9283
|
+
}>, never, never>;
|
|
9284
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9285
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
9286
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9287
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9288
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9289
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9290
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9291
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9292
|
+
}>, never, never>;
|
|
9293
|
+
}>>, never, never>;
|
|
9294
|
+
readonly data: Schema.Struct<{
|
|
9295
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
9296
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9297
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
9298
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
9299
|
+
};
|
|
9300
|
+
}>;
|
|
9301
|
+
}> & {
|
|
9302
|
+
type: "session.metadata.updated";
|
|
9303
|
+
durability: "durable";
|
|
9304
|
+
durable: {
|
|
9305
|
+
readonly version: number;
|
|
9306
|
+
readonly aggregate: string;
|
|
9307
|
+
};
|
|
9308
|
+
data: Schema.Struct<{
|
|
9309
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
9310
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9311
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
9312
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
9313
|
+
};
|
|
9314
|
+
}>;
|
|
9157
9315
|
}) | (Schema.Struct<{
|
|
9158
9316
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
9159
9317
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -13516,6 +13674,58 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
13516
13674
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
13517
13675
|
};
|
|
13518
13676
|
}>;
|
|
13677
|
+
}) | (Schema.Struct<{
|
|
13678
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
13679
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
13680
|
+
};
|
|
13681
|
+
readonly created: Schema.Finite;
|
|
13682
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
13683
|
+
readonly type: Schema.Literal<"session.metadata.updated">;
|
|
13684
|
+
readonly durable: Schema.Struct<{
|
|
13685
|
+
readonly aggregateID: Schema.String;
|
|
13686
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
13687
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
13688
|
+
}>;
|
|
13689
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
13690
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
13691
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
13692
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13693
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13694
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
13695
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13696
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13697
|
+
}>, never, never>;
|
|
13698
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
13699
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
13700
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
13701
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13702
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13703
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
13704
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13705
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
13706
|
+
}>, never, never>;
|
|
13707
|
+
}>>, never, never>;
|
|
13708
|
+
readonly data: Schema.Struct<{
|
|
13709
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
13710
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
13711
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
13712
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
13713
|
+
};
|
|
13714
|
+
}>;
|
|
13715
|
+
}> & {
|
|
13716
|
+
type: "session.metadata.updated";
|
|
13717
|
+
durability: "durable";
|
|
13718
|
+
durable: {
|
|
13719
|
+
readonly version: number;
|
|
13720
|
+
readonly aggregate: string;
|
|
13721
|
+
};
|
|
13722
|
+
data: Schema.Struct<{
|
|
13723
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
13724
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
13725
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
13726
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
13727
|
+
};
|
|
13728
|
+
}>;
|
|
13519
13729
|
}) | (Schema.Struct<{
|
|
13520
13730
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
13521
13731
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -17552,6 +17762,58 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
17552
17762
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
17553
17763
|
};
|
|
17554
17764
|
}>;
|
|
17765
|
+
}) | (Schema.Struct<{
|
|
17766
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
17767
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
17768
|
+
};
|
|
17769
|
+
readonly created: Schema.Finite;
|
|
17770
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
17771
|
+
readonly type: Schema.Literal<"session.metadata.updated">;
|
|
17772
|
+
readonly durable: Schema.Struct<{
|
|
17773
|
+
readonly aggregateID: Schema.String;
|
|
17774
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
17775
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
17776
|
+
}>;
|
|
17777
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
17778
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
17779
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
17780
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17781
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17782
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
17783
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17784
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17785
|
+
}>, never, never>;
|
|
17786
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
17787
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
17788
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
17789
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17790
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17791
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
17792
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17793
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
17794
|
+
}>, never, never>;
|
|
17795
|
+
}>>, never, never>;
|
|
17796
|
+
readonly data: Schema.Struct<{
|
|
17797
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17798
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
17799
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
17800
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
17801
|
+
};
|
|
17802
|
+
}>;
|
|
17803
|
+
}> & {
|
|
17804
|
+
type: "session.metadata.updated";
|
|
17805
|
+
durability: "durable";
|
|
17806
|
+
durable: {
|
|
17807
|
+
readonly version: number;
|
|
17808
|
+
readonly aggregate: string;
|
|
17809
|
+
};
|
|
17810
|
+
data: Schema.Struct<{
|
|
17811
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
17812
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
17813
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
17814
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
17815
|
+
};
|
|
17816
|
+
}>;
|
|
17555
17817
|
}) | (Schema.Struct<{
|
|
17556
17818
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
17557
17819
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/session-event.js
CHANGED
|
@@ -95,6 +95,14 @@ export const Renamed = Event.durable({
|
|
|
95
95
|
title: Schema.String,
|
|
96
96
|
},
|
|
97
97
|
});
|
|
98
|
+
export const MetadataUpdated = Event.durable({
|
|
99
|
+
type: "session.metadata.updated",
|
|
100
|
+
...options,
|
|
101
|
+
schema: {
|
|
102
|
+
...Base,
|
|
103
|
+
metadata: SessionMetadata,
|
|
104
|
+
},
|
|
105
|
+
});
|
|
98
106
|
export const Permissions = Event.durable({
|
|
99
107
|
type: "session.permissions",
|
|
100
108
|
...options,
|
|
@@ -549,7 +557,7 @@ export var RevertEvent;
|
|
|
549
557
|
schema: { ...Base, to: SessionMessage.ID },
|
|
550
558
|
});
|
|
551
559
|
})(RevertEvent || (RevertEvent = {}));
|
|
552
|
-
export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected, Moved, Renamed, 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);
|
|
560
|
+
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);
|
|
553
561
|
// Internal and replay-only events are excluded from the public manifest.
|
|
554
562
|
export const DurableDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "durable"), UsageRecorded, MessageContentUpdated);
|
|
555
563
|
export const EphemeralDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "ephemeral"));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
/**
|
|
3
|
-
* Host-supplied session annotations, durable
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* Host-supplied session annotations, durable and opaque to core. Keys are
|
|
4
|
+
* arbitrary; values must be JSON-serializable. Children and forks inherit
|
|
5
|
+
* the parent's current metadata unless the creator supplies its own.
|
|
6
6
|
*/
|
|
7
7
|
export declare const SessionMetadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
8
8
|
export type SessionMetadata = typeof SessionMetadata.Type;
|
package/dist/session-metadata.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
/**
|
|
3
|
-
* Host-supplied session annotations, durable
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* Host-supplied session annotations, durable and opaque to core. Keys are
|
|
4
|
+
* arbitrary; values must be JSON-serializable. Children and forks inherit
|
|
5
|
+
* the parent's current metadata unless the creator supplies its own.
|
|
6
6
|
*/
|
|
7
7
|
export const SessionMetadata = Schema.Record(Schema.String, Schema.Json).annotate({
|
|
8
8
|
identifier: "Session.Metadata",
|