@opencode-ai/schema 0.0.0-next-15090 → 0.0.0-next-15092

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.
@@ -20,7 +20,7 @@ export declare const AgentSelected: Schema.Struct<{
20
20
  readonly durable: Schema.Struct<{
21
21
  readonly aggregateID: Schema.String;
22
22
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
23
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
23
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
24
24
  }>;
25
25
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
26
26
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -42,7 +42,7 @@ export declare const AgentSelected: Schema.Struct<{
42
42
  }>, never, never>;
43
43
  }>>, never, never>;
44
44
  readonly data: Schema.Struct<{
45
- readonly agent: Schema.String;
45
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
46
46
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
47
47
  create: () => string & import("effect/Brand").Brand<"SessionID">;
48
48
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -56,7 +56,7 @@ export declare const AgentSelected: Schema.Struct<{
56
56
  readonly aggregate: string;
57
57
  };
58
58
  data: Schema.Struct<{
59
- readonly agent: Schema.String;
59
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
60
60
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
61
61
  create: () => string & import("effect/Brand").Brand<"SessionID">;
62
62
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -74,7 +74,7 @@ export declare const ModelSelected: Schema.Struct<{
74
74
  readonly durable: Schema.Struct<{
75
75
  readonly aggregateID: Schema.String;
76
76
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
77
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
77
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
78
78
  }>;
79
79
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
80
80
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -97,7 +97,7 @@ export declare const ModelSelected: Schema.Struct<{
97
97
  }>>, never, never>;
98
98
  readonly data: Schema.Struct<{
99
99
  readonly model: Schema.Struct<{
100
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
100
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
101
101
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
102
102
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
103
103
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -111,7 +111,7 @@ export declare const ModelSelected: Schema.Struct<{
111
111
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
112
112
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
113
113
  };
114
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
114
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
115
115
  }>;
116
116
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
117
117
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -127,7 +127,7 @@ export declare const ModelSelected: Schema.Struct<{
127
127
  };
128
128
  data: Schema.Struct<{
129
129
  readonly model: Schema.Struct<{
130
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
130
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
131
131
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
132
132
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
133
133
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -141,7 +141,7 @@ export declare const ModelSelected: Schema.Struct<{
141
141
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
142
142
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
143
143
  };
144
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
144
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
145
145
  }>;
146
146
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
147
147
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -160,7 +160,7 @@ export declare const Moved: Schema.Struct<{
160
160
  readonly durable: Schema.Struct<{
161
161
  readonly aggregateID: Schema.String;
162
162
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
163
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
163
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
164
164
  }>;
165
165
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
166
166
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -234,7 +234,7 @@ export declare const Renamed: Schema.Struct<{
234
234
  readonly durable: Schema.Struct<{
235
235
  readonly aggregateID: Schema.String;
236
236
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
237
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
237
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
238
238
  }>;
239
239
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
240
240
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -305,7 +305,9 @@ export declare const UsageUpdated: Schema.Struct<{
305
305
  }>, never, never>;
306
306
  }>>, never, never>;
307
307
  readonly data: Schema.Struct<{
308
- readonly cost: Schema.Finite;
308
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
309
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
310
+ };
309
311
  readonly tokens: Schema.Struct<{
310
312
  readonly input: Schema.Finite;
311
313
  readonly output: Schema.Finite;
@@ -325,7 +327,9 @@ export declare const UsageUpdated: Schema.Struct<{
325
327
  durability: "ephemeral";
326
328
  durable: undefined;
327
329
  data: Schema.Struct<{
328
- readonly cost: Schema.Finite;
330
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
331
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
332
+ };
329
333
  readonly tokens: Schema.Struct<{
330
334
  readonly input: Schema.Finite;
331
335
  readonly output: Schema.Finite;
@@ -352,7 +356,7 @@ export declare const Deleted: Schema.Struct<{
352
356
  readonly durable: Schema.Struct<{
353
357
  readonly aggregateID: Schema.String;
354
358
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
355
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
359
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
356
360
  }>;
357
361
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
358
362
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -404,7 +408,7 @@ export declare const Forked: Schema.Struct<{
404
408
  readonly durable: Schema.Struct<{
405
409
  readonly aggregateID: Schema.String;
406
410
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
407
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
411
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
408
412
  }>;
409
413
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
410
414
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -478,7 +482,7 @@ export declare const PromptPromoted: Schema.Struct<{
478
482
  readonly durable: Schema.Struct<{
479
483
  readonly aggregateID: Schema.String;
480
484
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
481
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
485
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
482
486
  }>;
483
487
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
484
488
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -538,7 +542,7 @@ export declare const PromptAdmitted: Schema.Struct<{
538
542
  readonly durable: Schema.Struct<{
539
543
  readonly aggregateID: Schema.String;
540
544
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
541
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
545
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
542
546
  }>;
543
547
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
544
548
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -921,7 +925,7 @@ export declare namespace Execution {
921
925
  readonly durable: Schema.Struct<{
922
926
  readonly aggregateID: Schema.String;
923
927
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
924
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
928
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
925
929
  }>;
926
930
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
927
931
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -973,7 +977,7 @@ export declare namespace Execution {
973
977
  readonly durable: Schema.Struct<{
974
978
  readonly aggregateID: Schema.String;
975
979
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
976
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
980
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
977
981
  }>;
978
982
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
979
983
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1025,7 +1029,7 @@ export declare namespace Execution {
1025
1029
  readonly durable: Schema.Struct<{
1026
1030
  readonly aggregateID: Schema.String;
1027
1031
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1028
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1032
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1029
1033
  }>;
1030
1034
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1031
1035
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1085,7 +1089,7 @@ export declare namespace Execution {
1085
1089
  readonly durable: Schema.Struct<{
1086
1090
  readonly aggregateID: Schema.String;
1087
1091
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1088
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1092
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1089
1093
  }>;
1090
1094
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1091
1095
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1140,7 +1144,7 @@ export declare const InstructionsUpdated: Schema.Struct<{
1140
1144
  readonly durable: Schema.Struct<{
1141
1145
  readonly aggregateID: Schema.String;
1142
1146
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1143
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1147
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1144
1148
  }>;
1145
1149
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1146
1150
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1194,7 +1198,7 @@ export declare const Synthetic: Schema.Struct<{
1194
1198
  readonly durable: Schema.Struct<{
1195
1199
  readonly aggregateID: Schema.String;
1196
1200
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1197
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1201
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1198
1202
  }>;
1199
1203
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1200
1204
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1253,7 +1257,7 @@ export declare namespace Skill {
1253
1257
  readonly durable: Schema.Struct<{
1254
1258
  readonly aggregateID: Schema.String;
1255
1259
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1256
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1260
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1257
1261
  }>;
1258
1262
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1259
1263
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1275,7 +1279,8 @@ export declare namespace Skill {
1275
1279
  }>, never, never>;
1276
1280
  }>>, never, never>;
1277
1281
  readonly data: Schema.Struct<{
1278
- readonly name: Schema.String;
1282
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
1283
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
1279
1284
  readonly text: Schema.String;
1280
1285
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1281
1286
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -1290,7 +1295,8 @@ export declare namespace Skill {
1290
1295
  readonly aggregate: string;
1291
1296
  };
1292
1297
  data: Schema.Struct<{
1293
- readonly name: Schema.String;
1298
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
1299
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
1294
1300
  readonly text: Schema.String;
1295
1301
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1296
1302
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -1311,7 +1317,7 @@ export declare namespace Shell {
1311
1317
  readonly durable: Schema.Struct<{
1312
1318
  readonly aggregateID: Schema.String;
1313
1319
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1314
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1320
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1315
1321
  }>;
1316
1322
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1317
1323
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1334,9 +1340,9 @@ export declare namespace Shell {
1334
1340
  }>>, never, never>;
1335
1341
  readonly data: Schema.Struct<{
1336
1342
  readonly shell: Schema.Struct<{
1337
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
1338
- create: () => string & import("effect/Brand").Brand<"ShellID">;
1339
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
1343
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
1344
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
1345
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
1340
1346
  };
1341
1347
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
1342
1348
  readonly command: Schema.String;
@@ -1365,9 +1371,9 @@ export declare namespace Shell {
1365
1371
  };
1366
1372
  data: Schema.Struct<{
1367
1373
  readonly shell: Schema.Struct<{
1368
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
1369
- create: () => string & import("effect/Brand").Brand<"ShellID">;
1370
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
1374
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
1375
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
1376
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
1371
1377
  };
1372
1378
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
1373
1379
  readonly command: Schema.String;
@@ -1399,7 +1405,7 @@ export declare namespace Shell {
1399
1405
  readonly durable: Schema.Struct<{
1400
1406
  readonly aggregateID: Schema.String;
1401
1407
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1402
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1408
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1403
1409
  }>;
1404
1410
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1405
1411
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1422,9 +1428,9 @@ export declare namespace Shell {
1422
1428
  }>>, never, never>;
1423
1429
  readonly data: Schema.Struct<{
1424
1430
  readonly shell: Schema.Struct<{
1425
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
1426
- create: () => string & import("effect/Brand").Brand<"ShellID">;
1427
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
1431
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
1432
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
1433
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
1428
1434
  };
1429
1435
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
1430
1436
  readonly command: Schema.String;
@@ -1459,9 +1465,9 @@ export declare namespace Shell {
1459
1465
  };
1460
1466
  data: Schema.Struct<{
1461
1467
  readonly shell: Schema.Struct<{
1462
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
1463
- create: () => string & import("effect/Brand").Brand<"ShellID">;
1464
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
1468
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
1469
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
1470
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
1465
1471
  };
1466
1472
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
1467
1473
  readonly command: Schema.String;
@@ -1501,7 +1507,7 @@ export declare namespace Step {
1501
1507
  readonly durable: Schema.Struct<{
1502
1508
  readonly aggregateID: Schema.String;
1503
1509
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1504
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1510
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1505
1511
  }>;
1506
1512
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1507
1513
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1527,9 +1533,9 @@ export declare namespace Step {
1527
1533
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1528
1534
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1529
1535
  };
1530
- readonly agent: Schema.String;
1536
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
1531
1537
  readonly model: Schema.Struct<{
1532
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
1538
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
1533
1539
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
1534
1540
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1535
1541
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -1543,9 +1549,9 @@ export declare namespace Step {
1543
1549
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1544
1550
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1545
1551
  };
1546
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
1552
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
1547
1553
  }>;
1548
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1554
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
1549
1555
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1550
1556
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1551
1557
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -1563,9 +1569,9 @@ export declare namespace Step {
1563
1569
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1564
1570
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1565
1571
  };
1566
- readonly agent: Schema.String;
1572
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
1567
1573
  readonly model: Schema.Struct<{
1568
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
1574
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
1569
1575
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
1570
1576
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1571
1577
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -1579,9 +1585,9 @@ export declare namespace Step {
1579
1585
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1580
1586
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
1581
1587
  };
1582
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
1588
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
1583
1589
  }>;
1584
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1590
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
1585
1591
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1586
1592
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1587
1593
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -1599,7 +1605,7 @@ export declare namespace Step {
1599
1605
  readonly durable: Schema.Struct<{
1600
1606
  readonly aggregateID: Schema.String;
1601
1607
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1602
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1608
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1603
1609
  }>;
1604
1610
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1605
1611
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1626,7 +1632,9 @@ export declare namespace Step {
1626
1632
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1627
1633
  };
1628
1634
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
1629
- readonly cost: Schema.Finite;
1635
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
1636
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
1637
+ };
1630
1638
  readonly tokens: Schema.Struct<{
1631
1639
  readonly input: Schema.Finite;
1632
1640
  readonly output: Schema.Finite;
@@ -1636,7 +1644,7 @@ export declare namespace Step {
1636
1644
  readonly write: Schema.Finite;
1637
1645
  }>;
1638
1646
  }>;
1639
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1647
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
1640
1648
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
1641
1649
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1642
1650
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -1656,7 +1664,9 @@ export declare namespace Step {
1656
1664
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1657
1665
  };
1658
1666
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
1659
- readonly cost: Schema.Finite;
1667
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
1668
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
1669
+ };
1660
1670
  readonly tokens: Schema.Struct<{
1661
1671
  readonly input: Schema.Finite;
1662
1672
  readonly output: Schema.Finite;
@@ -1666,7 +1676,7 @@ export declare namespace Step {
1666
1676
  readonly write: Schema.Finite;
1667
1677
  }>;
1668
1678
  }>;
1669
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1679
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
1670
1680
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
1671
1681
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1672
1682
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -1685,7 +1695,7 @@ export declare namespace Step {
1685
1695
  readonly durable: Schema.Struct<{
1686
1696
  readonly aggregateID: Schema.String;
1687
1697
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1688
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1698
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1689
1699
  }>;
1690
1700
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1691
1701
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1715,7 +1725,11 @@ export declare namespace Step {
1715
1725
  readonly type: Schema.String;
1716
1726
  readonly message: Schema.String;
1717
1727
  }>;
1718
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
1728
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
1729
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
1730
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
1731
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
1732
+ }>, never, never>;
1719
1733
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1720
1734
  readonly input: Schema.Finite;
1721
1735
  readonly output: Schema.Finite;
@@ -1754,7 +1768,11 @@ export declare namespace Step {
1754
1768
  readonly type: Schema.String;
1755
1769
  readonly message: Schema.String;
1756
1770
  }>;
1757
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
1771
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
1772
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
1773
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
1774
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
1775
+ }>, never, never>;
1758
1776
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1759
1777
  readonly input: Schema.Finite;
1760
1778
  readonly output: Schema.Finite;
@@ -1791,7 +1809,7 @@ export declare namespace Text {
1791
1809
  readonly durable: Schema.Struct<{
1792
1810
  readonly aggregateID: Schema.String;
1793
1811
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1794
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1812
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1795
1813
  }>;
1796
1814
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1797
1815
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1909,7 +1927,7 @@ export declare namespace Text {
1909
1927
  readonly durable: Schema.Struct<{
1910
1928
  readonly aggregateID: Schema.String;
1911
1929
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1912
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1930
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1913
1931
  }>;
1914
1932
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1915
1933
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1975,7 +1993,7 @@ export declare namespace Reasoning {
1975
1993
  readonly durable: Schema.Struct<{
1976
1994
  readonly aggregateID: Schema.String;
1977
1995
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1978
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1996
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
1979
1997
  }>;
1980
1998
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1981
1999
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2095,7 +2113,7 @@ export declare namespace Reasoning {
2095
2113
  readonly durable: Schema.Struct<{
2096
2114
  readonly aggregateID: Schema.String;
2097
2115
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2098
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2116
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2099
2117
  }>;
2100
2118
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2101
2119
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2164,7 +2182,7 @@ export declare namespace Tool {
2164
2182
  readonly durable: Schema.Struct<{
2165
2183
  readonly aggregateID: Schema.String;
2166
2184
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2167
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2185
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2168
2186
  }>;
2169
2187
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2170
2188
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2284,7 +2302,7 @@ export declare namespace Tool {
2284
2302
  readonly durable: Schema.Struct<{
2285
2303
  readonly aggregateID: Schema.String;
2286
2304
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2287
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2305
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2288
2306
  }>;
2289
2307
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2290
2308
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2349,7 +2367,7 @@ export declare namespace Tool {
2349
2367
  readonly durable: Schema.Struct<{
2350
2368
  readonly aggregateID: Schema.String;
2351
2369
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2352
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2370
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2353
2371
  }>;
2354
2372
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2355
2373
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2421,7 +2439,7 @@ export declare namespace Tool {
2421
2439
  readonly durable: Schema.Struct<{
2422
2440
  readonly aggregateID: Schema.String;
2423
2441
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2424
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2442
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2425
2443
  }>;
2426
2444
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2427
2445
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2503,7 +2521,7 @@ export declare namespace Tool {
2503
2521
  readonly durable: Schema.Struct<{
2504
2522
  readonly aggregateID: Schema.String;
2505
2523
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2506
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2524
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2507
2525
  }>;
2508
2526
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2509
2527
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2535,7 +2553,6 @@ export declare namespace Tool {
2535
2553
  readonly mime: Schema.String;
2536
2554
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2537
2555
  }>]>>;
2538
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
2539
2556
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
2540
2557
  readonly executed: Schema.Boolean;
2541
2558
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -2567,7 +2584,6 @@ export declare namespace Tool {
2567
2584
  readonly mime: Schema.String;
2568
2585
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2569
2586
  }>]>>;
2570
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
2571
2587
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
2572
2588
  readonly executed: Schema.Boolean;
2573
2589
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -2593,7 +2609,7 @@ export declare namespace Tool {
2593
2609
  readonly durable: Schema.Struct<{
2594
2610
  readonly aggregateID: Schema.String;
2595
2611
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2596
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2612
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2597
2613
  }>;
2598
2614
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2599
2615
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2670,7 +2686,7 @@ export declare const RetryScheduled: Schema.Struct<{
2670
2686
  readonly durable: Schema.Struct<{
2671
2687
  readonly aggregateID: Schema.String;
2672
2688
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2673
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2689
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2674
2690
  }>;
2675
2691
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2676
2692
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2743,7 +2759,7 @@ export declare namespace Compaction {
2743
2759
  readonly durable: Schema.Struct<{
2744
2760
  readonly aggregateID: Schema.String;
2745
2761
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2746
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2762
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2747
2763
  }>;
2748
2764
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2749
2765
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2803,7 +2819,7 @@ export declare namespace Compaction {
2803
2819
  readonly durable: Schema.Struct<{
2804
2820
  readonly aggregateID: Schema.String;
2805
2821
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2806
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2822
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2807
2823
  }>;
2808
2824
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2809
2825
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2825,7 +2841,15 @@ export declare namespace Compaction {
2825
2841
  }>, never, never>;
2826
2842
  }>>, never, never>;
2827
2843
  readonly data: Schema.Struct<{
2828
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
2844
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
2845
+ readonly recent: Schema.String;
2846
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
2847
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2848
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2849
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
2850
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2851
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2852
+ }>, never, never>;
2829
2853
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2830
2854
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2831
2855
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -2839,7 +2863,15 @@ export declare namespace Compaction {
2839
2863
  readonly aggregate: string;
2840
2864
  };
2841
2865
  data: Schema.Struct<{
2842
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
2866
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
2867
+ readonly recent: Schema.String;
2868
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
2869
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2870
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2871
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
2872
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2873
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2874
+ }>, never, never>;
2843
2875
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2844
2876
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2845
2877
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -2903,7 +2935,7 @@ export declare namespace Compaction {
2903
2935
  readonly durable: Schema.Struct<{
2904
2936
  readonly aggregateID: Schema.String;
2905
2937
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2906
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2938
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2907
2939
  }>;
2908
2940
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2909
2941
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2925,7 +2957,7 @@ export declare namespace Compaction {
2925
2957
  }>, never, never>;
2926
2958
  }>>, never, never>;
2927
2959
  readonly data: Schema.Struct<{
2928
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
2960
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
2929
2961
  readonly text: Schema.String;
2930
2962
  readonly recent: Schema.String;
2931
2963
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -2941,7 +2973,7 @@ export declare namespace Compaction {
2941
2973
  readonly aggregate: string;
2942
2974
  };
2943
2975
  data: Schema.Struct<{
2944
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
2976
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
2945
2977
  readonly text: Schema.String;
2946
2978
  readonly recent: Schema.String;
2947
2979
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -2961,7 +2993,7 @@ export declare namespace Compaction {
2961
2993
  readonly durable: Schema.Struct<{
2962
2994
  readonly aggregateID: Schema.String;
2963
2995
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2964
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2996
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2965
2997
  }>;
2966
2998
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2967
2999
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2983,7 +3015,19 @@ export declare namespace Compaction {
2983
3015
  }>, never, never>;
2984
3016
  }>>, never, never>;
2985
3017
  readonly data: Schema.Struct<{
2986
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
3018
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
3019
+ readonly error: Schema.Struct<{
3020
+ readonly type: Schema.String;
3021
+ readonly message: Schema.String;
3022
+ }>;
3023
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
3024
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3025
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3026
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
3027
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3028
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3029
+ }>, never, never>;
3030
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2987
3031
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2988
3032
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2989
3033
  };
@@ -2996,7 +3040,19 @@ export declare namespace Compaction {
2996
3040
  readonly aggregate: string;
2997
3041
  };
2998
3042
  data: Schema.Struct<{
2999
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
3043
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
3044
+ readonly error: Schema.Struct<{
3045
+ readonly type: Schema.String;
3046
+ readonly message: Schema.String;
3047
+ }>;
3048
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
3049
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3050
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3051
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
3052
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3053
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3054
+ }>, never, never>;
3055
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3000
3056
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3001
3057
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3002
3058
  };
@@ -3015,7 +3071,7 @@ export declare namespace RevertEvent {
3015
3071
  readonly durable: Schema.Struct<{
3016
3072
  readonly aggregateID: Schema.String;
3017
3073
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3018
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3074
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3019
3075
  }>;
3020
3076
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3021
3077
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3043,20 +3099,19 @@ export declare namespace RevertEvent {
3043
3099
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3044
3100
  };
3045
3101
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3046
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3047
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3102
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
3048
3103
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
3049
- readonly path: Schema.brand<Schema.String, "RelativePath">;
3050
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
3104
+ readonly file: Schema.String;
3105
+ readonly patch: Schema.String;
3051
3106
  readonly additions: Schema.Int;
3052
3107
  readonly deletions: Schema.Int;
3053
- readonly patch: Schema.String;
3108
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3054
3109
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3055
- readonly path: Schema.brand<Schema.String, "RelativePath">;
3056
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
3110
+ readonly file: Schema.String;
3111
+ readonly patch: Schema.String;
3057
3112
  readonly additions: Schema.Int;
3058
3113
  readonly deletions: Schema.Int;
3059
- readonly patch: Schema.String;
3114
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3060
3115
  }>>>, never, never>;
3061
3116
  }>;
3062
3117
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -3078,20 +3133,19 @@ export declare namespace RevertEvent {
3078
3133
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3079
3134
  };
3080
3135
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3081
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3082
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3136
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
3083
3137
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
3084
- readonly path: Schema.brand<Schema.String, "RelativePath">;
3085
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
3138
+ readonly file: Schema.String;
3139
+ readonly patch: Schema.String;
3086
3140
  readonly additions: Schema.Int;
3087
3141
  readonly deletions: Schema.Int;
3088
- readonly patch: Schema.String;
3142
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3089
3143
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3090
- readonly path: Schema.brand<Schema.String, "RelativePath">;
3091
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
3144
+ readonly file: Schema.String;
3145
+ readonly patch: Schema.String;
3092
3146
  readonly additions: Schema.Int;
3093
3147
  readonly deletions: Schema.Int;
3094
- readonly patch: Schema.String;
3148
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3095
3149
  }>>>, never, never>;
3096
3150
  }>;
3097
3151
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -3110,7 +3164,7 @@ export declare namespace RevertEvent {
3110
3164
  readonly durable: Schema.Struct<{
3111
3165
  readonly aggregateID: Schema.String;
3112
3166
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3113
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3167
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3114
3168
  }>;
3115
3169
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3116
3170
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3161,7 +3215,7 @@ export declare namespace RevertEvent {
3161
3215
  readonly durable: Schema.Struct<{
3162
3216
  readonly aggregateID: Schema.String;
3163
3217
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3164
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3218
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3165
3219
  }>;
3166
3220
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3167
3221
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3221,7 +3275,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3221
3275
  readonly durable: Schema.Struct<{
3222
3276
  readonly aggregateID: Schema.String;
3223
3277
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3224
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3278
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3225
3279
  }>;
3226
3280
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3227
3281
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3243,7 +3297,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3243
3297
  }>, never, never>;
3244
3298
  }>>, never, never>;
3245
3299
  readonly data: Schema.Struct<{
3246
- readonly agent: Schema.String;
3300
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
3247
3301
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3248
3302
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3249
3303
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -3257,7 +3311,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3257
3311
  readonly aggregate: string;
3258
3312
  };
3259
3313
  data: Schema.Struct<{
3260
- readonly agent: Schema.String;
3314
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
3261
3315
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3262
3316
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3263
3317
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -3273,7 +3327,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3273
3327
  readonly durable: Schema.Struct<{
3274
3328
  readonly aggregateID: Schema.String;
3275
3329
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3276
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3330
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3277
3331
  }>;
3278
3332
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3279
3333
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3296,7 +3350,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3296
3350
  }>>, never, never>;
3297
3351
  readonly data: Schema.Struct<{
3298
3352
  readonly model: Schema.Struct<{
3299
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
3353
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
3300
3354
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
3301
3355
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
3302
3356
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -3310,7 +3364,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3310
3364
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
3311
3365
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
3312
3366
  };
3313
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
3367
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
3314
3368
  }>;
3315
3369
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3316
3370
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -3326,7 +3380,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3326
3380
  };
3327
3381
  data: Schema.Struct<{
3328
3382
  readonly model: Schema.Struct<{
3329
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
3383
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
3330
3384
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
3331
3385
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
3332
3386
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -3340,7 +3394,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3340
3394
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
3341
3395
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
3342
3396
  };
3343
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
3397
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
3344
3398
  }>;
3345
3399
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3346
3400
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -3357,7 +3411,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3357
3411
  readonly durable: Schema.Struct<{
3358
3412
  readonly aggregateID: Schema.String;
3359
3413
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3360
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3414
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3361
3415
  }>;
3362
3416
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3363
3417
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3429,7 +3483,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3429
3483
  readonly durable: Schema.Struct<{
3430
3484
  readonly aggregateID: Schema.String;
3431
3485
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3432
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3486
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3433
3487
  }>;
3434
3488
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3435
3489
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3498,7 +3552,9 @@ export declare const Definitions: readonly [Schema.Struct<{
3498
3552
  }>, never, never>;
3499
3553
  }>>, never, never>;
3500
3554
  readonly data: Schema.Struct<{
3501
- readonly cost: Schema.Finite;
3555
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
3556
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
3557
+ };
3502
3558
  readonly tokens: Schema.Struct<{
3503
3559
  readonly input: Schema.Finite;
3504
3560
  readonly output: Schema.Finite;
@@ -3518,7 +3574,9 @@ export declare const Definitions: readonly [Schema.Struct<{
3518
3574
  durability: "ephemeral";
3519
3575
  durable: undefined;
3520
3576
  data: Schema.Struct<{
3521
- readonly cost: Schema.Finite;
3577
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
3578
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
3579
+ };
3522
3580
  readonly tokens: Schema.Struct<{
3523
3581
  readonly input: Schema.Finite;
3524
3582
  readonly output: Schema.Finite;
@@ -3543,7 +3601,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3543
3601
  readonly durable: Schema.Struct<{
3544
3602
  readonly aggregateID: Schema.String;
3545
3603
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3546
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3604
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3547
3605
  }>;
3548
3606
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3549
3607
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3593,7 +3651,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3593
3651
  readonly durable: Schema.Struct<{
3594
3652
  readonly aggregateID: Schema.String;
3595
3653
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3596
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3654
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3597
3655
  }>;
3598
3656
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3599
3657
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3665,7 +3723,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3665
3723
  readonly durable: Schema.Struct<{
3666
3724
  readonly aggregateID: Schema.String;
3667
3725
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3668
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3726
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3669
3727
  }>;
3670
3728
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3671
3729
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3723,7 +3781,7 @@ export declare const Definitions: readonly [Schema.Struct<{
3723
3781
  readonly durable: Schema.Struct<{
3724
3782
  readonly aggregateID: Schema.String;
3725
3783
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3726
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3784
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
3727
3785
  }>;
3728
3786
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3729
3787
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4103,7 +4161,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4103
4161
  readonly durable: Schema.Struct<{
4104
4162
  readonly aggregateID: Schema.String;
4105
4163
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4106
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4164
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4107
4165
  }>;
4108
4166
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4109
4167
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4153,7 +4211,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4153
4211
  readonly durable: Schema.Struct<{
4154
4212
  readonly aggregateID: Schema.String;
4155
4213
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4156
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4214
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4157
4215
  }>;
4158
4216
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4159
4217
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4203,7 +4261,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4203
4261
  readonly durable: Schema.Struct<{
4204
4262
  readonly aggregateID: Schema.String;
4205
4263
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4206
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4264
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4207
4265
  }>;
4208
4266
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4209
4267
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4261,7 +4319,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4261
4319
  readonly durable: Schema.Struct<{
4262
4320
  readonly aggregateID: Schema.String;
4263
4321
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4264
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4322
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4265
4323
  }>;
4266
4324
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4267
4325
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4313,7 +4371,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4313
4371
  readonly durable: Schema.Struct<{
4314
4372
  readonly aggregateID: Schema.String;
4315
4373
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4316
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4374
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4317
4375
  }>;
4318
4376
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4319
4377
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4365,7 +4423,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4365
4423
  readonly durable: Schema.Struct<{
4366
4424
  readonly aggregateID: Schema.String;
4367
4425
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4368
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4426
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4369
4427
  }>;
4370
4428
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4371
4429
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4421,7 +4479,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4421
4479
  readonly durable: Schema.Struct<{
4422
4480
  readonly aggregateID: Schema.String;
4423
4481
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4424
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4482
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4425
4483
  }>;
4426
4484
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4427
4485
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4443,7 +4501,8 @@ export declare const Definitions: readonly [Schema.Struct<{
4443
4501
  }>, never, never>;
4444
4502
  }>>, never, never>;
4445
4503
  readonly data: Schema.Struct<{
4446
- readonly name: Schema.String;
4504
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
4505
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
4447
4506
  readonly text: Schema.String;
4448
4507
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4449
4508
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -4458,7 +4517,8 @@ export declare const Definitions: readonly [Schema.Struct<{
4458
4517
  readonly aggregate: string;
4459
4518
  };
4460
4519
  data: Schema.Struct<{
4461
- readonly name: Schema.String;
4520
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
4521
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
4462
4522
  readonly text: Schema.String;
4463
4523
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4464
4524
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -4475,7 +4535,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4475
4535
  readonly durable: Schema.Struct<{
4476
4536
  readonly aggregateID: Schema.String;
4477
4537
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4478
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4538
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4479
4539
  }>;
4480
4540
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4481
4541
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4498,9 +4558,9 @@ export declare const Definitions: readonly [Schema.Struct<{
4498
4558
  }>>, never, never>;
4499
4559
  readonly data: Schema.Struct<{
4500
4560
  readonly shell: Schema.Struct<{
4501
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
4502
- create: () => string & import("effect/Brand").Brand<"ShellID">;
4503
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
4561
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
4562
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
4563
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
4504
4564
  };
4505
4565
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
4506
4566
  readonly command: Schema.String;
@@ -4529,9 +4589,9 @@ export declare const Definitions: readonly [Schema.Struct<{
4529
4589
  };
4530
4590
  data: Schema.Struct<{
4531
4591
  readonly shell: Schema.Struct<{
4532
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
4533
- create: () => string & import("effect/Brand").Brand<"ShellID">;
4534
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
4592
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
4593
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
4594
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
4535
4595
  };
4536
4596
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
4537
4597
  readonly command: Schema.String;
@@ -4561,7 +4621,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4561
4621
  readonly durable: Schema.Struct<{
4562
4622
  readonly aggregateID: Schema.String;
4563
4623
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4564
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4624
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4565
4625
  }>;
4566
4626
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4567
4627
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4584,9 +4644,9 @@ export declare const Definitions: readonly [Schema.Struct<{
4584
4644
  }>>, never, never>;
4585
4645
  readonly data: Schema.Struct<{
4586
4646
  readonly shell: Schema.Struct<{
4587
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
4588
- create: () => string & import("effect/Brand").Brand<"ShellID">;
4589
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
4647
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
4648
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
4649
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
4590
4650
  };
4591
4651
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
4592
4652
  readonly command: Schema.String;
@@ -4621,9 +4681,9 @@ export declare const Definitions: readonly [Schema.Struct<{
4621
4681
  };
4622
4682
  data: Schema.Struct<{
4623
4683
  readonly shell: Schema.Struct<{
4624
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
4625
- create: () => string & import("effect/Brand").Brand<"ShellID">;
4626
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
4684
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
4685
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
4686
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
4627
4687
  };
4628
4688
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
4629
4689
  readonly command: Schema.String;
@@ -4659,7 +4719,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4659
4719
  readonly durable: Schema.Struct<{
4660
4720
  readonly aggregateID: Schema.String;
4661
4721
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4662
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4722
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4663
4723
  }>;
4664
4724
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4665
4725
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4685,9 +4745,9 @@ export declare const Definitions: readonly [Schema.Struct<{
4685
4745
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4686
4746
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4687
4747
  };
4688
- readonly agent: Schema.String;
4748
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
4689
4749
  readonly model: Schema.Struct<{
4690
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
4750
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
4691
4751
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
4692
4752
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4693
4753
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -4701,9 +4761,9 @@ export declare const Definitions: readonly [Schema.Struct<{
4701
4761
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4702
4762
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4703
4763
  };
4704
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
4764
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
4705
4765
  }>;
4706
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4766
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
4707
4767
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4708
4768
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4709
4769
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -4721,9 +4781,9 @@ export declare const Definitions: readonly [Schema.Struct<{
4721
4781
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4722
4782
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4723
4783
  };
4724
- readonly agent: Schema.String;
4784
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
4725
4785
  readonly model: Schema.Struct<{
4726
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
4786
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
4727
4787
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
4728
4788
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4729
4789
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -4737,9 +4797,9 @@ export declare const Definitions: readonly [Schema.Struct<{
4737
4797
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4738
4798
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
4739
4799
  };
4740
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
4800
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
4741
4801
  }>;
4742
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4802
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
4743
4803
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4744
4804
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4745
4805
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -4755,7 +4815,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4755
4815
  readonly durable: Schema.Struct<{
4756
4816
  readonly aggregateID: Schema.String;
4757
4817
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4758
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4818
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4759
4819
  }>;
4760
4820
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4761
4821
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4782,7 +4842,9 @@ export declare const Definitions: readonly [Schema.Struct<{
4782
4842
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4783
4843
  };
4784
4844
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
4785
- readonly cost: Schema.Finite;
4845
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
4846
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
4847
+ };
4786
4848
  readonly tokens: Schema.Struct<{
4787
4849
  readonly input: Schema.Finite;
4788
4850
  readonly output: Schema.Finite;
@@ -4792,7 +4854,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4792
4854
  readonly write: Schema.Finite;
4793
4855
  }>;
4794
4856
  }>;
4795
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4857
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
4796
4858
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
4797
4859
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4798
4860
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -4812,7 +4874,9 @@ export declare const Definitions: readonly [Schema.Struct<{
4812
4874
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4813
4875
  };
4814
4876
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
4815
- readonly cost: Schema.Finite;
4877
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
4878
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
4879
+ };
4816
4880
  readonly tokens: Schema.Struct<{
4817
4881
  readonly input: Schema.Finite;
4818
4882
  readonly output: Schema.Finite;
@@ -4822,7 +4886,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4822
4886
  readonly write: Schema.Finite;
4823
4887
  }>;
4824
4888
  }>;
4825
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4889
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
4826
4890
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
4827
4891
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4828
4892
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -4839,7 +4903,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4839
4903
  readonly durable: Schema.Struct<{
4840
4904
  readonly aggregateID: Schema.String;
4841
4905
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4842
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4906
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4843
4907
  }>;
4844
4908
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4845
4909
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4869,7 +4933,11 @@ export declare const Definitions: readonly [Schema.Struct<{
4869
4933
  readonly type: Schema.String;
4870
4934
  readonly message: Schema.String;
4871
4935
  }>;
4872
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
4936
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
4937
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
4938
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
4939
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
4940
+ }>, never, never>;
4873
4941
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4874
4942
  readonly input: Schema.Finite;
4875
4943
  readonly output: Schema.Finite;
@@ -4908,7 +4976,11 @@ export declare const Definitions: readonly [Schema.Struct<{
4908
4976
  readonly type: Schema.String;
4909
4977
  readonly message: Schema.String;
4910
4978
  }>;
4911
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
4979
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
4980
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
4981
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
4982
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
4983
+ }>, never, never>;
4912
4984
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4913
4985
  readonly input: Schema.Finite;
4914
4986
  readonly output: Schema.Finite;
@@ -4941,7 +5013,7 @@ export declare const Definitions: readonly [Schema.Struct<{
4941
5013
  readonly durable: Schema.Struct<{
4942
5014
  readonly aggregateID: Schema.String;
4943
5015
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4944
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5016
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
4945
5017
  }>;
4946
5018
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4947
5019
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5055,7 +5127,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5055
5127
  readonly durable: Schema.Struct<{
5056
5128
  readonly aggregateID: Schema.String;
5057
5129
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5058
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5130
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5059
5131
  }>;
5060
5132
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5061
5133
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5117,7 +5189,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5117
5189
  readonly durable: Schema.Struct<{
5118
5190
  readonly aggregateID: Schema.String;
5119
5191
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5120
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5192
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5121
5193
  }>;
5122
5194
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5123
5195
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5233,7 +5305,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5233
5305
  readonly durable: Schema.Struct<{
5234
5306
  readonly aggregateID: Schema.String;
5235
5307
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5236
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5308
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5237
5309
  }>;
5238
5310
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5239
5311
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5297,7 +5369,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5297
5369
  readonly durable: Schema.Struct<{
5298
5370
  readonly aggregateID: Schema.String;
5299
5371
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5300
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5372
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5301
5373
  }>;
5302
5374
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5303
5375
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5413,7 +5485,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5413
5485
  readonly durable: Schema.Struct<{
5414
5486
  readonly aggregateID: Schema.String;
5415
5487
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5416
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5488
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5417
5489
  }>;
5418
5490
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5419
5491
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5475,7 +5547,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5475
5547
  readonly durable: Schema.Struct<{
5476
5548
  readonly aggregateID: Schema.String;
5477
5549
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5478
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5550
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5479
5551
  }>;
5480
5552
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5481
5553
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5541,7 +5613,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5541
5613
  readonly durable: Schema.Struct<{
5542
5614
  readonly aggregateID: Schema.String;
5543
5615
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5544
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5616
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5545
5617
  }>;
5546
5618
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5547
5619
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5621,7 +5693,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5621
5693
  readonly durable: Schema.Struct<{
5622
5694
  readonly aggregateID: Schema.String;
5623
5695
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5624
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5696
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5625
5697
  }>;
5626
5698
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5627
5699
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5653,7 +5725,6 @@ export declare const Definitions: readonly [Schema.Struct<{
5653
5725
  readonly mime: Schema.String;
5654
5726
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5655
5727
  }>]>>;
5656
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
5657
5728
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
5658
5729
  readonly executed: Schema.Boolean;
5659
5730
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -5685,7 +5756,6 @@ export declare const Definitions: readonly [Schema.Struct<{
5685
5756
  readonly mime: Schema.String;
5686
5757
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5687
5758
  }>]>>;
5688
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
5689
5759
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
5690
5760
  readonly executed: Schema.Boolean;
5691
5761
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -5709,7 +5779,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5709
5779
  readonly durable: Schema.Struct<{
5710
5780
  readonly aggregateID: Schema.String;
5711
5781
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5712
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5782
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5713
5783
  }>;
5714
5784
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5715
5785
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5783,7 +5853,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5783
5853
  readonly durable: Schema.Struct<{
5784
5854
  readonly aggregateID: Schema.String;
5785
5855
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5786
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5856
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5787
5857
  }>;
5788
5858
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5789
5859
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5853,7 +5923,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5853
5923
  readonly durable: Schema.Struct<{
5854
5924
  readonly aggregateID: Schema.String;
5855
5925
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5856
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5926
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5857
5927
  }>;
5858
5928
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5859
5929
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5911,7 +5981,7 @@ export declare const Definitions: readonly [Schema.Struct<{
5911
5981
  readonly durable: Schema.Struct<{
5912
5982
  readonly aggregateID: Schema.String;
5913
5983
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5914
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
5984
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
5915
5985
  }>;
5916
5986
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5917
5987
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5933,7 +6003,15 @@ export declare const Definitions: readonly [Schema.Struct<{
5933
6003
  }>, never, never>;
5934
6004
  }>>, never, never>;
5935
6005
  readonly data: Schema.Struct<{
5936
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
6006
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
6007
+ readonly recent: Schema.String;
6008
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
6009
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6010
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6011
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
6012
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6013
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6014
+ }>, never, never>;
5937
6015
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5938
6016
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5939
6017
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -5947,7 +6025,15 @@ export declare const Definitions: readonly [Schema.Struct<{
5947
6025
  readonly aggregate: string;
5948
6026
  };
5949
6027
  data: Schema.Struct<{
5950
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
6028
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
6029
+ readonly recent: Schema.String;
6030
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
6031
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6032
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6033
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
6034
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6035
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6036
+ }>, never, never>;
5951
6037
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5952
6038
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5953
6039
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -6007,7 +6093,7 @@ export declare const Definitions: readonly [Schema.Struct<{
6007
6093
  readonly durable: Schema.Struct<{
6008
6094
  readonly aggregateID: Schema.String;
6009
6095
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6010
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6096
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6011
6097
  }>;
6012
6098
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6013
6099
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6029,7 +6115,7 @@ export declare const Definitions: readonly [Schema.Struct<{
6029
6115
  }>, never, never>;
6030
6116
  }>>, never, never>;
6031
6117
  readonly data: Schema.Struct<{
6032
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
6118
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
6033
6119
  readonly text: Schema.String;
6034
6120
  readonly recent: Schema.String;
6035
6121
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -6045,7 +6131,7 @@ export declare const Definitions: readonly [Schema.Struct<{
6045
6131
  readonly aggregate: string;
6046
6132
  };
6047
6133
  data: Schema.Struct<{
6048
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
6134
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
6049
6135
  readonly text: Schema.String;
6050
6136
  readonly recent: Schema.String;
6051
6137
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -6063,7 +6149,7 @@ export declare const Definitions: readonly [Schema.Struct<{
6063
6149
  readonly durable: Schema.Struct<{
6064
6150
  readonly aggregateID: Schema.String;
6065
6151
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6066
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6152
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6067
6153
  }>;
6068
6154
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6069
6155
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6085,7 +6171,19 @@ export declare const Definitions: readonly [Schema.Struct<{
6085
6171
  }>, never, never>;
6086
6172
  }>>, never, never>;
6087
6173
  readonly data: Schema.Struct<{
6088
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
6174
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
6175
+ readonly error: Schema.Struct<{
6176
+ readonly type: Schema.String;
6177
+ readonly message: Schema.String;
6178
+ }>;
6179
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
6180
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6181
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6182
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
6183
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6184
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6185
+ }>, never, never>;
6186
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6089
6187
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6090
6188
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6091
6189
  };
@@ -6098,7 +6196,19 @@ export declare const Definitions: readonly [Schema.Struct<{
6098
6196
  readonly aggregate: string;
6099
6197
  };
6100
6198
  data: Schema.Struct<{
6101
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
6199
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
6200
+ readonly error: Schema.Struct<{
6201
+ readonly type: Schema.String;
6202
+ readonly message: Schema.String;
6203
+ }>;
6204
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
6205
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6206
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6207
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
6208
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6209
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6210
+ }>, never, never>;
6211
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6102
6212
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6103
6213
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6104
6214
  };
@@ -6113,7 +6223,7 @@ export declare const Definitions: readonly [Schema.Struct<{
6113
6223
  readonly durable: Schema.Struct<{
6114
6224
  readonly aggregateID: Schema.String;
6115
6225
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6116
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6226
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6117
6227
  }>;
6118
6228
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6119
6229
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6141,20 +6251,19 @@ export declare const Definitions: readonly [Schema.Struct<{
6141
6251
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6142
6252
  };
6143
6253
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
6144
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
6145
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
6254
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
6146
6255
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
6147
- readonly path: Schema.brand<Schema.String, "RelativePath">;
6148
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
6256
+ readonly file: Schema.String;
6257
+ readonly patch: Schema.String;
6149
6258
  readonly additions: Schema.Int;
6150
6259
  readonly deletions: Schema.Int;
6151
- readonly patch: Schema.String;
6260
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
6152
6261
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
6153
- readonly path: Schema.brand<Schema.String, "RelativePath">;
6154
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
6262
+ readonly file: Schema.String;
6263
+ readonly patch: Schema.String;
6155
6264
  readonly additions: Schema.Int;
6156
6265
  readonly deletions: Schema.Int;
6157
- readonly patch: Schema.String;
6266
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
6158
6267
  }>>>, never, never>;
6159
6268
  }>;
6160
6269
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -6176,20 +6285,19 @@ export declare const Definitions: readonly [Schema.Struct<{
6176
6285
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6177
6286
  };
6178
6287
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
6179
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
6180
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
6288
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
6181
6289
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
6182
- readonly path: Schema.brand<Schema.String, "RelativePath">;
6183
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
6290
+ readonly file: Schema.String;
6291
+ readonly patch: Schema.String;
6184
6292
  readonly additions: Schema.Int;
6185
6293
  readonly deletions: Schema.Int;
6186
- readonly patch: Schema.String;
6294
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
6187
6295
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
6188
- readonly path: Schema.brand<Schema.String, "RelativePath">;
6189
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
6296
+ readonly file: Schema.String;
6297
+ readonly patch: Schema.String;
6190
6298
  readonly additions: Schema.Int;
6191
6299
  readonly deletions: Schema.Int;
6192
- readonly patch: Schema.String;
6300
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
6193
6301
  }>>>, never, never>;
6194
6302
  }>;
6195
6303
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -6207,7 +6315,7 @@ export declare const Definitions: readonly [Schema.Struct<{
6207
6315
  readonly durable: Schema.Struct<{
6208
6316
  readonly aggregateID: Schema.String;
6209
6317
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6210
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6318
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6211
6319
  }>;
6212
6320
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6213
6321
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6257,7 +6365,7 @@ export declare const Definitions: readonly [Schema.Struct<{
6257
6365
  readonly durable: Schema.Struct<{
6258
6366
  readonly aggregateID: Schema.String;
6259
6367
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6260
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6368
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6261
6369
  }>;
6262
6370
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6263
6371
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6316,7 +6424,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6316
6424
  readonly durable: Schema.Struct<{
6317
6425
  readonly aggregateID: Schema.String;
6318
6426
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6319
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6427
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6320
6428
  }>;
6321
6429
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6322
6430
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6338,7 +6446,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6338
6446
  }>, never, never>;
6339
6447
  }>>, never, never>;
6340
6448
  readonly data: Schema.Struct<{
6341
- readonly agent: Schema.String;
6449
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
6342
6450
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6343
6451
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6344
6452
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -6352,7 +6460,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6352
6460
  readonly aggregate: string;
6353
6461
  };
6354
6462
  data: Schema.Struct<{
6355
- readonly agent: Schema.String;
6463
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
6356
6464
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6357
6465
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6358
6466
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -6368,7 +6476,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6368
6476
  readonly durable: Schema.Struct<{
6369
6477
  readonly aggregateID: Schema.String;
6370
6478
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6371
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6479
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6372
6480
  }>;
6373
6481
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6374
6482
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6391,7 +6499,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6391
6499
  }>>, never, never>;
6392
6500
  readonly data: Schema.Struct<{
6393
6501
  readonly model: Schema.Struct<{
6394
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
6502
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
6395
6503
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
6396
6504
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
6397
6505
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -6405,7 +6513,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6405
6513
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
6406
6514
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
6407
6515
  };
6408
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
6516
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
6409
6517
  }>;
6410
6518
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6411
6519
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -6421,7 +6529,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6421
6529
  };
6422
6530
  data: Schema.Struct<{
6423
6531
  readonly model: Schema.Struct<{
6424
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
6532
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
6425
6533
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
6426
6534
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
6427
6535
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -6435,7 +6543,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6435
6543
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
6436
6544
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
6437
6545
  };
6438
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
6546
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
6439
6547
  }>;
6440
6548
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6441
6549
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -6452,7 +6560,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6452
6560
  readonly durable: Schema.Struct<{
6453
6561
  readonly aggregateID: Schema.String;
6454
6562
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6455
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6563
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6456
6564
  }>;
6457
6565
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6458
6566
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6524,7 +6632,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6524
6632
  readonly durable: Schema.Struct<{
6525
6633
  readonly aggregateID: Schema.String;
6526
6634
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6527
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6635
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6528
6636
  }>;
6529
6637
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6530
6638
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6576,7 +6684,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6576
6684
  readonly durable: Schema.Struct<{
6577
6685
  readonly aggregateID: Schema.String;
6578
6686
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6579
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6687
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6580
6688
  }>;
6581
6689
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6582
6690
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6626,7 +6734,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6626
6734
  readonly durable: Schema.Struct<{
6627
6735
  readonly aggregateID: Schema.String;
6628
6736
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6629
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6737
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6630
6738
  }>;
6631
6739
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6632
6740
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6698,7 +6806,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6698
6806
  readonly durable: Schema.Struct<{
6699
6807
  readonly aggregateID: Schema.String;
6700
6808
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6701
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6809
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6702
6810
  }>;
6703
6811
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6704
6812
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6756,7 +6864,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
6756
6864
  readonly durable: Schema.Struct<{
6757
6865
  readonly aggregateID: Schema.String;
6758
6866
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6759
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
6867
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6760
6868
  }>;
6761
6869
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6762
6870
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7136,7 +7244,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7136
7244
  readonly durable: Schema.Struct<{
7137
7245
  readonly aggregateID: Schema.String;
7138
7246
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7139
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
7247
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7140
7248
  }>;
7141
7249
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7142
7250
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7186,7 +7294,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7186
7294
  readonly durable: Schema.Struct<{
7187
7295
  readonly aggregateID: Schema.String;
7188
7296
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7189
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
7297
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7190
7298
  }>;
7191
7299
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7192
7300
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7236,7 +7344,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7236
7344
  readonly durable: Schema.Struct<{
7237
7345
  readonly aggregateID: Schema.String;
7238
7346
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7239
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
7347
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7240
7348
  }>;
7241
7349
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7242
7350
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7294,7 +7402,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7294
7402
  readonly durable: Schema.Struct<{
7295
7403
  readonly aggregateID: Schema.String;
7296
7404
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7297
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
7405
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7298
7406
  }>;
7299
7407
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7300
7408
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7346,7 +7454,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7346
7454
  readonly durable: Schema.Struct<{
7347
7455
  readonly aggregateID: Schema.String;
7348
7456
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7349
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
7457
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7350
7458
  }>;
7351
7459
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7352
7460
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7398,7 +7506,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7398
7506
  readonly durable: Schema.Struct<{
7399
7507
  readonly aggregateID: Schema.String;
7400
7508
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7401
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
7509
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7402
7510
  }>;
7403
7511
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7404
7512
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7454,7 +7562,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7454
7562
  readonly durable: Schema.Struct<{
7455
7563
  readonly aggregateID: Schema.String;
7456
7564
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7457
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
7565
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7458
7566
  }>;
7459
7567
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7460
7568
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7476,7 +7584,8 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7476
7584
  }>, never, never>;
7477
7585
  }>>, never, never>;
7478
7586
  readonly data: Schema.Struct<{
7479
- readonly name: Schema.String;
7587
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
7588
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
7480
7589
  readonly text: Schema.String;
7481
7590
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7482
7591
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -7491,7 +7600,8 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7491
7600
  readonly aggregate: string;
7492
7601
  };
7493
7602
  data: Schema.Struct<{
7494
- readonly name: Schema.String;
7603
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
7604
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
7495
7605
  readonly text: Schema.String;
7496
7606
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7497
7607
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -7508,7 +7618,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7508
7618
  readonly durable: Schema.Struct<{
7509
7619
  readonly aggregateID: Schema.String;
7510
7620
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7511
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
7621
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7512
7622
  }>;
7513
7623
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7514
7624
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7531,9 +7641,9 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7531
7641
  }>>, never, never>;
7532
7642
  readonly data: Schema.Struct<{
7533
7643
  readonly shell: Schema.Struct<{
7534
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
7535
- create: () => string & import("effect/Brand").Brand<"ShellID">;
7536
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
7644
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
7645
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
7646
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
7537
7647
  };
7538
7648
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
7539
7649
  readonly command: Schema.String;
@@ -7562,9 +7672,9 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7562
7672
  };
7563
7673
  data: Schema.Struct<{
7564
7674
  readonly shell: Schema.Struct<{
7565
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
7566
- create: () => string & import("effect/Brand").Brand<"ShellID">;
7567
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
7675
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
7676
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
7677
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
7568
7678
  };
7569
7679
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
7570
7680
  readonly command: Schema.String;
@@ -7594,7 +7704,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7594
7704
  readonly durable: Schema.Struct<{
7595
7705
  readonly aggregateID: Schema.String;
7596
7706
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7597
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
7707
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7598
7708
  }>;
7599
7709
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7600
7710
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7617,9 +7727,9 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7617
7727
  }>>, never, never>;
7618
7728
  readonly data: Schema.Struct<{
7619
7729
  readonly shell: Schema.Struct<{
7620
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
7621
- create: () => string & import("effect/Brand").Brand<"ShellID">;
7622
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
7730
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
7731
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
7732
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
7623
7733
  };
7624
7734
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
7625
7735
  readonly command: Schema.String;
@@ -7654,9 +7764,9 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7654
7764
  };
7655
7765
  data: Schema.Struct<{
7656
7766
  readonly shell: Schema.Struct<{
7657
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
7658
- create: () => string & import("effect/Brand").Brand<"ShellID">;
7659
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
7767
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
7768
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
7769
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
7660
7770
  };
7661
7771
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
7662
7772
  readonly command: Schema.String;
@@ -7692,7 +7802,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7692
7802
  readonly durable: Schema.Struct<{
7693
7803
  readonly aggregateID: Schema.String;
7694
7804
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7695
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
7805
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7696
7806
  }>;
7697
7807
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7698
7808
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7718,9 +7828,9 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7718
7828
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7719
7829
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7720
7830
  };
7721
- readonly agent: Schema.String;
7831
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
7722
7832
  readonly model: Schema.Struct<{
7723
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
7833
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
7724
7834
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
7725
7835
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
7726
7836
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -7734,9 +7844,9 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7734
7844
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
7735
7845
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
7736
7846
  };
7737
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
7847
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
7738
7848
  }>;
7739
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
7849
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
7740
7850
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7741
7851
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7742
7852
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -7754,9 +7864,9 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7754
7864
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7755
7865
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7756
7866
  };
7757
- readonly agent: Schema.String;
7867
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
7758
7868
  readonly model: Schema.Struct<{
7759
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
7869
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
7760
7870
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
7761
7871
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
7762
7872
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -7770,9 +7880,9 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7770
7880
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
7771
7881
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
7772
7882
  };
7773
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
7883
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
7774
7884
  }>;
7775
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
7885
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
7776
7886
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7777
7887
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7778
7888
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -7788,7 +7898,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7788
7898
  readonly durable: Schema.Struct<{
7789
7899
  readonly aggregateID: Schema.String;
7790
7900
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7791
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
7901
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7792
7902
  }>;
7793
7903
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7794
7904
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7815,7 +7925,9 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7815
7925
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7816
7926
  };
7817
7927
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
7818
- readonly cost: Schema.Finite;
7928
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
7929
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
7930
+ };
7819
7931
  readonly tokens: Schema.Struct<{
7820
7932
  readonly input: Schema.Finite;
7821
7933
  readonly output: Schema.Finite;
@@ -7825,7 +7937,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7825
7937
  readonly write: Schema.Finite;
7826
7938
  }>;
7827
7939
  }>;
7828
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
7940
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
7829
7941
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
7830
7942
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7831
7943
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -7845,7 +7957,9 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7845
7957
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7846
7958
  };
7847
7959
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
7848
- readonly cost: Schema.Finite;
7960
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
7961
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
7962
+ };
7849
7963
  readonly tokens: Schema.Struct<{
7850
7964
  readonly input: Schema.Finite;
7851
7965
  readonly output: Schema.Finite;
@@ -7855,7 +7969,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7855
7969
  readonly write: Schema.Finite;
7856
7970
  }>;
7857
7971
  }>;
7858
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
7972
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
7859
7973
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
7860
7974
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7861
7975
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -7872,7 +7986,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7872
7986
  readonly durable: Schema.Struct<{
7873
7987
  readonly aggregateID: Schema.String;
7874
7988
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7875
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
7989
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7876
7990
  }>;
7877
7991
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7878
7992
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7902,7 +8016,11 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7902
8016
  readonly type: Schema.String;
7903
8017
  readonly message: Schema.String;
7904
8018
  }>;
7905
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
8019
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
8020
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
8021
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
8022
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
8023
+ }>, never, never>;
7906
8024
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7907
8025
  readonly input: Schema.Finite;
7908
8026
  readonly output: Schema.Finite;
@@ -7941,7 +8059,11 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7941
8059
  readonly type: Schema.String;
7942
8060
  readonly message: Schema.String;
7943
8061
  }>;
7944
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
8062
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
8063
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
8064
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
8065
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
8066
+ }>, never, never>;
7945
8067
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7946
8068
  readonly input: Schema.Finite;
7947
8069
  readonly output: Schema.Finite;
@@ -7974,7 +8096,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
7974
8096
  readonly durable: Schema.Struct<{
7975
8097
  readonly aggregateID: Schema.String;
7976
8098
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7977
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8099
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
7978
8100
  }>;
7979
8101
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7980
8102
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8034,7 +8156,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8034
8156
  readonly durable: Schema.Struct<{
8035
8157
  readonly aggregateID: Schema.String;
8036
8158
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8037
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8159
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8038
8160
  }>;
8039
8161
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8040
8162
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8096,7 +8218,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8096
8218
  readonly durable: Schema.Struct<{
8097
8219
  readonly aggregateID: Schema.String;
8098
8220
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8099
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8221
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8100
8222
  }>;
8101
8223
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8102
8224
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8158,7 +8280,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8158
8280
  readonly durable: Schema.Struct<{
8159
8281
  readonly aggregateID: Schema.String;
8160
8282
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8161
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8283
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8162
8284
  }>;
8163
8285
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8164
8286
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8222,7 +8344,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8222
8344
  readonly durable: Schema.Struct<{
8223
8345
  readonly aggregateID: Schema.String;
8224
8346
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8225
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8347
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8226
8348
  }>;
8227
8349
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8228
8350
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8284,7 +8406,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8284
8406
  readonly durable: Schema.Struct<{
8285
8407
  readonly aggregateID: Schema.String;
8286
8408
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8287
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8409
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8288
8410
  }>;
8289
8411
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8290
8412
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8346,7 +8468,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8346
8468
  readonly durable: Schema.Struct<{
8347
8469
  readonly aggregateID: Schema.String;
8348
8470
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8349
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8471
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8350
8472
  }>;
8351
8473
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8352
8474
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8412,7 +8534,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8412
8534
  readonly durable: Schema.Struct<{
8413
8535
  readonly aggregateID: Schema.String;
8414
8536
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8415
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8537
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8416
8538
  }>;
8417
8539
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8418
8540
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8492,7 +8614,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8492
8614
  readonly durable: Schema.Struct<{
8493
8615
  readonly aggregateID: Schema.String;
8494
8616
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8495
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8617
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8496
8618
  }>;
8497
8619
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8498
8620
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8524,7 +8646,6 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8524
8646
  readonly mime: Schema.String;
8525
8647
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8526
8648
  }>]>>;
8527
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
8528
8649
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
8529
8650
  readonly executed: Schema.Boolean;
8530
8651
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -8556,7 +8677,6 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8556
8677
  readonly mime: Schema.String;
8557
8678
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8558
8679
  }>]>>;
8559
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
8560
8680
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
8561
8681
  readonly executed: Schema.Boolean;
8562
8682
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -8580,7 +8700,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8580
8700
  readonly durable: Schema.Struct<{
8581
8701
  readonly aggregateID: Schema.String;
8582
8702
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8583
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8703
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8584
8704
  }>;
8585
8705
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8586
8706
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8654,7 +8774,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8654
8774
  readonly durable: Schema.Struct<{
8655
8775
  readonly aggregateID: Schema.String;
8656
8776
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8657
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8777
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8658
8778
  }>;
8659
8779
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8660
8780
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8724,7 +8844,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8724
8844
  readonly durable: Schema.Struct<{
8725
8845
  readonly aggregateID: Schema.String;
8726
8846
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8727
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8847
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8728
8848
  }>;
8729
8849
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8730
8850
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8782,7 +8902,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8782
8902
  readonly durable: Schema.Struct<{
8783
8903
  readonly aggregateID: Schema.String;
8784
8904
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8785
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8905
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8786
8906
  }>;
8787
8907
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8788
8908
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8804,7 +8924,15 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8804
8924
  }>, never, never>;
8805
8925
  }>>, never, never>;
8806
8926
  readonly data: Schema.Struct<{
8807
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
8927
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
8928
+ readonly recent: Schema.String;
8929
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
8930
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8931
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8932
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
8933
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8934
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8935
+ }>, never, never>;
8808
8936
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8809
8937
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8810
8938
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -8818,7 +8946,15 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8818
8946
  readonly aggregate: string;
8819
8947
  };
8820
8948
  data: Schema.Struct<{
8821
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
8949
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
8950
+ readonly recent: Schema.String;
8951
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
8952
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8953
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8954
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
8955
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8956
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8957
+ }>, never, never>;
8822
8958
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8823
8959
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8824
8960
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -8834,7 +8970,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8834
8970
  readonly durable: Schema.Struct<{
8835
8971
  readonly aggregateID: Schema.String;
8836
8972
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8837
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
8973
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8838
8974
  }>;
8839
8975
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8840
8976
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8856,7 +8992,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8856
8992
  }>, never, never>;
8857
8993
  }>>, never, never>;
8858
8994
  readonly data: Schema.Struct<{
8859
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
8995
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
8860
8996
  readonly text: Schema.String;
8861
8997
  readonly recent: Schema.String;
8862
8998
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -8872,7 +9008,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8872
9008
  readonly aggregate: string;
8873
9009
  };
8874
9010
  data: Schema.Struct<{
8875
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
9011
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
8876
9012
  readonly text: Schema.String;
8877
9013
  readonly recent: Schema.String;
8878
9014
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -8890,7 +9026,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8890
9026
  readonly durable: Schema.Struct<{
8891
9027
  readonly aggregateID: Schema.String;
8892
9028
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8893
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9029
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8894
9030
  }>;
8895
9031
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8896
9032
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8912,7 +9048,19 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8912
9048
  }>, never, never>;
8913
9049
  }>>, never, never>;
8914
9050
  readonly data: Schema.Struct<{
8915
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
9051
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
9052
+ readonly error: Schema.Struct<{
9053
+ readonly type: Schema.String;
9054
+ readonly message: Schema.String;
9055
+ }>;
9056
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
9057
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
9058
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
9059
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
9060
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
9061
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
9062
+ }>, never, never>;
9063
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8916
9064
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8917
9065
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8918
9066
  };
@@ -8925,7 +9073,19 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8925
9073
  readonly aggregate: string;
8926
9074
  };
8927
9075
  data: Schema.Struct<{
8928
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
9076
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
9077
+ readonly error: Schema.Struct<{
9078
+ readonly type: Schema.String;
9079
+ readonly message: Schema.String;
9080
+ }>;
9081
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
9082
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
9083
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
9084
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
9085
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
9086
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
9087
+ }>, never, never>;
9088
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8929
9089
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8930
9090
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8931
9091
  };
@@ -8940,7 +9100,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8940
9100
  readonly durable: Schema.Struct<{
8941
9101
  readonly aggregateID: Schema.String;
8942
9102
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8943
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9103
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
8944
9104
  }>;
8945
9105
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8946
9106
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8968,20 +9128,19 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
8968
9128
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8969
9129
  };
8970
9130
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8971
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8972
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
9131
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
8973
9132
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
8974
- readonly path: Schema.brand<Schema.String, "RelativePath">;
8975
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
9133
+ readonly file: Schema.String;
9134
+ readonly patch: Schema.String;
8976
9135
  readonly additions: Schema.Int;
8977
9136
  readonly deletions: Schema.Int;
8978
- readonly patch: Schema.String;
9137
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
8979
9138
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
8980
- readonly path: Schema.brand<Schema.String, "RelativePath">;
8981
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
9139
+ readonly file: Schema.String;
9140
+ readonly patch: Schema.String;
8982
9141
  readonly additions: Schema.Int;
8983
9142
  readonly deletions: Schema.Int;
8984
- readonly patch: Schema.String;
9143
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
8985
9144
  }>>>, never, never>;
8986
9145
  }>;
8987
9146
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -9003,20 +9162,19 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
9003
9162
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
9004
9163
  };
9005
9164
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
9006
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
9007
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
9165
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
9008
9166
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
9009
- readonly path: Schema.brand<Schema.String, "RelativePath">;
9010
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
9167
+ readonly file: Schema.String;
9168
+ readonly patch: Schema.String;
9011
9169
  readonly additions: Schema.Int;
9012
9170
  readonly deletions: Schema.Int;
9013
- readonly patch: Schema.String;
9171
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
9014
9172
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
9015
- readonly path: Schema.brand<Schema.String, "RelativePath">;
9016
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
9173
+ readonly file: Schema.String;
9174
+ readonly patch: Schema.String;
9017
9175
  readonly additions: Schema.Int;
9018
9176
  readonly deletions: Schema.Int;
9019
- readonly patch: Schema.String;
9177
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
9020
9178
  }>>>, never, never>;
9021
9179
  }>;
9022
9180
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -9034,7 +9192,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
9034
9192
  readonly durable: Schema.Struct<{
9035
9193
  readonly aggregateID: Schema.String;
9036
9194
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9037
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9195
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9038
9196
  }>;
9039
9197
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9040
9198
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9084,7 +9242,7 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
9084
9242
  readonly durable: Schema.Struct<{
9085
9243
  readonly aggregateID: Schema.String;
9086
9244
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9087
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9245
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9088
9246
  }>;
9089
9247
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9090
9248
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9143,7 +9301,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9143
9301
  readonly durable: Schema.Struct<{
9144
9302
  readonly aggregateID: Schema.String;
9145
9303
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9146
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9304
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9147
9305
  }>;
9148
9306
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9149
9307
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9165,7 +9323,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9165
9323
  }>, never, never>;
9166
9324
  }>>, never, never>;
9167
9325
  readonly data: Schema.Struct<{
9168
- readonly agent: Schema.String;
9326
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
9169
9327
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9170
9328
  create: () => string & import("effect/Brand").Brand<"SessionID">;
9171
9329
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -9179,7 +9337,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9179
9337
  readonly aggregate: string;
9180
9338
  };
9181
9339
  data: Schema.Struct<{
9182
- readonly agent: Schema.String;
9340
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
9183
9341
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9184
9342
  create: () => string & import("effect/Brand").Brand<"SessionID">;
9185
9343
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -9195,7 +9353,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9195
9353
  readonly durable: Schema.Struct<{
9196
9354
  readonly aggregateID: Schema.String;
9197
9355
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9198
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9356
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9199
9357
  }>;
9200
9358
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9201
9359
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9218,7 +9376,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9218
9376
  }>>, never, never>;
9219
9377
  readonly data: Schema.Struct<{
9220
9378
  readonly model: Schema.Struct<{
9221
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
9379
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
9222
9380
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
9223
9381
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9224
9382
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -9232,7 +9390,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9232
9390
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9233
9391
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9234
9392
  };
9235
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
9393
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
9236
9394
  }>;
9237
9395
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9238
9396
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -9248,7 +9406,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9248
9406
  };
9249
9407
  data: Schema.Struct<{
9250
9408
  readonly model: Schema.Struct<{
9251
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
9409
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
9252
9410
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
9253
9411
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9254
9412
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -9262,7 +9420,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9262
9420
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9263
9421
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
9264
9422
  };
9265
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
9423
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
9266
9424
  }>;
9267
9425
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
9268
9426
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -9279,7 +9437,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9279
9437
  readonly durable: Schema.Struct<{
9280
9438
  readonly aggregateID: Schema.String;
9281
9439
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9282
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9440
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9283
9441
  }>;
9284
9442
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9285
9443
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9351,7 +9509,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9351
9509
  readonly durable: Schema.Struct<{
9352
9510
  readonly aggregateID: Schema.String;
9353
9511
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9354
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9512
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9355
9513
  }>;
9356
9514
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9357
9515
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9403,7 +9561,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9403
9561
  readonly durable: Schema.Struct<{
9404
9562
  readonly aggregateID: Schema.String;
9405
9563
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9406
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9564
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9407
9565
  }>;
9408
9566
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9409
9567
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9453,7 +9611,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9453
9611
  readonly durable: Schema.Struct<{
9454
9612
  readonly aggregateID: Schema.String;
9455
9613
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9456
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9614
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9457
9615
  }>;
9458
9616
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9459
9617
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9525,7 +9683,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9525
9683
  readonly durable: Schema.Struct<{
9526
9684
  readonly aggregateID: Schema.String;
9527
9685
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9528
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9686
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9529
9687
  }>;
9530
9688
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9531
9689
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9583,7 +9741,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9583
9741
  readonly durable: Schema.Struct<{
9584
9742
  readonly aggregateID: Schema.String;
9585
9743
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9586
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
9744
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9587
9745
  }>;
9588
9746
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9589
9747
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9963,7 +10121,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
9963
10121
  readonly durable: Schema.Struct<{
9964
10122
  readonly aggregateID: Schema.String;
9965
10123
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9966
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10124
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
9967
10125
  }>;
9968
10126
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9969
10127
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10013,7 +10171,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10013
10171
  readonly durable: Schema.Struct<{
10014
10172
  readonly aggregateID: Schema.String;
10015
10173
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10016
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10174
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10017
10175
  }>;
10018
10176
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10019
10177
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10063,7 +10221,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10063
10221
  readonly durable: Schema.Struct<{
10064
10222
  readonly aggregateID: Schema.String;
10065
10223
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10066
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10224
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10067
10225
  }>;
10068
10226
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10069
10227
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10121,7 +10279,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10121
10279
  readonly durable: Schema.Struct<{
10122
10280
  readonly aggregateID: Schema.String;
10123
10281
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10124
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10282
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10125
10283
  }>;
10126
10284
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10127
10285
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10173,7 +10331,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10173
10331
  readonly durable: Schema.Struct<{
10174
10332
  readonly aggregateID: Schema.String;
10175
10333
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10176
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10334
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10177
10335
  }>;
10178
10336
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10179
10337
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10225,7 +10383,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10225
10383
  readonly durable: Schema.Struct<{
10226
10384
  readonly aggregateID: Schema.String;
10227
10385
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10228
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10386
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10229
10387
  }>;
10230
10388
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10231
10389
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10281,7 +10439,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10281
10439
  readonly durable: Schema.Struct<{
10282
10440
  readonly aggregateID: Schema.String;
10283
10441
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10284
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10442
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10285
10443
  }>;
10286
10444
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10287
10445
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10303,7 +10461,8 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10303
10461
  }>, never, never>;
10304
10462
  }>>, never, never>;
10305
10463
  readonly data: Schema.Struct<{
10306
- readonly name: Schema.String;
10464
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
10465
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
10307
10466
  readonly text: Schema.String;
10308
10467
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10309
10468
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -10318,7 +10477,8 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10318
10477
  readonly aggregate: string;
10319
10478
  };
10320
10479
  data: Schema.Struct<{
10321
- readonly name: Schema.String;
10480
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
10481
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
10322
10482
  readonly text: Schema.String;
10323
10483
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10324
10484
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -10335,7 +10495,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10335
10495
  readonly durable: Schema.Struct<{
10336
10496
  readonly aggregateID: Schema.String;
10337
10497
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10338
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10498
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10339
10499
  }>;
10340
10500
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10341
10501
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10358,9 +10518,9 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10358
10518
  }>>, never, never>;
10359
10519
  readonly data: Schema.Struct<{
10360
10520
  readonly shell: Schema.Struct<{
10361
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
10362
- create: () => string & import("effect/Brand").Brand<"ShellID">;
10363
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
10521
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
10522
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
10523
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
10364
10524
  };
10365
10525
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
10366
10526
  readonly command: Schema.String;
@@ -10389,9 +10549,9 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10389
10549
  };
10390
10550
  data: Schema.Struct<{
10391
10551
  readonly shell: Schema.Struct<{
10392
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
10393
- create: () => string & import("effect/Brand").Brand<"ShellID">;
10394
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
10552
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
10553
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
10554
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
10395
10555
  };
10396
10556
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
10397
10557
  readonly command: Schema.String;
@@ -10421,7 +10581,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10421
10581
  readonly durable: Schema.Struct<{
10422
10582
  readonly aggregateID: Schema.String;
10423
10583
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10424
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10584
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10425
10585
  }>;
10426
10586
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10427
10587
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10444,9 +10604,9 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10444
10604
  }>>, never, never>;
10445
10605
  readonly data: Schema.Struct<{
10446
10606
  readonly shell: Schema.Struct<{
10447
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
10448
- create: () => string & import("effect/Brand").Brand<"ShellID">;
10449
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
10607
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
10608
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
10609
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
10450
10610
  };
10451
10611
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
10452
10612
  readonly command: Schema.String;
@@ -10481,9 +10641,9 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10481
10641
  };
10482
10642
  data: Schema.Struct<{
10483
10643
  readonly shell: Schema.Struct<{
10484
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
10485
- create: () => string & import("effect/Brand").Brand<"ShellID">;
10486
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
10644
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
10645
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
10646
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
10487
10647
  };
10488
10648
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
10489
10649
  readonly command: Schema.String;
@@ -10519,7 +10679,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10519
10679
  readonly durable: Schema.Struct<{
10520
10680
  readonly aggregateID: Schema.String;
10521
10681
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10522
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10682
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10523
10683
  }>;
10524
10684
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10525
10685
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10545,9 +10705,9 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10545
10705
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10546
10706
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10547
10707
  };
10548
- readonly agent: Schema.String;
10708
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
10549
10709
  readonly model: Schema.Struct<{
10550
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
10710
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
10551
10711
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
10552
10712
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
10553
10713
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -10561,9 +10721,9 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10561
10721
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
10562
10722
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
10563
10723
  };
10564
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
10724
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
10565
10725
  }>;
10566
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10726
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
10567
10727
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10568
10728
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10569
10729
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -10581,9 +10741,9 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10581
10741
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10582
10742
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10583
10743
  };
10584
- readonly agent: Schema.String;
10744
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
10585
10745
  readonly model: Schema.Struct<{
10586
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
10746
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
10587
10747
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
10588
10748
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
10589
10749
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -10597,9 +10757,9 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10597
10757
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
10598
10758
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
10599
10759
  };
10600
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
10760
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
10601
10761
  }>;
10602
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10762
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
10603
10763
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10604
10764
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10605
10765
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -10615,7 +10775,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10615
10775
  readonly durable: Schema.Struct<{
10616
10776
  readonly aggregateID: Schema.String;
10617
10777
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10618
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10778
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10619
10779
  }>;
10620
10780
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10621
10781
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10642,7 +10802,9 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10642
10802
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10643
10803
  };
10644
10804
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
10645
- readonly cost: Schema.Finite;
10805
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
10806
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
10807
+ };
10646
10808
  readonly tokens: Schema.Struct<{
10647
10809
  readonly input: Schema.Finite;
10648
10810
  readonly output: Schema.Finite;
@@ -10652,7 +10814,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10652
10814
  readonly write: Schema.Finite;
10653
10815
  }>;
10654
10816
  }>;
10655
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10817
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
10656
10818
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
10657
10819
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10658
10820
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -10672,7 +10834,9 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10672
10834
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10673
10835
  };
10674
10836
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
10675
- readonly cost: Schema.Finite;
10837
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
10838
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
10839
+ };
10676
10840
  readonly tokens: Schema.Struct<{
10677
10841
  readonly input: Schema.Finite;
10678
10842
  readonly output: Schema.Finite;
@@ -10682,7 +10846,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10682
10846
  readonly write: Schema.Finite;
10683
10847
  }>;
10684
10848
  }>;
10685
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10849
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
10686
10850
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
10687
10851
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10688
10852
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -10699,7 +10863,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10699
10863
  readonly durable: Schema.Struct<{
10700
10864
  readonly aggregateID: Schema.String;
10701
10865
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10702
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10866
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10703
10867
  }>;
10704
10868
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10705
10869
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10729,7 +10893,11 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10729
10893
  readonly type: Schema.String;
10730
10894
  readonly message: Schema.String;
10731
10895
  }>;
10732
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
10896
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
10897
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
10898
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
10899
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
10900
+ }>, never, never>;
10733
10901
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10734
10902
  readonly input: Schema.Finite;
10735
10903
  readonly output: Schema.Finite;
@@ -10768,7 +10936,11 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10768
10936
  readonly type: Schema.String;
10769
10937
  readonly message: Schema.String;
10770
10938
  }>;
10771
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
10939
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
10940
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
10941
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
10942
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
10943
+ }>, never, never>;
10772
10944
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10773
10945
  readonly input: Schema.Finite;
10774
10946
  readonly output: Schema.Finite;
@@ -10801,7 +10973,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10801
10973
  readonly durable: Schema.Struct<{
10802
10974
  readonly aggregateID: Schema.String;
10803
10975
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10804
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
10976
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10805
10977
  }>;
10806
10978
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10807
10979
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10861,7 +11033,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10861
11033
  readonly durable: Schema.Struct<{
10862
11034
  readonly aggregateID: Schema.String;
10863
11035
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10864
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11036
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10865
11037
  }>;
10866
11038
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10867
11039
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10923,7 +11095,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10923
11095
  readonly durable: Schema.Struct<{
10924
11096
  readonly aggregateID: Schema.String;
10925
11097
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10926
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11098
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10927
11099
  }>;
10928
11100
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10929
11101
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10985,7 +11157,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
10985
11157
  readonly durable: Schema.Struct<{
10986
11158
  readonly aggregateID: Schema.String;
10987
11159
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10988
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11160
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
10989
11161
  }>;
10990
11162
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10991
11163
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11049,7 +11221,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11049
11221
  readonly durable: Schema.Struct<{
11050
11222
  readonly aggregateID: Schema.String;
11051
11223
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11052
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11224
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11053
11225
  }>;
11054
11226
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11055
11227
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11111,7 +11283,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11111
11283
  readonly durable: Schema.Struct<{
11112
11284
  readonly aggregateID: Schema.String;
11113
11285
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11114
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11286
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11115
11287
  }>;
11116
11288
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11117
11289
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11173,7 +11345,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11173
11345
  readonly durable: Schema.Struct<{
11174
11346
  readonly aggregateID: Schema.String;
11175
11347
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11176
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11348
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11177
11349
  }>;
11178
11350
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11179
11351
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11239,7 +11411,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11239
11411
  readonly durable: Schema.Struct<{
11240
11412
  readonly aggregateID: Schema.String;
11241
11413
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11242
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11414
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11243
11415
  }>;
11244
11416
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11245
11417
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11319,7 +11491,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11319
11491
  readonly durable: Schema.Struct<{
11320
11492
  readonly aggregateID: Schema.String;
11321
11493
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11322
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11494
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11323
11495
  }>;
11324
11496
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11325
11497
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11351,7 +11523,6 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11351
11523
  readonly mime: Schema.String;
11352
11524
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11353
11525
  }>]>>;
11354
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
11355
11526
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
11356
11527
  readonly executed: Schema.Boolean;
11357
11528
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -11383,7 +11554,6 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11383
11554
  readonly mime: Schema.String;
11384
11555
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11385
11556
  }>]>>;
11386
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
11387
11557
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
11388
11558
  readonly executed: Schema.Boolean;
11389
11559
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -11407,7 +11577,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11407
11577
  readonly durable: Schema.Struct<{
11408
11578
  readonly aggregateID: Schema.String;
11409
11579
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11410
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11580
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11411
11581
  }>;
11412
11582
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11413
11583
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11481,7 +11651,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11481
11651
  readonly durable: Schema.Struct<{
11482
11652
  readonly aggregateID: Schema.String;
11483
11653
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11484
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11654
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11485
11655
  }>;
11486
11656
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11487
11657
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11551,7 +11721,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11551
11721
  readonly durable: Schema.Struct<{
11552
11722
  readonly aggregateID: Schema.String;
11553
11723
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11554
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11724
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11555
11725
  }>;
11556
11726
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11557
11727
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11609,7 +11779,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11609
11779
  readonly durable: Schema.Struct<{
11610
11780
  readonly aggregateID: Schema.String;
11611
11781
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11612
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11782
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11613
11783
  }>;
11614
11784
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11615
11785
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11631,7 +11801,15 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11631
11801
  }>, never, never>;
11632
11802
  }>>, never, never>;
11633
11803
  readonly data: Schema.Struct<{
11634
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
11804
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
11805
+ readonly recent: Schema.String;
11806
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
11807
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11808
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11809
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
11810
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11811
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11812
+ }>, never, never>;
11635
11813
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11636
11814
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11637
11815
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -11645,7 +11823,15 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11645
11823
  readonly aggregate: string;
11646
11824
  };
11647
11825
  data: Schema.Struct<{
11648
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
11826
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
11827
+ readonly recent: Schema.String;
11828
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
11829
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11830
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11831
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
11832
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11833
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11834
+ }>, never, never>;
11649
11835
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11650
11836
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11651
11837
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -11661,7 +11847,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11661
11847
  readonly durable: Schema.Struct<{
11662
11848
  readonly aggregateID: Schema.String;
11663
11849
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11664
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11850
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11665
11851
  }>;
11666
11852
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11667
11853
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11683,7 +11869,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11683
11869
  }>, never, never>;
11684
11870
  }>>, never, never>;
11685
11871
  readonly data: Schema.Struct<{
11686
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
11872
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
11687
11873
  readonly text: Schema.String;
11688
11874
  readonly recent: Schema.String;
11689
11875
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -11699,7 +11885,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11699
11885
  readonly aggregate: string;
11700
11886
  };
11701
11887
  data: Schema.Struct<{
11702
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
11888
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
11703
11889
  readonly text: Schema.String;
11704
11890
  readonly recent: Schema.String;
11705
11891
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -11717,7 +11903,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11717
11903
  readonly durable: Schema.Struct<{
11718
11904
  readonly aggregateID: Schema.String;
11719
11905
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11720
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11906
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11721
11907
  }>;
11722
11908
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11723
11909
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11739,7 +11925,19 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11739
11925
  }>, never, never>;
11740
11926
  }>>, never, never>;
11741
11927
  readonly data: Schema.Struct<{
11742
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
11928
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
11929
+ readonly error: Schema.Struct<{
11930
+ readonly type: Schema.String;
11931
+ readonly message: Schema.String;
11932
+ }>;
11933
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
11934
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11935
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11936
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
11937
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11938
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11939
+ }>, never, never>;
11940
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11743
11941
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11744
11942
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11745
11943
  };
