@opencode/schema 2.0.13 → 2.0.15
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 +108 -0
- package/dist/project.d.ts +6 -0
- package/dist/project.js +1 -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">;
|
|
@@ -4609,6 +4661,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4609
4661
|
readonly time: Schema.Struct<{
|
|
4610
4662
|
readonly created: Schema.Int;
|
|
4611
4663
|
readonly updated: Schema.Int;
|
|
4664
|
+
readonly active: Schema.Int;
|
|
4612
4665
|
}>;
|
|
4613
4666
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
4614
4667
|
}>;
|
|
@@ -4640,6 +4693,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4640
4693
|
readonly time: Schema.Struct<{
|
|
4641
4694
|
readonly created: Schema.Int;
|
|
4642
4695
|
readonly updated: Schema.Int;
|
|
4696
|
+
readonly active: Schema.Int;
|
|
4643
4697
|
}>;
|
|
4644
4698
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
4645
4699
|
}>;
|
|
@@ -7075,6 +7129,58 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7075
7129
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
7076
7130
|
};
|
|
7077
7131
|
}>;
|
|
7132
|
+
}, Schema.Struct<{
|
|
7133
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
7134
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
7135
|
+
};
|
|
7136
|
+
readonly created: Schema.Finite;
|
|
7137
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7138
|
+
readonly type: Schema.Literal<"session.metadata.updated">;
|
|
7139
|
+
readonly durable: Schema.Struct<{
|
|
7140
|
+
readonly aggregateID: Schema.String;
|
|
7141
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
7142
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
7143
|
+
}>;
|
|
7144
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7145
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
7146
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
7147
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7148
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7149
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
7150
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7151
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7152
|
+
}>, never, never>;
|
|
7153
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7154
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
7155
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
7156
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7157
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7158
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
7159
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7160
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7161
|
+
}>, never, never>;
|
|
7162
|
+
}>>, never, never>;
|
|
7163
|
+
readonly data: Schema.Struct<{
|
|
7164
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
7165
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7166
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
7167
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
7168
|
+
};
|
|
7169
|
+
}>;
|
|
7170
|
+
}> & {
|
|
7171
|
+
type: "session.metadata.updated";
|
|
7172
|
+
durability: "durable";
|
|
7173
|
+
durable: {
|
|
7174
|
+
readonly version: number;
|
|
7175
|
+
readonly aggregate: string;
|
|
7176
|
+
};
|
|
7177
|
+
data: Schema.Struct<{
|
|
7178
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
7179
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7180
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
7181
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
7182
|
+
};
|
|
7183
|
+
}>;
|
|
7078
7184
|
}, Schema.Struct<{
|
|
7079
7185
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
7080
7186
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -10907,6 +11013,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10907
11013
|
readonly time: Schema.Struct<{
|
|
10908
11014
|
readonly created: Schema.Int;
|
|
10909
11015
|
readonly updated: Schema.Int;
|
|
11016
|
+
readonly active: Schema.Int;
|
|
10910
11017
|
}>;
|
|
10911
11018
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
10912
11019
|
}>;
|
|
@@ -10938,6 +11045,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10938
11045
|
readonly time: Schema.Struct<{
|
|
10939
11046
|
readonly created: Schema.Int;
|
|
10940
11047
|
readonly updated: Schema.Int;
|
|
11048
|
+
readonly active: Schema.Int;
|
|
10941
11049
|
}>;
|
|
10942
11050
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
10943
11051
|
}>;
|
package/dist/project.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export interface Commands extends Schema.Schema.Type<typeof Commands> {
|
|
|
29
29
|
export declare const Time: Schema.Struct<{
|
|
30
30
|
readonly created: Schema.Int;
|
|
31
31
|
readonly updated: Schema.Int;
|
|
32
|
+
readonly active: Schema.Int;
|
|
32
33
|
}>;
|
|
33
34
|
export interface Time extends Schema.Schema.Type<typeof Time> {
|
|
34
35
|
}
|
|
@@ -56,6 +57,7 @@ export declare const Info: Schema.Struct<{
|
|
|
56
57
|
readonly time: Schema.Struct<{
|
|
57
58
|
readonly created: Schema.Int;
|
|
58
59
|
readonly updated: Schema.Int;
|
|
60
|
+
readonly active: Schema.Int;
|
|
59
61
|
}>;
|
|
60
62
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
61
63
|
}>;
|
|
@@ -135,6 +137,7 @@ export declare const Event: {
|
|
|
135
137
|
readonly time: Schema.Struct<{
|
|
136
138
|
readonly created: Schema.Int;
|
|
137
139
|
readonly updated: Schema.Int;
|
|
140
|
+
readonly active: Schema.Int;
|
|
138
141
|
}>;
|
|
139
142
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
140
143
|
}>;
|
|
@@ -166,6 +169,7 @@ export declare const Event: {
|
|
|
166
169
|
readonly time: Schema.Struct<{
|
|
167
170
|
readonly created: Schema.Int;
|
|
168
171
|
readonly updated: Schema.Int;
|
|
172
|
+
readonly active: Schema.Int;
|
|
169
173
|
}>;
|
|
170
174
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
171
175
|
}>;
|
|
@@ -220,6 +224,7 @@ export declare const Event: {
|
|
|
220
224
|
readonly time: Schema.Struct<{
|
|
221
225
|
readonly created: Schema.Int;
|
|
222
226
|
readonly updated: Schema.Int;
|
|
227
|
+
readonly active: Schema.Int;
|
|
223
228
|
}>;
|
|
224
229
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
225
230
|
}>;
|
|
@@ -251,6 +256,7 @@ export declare const Event: {
|
|
|
251
256
|
readonly time: Schema.Struct<{
|
|
252
257
|
readonly created: Schema.Int;
|
|
253
258
|
readonly updated: Schema.Int;
|
|
259
|
+
readonly active: Schema.Int;
|
|
254
260
|
}>;
|
|
255
261
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
256
262
|
}>;
|
package/dist/project.js
CHANGED
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",
|