@opencode-ai/protocol 0.0.0-next-16974 → 0.0.0-next-16978
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/groups/event.d.ts +446 -38
- package/dist/groups/session.d.ts +282 -21
- package/dist/groups/session.js +27 -0
- package/package.json +2 -2
package/dist/groups/event.d.ts
CHANGED
|
@@ -901,14 +901,14 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
901
901
|
}>, never, never>;
|
|
902
902
|
}>>, never, never>;
|
|
903
903
|
readonly data: Schema.Struct<{
|
|
904
|
-
|
|
905
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
906
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
907
|
-
};
|
|
908
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
904
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
909
905
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
910
906
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
911
907
|
};
|
|
908
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
909
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
910
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
911
|
+
};
|
|
912
912
|
}>;
|
|
913
913
|
}> & {
|
|
914
914
|
type: "session.input.promoted";
|
|
@@ -918,14 +918,14 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
918
918
|
readonly aggregate: string;
|
|
919
919
|
};
|
|
920
920
|
data: Schema.Struct<{
|
|
921
|
-
|
|
922
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
923
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
924
|
-
};
|
|
925
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
921
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
926
922
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
927
923
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
928
924
|
};
|
|
925
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
926
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
927
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
928
|
+
};
|
|
929
929
|
}>;
|
|
930
930
|
}, Schema.Struct<{
|
|
931
931
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -959,10 +959,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
959
959
|
}>, never, never>;
|
|
960
960
|
}>>, never, never>;
|
|
961
961
|
readonly data: Schema.Struct<{
|
|
962
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
963
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
964
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
965
|
-
};
|
|
966
962
|
readonly input: Schema.Union<readonly [Schema.Struct<{
|
|
967
963
|
readonly type: Schema.tag<"user">;
|
|
968
964
|
readonly data: Schema.Struct<{
|
|
@@ -1079,6 +1075,10 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1079
1075
|
}>;
|
|
1080
1076
|
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
1081
1077
|
}>]>;
|
|
1078
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1079
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1080
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1081
|
+
};
|
|
1082
1082
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1083
1083
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1084
1084
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1092,10 +1092,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1092
1092
|
readonly aggregate: string;
|
|
1093
1093
|
};
|
|
1094
1094
|
data: Schema.Struct<{
|
|
1095
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1096
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1097
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1098
|
-
};
|
|
1099
1095
|
readonly input: Schema.Union<readonly [Schema.Struct<{
|
|
1100
1096
|
readonly type: Schema.tag<"user">;
|
|
1101
1097
|
readonly data: Schema.Struct<{
|
|
@@ -1212,11 +1208,189 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1212
1208
|
}>;
|
|
1213
1209
|
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
1214
1210
|
}>]>;
|
|
1211
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1212
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1213
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1214
|
+
};
|
|
1215
1215
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1216
1216
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1217
1217
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1218
1218
|
};
|
|
1219
1219
|
}>;
|
|
1220
|
+
}, Schema.Struct<{
|
|
1221
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
1222
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
1223
|
+
};
|
|
1224
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1225
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1226
|
+
readonly type: Schema.Literal<"session.input.cancelled">;
|
|
1227
|
+
readonly durable: Schema.Struct<{
|
|
1228
|
+
readonly aggregateID: Schema.String;
|
|
1229
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
1230
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
1231
|
+
}>;
|
|
1232
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1233
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1234
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1235
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1236
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1237
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1238
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1239
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1240
|
+
}>, never, never>;
|
|
1241
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1242
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1243
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1244
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1245
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1246
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1247
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1248
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1249
|
+
}>, never, never>;
|
|
1250
|
+
}>>, never, never>;
|
|
1251
|
+
readonly data: Schema.Struct<{
|
|
1252
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1253
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1254
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1255
|
+
};
|
|
1256
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1257
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1258
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1259
|
+
};
|
|
1260
|
+
}>;
|
|
1261
|
+
}> & {
|
|
1262
|
+
type: "session.input.cancelled";
|
|
1263
|
+
durability: "durable";
|
|
1264
|
+
durable: {
|
|
1265
|
+
readonly version: number;
|
|
1266
|
+
readonly aggregate: string;
|
|
1267
|
+
};
|
|
1268
|
+
data: Schema.Struct<{
|
|
1269
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1270
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1271
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1272
|
+
};
|
|
1273
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1274
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1275
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1276
|
+
};
|
|
1277
|
+
}>;
|
|
1278
|
+
}, Schema.Struct<{
|
|
1279
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
1280
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
1281
|
+
};
|
|
1282
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1283
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1284
|
+
readonly type: Schema.Literal<"session.input.steered">;
|
|
1285
|
+
readonly durable: Schema.Struct<{
|
|
1286
|
+
readonly aggregateID: Schema.String;
|
|
1287
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
1288
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
1289
|
+
}>;
|
|
1290
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1291
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1292
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1293
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1294
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1295
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1296
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1297
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1298
|
+
}>, never, never>;
|
|
1299
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1300
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1301
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1302
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1303
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1304
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1305
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1306
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1307
|
+
}>, never, never>;
|
|
1308
|
+
}>>, never, never>;
|
|
1309
|
+
readonly data: Schema.Struct<{
|
|
1310
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1311
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1312
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1313
|
+
};
|
|
1314
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1315
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1316
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1317
|
+
};
|
|
1318
|
+
}>;
|
|
1319
|
+
}> & {
|
|
1320
|
+
type: "session.input.steered";
|
|
1321
|
+
durability: "durable";
|
|
1322
|
+
durable: {
|
|
1323
|
+
readonly version: number;
|
|
1324
|
+
readonly aggregate: string;
|
|
1325
|
+
};
|
|
1326
|
+
data: Schema.Struct<{
|
|
1327
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1328
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1329
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1330
|
+
};
|
|
1331
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1332
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1333
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1334
|
+
};
|
|
1335
|
+
}>;
|
|
1336
|
+
}, Schema.Struct<{
|
|
1337
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
1338
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
1339
|
+
};
|
|
1340
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1341
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1342
|
+
readonly type: Schema.Literal<"session.input.queued">;
|
|
1343
|
+
readonly durable: Schema.Struct<{
|
|
1344
|
+
readonly aggregateID: Schema.String;
|
|
1345
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
1346
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
1347
|
+
}>;
|
|
1348
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1349
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1350
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1351
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1352
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1353
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1354
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1355
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1356
|
+
}>, never, never>;
|
|
1357
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1358
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1359
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1360
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1361
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1362
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1363
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1364
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1365
|
+
}>, never, never>;
|
|
1366
|
+
}>>, never, never>;
|
|
1367
|
+
readonly data: Schema.Struct<{
|
|
1368
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1369
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1370
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1371
|
+
};
|
|
1372
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1373
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1374
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1375
|
+
};
|
|
1376
|
+
}>;
|
|
1377
|
+
}> & {
|
|
1378
|
+
type: "session.input.queued";
|
|
1379
|
+
durability: "durable";
|
|
1380
|
+
durable: {
|
|
1381
|
+
readonly version: number;
|
|
1382
|
+
readonly aggregate: string;
|
|
1383
|
+
};
|
|
1384
|
+
data: Schema.Struct<{
|
|
1385
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1386
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1387
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1388
|
+
};
|
|
1389
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1390
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1391
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1392
|
+
};
|
|
1393
|
+
}>;
|
|
1220
1394
|
}, Schema.Struct<{
|
|
1221
1395
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
1222
1396
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -5692,8 +5866,8 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
5692
5866
|
} | {
|
|
5693
5867
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
5694
5868
|
readonly data: {
|
|
5695
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5696
5869
|
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5870
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5697
5871
|
};
|
|
5698
5872
|
readonly durable: {
|
|
5699
5873
|
readonly aggregateID: string;
|
|
@@ -5712,7 +5886,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
5712
5886
|
} | {
|
|
5713
5887
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
5714
5888
|
readonly data: {
|
|
5715
|
-
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5716
5889
|
readonly input: {
|
|
5717
5890
|
readonly type: "user";
|
|
5718
5891
|
readonly data: {
|
|
@@ -5758,6 +5931,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
5758
5931
|
};
|
|
5759
5932
|
readonly delivery: "steer" | "queue";
|
|
5760
5933
|
};
|
|
5934
|
+
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5761
5935
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5762
5936
|
};
|
|
5763
5937
|
readonly durable: {
|
|
@@ -5774,6 +5948,66 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
5774
5948
|
readonly metadata?: {
|
|
5775
5949
|
readonly [x: string]: unknown;
|
|
5776
5950
|
} | undefined;
|
|
5951
|
+
} | {
|
|
5952
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
5953
|
+
readonly data: {
|
|
5954
|
+
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5955
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5956
|
+
};
|
|
5957
|
+
readonly durable: {
|
|
5958
|
+
readonly aggregateID: string;
|
|
5959
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
5960
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
5961
|
+
};
|
|
5962
|
+
readonly type: "session.input.cancelled";
|
|
5963
|
+
readonly created: import("effect/DateTime").Utc;
|
|
5964
|
+
readonly location?: {
|
|
5965
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
5966
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
5967
|
+
} | undefined;
|
|
5968
|
+
readonly metadata?: {
|
|
5969
|
+
readonly [x: string]: unknown;
|
|
5970
|
+
} | undefined;
|
|
5971
|
+
} | {
|
|
5972
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
5973
|
+
readonly data: {
|
|
5974
|
+
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5975
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5976
|
+
};
|
|
5977
|
+
readonly durable: {
|
|
5978
|
+
readonly aggregateID: string;
|
|
5979
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
5980
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
5981
|
+
};
|
|
5982
|
+
readonly type: "session.input.steered";
|
|
5983
|
+
readonly created: import("effect/DateTime").Utc;
|
|
5984
|
+
readonly location?: {
|
|
5985
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
5986
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
5987
|
+
} | undefined;
|
|
5988
|
+
readonly metadata?: {
|
|
5989
|
+
readonly [x: string]: unknown;
|
|
5990
|
+
} | undefined;
|
|
5991
|
+
} | {
|
|
5992
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
5993
|
+
readonly data: {
|
|
5994
|
+
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5995
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5996
|
+
};
|
|
5997
|
+
readonly durable: {
|
|
5998
|
+
readonly aggregateID: string;
|
|
5999
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
6000
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
6001
|
+
};
|
|
6002
|
+
readonly type: "session.input.queued";
|
|
6003
|
+
readonly created: import("effect/DateTime").Utc;
|
|
6004
|
+
readonly location?: {
|
|
6005
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
6006
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
6007
|
+
} | undefined;
|
|
6008
|
+
readonly metadata?: {
|
|
6009
|
+
readonly [x: string]: unknown;
|
|
6010
|
+
} | undefined;
|
|
5777
6011
|
} | {
|
|
5778
6012
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
5779
6013
|
readonly data: {
|
|
@@ -8186,14 +8420,14 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
8186
8420
|
}>, never, never>;
|
|
8187
8421
|
}>>, never, never>;
|
|
8188
8422
|
readonly data: Schema.Struct<{
|
|
8189
|
-
|
|
8190
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8191
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8192
|
-
};
|
|
8193
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8423
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8194
8424
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8195
8425
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8196
8426
|
};
|
|
8427
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8428
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8429
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8430
|
+
};
|
|
8197
8431
|
}>;
|
|
8198
8432
|
}> & {
|
|
8199
8433
|
type: "session.input.promoted";
|
|
@@ -8203,14 +8437,14 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
8203
8437
|
readonly aggregate: string;
|
|
8204
8438
|
};
|
|
8205
8439
|
data: Schema.Struct<{
|
|
8206
|
-
|
|
8207
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8208
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8209
|
-
};
|
|
8210
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8440
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8211
8441
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8212
8442
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8213
8443
|
};
|
|
8444
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8445
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8446
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8447
|
+
};
|
|
8214
8448
|
}>;
|
|
8215
8449
|
}, Schema.Struct<{
|
|
8216
8450
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -8244,10 +8478,6 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
8244
8478
|
}>, never, never>;
|
|
8245
8479
|
}>>, never, never>;
|
|
8246
8480
|
readonly data: Schema.Struct<{
|
|
8247
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8248
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8249
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8250
|
-
};
|
|
8251
8481
|
readonly input: Schema.Union<readonly [Schema.Struct<{
|
|
8252
8482
|
readonly type: Schema.tag<"user">;
|
|
8253
8483
|
readonly data: Schema.Struct<{
|
|
@@ -8364,6 +8594,10 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
8364
8594
|
}>;
|
|
8365
8595
|
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
8366
8596
|
}>]>;
|
|
8597
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8598
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8599
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8600
|
+
};
|
|
8367
8601
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8368
8602
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8369
8603
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8377,10 +8611,6 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
8377
8611
|
readonly aggregate: string;
|
|
8378
8612
|
};
|
|
8379
8613
|
data: Schema.Struct<{
|
|
8380
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8381
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8382
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8383
|
-
};
|
|
8384
8614
|
readonly input: Schema.Union<readonly [Schema.Struct<{
|
|
8385
8615
|
readonly type: Schema.tag<"user">;
|
|
8386
8616
|
readonly data: Schema.Struct<{
|
|
@@ -8497,11 +8727,189 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
8497
8727
|
}>;
|
|
8498
8728
|
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
8499
8729
|
}>]>;
|
|
8730
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8731
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8732
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8733
|
+
};
|
|
8500
8734
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8501
8735
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8502
8736
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8503
8737
|
};
|
|
8504
8738
|
}>;
|
|
8739
|
+
}, Schema.Struct<{
|
|
8740
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8741
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
8742
|
+
};
|
|
8743
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8744
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8745
|
+
readonly type: Schema.Literal<"session.input.cancelled">;
|
|
8746
|
+
readonly durable: Schema.Struct<{
|
|
8747
|
+
readonly aggregateID: Schema.String;
|
|
8748
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
8749
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
8750
|
+
}>;
|
|
8751
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8752
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8753
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8754
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8755
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8756
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8757
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8758
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8759
|
+
}>, never, never>;
|
|
8760
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8761
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8762
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8763
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8764
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8765
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8766
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8767
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8768
|
+
}>, never, never>;
|
|
8769
|
+
}>>, never, never>;
|
|
8770
|
+
readonly data: Schema.Struct<{
|
|
8771
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8772
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8773
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8774
|
+
};
|
|
8775
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8776
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8777
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8778
|
+
};
|
|
8779
|
+
}>;
|
|
8780
|
+
}> & {
|
|
8781
|
+
type: "session.input.cancelled";
|
|
8782
|
+
durability: "durable";
|
|
8783
|
+
durable: {
|
|
8784
|
+
readonly version: number;
|
|
8785
|
+
readonly aggregate: string;
|
|
8786
|
+
};
|
|
8787
|
+
data: Schema.Struct<{
|
|
8788
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8789
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8790
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8791
|
+
};
|
|
8792
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8793
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8794
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8795
|
+
};
|
|
8796
|
+
}>;
|
|
8797
|
+
}, Schema.Struct<{
|
|
8798
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8799
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
8800
|
+
};
|
|
8801
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8802
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8803
|
+
readonly type: Schema.Literal<"session.input.steered">;
|
|
8804
|
+
readonly durable: Schema.Struct<{
|
|
8805
|
+
readonly aggregateID: Schema.String;
|
|
8806
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
8807
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
8808
|
+
}>;
|
|
8809
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8810
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8811
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8812
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8813
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8814
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8815
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8816
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8817
|
+
}>, never, never>;
|
|
8818
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8819
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8820
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8821
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8822
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8823
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8824
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8825
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8826
|
+
}>, never, never>;
|
|
8827
|
+
}>>, never, never>;
|
|
8828
|
+
readonly data: Schema.Struct<{
|
|
8829
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8830
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8831
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8832
|
+
};
|
|
8833
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8834
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8835
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8836
|
+
};
|
|
8837
|
+
}>;
|
|
8838
|
+
}> & {
|
|
8839
|
+
type: "session.input.steered";
|
|
8840
|
+
durability: "durable";
|
|
8841
|
+
durable: {
|
|
8842
|
+
readonly version: number;
|
|
8843
|
+
readonly aggregate: string;
|
|
8844
|
+
};
|
|
8845
|
+
data: Schema.Struct<{
|
|
8846
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8847
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8848
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8849
|
+
};
|
|
8850
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8851
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8852
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8853
|
+
};
|
|
8854
|
+
}>;
|
|
8855
|
+
}, Schema.Struct<{
|
|
8856
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8857
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
8858
|
+
};
|
|
8859
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8860
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8861
|
+
readonly type: Schema.Literal<"session.input.queued">;
|
|
8862
|
+
readonly durable: Schema.Struct<{
|
|
8863
|
+
readonly aggregateID: Schema.String;
|
|
8864
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
8865
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
8866
|
+
}>;
|
|
8867
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8868
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8869
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8870
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8871
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8872
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8873
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8874
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8875
|
+
}>, never, never>;
|
|
8876
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8877
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8878
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8879
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8880
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8881
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
8882
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8883
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
8884
|
+
}>, never, never>;
|
|
8885
|
+
}>>, never, never>;
|
|
8886
|
+
readonly data: Schema.Struct<{
|
|
8887
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8888
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8889
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8890
|
+
};
|
|
8891
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8892
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8893
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8894
|
+
};
|
|
8895
|
+
}>;
|
|
8896
|
+
}> & {
|
|
8897
|
+
type: "session.input.queued";
|
|
8898
|
+
durability: "durable";
|
|
8899
|
+
durable: {
|
|
8900
|
+
readonly version: number;
|
|
8901
|
+
readonly aggregate: string;
|
|
8902
|
+
};
|
|
8903
|
+
data: Schema.Struct<{
|
|
8904
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8905
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8906
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8907
|
+
};
|
|
8908
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8909
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8910
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8911
|
+
};
|
|
8912
|
+
}>;
|
|
8505
8913
|
}, Schema.Struct<{
|
|
8506
8914
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8507
8915
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -3710,7 +3710,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3710
3710
|
};
|
|
3711
3711
|
readonly timeCreated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3712
3712
|
}>]>>;
|
|
3713
|
-
}>>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.
|
|
3713
|
+
}>>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.pending.cancel", "DELETE", "/api/session/:sessionID/pending/:inputID", Schema.toCodecStringTree<Schema.Struct<{
|
|
3714
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3715
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3716
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3717
|
+
};
|
|
3718
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3719
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3720
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3721
|
+
};
|
|
3722
|
+
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.pending.steer", "POST", "/api/session/:sessionID/pending/:inputID/steer", Schema.toCodecStringTree<Schema.Struct<{
|
|
3723
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3724
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3725
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3726
|
+
};
|
|
3727
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3728
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3729
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3730
|
+
};
|
|
3731
|
+
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.pending.queue", "POST", "/api/session/:sessionID/pending/:inputID/queue", Schema.toCodecStringTree<Schema.Struct<{
|
|
3732
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3733
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3734
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3735
|
+
};
|
|
3736
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3737
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3738
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3739
|
+
};
|
|
3740
|
+
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.list", "GET", "/api/session/:sessionID/instructions/entries", Schema.toCodecStringTree<Schema.Struct<{
|
|
3714
3741
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3715
3742
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3716
3743
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4393,14 +4420,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4393
4420
|
}>, never, never>;
|
|
4394
4421
|
}>>, never, never>;
|
|
4395
4422
|
readonly data: Schema.Struct<{
|
|
4396
|
-
|
|
4397
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4398
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4399
|
-
};
|
|
4400
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4423
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4401
4424
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4402
4425
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4403
4426
|
};
|
|
4427
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4428
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4429
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4430
|
+
};
|
|
4404
4431
|
}>;
|
|
4405
4432
|
}> & {
|
|
4406
4433
|
type: "session.input.promoted";
|
|
@@ -4410,14 +4437,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4410
4437
|
readonly aggregate: string;
|
|
4411
4438
|
};
|
|
4412
4439
|
data: Schema.Struct<{
|
|
4413
|
-
|
|
4414
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4415
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4416
|
-
};
|
|
4417
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4440
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4418
4441
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4419
4442
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4420
4443
|
};
|
|
4444
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4445
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4446
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4447
|
+
};
|
|
4421
4448
|
}>;
|
|
4422
4449
|
}) | (Schema.Struct<{
|
|
4423
4450
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -4451,10 +4478,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4451
4478
|
}>, never, never>;
|
|
4452
4479
|
}>>, never, never>;
|
|
4453
4480
|
readonly data: Schema.Struct<{
|
|
4454
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4455
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4456
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4457
|
-
};
|
|
4458
4481
|
readonly input: Schema.Union<readonly [Schema.Struct<{
|
|
4459
4482
|
readonly type: Schema.tag<"user">;
|
|
4460
4483
|
readonly data: Schema.Struct<{
|
|
@@ -4571,6 +4594,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4571
4594
|
}>;
|
|
4572
4595
|
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
4573
4596
|
}>]>;
|
|
4597
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4598
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4599
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4600
|
+
};
|
|
4574
4601
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4575
4602
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4576
4603
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4584,10 +4611,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4584
4611
|
readonly aggregate: string;
|
|
4585
4612
|
};
|
|
4586
4613
|
data: Schema.Struct<{
|
|
4587
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4588
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4589
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4590
|
-
};
|
|
4591
4614
|
readonly input: Schema.Union<readonly [Schema.Struct<{
|
|
4592
4615
|
readonly type: Schema.tag<"user">;
|
|
4593
4616
|
readonly data: Schema.Struct<{
|
|
@@ -4704,11 +4727,189 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4704
4727
|
}>;
|
|
4705
4728
|
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
4706
4729
|
}>]>;
|
|
4730
|
+
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4731
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4732
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4733
|
+
};
|
|
4707
4734
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4708
4735
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4709
4736
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4710
4737
|
};
|
|
4711
4738
|
}>;
|
|
4739
|
+
}) | (Schema.Struct<{
|
|
4740
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4741
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
4742
|
+
};
|
|
4743
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4744
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4745
|
+
readonly type: Schema.Literal<"session.input.cancelled">;
|
|
4746
|
+
readonly durable: Schema.Struct<{
|
|
4747
|
+
readonly aggregateID: Schema.String;
|
|
4748
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4749
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4750
|
+
}>;
|
|
4751
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4752
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4753
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4754
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4755
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4756
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4757
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4758
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4759
|
+
}>, never, never>;
|
|
4760
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4761
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4762
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4763
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4764
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4765
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4766
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4767
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4768
|
+
}>, never, never>;
|
|
4769
|
+
}>>, never, never>;
|
|
4770
|
+
readonly data: Schema.Struct<{
|
|
4771
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4772
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4773
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4774
|
+
};
|
|
4775
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4776
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4777
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4778
|
+
};
|
|
4779
|
+
}>;
|
|
4780
|
+
}> & {
|
|
4781
|
+
type: "session.input.cancelled";
|
|
4782
|
+
durability: "durable";
|
|
4783
|
+
durable: {
|
|
4784
|
+
readonly version: number;
|
|
4785
|
+
readonly aggregate: string;
|
|
4786
|
+
};
|
|
4787
|
+
data: Schema.Struct<{
|
|
4788
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4789
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4790
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4791
|
+
};
|
|
4792
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4793
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4794
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4795
|
+
};
|
|
4796
|
+
}>;
|
|
4797
|
+
}) | (Schema.Struct<{
|
|
4798
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4799
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
4800
|
+
};
|
|
4801
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4802
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4803
|
+
readonly type: Schema.Literal<"session.input.steered">;
|
|
4804
|
+
readonly durable: Schema.Struct<{
|
|
4805
|
+
readonly aggregateID: Schema.String;
|
|
4806
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4807
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4808
|
+
}>;
|
|
4809
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4810
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4811
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4812
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4813
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4814
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4815
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4816
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4817
|
+
}>, never, never>;
|
|
4818
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4819
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4820
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4821
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4822
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4823
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4824
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4825
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4826
|
+
}>, never, never>;
|
|
4827
|
+
}>>, never, never>;
|
|
4828
|
+
readonly data: Schema.Struct<{
|
|
4829
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4830
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4831
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4832
|
+
};
|
|
4833
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4834
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4835
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4836
|
+
};
|
|
4837
|
+
}>;
|
|
4838
|
+
}> & {
|
|
4839
|
+
type: "session.input.steered";
|
|
4840
|
+
durability: "durable";
|
|
4841
|
+
durable: {
|
|
4842
|
+
readonly version: number;
|
|
4843
|
+
readonly aggregate: string;
|
|
4844
|
+
};
|
|
4845
|
+
data: Schema.Struct<{
|
|
4846
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4847
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4848
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4849
|
+
};
|
|
4850
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4851
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4852
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4853
|
+
};
|
|
4854
|
+
}>;
|
|
4855
|
+
}) | (Schema.Struct<{
|
|
4856
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4857
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
4858
|
+
};
|
|
4859
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4860
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4861
|
+
readonly type: Schema.Literal<"session.input.queued">;
|
|
4862
|
+
readonly durable: Schema.Struct<{
|
|
4863
|
+
readonly aggregateID: Schema.String;
|
|
4864
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4865
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4866
|
+
}>;
|
|
4867
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4868
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4869
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4870
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4871
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4872
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4873
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4874
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4875
|
+
}>, never, never>;
|
|
4876
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4877
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4878
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4879
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4880
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4881
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4882
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4883
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4884
|
+
}>, never, never>;
|
|
4885
|
+
}>>, never, never>;
|
|
4886
|
+
readonly data: Schema.Struct<{
|
|
4887
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4888
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4889
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4890
|
+
};
|
|
4891
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4892
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4893
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4894
|
+
};
|
|
4895
|
+
}>;
|
|
4896
|
+
}> & {
|
|
4897
|
+
type: "session.input.queued";
|
|
4898
|
+
durability: "durable";
|
|
4899
|
+
durable: {
|
|
4900
|
+
readonly version: number;
|
|
4901
|
+
readonly aggregate: string;
|
|
4902
|
+
};
|
|
4903
|
+
data: Schema.Struct<{
|
|
4904
|
+
inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4905
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4906
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4907
|
+
};
|
|
4908
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4909
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4910
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4911
|
+
};
|
|
4912
|
+
}>;
|
|
4712
4913
|
}) | (Schema.Struct<{
|
|
4713
4914
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4714
4915
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -7033,8 +7234,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
7033
7234
|
} | {
|
|
7034
7235
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
7035
7236
|
readonly data: {
|
|
7036
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
7037
7237
|
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7238
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
7038
7239
|
};
|
|
7039
7240
|
readonly durable: {
|
|
7040
7241
|
readonly aggregateID: string;
|
|
@@ -7053,7 +7254,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
7053
7254
|
} | {
|
|
7054
7255
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
7055
7256
|
readonly data: {
|
|
7056
|
-
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7057
7257
|
readonly input: {
|
|
7058
7258
|
readonly type: "user";
|
|
7059
7259
|
readonly data: {
|
|
@@ -7099,6 +7299,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
7099
7299
|
};
|
|
7100
7300
|
readonly delivery: "steer" | "queue";
|
|
7101
7301
|
};
|
|
7302
|
+
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7102
7303
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
7103
7304
|
};
|
|
7104
7305
|
readonly durable: {
|
|
@@ -7115,6 +7316,66 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
7115
7316
|
readonly metadata?: {
|
|
7116
7317
|
readonly [x: string]: unknown;
|
|
7117
7318
|
} | undefined;
|
|
7319
|
+
} | {
|
|
7320
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
7321
|
+
readonly data: {
|
|
7322
|
+
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7323
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
7324
|
+
};
|
|
7325
|
+
readonly durable: {
|
|
7326
|
+
readonly aggregateID: string;
|
|
7327
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
7328
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
7329
|
+
};
|
|
7330
|
+
readonly type: "session.input.cancelled";
|
|
7331
|
+
readonly created: import("effect/DateTime").Utc;
|
|
7332
|
+
readonly location?: {
|
|
7333
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
7334
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
7335
|
+
} | undefined;
|
|
7336
|
+
readonly metadata?: {
|
|
7337
|
+
readonly [x: string]: unknown;
|
|
7338
|
+
} | undefined;
|
|
7339
|
+
} | {
|
|
7340
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
7341
|
+
readonly data: {
|
|
7342
|
+
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7343
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
7344
|
+
};
|
|
7345
|
+
readonly durable: {
|
|
7346
|
+
readonly aggregateID: string;
|
|
7347
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
7348
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
7349
|
+
};
|
|
7350
|
+
readonly type: "session.input.steered";
|
|
7351
|
+
readonly created: import("effect/DateTime").Utc;
|
|
7352
|
+
readonly location?: {
|
|
7353
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
7354
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
7355
|
+
} | undefined;
|
|
7356
|
+
readonly metadata?: {
|
|
7357
|
+
readonly [x: string]: unknown;
|
|
7358
|
+
} | undefined;
|
|
7359
|
+
} | {
|
|
7360
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
7361
|
+
readonly data: {
|
|
7362
|
+
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7363
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
7364
|
+
};
|
|
7365
|
+
readonly durable: {
|
|
7366
|
+
readonly aggregateID: string;
|
|
7367
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
7368
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
7369
|
+
};
|
|
7370
|
+
readonly type: "session.input.queued";
|
|
7371
|
+
readonly created: import("effect/DateTime").Utc;
|
|
7372
|
+
readonly location?: {
|
|
7373
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
7374
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
7375
|
+
} | undefined;
|
|
7376
|
+
readonly metadata?: {
|
|
7377
|
+
readonly [x: string]: unknown;
|
|
7378
|
+
} | undefined;
|
|
7118
7379
|
} | {
|
|
7119
7380
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
7120
7381
|
readonly data: {
|
package/dist/groups/session.js
CHANGED
|
@@ -386,6 +386,33 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
|
|
|
386
386
|
identifier: "v2.session.pending.list",
|
|
387
387
|
summary: "List pending session work",
|
|
388
388
|
description: "List durable admitted session work not yet visible in projected history, ordered by admission. Includes unpromoted user and synthetic inputs and unhandled compaction barriers. The runner owns consumption; items disappear once promoted or handled.",
|
|
389
|
+
})))
|
|
390
|
+
.add(HttpApiEndpoint.delete("session.pending.cancel", "/api/session/:sessionID/pending/:inputID", {
|
|
391
|
+
params: { sessionID: Session.ID, inputID: SessionMessage.ID },
|
|
392
|
+
success: HttpApiSchema.NoContent,
|
|
393
|
+
error: [ConflictError, SessionNotFoundError],
|
|
394
|
+
}).annotateMerge(OpenApi.annotations({
|
|
395
|
+
identifier: "v2.session.pending.cancel",
|
|
396
|
+
summary: "Cancel pending input",
|
|
397
|
+
description: "Cancel an input that has not yet been promoted into session history.",
|
|
398
|
+
})))
|
|
399
|
+
.add(HttpApiEndpoint.post("session.pending.steer", "/api/session/:sessionID/pending/:inputID/steer", {
|
|
400
|
+
params: { sessionID: Session.ID, inputID: SessionMessage.ID },
|
|
401
|
+
success: HttpApiSchema.NoContent,
|
|
402
|
+
error: [ConflictError, SessionNotFoundError],
|
|
403
|
+
}).annotateMerge(OpenApi.annotations({
|
|
404
|
+
identifier: "v2.session.pending.steer",
|
|
405
|
+
summary: "Steer queued input",
|
|
406
|
+
description: "Change a queued input to steer delivery and wake session execution.",
|
|
407
|
+
})))
|
|
408
|
+
.add(HttpApiEndpoint.post("session.pending.queue", "/api/session/:sessionID/pending/:inputID/queue", {
|
|
409
|
+
params: { sessionID: Session.ID, inputID: SessionMessage.ID },
|
|
410
|
+
success: HttpApiSchema.NoContent,
|
|
411
|
+
error: [ConflictError, SessionNotFoundError],
|
|
412
|
+
}).annotateMerge(OpenApi.annotations({
|
|
413
|
+
identifier: "v2.session.pending.queue",
|
|
414
|
+
summary: "Queue pending steer",
|
|
415
|
+
description: "Change a pending steer to queued delivery.",
|
|
389
416
|
})))
|
|
390
417
|
.add(HttpApiEndpoint.get("session.instructions.entry.list", "/api/session/:sessionID/instructions/entries", {
|
|
391
418
|
params: { sessionID: Session.ID },
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/protocol",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-16978",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"typecheck": "tsgo --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
31
|
+
"@opencode-ai/schema": "0.0.0-next-16978",
|
|
32
32
|
"effect": "4.0.0-beta.101"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|