@@ -11752,7 +11950,19 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11752
11950
  readonly aggregate: string;
11753
11951
  };
11754
11952
  data: Schema.Struct<{
11755
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
11953
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
11954
+ readonly error: Schema.Struct<{
11955
+ readonly type: Schema.String;
11956
+ readonly message: Schema.String;
11957
+ }>;
11958
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
11959
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11960
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11961
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
11962
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11963
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11964
+ }>, never, never>;
11965
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11756
11966
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11757
11967
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11758
11968
  };
@@ -11767,7 +11977,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11767
11977
  readonly durable: Schema.Struct<{
11768
11978
  readonly aggregateID: Schema.String;
11769
11979
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11770
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
11980
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11771
11981
  }>;
11772
11982
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11773
11983
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11795,20 +12005,19 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11795
12005
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11796
12006
  };
11797
12007
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11798
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11799
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
12008
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
11800
12009
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11801
- readonly path: Schema.brand<Schema.String, "RelativePath">;
11802
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
12010
+ readonly file: Schema.String;
12011
+ readonly patch: Schema.String;
11803
12012
  readonly additions: Schema.Int;
11804
12013
  readonly deletions: Schema.Int;
11805
- readonly patch: Schema.String;
12014
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
11806
12015
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
11807
- readonly path: Schema.brand<Schema.String, "RelativePath">;
11808
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
12016
+ readonly file: Schema.String;
12017
+ readonly patch: Schema.String;
11809
12018
  readonly additions: Schema.Int;
11810
12019
  readonly deletions: Schema.Int;
11811
- readonly patch: Schema.String;
12020
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
11812
12021
  }>>>, never, never>;
11813
12022
  }>;
11814
12023
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -11830,20 +12039,19 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11830
12039
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11831
12040
  };
11832
12041
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11833
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11834
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
12042
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
11835
12043
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11836
- readonly path: Schema.brand<Schema.String, "RelativePath">;
11837
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
12044
+ readonly file: Schema.String;
12045
+ readonly patch: Schema.String;
11838
12046
  readonly additions: Schema.Int;
11839
12047
  readonly deletions: Schema.Int;
11840
- readonly patch: Schema.String;
12048
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
11841
12049
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
11842
- readonly path: Schema.brand<Schema.String, "RelativePath">;
11843
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
12050
+ readonly file: Schema.String;
12051
+ readonly patch: Schema.String;
11844
12052
  readonly additions: Schema.Int;
11845
12053
  readonly deletions: Schema.Int;
11846
- readonly patch: Schema.String;
12054
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
11847
12055
  }>>>, never, never>;
11848
12056
  }>;
11849
12057
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -11861,7 +12069,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11861
12069
  readonly durable: Schema.Struct<{
11862
12070
  readonly aggregateID: Schema.String;
11863
12071
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11864
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12072
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11865
12073
  }>;
11866
12074
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11867
12075
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11911,7 +12119,7 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
11911
12119
  readonly durable: Schema.Struct<{
11912
12120
  readonly aggregateID: Schema.String;
11913
12121
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11914
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12122
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11915
12123
  }>;
11916
12124
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11917
12125
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11971,7 +12179,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
11971
12179
  readonly durable: Schema.Struct<{
11972
12180
  readonly aggregateID: Schema.String;
11973
12181
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11974
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12182
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
11975
12183
  }>;
11976
12184
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11977
12185
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11993,7 +12201,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
11993
12201
  }>, never, never>;
11994
12202
  }>>, never, never>;
11995
12203
  readonly data: Schema.Struct<{
11996
- readonly agent: Schema.String;
12204
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
11997
12205
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11998
12206
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11999
12207
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -12007,7 +12215,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12007
12215
  readonly aggregate: string;
12008
12216
  };
12009
12217
  data: Schema.Struct<{
12010
- readonly agent: Schema.String;
12218
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
12011
12219
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
12012
12220
  create: () => string & import("effect/Brand").Brand<"SessionID">;
12013
12221
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -12023,7 +12231,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12023
12231
  readonly durable: Schema.Struct<{
12024
12232
  readonly aggregateID: Schema.String;
12025
12233
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12026
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12234
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12027
12235
  }>;
12028
12236
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12029
12237
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12046,7 +12254,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12046
12254
  }>>, never, never>;
12047
12255
  readonly data: Schema.Struct<{
12048
12256
  readonly model: Schema.Struct<{
12049
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
12257
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
12050
12258
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
12051
12259
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12052
12260
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -12060,7 +12268,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12060
12268
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12061
12269
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12062
12270
  };
12063
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
12271
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
12064
12272
  }>;
12065
12273
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
12066
12274
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -12076,7 +12284,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12076
12284
  };
12077
12285
  data: Schema.Struct<{
12078
12286
  readonly model: Schema.Struct<{
12079
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
12287
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
12080
12288
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
12081
12289
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12082
12290
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -12090,7 +12298,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12090
12298
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12091
12299
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
12092
12300
  };
12093
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
12301
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
12094
12302
  }>;
12095
12303
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
12096
12304
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -12107,7 +12315,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12107
12315
  readonly durable: Schema.Struct<{
12108
12316
  readonly aggregateID: Schema.String;
12109
12317
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12110
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12318
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12111
12319
  }>;
12112
12320
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12113
12321
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12179,7 +12387,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12179
12387
  readonly durable: Schema.Struct<{
12180
12388
  readonly aggregateID: Schema.String;
12181
12389
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12182
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12390
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12183
12391
  }>;
12184
12392
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12185
12393
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12248,7 +12456,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12248
12456
  }>, never, never>;
12249
12457
  }>>, never, never>;
12250
12458
  readonly data: Schema.Struct<{
12251
- readonly cost: Schema.Finite;
12459
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
12460
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
12461
+ };
12252
12462
  readonly tokens: Schema.Struct<{
12253
12463
  readonly input: Schema.Finite;
12254
12464
  readonly output: Schema.Finite;
@@ -12268,7 +12478,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12268
12478
  durability: "ephemeral";
12269
12479
  durable: undefined;
12270
12480
  data: Schema.Struct<{
12271
- readonly cost: Schema.Finite;
12481
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
12482
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
12483
+ };
12272
12484
  readonly tokens: Schema.Struct<{
12273
12485
  readonly input: Schema.Finite;
12274
12486
  readonly output: Schema.Finite;
@@ -12293,7 +12505,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12293
12505
  readonly durable: Schema.Struct<{
12294
12506
  readonly aggregateID: Schema.String;
12295
12507
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12296
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12508
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12297
12509
  }>;
12298
12510
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12299
12511
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12343,7 +12555,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12343
12555
  readonly durable: Schema.Struct<{
12344
12556
  readonly aggregateID: Schema.String;
12345
12557
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12346
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12558
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12347
12559
  }>;
12348
12560
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12349
12561
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12415,7 +12627,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12415
12627
  readonly durable: Schema.Struct<{
12416
12628
  readonly aggregateID: Schema.String;
12417
12629
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12418
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12630
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12419
12631
  }>;
12420
12632
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12421
12633
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12473,7 +12685,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12473
12685
  readonly durable: Schema.Struct<{
12474
12686
  readonly aggregateID: Schema.String;
12475
12687
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12476
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
12688
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12477
12689
  }>;
12478
12690
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12479
12691
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12853,7 +13065,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12853
13065
  readonly durable: Schema.Struct<{
12854
13066
  readonly aggregateID: Schema.String;
12855
13067
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12856
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13068
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12857
13069
  }>;
12858
13070
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12859
13071
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12903,7 +13115,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12903
13115
  readonly durable: Schema.Struct<{
12904
13116
  readonly aggregateID: Schema.String;
12905
13117
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12906
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13118
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12907
13119
  }>;
12908
13120
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12909
13121
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12953,7 +13165,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12953
13165
  readonly durable: Schema.Struct<{
12954
13166
  readonly aggregateID: Schema.String;
12955
13167
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12956
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13168
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
12957
13169
  }>;
12958
13170
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12959
13171
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13011,7 +13223,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13011
13223
  readonly durable: Schema.Struct<{
13012
13224
  readonly aggregateID: Schema.String;
13013
13225
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13014
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13226
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13015
13227
  }>;
13016
13228
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13017
13229
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13063,7 +13275,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13063
13275
  readonly durable: Schema.Struct<{
13064
13276
  readonly aggregateID: Schema.String;
13065
13277
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13066
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13278
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13067
13279
  }>;
13068
13280
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13069
13281
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13115,7 +13327,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13115
13327
  readonly durable: Schema.Struct<{
13116
13328
  readonly aggregateID: Schema.String;
13117
13329
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13118
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13330
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13119
13331
  }>;
13120
13332
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13121
13333
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13171,7 +13383,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13171
13383
  readonly durable: Schema.Struct<{
13172
13384
  readonly aggregateID: Schema.String;
13173
13385
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13174
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13386
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13175
13387
  }>;
13176
13388
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13177
13389
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13193,7 +13405,8 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13193
13405
  }>, never, never>;
13194
13406
  }>>, never, never>;
13195
13407
  readonly data: Schema.Struct<{
13196
- readonly name: Schema.String;
13408
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
13409
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
13197
13410
  readonly text: Schema.String;
13198
13411
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13199
13412
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -13208,7 +13421,8 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13208
13421
  readonly aggregate: string;
13209
13422
  };
13210
13423
  data: Schema.Struct<{
13211
- readonly name: Schema.String;
13424
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
13425
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
13212
13426
  readonly text: Schema.String;
13213
13427
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13214
13428
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -13225,7 +13439,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13225
13439
  readonly durable: Schema.Struct<{
13226
13440
  readonly aggregateID: Schema.String;
13227
13441
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13228
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13442
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13229
13443
  }>;
13230
13444
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13231
13445
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13248,9 +13462,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13248
13462
  }>>, never, never>;
13249
13463
  readonly data: Schema.Struct<{
13250
13464
  readonly shell: Schema.Struct<{
13251
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
13252
- create: () => string & import("effect/Brand").Brand<"ShellID">;
13253
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
13465
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
13466
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
13467
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
13254
13468
  };
13255
13469
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
13256
13470
  readonly command: Schema.String;
@@ -13279,9 +13493,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13279
13493
  };
13280
13494
  data: Schema.Struct<{
13281
13495
  readonly shell: Schema.Struct<{
13282
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
13283
- create: () => string & import("effect/Brand").Brand<"ShellID">;
13284
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
13496
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
13497
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
13498
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
13285
13499
  };
13286
13500
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
13287
13501
  readonly command: Schema.String;
@@ -13311,7 +13525,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13311
13525
  readonly durable: Schema.Struct<{
13312
13526
  readonly aggregateID: Schema.String;
13313
13527
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13314
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13528
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13315
13529
  }>;
13316
13530
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13317
13531
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13334,9 +13548,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13334
13548
  }>>, never, never>;
13335
13549
  readonly data: Schema.Struct<{
13336
13550
  readonly shell: Schema.Struct<{
13337
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
13338
- create: () => string & import("effect/Brand").Brand<"ShellID">;
13339
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
13551
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
13552
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
13553
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
13340
13554
  };
13341
13555
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
13342
13556
  readonly command: Schema.String;
@@ -13371,9 +13585,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13371
13585
  };
13372
13586
  data: Schema.Struct<{
13373
13587
  readonly shell: Schema.Struct<{
13374
- readonly id: Schema.brand<Schema.String, "ShellID"> & {
13375
- create: () => string & import("effect/Brand").Brand<"ShellID">;
13376
- ascending: (id?: string) => string & import("effect/Brand").Brand<"ShellID">;
13588
+ readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
13589
+ create: () => string & import("effect/Brand").Brand<"Shell.ID">;
13590
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
13377
13591
  };
13378
13592
  readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
13379
13593
  readonly command: Schema.String;
@@ -13409,7 +13623,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13409
13623
  readonly durable: Schema.Struct<{
13410
13624
  readonly aggregateID: Schema.String;
13411
13625
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13412
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13626
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13413
13627
  }>;
13414
13628
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13415
13629
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13435,9 +13649,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13435
13649
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
13436
13650
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
13437
13651
  };
13438
- readonly agent: Schema.String;
13652
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
13439
13653
  readonly model: Schema.Struct<{
13440
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
13654
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
13441
13655
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
13442
13656
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
13443
13657
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -13451,9 +13665,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13451
13665
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
13452
13666
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
13453
13667
  };
13454
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
13668
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
13455
13669
  }>;
13456
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13670
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
13457
13671
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13458
13672
  create: () => string & import("effect/Brand").Brand<"SessionID">;
13459
13673
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -13471,9 +13685,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13471
13685
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
13472
13686
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
13473
13687
  };
13474
- readonly agent: Schema.String;
13688
+ readonly agent: Schema.brand<Schema.String, "Agent.ID">;
13475
13689
  readonly model: Schema.Struct<{
13476
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
13690
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
13477
13691
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
13478
13692
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
13479
13693
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -13487,9 +13701,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13487
13701
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
13488
13702
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
13489
13703
  };
13490
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
13704
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
13491
13705
  }>;
13492
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13706
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
13493
13707
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13494
13708
  create: () => string & import("effect/Brand").Brand<"SessionID">;
13495
13709
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -13505,7 +13719,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13505
13719
  readonly durable: Schema.Struct<{
13506
13720
  readonly aggregateID: Schema.String;
13507
13721
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13508
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13722
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13509
13723
  }>;
13510
13724
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13511
13725
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13532,7 +13746,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13532
13746
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
13533
13747
  };
13534
13748
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
13535
- readonly cost: Schema.Finite;
13749
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
13750
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
13751
+ };
13536
13752
  readonly tokens: Schema.Struct<{
13537
13753
  readonly input: Schema.Finite;
13538
13754
  readonly output: Schema.Finite;
@@ -13542,7 +13758,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13542
13758
  readonly write: Schema.Finite;
13543
13759
  }>;
13544
13760
  }>;
13545
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13761
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
13546
13762
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
13547
13763
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13548
13764
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -13562,7 +13778,9 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13562
13778
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
13563
13779
  };
13564
13780
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
13565
- readonly cost: Schema.Finite;
13781
+ readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
13782
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
13783
+ };
13566
13784
  readonly tokens: Schema.Struct<{
13567
13785
  readonly input: Schema.Finite;
13568
13786
  readonly output: Schema.Finite;
@@ -13572,7 +13790,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13572
13790
  readonly write: Schema.Finite;
13573
13791
  }>;
13574
13792
  }>;
13575
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13793
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
13576
13794
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
13577
13795
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13578
13796
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -13589,7 +13807,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13589
13807
  readonly durable: Schema.Struct<{
13590
13808
  readonly aggregateID: Schema.String;
13591
13809
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13592
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13810
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13593
13811
  }>;
13594
13812
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13595
13813
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13619,7 +13837,11 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13619
13837
  readonly type: Schema.String;
13620
13838
  readonly message: Schema.String;
13621
13839
  }>;
13622
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
13840
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
13841
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
13842
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
13843
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
13844
+ }>, never, never>;
13623
13845
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13624
13846
  readonly input: Schema.Finite;
13625
13847
  readonly output: Schema.Finite;
@@ -13658,7 +13880,11 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13658
13880
  readonly type: Schema.String;
13659
13881
  readonly message: Schema.String;
13660
13882
  }>;
13661
- readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
13883
+ readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
13884
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
13885
+ }>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
13886
+ zero: number & import("effect/Brand").Brand<"Money.USD">;
13887
+ }>, never, never>;
13662
13888
  readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13663
13889
  readonly input: Schema.Finite;
13664
13890
  readonly output: Schema.Finite;
@@ -13691,7 +13917,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13691
13917
  readonly durable: Schema.Struct<{
13692
13918
  readonly aggregateID: Schema.String;
13693
13919
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13694
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13920
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13695
13921
  }>;
13696
13922
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13697
13923
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13805,7 +14031,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13805
14031
  readonly durable: Schema.Struct<{
13806
14032
  readonly aggregateID: Schema.String;
13807
14033
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13808
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14034
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13809
14035
  }>;
13810
14036
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13811
14037
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13867,7 +14093,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13867
14093
  readonly durable: Schema.Struct<{
13868
14094
  readonly aggregateID: Schema.String;
13869
14095
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13870
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14096
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13871
14097
  }>;
13872
14098
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13873
14099
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13983,7 +14209,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13983
14209
  readonly durable: Schema.Struct<{
13984
14210
  readonly aggregateID: Schema.String;
13985
14211
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13986
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14212
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
13987
14213
  }>;
13988
14214
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13989
14215
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14047,7 +14273,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14047
14273
  readonly durable: Schema.Struct<{
14048
14274
  readonly aggregateID: Schema.String;
14049
14275
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14050
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14276
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14051
14277
  }>;
14052
14278
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14053
14279
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14163,7 +14389,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14163
14389
  readonly durable: Schema.Struct<{
14164
14390
  readonly aggregateID: Schema.String;
14165
14391
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14166
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14392
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14167
14393
  }>;
14168
14394
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14169
14395
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14225,7 +14451,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14225
14451
  readonly durable: Schema.Struct<{
14226
14452
  readonly aggregateID: Schema.String;
14227
14453
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14228
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14454
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14229
14455
  }>;
14230
14456
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14231
14457
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14291,7 +14517,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14291
14517
  readonly durable: Schema.Struct<{
14292
14518
  readonly aggregateID: Schema.String;
14293
14519
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14294
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14520
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14295
14521
  }>;
14296
14522
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14297
14523
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14371,7 +14597,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14371
14597
  readonly durable: Schema.Struct<{
14372
14598
  readonly aggregateID: Schema.String;
14373
14599
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14374
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14600
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14375
14601
  }>;
14376
14602
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14377
14603
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14403,7 +14629,6 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14403
14629
  readonly mime: Schema.String;
14404
14630
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14405
14631
  }>]>>;
14406
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
14407
14632
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
14408
14633
  readonly executed: Schema.Boolean;
14409
14634
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -14435,7 +14660,6 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14435
14660
  readonly mime: Schema.String;
14436
14661
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14437
14662
  }>]>>;
14438
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
14439
14663
  readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
14440
14664
  readonly executed: Schema.Boolean;
14441
14665
  readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -14459,7 +14683,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14459
14683
  readonly durable: Schema.Struct<{
14460
14684
  readonly aggregateID: Schema.String;
14461
14685
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14462
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14686
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14463
14687
  }>;
14464
14688
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14465
14689
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14533,7 +14757,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14533
14757
  readonly durable: Schema.Struct<{
14534
14758
  readonly aggregateID: Schema.String;
14535
14759
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14536
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14760
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14537
14761
  }>;
14538
14762
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14539
14763
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14603,7 +14827,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14603
14827
  readonly durable: Schema.Struct<{
14604
14828
  readonly aggregateID: Schema.String;
14605
14829
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14606
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14830
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14607
14831
  }>;
14608
14832
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14609
14833
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14661,7 +14885,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14661
14885
  readonly durable: Schema.Struct<{
14662
14886
  readonly aggregateID: Schema.String;
14663
14887
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14664
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
14888
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14665
14889
  }>;
14666
14890
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14667
14891
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14683,7 +14907,15 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14683
14907
  }>, never, never>;
14684
14908
  }>>, never, never>;
14685
14909
  readonly data: Schema.Struct<{
14686
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
14910
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
14911
+ readonly recent: Schema.String;
14912
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
14913
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
14914
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
14915
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
14916
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
14917
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
14918
+ }>, never, never>;
14687
14919
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
14688
14920
  create: () => string & import("effect/Brand").Brand<"SessionID">;
14689
14921
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -14697,7 +14929,15 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14697
14929
  readonly aggregate: string;
14698
14930
  };
14699
14931
  data: Schema.Struct<{
14700
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
14932
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
14933
+ readonly recent: Schema.String;
14934
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
14935
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
14936
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
14937
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
14938
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
14939
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
14940
+ }>, never, never>;
14701
14941
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
14702
14942
  create: () => string & import("effect/Brand").Brand<"SessionID">;
14703
14943
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -14757,7 +14997,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14757
14997
  readonly durable: Schema.Struct<{
14758
14998
  readonly aggregateID: Schema.String;
14759
14999
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14760
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
15000
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14761
15001
  }>;
14762
15002
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14763
15003
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14779,7 +15019,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14779
15019
  }>, never, never>;
14780
15020
  }>>, never, never>;
14781
15021
  readonly data: Schema.Struct<{
14782
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
15022
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
14783
15023
  readonly text: Schema.String;
14784
15024
  readonly recent: Schema.String;
14785
15025
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -14795,7 +15035,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14795
15035
  readonly aggregate: string;
14796
15036
  };
14797
15037
  data: Schema.Struct<{
14798
- readonly reason: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"manual">]>;
15038
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
14799
15039
  readonly text: Schema.String;
14800
15040
  readonly recent: Schema.String;
14801
15041
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -14813,7 +15053,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14813
15053
  readonly durable: Schema.Struct<{
14814
15054
  readonly aggregateID: Schema.String;
14815
15055
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14816
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
15056
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14817
15057
  }>;
14818
15058
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14819
15059
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14835,7 +15075,19 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14835
15075
  }>, never, never>;
14836
15076
  }>>, never, never>;
14837
15077
  readonly data: Schema.Struct<{
14838
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
15078
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
15079
+ readonly error: Schema.Struct<{
15080
+ readonly type: Schema.String;
15081
+ readonly message: Schema.String;
15082
+ }>;
15083
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
15084
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
15085
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
15086
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
15087
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
15088
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
15089
+ }>, never, never>;
15090
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
14839
15091
  create: () => string & import("effect/Brand").Brand<"SessionID">;
14840
15092
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
14841
15093
  };
@@ -14848,7 +15100,19 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14848
15100
  readonly aggregate: string;
14849
15101
  };
14850
15102
  data: Schema.Struct<{
14851
- sessionID: Schema.brand<Schema.String, "SessionID"> & {
15103
+ readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
15104
+ readonly error: Schema.Struct<{
15105
+ readonly type: Schema.String;
15106
+ readonly message: Schema.String;
15107
+ }>;
15108
+ readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
15109
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
15110
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
15111
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
15112
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
15113
+ fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
15114
+ }>, never, never>;
15115
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
14852
15116
  create: () => string & import("effect/Brand").Brand<"SessionID">;
14853
15117
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
14854
15118
  };
@@ -14863,7 +15127,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14863
15127
  readonly durable: Schema.Struct<{
14864
15128
  readonly aggregateID: Schema.String;
14865
15129
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14866
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
15130
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14867
15131
  }>;
14868
15132
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14869
15133
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14891,20 +15155,19 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14891
15155
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
14892
15156
  };
14893
15157
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14894
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14895
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15158
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
14896
15159
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
14897
- readonly path: Schema.brand<Schema.String, "RelativePath">;
14898
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
15160
+ readonly file: Schema.String;
15161
+ readonly patch: Schema.String;
14899
15162
  readonly additions: Schema.Int;
14900
15163
  readonly deletions: Schema.Int;
14901
- readonly patch: Schema.String;
15164
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
14902
15165
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
14903
- readonly path: Schema.brand<Schema.String, "RelativePath">;
14904
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
15166
+ readonly file: Schema.String;
15167
+ readonly patch: Schema.String;
14905
15168
  readonly additions: Schema.Int;
14906
15169
  readonly deletions: Schema.Int;
14907
- readonly patch: Schema.String;
15170
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
14908
15171
  }>>>, never, never>;
14909
15172
  }>;
14910
15173
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -14926,20 +15189,19 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14926
15189
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
14927
15190
  };
14928
15191
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14929
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14930
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15192
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
14931
15193
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
14932
- readonly path: Schema.brand<Schema.String, "RelativePath">;
14933
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
15194
+ readonly file: Schema.String;
15195
+ readonly patch: Schema.String;
14934
15196
  readonly additions: Schema.Int;
14935
15197
  readonly deletions: Schema.Int;
14936
- readonly patch: Schema.String;
15198
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
14937
15199
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
14938
- readonly path: Schema.brand<Schema.String, "RelativePath">;
14939
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
15200
+ readonly file: Schema.String;
15201
+ readonly patch: Schema.String;
14940
15202
  readonly additions: Schema.Int;
14941
15203
  readonly deletions: Schema.Int;
14942
- readonly patch: Schema.String;
15204
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
14943
15205
  }>>>, never, never>;
14944
15206
  }>;
14945
15207
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -14957,7 +15219,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14957
15219
  readonly durable: Schema.Struct<{
14958
15220
  readonly aggregateID: Schema.String;
14959
15221
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14960
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
15222
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
14961
15223
  }>;
14962
15224
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14963
15225
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -15007,7 +15269,7 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
15007
15269
  readonly durable: Schema.Struct<{
15008
15270
  readonly aggregateID: Schema.String;
15009
15271
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
15010
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
15272
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
15011
15273
  }>;
15012
15274
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
15013
15275
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;