@opencode-ai/schema 0.0.0-next-14723 → 0.0.0-next-14742

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.
Files changed (46) hide show
  1. package/dist/agent.d.ts +8 -8
  2. package/dist/catalog.d.ts +8 -8
  3. package/dist/command.d.ts +8 -8
  4. package/dist/durable-event-manifest.d.ts +412 -412
  5. package/dist/event-log.d.ts +45 -0
  6. package/dist/event-log.js +43 -0
  7. package/dist/event-manifest.d.ts +1224 -852
  8. package/dist/event-manifest.js +2 -2
  9. package/dist/event.d.ts +16 -6
  10. package/dist/event.js +9 -1
  11. package/dist/filesystem-watcher.d.ts +8 -8
  12. package/dist/filesystem.d.ts +8 -8
  13. package/dist/form.d.ts +1339 -0
  14. package/dist/form.js +105 -0
  15. package/dist/ide-event.d.ts +8 -8
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/installation-event.d.ts +16 -16
  19. package/dist/integration.d.ts +16 -16
  20. package/dist/lsp-event.d.ts +8 -8
  21. package/dist/mcp-event.d.ts +24 -24
  22. package/dist/models-dev.d.ts +8 -8
  23. package/dist/permission.d.ts +16 -16
  24. package/dist/plugin.d.ts +8 -8
  25. package/dist/project-directories.d.ts +8 -8
  26. package/dist/project.d.ts +8 -8
  27. package/dist/pty.d.ts +32 -32
  28. package/dist/reference.d.ts +8 -8
  29. package/dist/server-event.d.ts +16 -16
  30. package/dist/session-compaction-event.d.ts +8 -8
  31. package/dist/session-event.d.ts +680 -680
  32. package/dist/session-status-event.d.ts +16 -16
  33. package/dist/session-todo.d.ts +8 -8
  34. package/dist/shell.d.ts +24 -24
  35. package/dist/skill.d.ts +8 -8
  36. package/dist/tui-event.d.ts +32 -32
  37. package/dist/v1/legacy-event.d.ts +8 -8
  38. package/dist/v1/permission.d.ts +16 -16
  39. package/dist/v1/question.d.ts +24 -24
  40. package/dist/v1/session.d.ts +92 -92
  41. package/dist/vcs-event.d.ts +8 -8
  42. package/dist/workspace-event.d.ts +24 -24
  43. package/dist/worktree-event.d.ts +16 -16
  44. package/package.json +1 -1
  45. package/dist/question.d.ts +0 -516
  46. package/dist/question.js +0 -64
@@ -23,12 +23,12 @@ export declare const AgentSwitched: Schema.Struct<{
23
23
  readonly type: Schema.Literal<"session.next.agent.switched">;
24
24
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
25
25
  readonly aggregateID: Schema.String;
26
- readonly seq: Schema.Int;
27
- readonly version: Schema.Int;
26
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
27
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
28
28
  }>>>, Schema.optionalKey<Schema.Struct<{
29
29
  readonly aggregateID: Schema.String;
30
- readonly seq: Schema.Int;
31
- readonly version: Schema.Int;
30
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
31
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
32
32
  }>>, never, never>;
33
33
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
34
34
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -87,12 +87,12 @@ export declare const ModelSwitched: Schema.Struct<{
87
87
  readonly type: Schema.Literal<"session.next.model.switched">;
88
88
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
89
89
  readonly aggregateID: Schema.String;
90
- readonly seq: Schema.Int;
91
- readonly version: Schema.Int;
90
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
91
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
92
92
  }>>>, Schema.optionalKey<Schema.Struct<{
93
93
  readonly aggregateID: Schema.String;
94
- readonly seq: Schema.Int;
95
- readonly version: Schema.Int;
94
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
95
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
96
96
  }>>, never, never>;
97
97
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
98
98
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -183,12 +183,12 @@ export declare const Moved: Schema.Struct<{
183
183
  readonly type: Schema.Literal<"session.next.moved">;
184
184
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
185
185
  readonly aggregateID: Schema.String;
186
- readonly seq: Schema.Int;
187
- readonly version: Schema.Int;
186
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
187
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
188
188
  }>>>, Schema.optionalKey<Schema.Struct<{
189
189
  readonly aggregateID: Schema.String;
190
- readonly seq: Schema.Int;
191
- readonly version: Schema.Int;
190
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
191
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
192
192
  }>>, never, never>;
193
193
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
194
194
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -261,12 +261,12 @@ export declare const Renamed: Schema.Struct<{
261
261
  readonly type: Schema.Literal<"session.next.renamed">;
262
262
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
263
263
  readonly aggregateID: Schema.String;
264
- readonly seq: Schema.Int;
265
- readonly version: Schema.Int;
264
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
265
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
266
266
  }>>>, Schema.optionalKey<Schema.Struct<{
267
267
  readonly aggregateID: Schema.String;
268
- readonly seq: Schema.Int;
269
- readonly version: Schema.Int;
268
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
269
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
270
270
  }>>, never, never>;
271
271
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
272
272
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -319,12 +319,12 @@ export declare const Forked: Schema.Struct<{
319
319
  readonly type: Schema.Literal<"session.next.forked">;
320
320
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
321
321
  readonly aggregateID: Schema.String;
322
- readonly seq: Schema.Int;
323
- readonly version: Schema.Int;
322
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
323
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
324
324
  }>>>, Schema.optionalKey<Schema.Struct<{
325
325
  readonly aggregateID: Schema.String;
326
- readonly seq: Schema.Int;
327
- readonly version: Schema.Int;
326
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
327
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
328
328
  }>>, never, never>;
329
329
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
330
330
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -393,12 +393,12 @@ export declare const Prompted: Schema.Struct<{
393
393
  readonly type: Schema.Literal<"session.next.prompted">;
394
394
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
395
395
  readonly aggregateID: Schema.String;
396
- readonly seq: Schema.Int;
397
- readonly version: Schema.Int;
396
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
397
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
398
398
  }>>>, Schema.optionalKey<Schema.Struct<{
399
399
  readonly aggregateID: Schema.String;
400
- readonly seq: Schema.Int;
401
- readonly version: Schema.Int;
400
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
401
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
402
402
  }>>, never, never>;
403
403
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
404
404
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -705,12 +705,12 @@ export declare const PromptAdmitted: Schema.Struct<{
705
705
  readonly type: Schema.Literal<"session.next.prompt.admitted">;
706
706
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
707
707
  readonly aggregateID: Schema.String;
708
- readonly seq: Schema.Int;
709
- readonly version: Schema.Int;
708
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
709
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
710
710
  }>>>, Schema.optionalKey<Schema.Struct<{
711
711
  readonly aggregateID: Schema.String;
712
- readonly seq: Schema.Int;
713
- readonly version: Schema.Int;
712
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
713
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
714
714
  }>>, never, never>;
715
715
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
716
716
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1017,12 +1017,12 @@ export declare const ExecutionSettled: Schema.Struct<{
1017
1017
  readonly type: Schema.Literal<"session.next.execution.settled">;
1018
1018
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1019
1019
  readonly aggregateID: Schema.String;
1020
- readonly seq: Schema.Int;
1021
- readonly version: Schema.Int;
1020
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1021
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1022
1022
  }>>>, Schema.optionalKey<Schema.Struct<{
1023
1023
  readonly aggregateID: Schema.String;
1024
- readonly seq: Schema.Int;
1025
- readonly version: Schema.Int;
1024
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1025
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1026
1026
  }>>, never, never>;
1027
1027
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1028
1028
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1089,12 +1089,12 @@ export declare const ContextUpdated: Schema.Struct<{
1089
1089
  readonly type: Schema.Literal<"session.next.context.updated">;
1090
1090
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1091
1091
  readonly aggregateID: Schema.String;
1092
- readonly seq: Schema.Int;
1093
- readonly version: Schema.Int;
1092
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1093
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1094
1094
  }>>>, Schema.optionalKey<Schema.Struct<{
1095
1095
  readonly aggregateID: Schema.String;
1096
- readonly seq: Schema.Int;
1097
- readonly version: Schema.Int;
1096
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1097
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1098
1098
  }>>, never, never>;
1099
1099
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1100
1100
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1153,12 +1153,12 @@ export declare const Synthetic: Schema.Struct<{
1153
1153
  readonly type: Schema.Literal<"session.next.synthetic">;
1154
1154
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1155
1155
  readonly aggregateID: Schema.String;
1156
- readonly seq: Schema.Int;
1157
- readonly version: Schema.Int;
1156
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1157
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1158
1158
  }>>>, Schema.optionalKey<Schema.Struct<{
1159
1159
  readonly aggregateID: Schema.String;
1160
- readonly seq: Schema.Int;
1161
- readonly version: Schema.Int;
1160
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1161
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1162
1162
  }>>, never, never>;
1163
1163
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1164
1164
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1222,12 +1222,12 @@ export declare namespace Skill {
1222
1222
  readonly type: Schema.Literal<"session.next.skill.activated">;
1223
1223
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1224
1224
  readonly aggregateID: Schema.String;
1225
- readonly seq: Schema.Int;
1226
- readonly version: Schema.Int;
1225
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1226
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1227
1227
  }>>>, Schema.optionalKey<Schema.Struct<{
1228
1228
  readonly aggregateID: Schema.String;
1229
- readonly seq: Schema.Int;
1230
- readonly version: Schema.Int;
1229
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1230
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1231
1231
  }>>, never, never>;
1232
1232
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1233
1233
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1290,12 +1290,12 @@ export declare namespace Shell {
1290
1290
  readonly type: Schema.Literal<"session.next.shell.started">;
1291
1291
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1292
1292
  readonly aggregateID: Schema.String;
1293
- readonly seq: Schema.Int;
1294
- readonly version: Schema.Int;
1293
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1294
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1295
1295
  }>>>, Schema.optionalKey<Schema.Struct<{
1296
1296
  readonly aggregateID: Schema.String;
1297
- readonly seq: Schema.Int;
1298
- readonly version: Schema.Int;
1297
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1298
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1299
1299
  }>>, never, never>;
1300
1300
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1301
1301
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1356,12 +1356,12 @@ export declare namespace Shell {
1356
1356
  readonly type: Schema.Literal<"session.next.shell.ended">;
1357
1357
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1358
1358
  readonly aggregateID: Schema.String;
1359
- readonly seq: Schema.Int;
1360
- readonly version: Schema.Int;
1359
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1360
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1361
1361
  }>>>, Schema.optionalKey<Schema.Struct<{
1362
1362
  readonly aggregateID: Schema.String;
1363
- readonly seq: Schema.Int;
1364
- readonly version: Schema.Int;
1363
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1364
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1365
1365
  }>>, never, never>;
1366
1366
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1367
1367
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1418,12 +1418,12 @@ export declare namespace Step {
1418
1418
  readonly type: Schema.Literal<"session.next.step.started">;
1419
1419
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1420
1420
  readonly aggregateID: Schema.String;
1421
- readonly seq: Schema.Int;
1422
- readonly version: Schema.Int;
1421
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1422
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1423
1423
  }>>>, Schema.optionalKey<Schema.Struct<{
1424
1424
  readonly aggregateID: Schema.String;
1425
- readonly seq: Schema.Int;
1426
- readonly version: Schema.Int;
1425
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1426
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1427
1427
  }>>, never, never>;
1428
1428
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1429
1429
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1518,12 +1518,12 @@ export declare namespace Step {
1518
1518
  readonly type: Schema.Literal<"session.next.step.ended">;
1519
1519
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1520
1520
  readonly aggregateID: Schema.String;
1521
- readonly seq: Schema.Int;
1522
- readonly version: Schema.Int;
1521
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1522
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1523
1523
  }>>>, Schema.optionalKey<Schema.Struct<{
1524
1524
  readonly aggregateID: Schema.String;
1525
- readonly seq: Schema.Int;
1526
- readonly version: Schema.Int;
1525
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1526
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1527
1527
  }>>, never, never>;
1528
1528
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1529
1529
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1606,12 +1606,12 @@ export declare namespace Step {
1606
1606
  readonly type: Schema.Literal<"session.next.step.failed">;
1607
1607
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1608
1608
  readonly aggregateID: Schema.String;
1609
- readonly seq: Schema.Int;
1610
- readonly version: Schema.Int;
1609
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1610
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1611
1611
  }>>>, Schema.optionalKey<Schema.Struct<{
1612
1612
  readonly aggregateID: Schema.String;
1613
- readonly seq: Schema.Int;
1614
- readonly version: Schema.Int;
1613
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1614
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1615
1615
  }>>, never, never>;
1616
1616
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1617
1617
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1678,12 +1678,12 @@ export declare namespace Text {
1678
1678
  readonly type: Schema.Literal<"session.next.text.started">;
1679
1679
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1680
1680
  readonly aggregateID: Schema.String;
1681
- readonly seq: Schema.Int;
1682
- readonly version: Schema.Int;
1681
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1682
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1683
1683
  }>>>, Schema.optionalKey<Schema.Struct<{
1684
1684
  readonly aggregateID: Schema.String;
1685
- readonly seq: Schema.Int;
1686
- readonly version: Schema.Int;
1685
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1686
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1687
1687
  }>>, never, never>;
1688
1688
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1689
1689
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1742,12 +1742,12 @@ export declare namespace Text {
1742
1742
  readonly type: Schema.Literal<"session.next.text.delta">;
1743
1743
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1744
1744
  readonly aggregateID: Schema.String;
1745
- readonly seq: Schema.Int;
1746
- readonly version: Schema.Int;
1745
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1746
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1747
1747
  }>>>, Schema.optionalKey<Schema.Struct<{
1748
1748
  readonly aggregateID: Schema.String;
1749
- readonly seq: Schema.Int;
1750
- readonly version: Schema.Int;
1749
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1750
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1751
1751
  }>>, never, never>;
1752
1752
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1753
1753
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1808,12 +1808,12 @@ export declare namespace Text {
1808
1808
  readonly type: Schema.Literal<"session.next.text.ended">;
1809
1809
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1810
1810
  readonly aggregateID: Schema.String;
1811
- readonly seq: Schema.Int;
1812
- readonly version: Schema.Int;
1811
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1812
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1813
1813
  }>>>, Schema.optionalKey<Schema.Struct<{
1814
1814
  readonly aggregateID: Schema.String;
1815
- readonly seq: Schema.Int;
1816
- readonly version: Schema.Int;
1815
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1816
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1817
1817
  }>>, never, never>;
1818
1818
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1819
1819
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1876,12 +1876,12 @@ export declare namespace Reasoning {
1876
1876
  readonly type: Schema.Literal<"session.next.reasoning.started">;
1877
1877
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1878
1878
  readonly aggregateID: Schema.String;
1879
- readonly seq: Schema.Int;
1880
- readonly version: Schema.Int;
1879
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1880
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1881
1881
  }>>>, Schema.optionalKey<Schema.Struct<{
1882
1882
  readonly aggregateID: Schema.String;
1883
- readonly seq: Schema.Int;
1884
- readonly version: Schema.Int;
1883
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1884
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1885
1885
  }>>, never, never>;
1886
1886
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1887
1887
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1942,12 +1942,12 @@ export declare namespace Reasoning {
1942
1942
  readonly type: Schema.Literal<"session.next.reasoning.delta">;
1943
1943
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1944
1944
  readonly aggregateID: Schema.String;
1945
- readonly seq: Schema.Int;
1946
- readonly version: Schema.Int;
1945
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1946
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1947
1947
  }>>>, Schema.optionalKey<Schema.Struct<{
1948
1948
  readonly aggregateID: Schema.String;
1949
- readonly seq: Schema.Int;
1950
- readonly version: Schema.Int;
1949
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1950
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
1951
1951
  }>>, never, never>;
1952
1952
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1953
1953
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2008,12 +2008,12 @@ export declare namespace Reasoning {
2008
2008
  readonly type: Schema.Literal<"session.next.reasoning.ended">;
2009
2009
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2010
2010
  readonly aggregateID: Schema.String;
2011
- readonly seq: Schema.Int;
2012
- readonly version: Schema.Int;
2011
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2012
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2013
2013
  }>>>, Schema.optionalKey<Schema.Struct<{
2014
2014
  readonly aggregateID: Schema.String;
2015
- readonly seq: Schema.Int;
2016
- readonly version: Schema.Int;
2015
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2016
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2017
2017
  }>>, never, never>;
2018
2018
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2019
2019
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2079,12 +2079,12 @@ export declare namespace Tool {
2079
2079
  readonly type: Schema.Literal<"session.next.tool.input.started">;
2080
2080
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2081
2081
  readonly aggregateID: Schema.String;
2082
- readonly seq: Schema.Int;
2083
- readonly version: Schema.Int;
2082
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2083
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2084
2084
  }>>>, Schema.optionalKey<Schema.Struct<{
2085
2085
  readonly aggregateID: Schema.String;
2086
- readonly seq: Schema.Int;
2087
- readonly version: Schema.Int;
2086
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2087
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2088
2088
  }>>, never, never>;
2089
2089
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2090
2090
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2145,12 +2145,12 @@ export declare namespace Tool {
2145
2145
  readonly type: Schema.Literal<"session.next.tool.input.delta">;
2146
2146
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2147
2147
  readonly aggregateID: Schema.String;
2148
- readonly seq: Schema.Int;
2149
- readonly version: Schema.Int;
2148
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2149
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2150
2150
  }>>>, Schema.optionalKey<Schema.Struct<{
2151
2151
  readonly aggregateID: Schema.String;
2152
- readonly seq: Schema.Int;
2153
- readonly version: Schema.Int;
2152
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2153
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2154
2154
  }>>, never, never>;
2155
2155
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2156
2156
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2211,12 +2211,12 @@ export declare namespace Tool {
2211
2211
  readonly type: Schema.Literal<"session.next.tool.input.ended">;
2212
2212
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2213
2213
  readonly aggregateID: Schema.String;
2214
- readonly seq: Schema.Int;
2215
- readonly version: Schema.Int;
2214
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2215
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2216
2216
  }>>>, Schema.optionalKey<Schema.Struct<{
2217
2217
  readonly aggregateID: Schema.String;
2218
- readonly seq: Schema.Int;
2219
- readonly version: Schema.Int;
2218
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2219
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2220
2220
  }>>, never, never>;
2221
2221
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2222
2222
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2278,12 +2278,12 @@ export declare namespace Tool {
2278
2278
  readonly type: Schema.Literal<"session.next.tool.called">;
2279
2279
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2280
2280
  readonly aggregateID: Schema.String;
2281
- readonly seq: Schema.Int;
2282
- readonly version: Schema.Int;
2281
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2282
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2283
2283
  }>>>, Schema.optionalKey<Schema.Struct<{
2284
2284
  readonly aggregateID: Schema.String;
2285
- readonly seq: Schema.Int;
2286
- readonly version: Schema.Int;
2285
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2286
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2287
2287
  }>>, never, never>;
2288
2288
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2289
2289
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2358,12 +2358,12 @@ export declare namespace Tool {
2358
2358
  readonly type: Schema.Literal<"session.next.tool.progress">;
2359
2359
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2360
2360
  readonly aggregateID: Schema.String;
2361
- readonly seq: Schema.Int;
2362
- readonly version: Schema.Int;
2361
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2362
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2363
2363
  }>>>, Schema.optionalKey<Schema.Struct<{
2364
2364
  readonly aggregateID: Schema.String;
2365
- readonly seq: Schema.Int;
2366
- readonly version: Schema.Int;
2365
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2366
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2367
2367
  }>>, never, never>;
2368
2368
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2369
2369
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2442,12 +2442,12 @@ export declare namespace Tool {
2442
2442
  readonly type: Schema.Literal<"session.next.tool.success">;
2443
2443
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2444
2444
  readonly aggregateID: Schema.String;
2445
- readonly seq: Schema.Int;
2446
- readonly version: Schema.Int;
2445
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2446
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2447
2447
  }>>>, Schema.optionalKey<Schema.Struct<{
2448
2448
  readonly aggregateID: Schema.String;
2449
- readonly seq: Schema.Int;
2450
- readonly version: Schema.Int;
2449
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2450
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2451
2451
  }>>, never, never>;
2452
2452
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2453
2453
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2538,12 +2538,12 @@ export declare namespace Tool {
2538
2538
  readonly type: Schema.Literal<"session.next.tool.failed">;
2539
2539
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2540
2540
  readonly aggregateID: Schema.String;
2541
- readonly seq: Schema.Int;
2542
- readonly version: Schema.Int;
2541
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2542
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2543
2543
  }>>>, Schema.optionalKey<Schema.Struct<{
2544
2544
  readonly aggregateID: Schema.String;
2545
- readonly seq: Schema.Int;
2546
- readonly version: Schema.Int;
2545
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2546
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2547
2547
  }>>, never, never>;
2548
2548
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2549
2549
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2631,12 +2631,12 @@ export declare const Retried: Schema.Struct<{
2631
2631
  readonly type: Schema.Literal<"session.next.retried">;
2632
2632
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2633
2633
  readonly aggregateID: Schema.String;
2634
- readonly seq: Schema.Int;
2635
- readonly version: Schema.Int;
2634
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2635
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2636
2636
  }>>>, Schema.optionalKey<Schema.Struct<{
2637
2637
  readonly aggregateID: Schema.String;
2638
- readonly seq: Schema.Int;
2639
- readonly version: Schema.Int;
2638
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2639
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2640
2640
  }>>, never, never>;
2641
2641
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2642
2642
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2706,12 +2706,12 @@ export declare namespace Compaction {
2706
2706
  readonly type: Schema.Literal<"session.next.compaction.started">;
2707
2707
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2708
2708
  readonly aggregateID: Schema.String;
2709
- readonly seq: Schema.Int;
2710
- readonly version: Schema.Int;
2709
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2710
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2711
2711
  }>>>, Schema.optionalKey<Schema.Struct<{
2712
2712
  readonly aggregateID: Schema.String;
2713
- readonly seq: Schema.Int;
2714
- readonly version: Schema.Int;
2713
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2714
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2715
2715
  }>>, never, never>;
2716
2716
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2717
2717
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2770,12 +2770,12 @@ export declare namespace Compaction {
2770
2770
  readonly type: Schema.Literal<"session.next.compaction.delta">;
2771
2771
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2772
2772
  readonly aggregateID: Schema.String;
2773
- readonly seq: Schema.Int;
2774
- readonly version: Schema.Int;
2773
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2774
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2775
2775
  }>>>, Schema.optionalKey<Schema.Struct<{
2776
2776
  readonly aggregateID: Schema.String;
2777
- readonly seq: Schema.Int;
2778
- readonly version: Schema.Int;
2777
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2778
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2779
2779
  }>>, never, never>;
2780
2780
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2781
2781
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2834,12 +2834,12 @@ export declare namespace Compaction {
2834
2834
  readonly type: Schema.Literal<"session.next.compaction.ended">;
2835
2835
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2836
2836
  readonly aggregateID: Schema.String;
2837
- readonly seq: Schema.Int;
2838
- readonly version: Schema.Int;
2837
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2838
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2839
2839
  }>>>, Schema.optionalKey<Schema.Struct<{
2840
2840
  readonly aggregateID: Schema.String;
2841
- readonly seq: Schema.Int;
2842
- readonly version: Schema.Int;
2841
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2842
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2843
2843
  }>>, never, never>;
2844
2844
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2845
2845
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2904,12 +2904,12 @@ export declare namespace RevertEvent {
2904
2904
  readonly type: Schema.Literal<"session.next.revert.staged">;
2905
2905
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2906
2906
  readonly aggregateID: Schema.String;
2907
- readonly seq: Schema.Int;
2908
- readonly version: Schema.Int;
2907
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2908
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2909
2909
  }>>>, Schema.optionalKey<Schema.Struct<{
2910
2910
  readonly aggregateID: Schema.String;
2911
- readonly seq: Schema.Int;
2912
- readonly version: Schema.Int;
2911
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2912
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
2913
2913
  }>>, never, never>;
2914
2914
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2915
2915
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3001,12 +3001,12 @@ export declare namespace RevertEvent {
3001
3001
  readonly type: Schema.Literal<"session.next.revert.cleared">;
3002
3002
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3003
3003
  readonly aggregateID: Schema.String;
3004
- readonly seq: Schema.Int;
3005
- readonly version: Schema.Int;
3004
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3005
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3006
3006
  }>>>, Schema.optionalKey<Schema.Struct<{
3007
3007
  readonly aggregateID: Schema.String;
3008
- readonly seq: Schema.Int;
3009
- readonly version: Schema.Int;
3008
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3009
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3010
3010
  }>>, never, never>;
3011
3011
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3012
3012
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3056,12 +3056,12 @@ export declare namespace RevertEvent {
3056
3056
  readonly type: Schema.Literal<"session.next.revert.committed">;
3057
3057
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3058
3058
  readonly aggregateID: Schema.String;
3059
- readonly seq: Schema.Int;
3060
- readonly version: Schema.Int;
3059
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3060
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3061
3061
  }>>>, Schema.optionalKey<Schema.Struct<{
3062
3062
  readonly aggregateID: Schema.String;
3063
- readonly seq: Schema.Int;
3064
- readonly version: Schema.Int;
3063
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3064
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3065
3065
  }>>, never, never>;
3066
3066
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3067
3067
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3118,12 +3118,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
3118
3118
  readonly type: Schema.Literal<"session.next.agent.switched">;
3119
3119
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3120
3120
  readonly aggregateID: Schema.String;
3121
- readonly seq: Schema.Int;
3122
- readonly version: Schema.Int;
3121
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3122
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3123
3123
  }>>>, Schema.optionalKey<Schema.Struct<{
3124
3124
  readonly aggregateID: Schema.String;
3125
- readonly seq: Schema.Int;
3126
- readonly version: Schema.Int;
3125
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3126
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3127
3127
  }>>, never, never>;
3128
3128
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3129
3129
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3180,12 +3180,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
3180
3180
  readonly type: Schema.Literal<"session.next.model.switched">;
3181
3181
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3182
3182
  readonly aggregateID: Schema.String;
3183
- readonly seq: Schema.Int;
3184
- readonly version: Schema.Int;
3183
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3184
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3185
3185
  }>>>, Schema.optionalKey<Schema.Struct<{
3186
3186
  readonly aggregateID: Schema.String;
3187
- readonly seq: Schema.Int;
3188
- readonly version: Schema.Int;
3187
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3188
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3189
3189
  }>>, never, never>;
3190
3190
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3191
3191
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3274,12 +3274,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
3274
3274
  readonly type: Schema.Literal<"session.next.moved">;
3275
3275
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3276
3276
  readonly aggregateID: Schema.String;
3277
- readonly seq: Schema.Int;
3278
- readonly version: Schema.Int;
3277
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3278
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3279
3279
  }>>>, Schema.optionalKey<Schema.Struct<{
3280
3280
  readonly aggregateID: Schema.String;
3281
- readonly seq: Schema.Int;
3282
- readonly version: Schema.Int;
3281
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3282
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3283
3283
  }>>, never, never>;
3284
3284
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3285
3285
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3350,12 +3350,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
3350
3350
  readonly type: Schema.Literal<"session.next.renamed">;
3351
3351
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3352
3352
  readonly aggregateID: Schema.String;
3353
- readonly seq: Schema.Int;
3354
- readonly version: Schema.Int;
3353
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3354
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3355
3355
  }>>>, Schema.optionalKey<Schema.Struct<{
3356
3356
  readonly aggregateID: Schema.String;
3357
- readonly seq: Schema.Int;
3358
- readonly version: Schema.Int;
3357
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3358
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3359
3359
  }>>, never, never>;
3360
3360
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3361
3361
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3406,12 +3406,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
3406
3406
  readonly type: Schema.Literal<"session.next.forked">;
3407
3407
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3408
3408
  readonly aggregateID: Schema.String;
3409
- readonly seq: Schema.Int;
3410
- readonly version: Schema.Int;
3409
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3410
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3411
3411
  }>>>, Schema.optionalKey<Schema.Struct<{
3412
3412
  readonly aggregateID: Schema.String;
3413
- readonly seq: Schema.Int;
3414
- readonly version: Schema.Int;
3413
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3414
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3415
3415
  }>>, never, never>;
3416
3416
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3417
3417
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3478,12 +3478,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
3478
3478
  readonly type: Schema.Literal<"session.next.prompted">;
3479
3479
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3480
3480
  readonly aggregateID: Schema.String;
3481
- readonly seq: Schema.Int;
3482
- readonly version: Schema.Int;
3481
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3482
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3483
3483
  }>>>, Schema.optionalKey<Schema.Struct<{
3484
3484
  readonly aggregateID: Schema.String;
3485
- readonly seq: Schema.Int;
3486
- readonly version: Schema.Int;
3485
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3486
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3487
3487
  }>>, never, never>;
3488
3488
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3489
3489
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -3788,12 +3788,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
3788
3788
  readonly type: Schema.Literal<"session.next.prompt.admitted">;
3789
3789
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3790
3790
  readonly aggregateID: Schema.String;
3791
- readonly seq: Schema.Int;
3792
- readonly version: Schema.Int;
3791
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3792
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3793
3793
  }>>>, Schema.optionalKey<Schema.Struct<{
3794
3794
  readonly aggregateID: Schema.String;
3795
- readonly seq: Schema.Int;
3796
- readonly version: Schema.Int;
3795
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3796
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
3797
3797
  }>>, never, never>;
3798
3798
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3799
3799
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4098,12 +4098,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4098
4098
  readonly type: Schema.Literal<"session.next.context.updated">;
4099
4099
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4100
4100
  readonly aggregateID: Schema.String;
4101
- readonly seq: Schema.Int;
4102
- readonly version: Schema.Int;
4101
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4102
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4103
4103
  }>>>, Schema.optionalKey<Schema.Struct<{
4104
4104
  readonly aggregateID: Schema.String;
4105
- readonly seq: Schema.Int;
4106
- readonly version: Schema.Int;
4105
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4106
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4107
4107
  }>>, never, never>;
4108
4108
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4109
4109
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4160,12 +4160,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4160
4160
  readonly type: Schema.Literal<"session.next.synthetic">;
4161
4161
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4162
4162
  readonly aggregateID: Schema.String;
4163
- readonly seq: Schema.Int;
4164
- readonly version: Schema.Int;
4163
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4164
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4165
4165
  }>>>, Schema.optionalKey<Schema.Struct<{
4166
4166
  readonly aggregateID: Schema.String;
4167
- readonly seq: Schema.Int;
4168
- readonly version: Schema.Int;
4167
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4168
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4169
4169
  }>>, never, never>;
4170
4170
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4171
4171
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4226,12 +4226,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4226
4226
  readonly type: Schema.Literal<"session.next.skill.activated">;
4227
4227
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4228
4228
  readonly aggregateID: Schema.String;
4229
- readonly seq: Schema.Int;
4230
- readonly version: Schema.Int;
4229
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4230
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4231
4231
  }>>>, Schema.optionalKey<Schema.Struct<{
4232
4232
  readonly aggregateID: Schema.String;
4233
- readonly seq: Schema.Int;
4234
- readonly version: Schema.Int;
4233
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4234
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4235
4235
  }>>, never, never>;
4236
4236
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4237
4237
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4290,12 +4290,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4290
4290
  readonly type: Schema.Literal<"session.next.shell.started">;
4291
4291
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4292
4292
  readonly aggregateID: Schema.String;
4293
- readonly seq: Schema.Int;
4294
- readonly version: Schema.Int;
4293
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4294
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4295
4295
  }>>>, Schema.optionalKey<Schema.Struct<{
4296
4296
  readonly aggregateID: Schema.String;
4297
- readonly seq: Schema.Int;
4298
- readonly version: Schema.Int;
4297
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4298
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4299
4299
  }>>, never, never>;
4300
4300
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4301
4301
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4354,12 +4354,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4354
4354
  readonly type: Schema.Literal<"session.next.shell.ended">;
4355
4355
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4356
4356
  readonly aggregateID: Schema.String;
4357
- readonly seq: Schema.Int;
4358
- readonly version: Schema.Int;
4357
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4358
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4359
4359
  }>>>, Schema.optionalKey<Schema.Struct<{
4360
4360
  readonly aggregateID: Schema.String;
4361
- readonly seq: Schema.Int;
4362
- readonly version: Schema.Int;
4361
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4362
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4363
4363
  }>>, never, never>;
4364
4364
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4365
4365
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4412,12 +4412,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4412
4412
  readonly type: Schema.Literal<"session.next.step.started">;
4413
4413
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4414
4414
  readonly aggregateID: Schema.String;
4415
- readonly seq: Schema.Int;
4416
- readonly version: Schema.Int;
4415
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4416
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4417
4417
  }>>>, Schema.optionalKey<Schema.Struct<{
4418
4418
  readonly aggregateID: Schema.String;
4419
- readonly seq: Schema.Int;
4420
- readonly version: Schema.Int;
4419
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4420
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4421
4421
  }>>, never, never>;
4422
4422
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4423
4423
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4510,12 +4510,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4510
4510
  readonly type: Schema.Literal<"session.next.step.ended">;
4511
4511
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4512
4512
  readonly aggregateID: Schema.String;
4513
- readonly seq: Schema.Int;
4514
- readonly version: Schema.Int;
4513
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4514
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4515
4515
  }>>>, Schema.optionalKey<Schema.Struct<{
4516
4516
  readonly aggregateID: Schema.String;
4517
- readonly seq: Schema.Int;
4518
- readonly version: Schema.Int;
4517
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4518
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4519
4519
  }>>, never, never>;
4520
4520
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4521
4521
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4596,12 +4596,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4596
4596
  readonly type: Schema.Literal<"session.next.step.failed">;
4597
4597
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4598
4598
  readonly aggregateID: Schema.String;
4599
- readonly seq: Schema.Int;
4600
- readonly version: Schema.Int;
4599
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4600
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4601
4601
  }>>>, Schema.optionalKey<Schema.Struct<{
4602
4602
  readonly aggregateID: Schema.String;
4603
- readonly seq: Schema.Int;
4604
- readonly version: Schema.Int;
4603
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4604
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4605
4605
  }>>, never, never>;
4606
4606
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4607
4607
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4664,12 +4664,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4664
4664
  readonly type: Schema.Literal<"session.next.text.started">;
4665
4665
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4666
4666
  readonly aggregateID: Schema.String;
4667
- readonly seq: Schema.Int;
4668
- readonly version: Schema.Int;
4667
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4668
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4669
4669
  }>>>, Schema.optionalKey<Schema.Struct<{
4670
4670
  readonly aggregateID: Schema.String;
4671
- readonly seq: Schema.Int;
4672
- readonly version: Schema.Int;
4671
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4672
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4673
4673
  }>>, never, never>;
4674
4674
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4675
4675
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4726,12 +4726,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4726
4726
  readonly type: Schema.Literal<"session.next.text.ended">;
4727
4727
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4728
4728
  readonly aggregateID: Schema.String;
4729
- readonly seq: Schema.Int;
4730
- readonly version: Schema.Int;
4729
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4730
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4731
4731
  }>>>, Schema.optionalKey<Schema.Struct<{
4732
4732
  readonly aggregateID: Schema.String;
4733
- readonly seq: Schema.Int;
4734
- readonly version: Schema.Int;
4733
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4734
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4735
4735
  }>>, never, never>;
4736
4736
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4737
4737
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4790,12 +4790,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4790
4790
  readonly type: Schema.Literal<"session.next.tool.input.started">;
4791
4791
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4792
4792
  readonly aggregateID: Schema.String;
4793
- readonly seq: Schema.Int;
4794
- readonly version: Schema.Int;
4793
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4794
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4795
4795
  }>>>, Schema.optionalKey<Schema.Struct<{
4796
4796
  readonly aggregateID: Schema.String;
4797
- readonly seq: Schema.Int;
4798
- readonly version: Schema.Int;
4797
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4798
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4799
4799
  }>>, never, never>;
4800
4800
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4801
4801
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4854,12 +4854,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4854
4854
  readonly type: Schema.Literal<"session.next.tool.input.ended">;
4855
4855
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4856
4856
  readonly aggregateID: Schema.String;
4857
- readonly seq: Schema.Int;
4858
- readonly version: Schema.Int;
4857
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4858
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4859
4859
  }>>>, Schema.optionalKey<Schema.Struct<{
4860
4860
  readonly aggregateID: Schema.String;
4861
- readonly seq: Schema.Int;
4862
- readonly version: Schema.Int;
4861
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4862
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4863
4863
  }>>, never, never>;
4864
4864
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4865
4865
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4918,12 +4918,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4918
4918
  readonly type: Schema.Literal<"session.next.tool.called">;
4919
4919
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4920
4920
  readonly aggregateID: Schema.String;
4921
- readonly seq: Schema.Int;
4922
- readonly version: Schema.Int;
4921
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4922
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4923
4923
  }>>>, Schema.optionalKey<Schema.Struct<{
4924
4924
  readonly aggregateID: Schema.String;
4925
- readonly seq: Schema.Int;
4926
- readonly version: Schema.Int;
4925
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4926
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4927
4927
  }>>, never, never>;
4928
4928
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4929
4929
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -4992,12 +4992,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
4992
4992
  readonly type: Schema.Literal<"session.next.tool.progress">;
4993
4993
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4994
4994
  readonly aggregateID: Schema.String;
4995
- readonly seq: Schema.Int;
4996
- readonly version: Schema.Int;
4995
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4996
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
4997
4997
  }>>>, Schema.optionalKey<Schema.Struct<{
4998
4998
  readonly aggregateID: Schema.String;
4999
- readonly seq: Schema.Int;
5000
- readonly version: Schema.Int;
4999
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5000
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5001
5001
  }>>, never, never>;
5002
5002
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5003
5003
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5074,12 +5074,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
5074
5074
  readonly type: Schema.Literal<"session.next.tool.success">;
5075
5075
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5076
5076
  readonly aggregateID: Schema.String;
5077
- readonly seq: Schema.Int;
5078
- readonly version: Schema.Int;
5077
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5078
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5079
5079
  }>>>, Schema.optionalKey<Schema.Struct<{
5080
5080
  readonly aggregateID: Schema.String;
5081
- readonly seq: Schema.Int;
5082
- readonly version: Schema.Int;
5081
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5082
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5083
5083
  }>>, never, never>;
5084
5084
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5085
5085
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5168,12 +5168,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
5168
5168
  readonly type: Schema.Literal<"session.next.tool.failed">;
5169
5169
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5170
5170
  readonly aggregateID: Schema.String;
5171
- readonly seq: Schema.Int;
5172
- readonly version: Schema.Int;
5171
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5172
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5173
5173
  }>>>, Schema.optionalKey<Schema.Struct<{
5174
5174
  readonly aggregateID: Schema.String;
5175
- readonly seq: Schema.Int;
5176
- readonly version: Schema.Int;
5175
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5176
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5177
5177
  }>>, never, never>;
5178
5178
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5179
5179
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5248,12 +5248,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
5248
5248
  readonly type: Schema.Literal<"session.next.reasoning.started">;
5249
5249
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5250
5250
  readonly aggregateID: Schema.String;
5251
- readonly seq: Schema.Int;
5252
- readonly version: Schema.Int;
5251
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5252
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5253
5253
  }>>>, Schema.optionalKey<Schema.Struct<{
5254
5254
  readonly aggregateID: Schema.String;
5255
- readonly seq: Schema.Int;
5256
- readonly version: Schema.Int;
5255
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5256
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5257
5257
  }>>, never, never>;
5258
5258
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5259
5259
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5312,12 +5312,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
5312
5312
  readonly type: Schema.Literal<"session.next.reasoning.ended">;
5313
5313
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5314
5314
  readonly aggregateID: Schema.String;
5315
- readonly seq: Schema.Int;
5316
- readonly version: Schema.Int;
5315
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5316
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5317
5317
  }>>>, Schema.optionalKey<Schema.Struct<{
5318
5318
  readonly aggregateID: Schema.String;
5319
- readonly seq: Schema.Int;
5320
- readonly version: Schema.Int;
5319
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5320
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5321
5321
  }>>, never, never>;
5322
5322
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5323
5323
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5378,12 +5378,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
5378
5378
  readonly type: Schema.Literal<"session.next.retried">;
5379
5379
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5380
5380
  readonly aggregateID: Schema.String;
5381
- readonly seq: Schema.Int;
5382
- readonly version: Schema.Int;
5381
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5382
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5383
5383
  }>>>, Schema.optionalKey<Schema.Struct<{
5384
5384
  readonly aggregateID: Schema.String;
5385
- readonly seq: Schema.Int;
5386
- readonly version: Schema.Int;
5385
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5386
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5387
5387
  }>>, never, never>;
5388
5388
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5389
5389
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5450,12 +5450,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
5450
5450
  readonly type: Schema.Literal<"session.next.compaction.started">;
5451
5451
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5452
5452
  readonly aggregateID: Schema.String;
5453
- readonly seq: Schema.Int;
5454
- readonly version: Schema.Int;
5453
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5454
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5455
5455
  }>>>, Schema.optionalKey<Schema.Struct<{
5456
5456
  readonly aggregateID: Schema.String;
5457
- readonly seq: Schema.Int;
5458
- readonly version: Schema.Int;
5457
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5458
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5459
5459
  }>>, never, never>;
5460
5460
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5461
5461
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5512,12 +5512,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
5512
5512
  readonly type: Schema.Literal<"session.next.compaction.ended">;
5513
5513
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5514
5514
  readonly aggregateID: Schema.String;
5515
- readonly seq: Schema.Int;
5516
- readonly version: Schema.Int;
5515
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5516
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5517
5517
  }>>>, Schema.optionalKey<Schema.Struct<{
5518
5518
  readonly aggregateID: Schema.String;
5519
- readonly seq: Schema.Int;
5520
- readonly version: Schema.Int;
5519
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5520
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5521
5521
  }>>, never, never>;
5522
5522
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5523
5523
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5578,12 +5578,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
5578
5578
  readonly type: Schema.Literal<"session.next.revert.staged">;
5579
5579
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5580
5580
  readonly aggregateID: Schema.String;
5581
- readonly seq: Schema.Int;
5582
- readonly version: Schema.Int;
5581
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5582
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5583
5583
  }>>>, Schema.optionalKey<Schema.Struct<{
5584
5584
  readonly aggregateID: Schema.String;
5585
- readonly seq: Schema.Int;
5586
- readonly version: Schema.Int;
5585
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5586
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5587
5587
  }>>, never, never>;
5588
5588
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5589
5589
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5674,12 +5674,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
5674
5674
  readonly type: Schema.Literal<"session.next.revert.cleared">;
5675
5675
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5676
5676
  readonly aggregateID: Schema.String;
5677
- readonly seq: Schema.Int;
5678
- readonly version: Schema.Int;
5677
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5678
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5679
5679
  }>>>, Schema.optionalKey<Schema.Struct<{
5680
5680
  readonly aggregateID: Schema.String;
5681
- readonly seq: Schema.Int;
5682
- readonly version: Schema.Int;
5681
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5682
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5683
5683
  }>>, never, never>;
5684
5684
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5685
5685
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5728,12 +5728,12 @@ export declare const DurableDefinitions: readonly [Schema.Struct<{
5728
5728
  readonly type: Schema.Literal<"session.next.revert.committed">;
5729
5729
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5730
5730
  readonly aggregateID: Schema.String;
5731
- readonly seq: Schema.Int;
5732
- readonly version: Schema.Int;
5731
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5732
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5733
5733
  }>>>, Schema.optionalKey<Schema.Struct<{
5734
5734
  readonly aggregateID: Schema.String;
5735
- readonly seq: Schema.Int;
5736
- readonly version: Schema.Int;
5735
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5736
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5737
5737
  }>>, never, never>;
5738
5738
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5739
5739
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5789,12 +5789,12 @@ export declare const Definitions: readonly [Schema.Struct<{
5789
5789
  readonly type: Schema.Literal<"session.next.agent.switched">;
5790
5790
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5791
5791
  readonly aggregateID: Schema.String;
5792
- readonly seq: Schema.Int;
5793
- readonly version: Schema.Int;
5792
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5793
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5794
5794
  }>>>, Schema.optionalKey<Schema.Struct<{
5795
5795
  readonly aggregateID: Schema.String;
5796
- readonly seq: Schema.Int;
5797
- readonly version: Schema.Int;
5796
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5797
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5798
5798
  }>>, never, never>;
5799
5799
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5800
5800
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5851,12 +5851,12 @@ export declare const Definitions: readonly [Schema.Struct<{
5851
5851
  readonly type: Schema.Literal<"session.next.model.switched">;
5852
5852
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5853
5853
  readonly aggregateID: Schema.String;
5854
- readonly seq: Schema.Int;
5855
- readonly version: Schema.Int;
5854
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5855
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5856
5856
  }>>>, Schema.optionalKey<Schema.Struct<{
5857
5857
  readonly aggregateID: Schema.String;
5858
- readonly seq: Schema.Int;
5859
- readonly version: Schema.Int;
5858
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5859
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5860
5860
  }>>, never, never>;
5861
5861
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5862
5862
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -5945,12 +5945,12 @@ export declare const Definitions: readonly [Schema.Struct<{
5945
5945
  readonly type: Schema.Literal<"session.next.moved">;
5946
5946
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5947
5947
  readonly aggregateID: Schema.String;
5948
- readonly seq: Schema.Int;
5949
- readonly version: Schema.Int;
5948
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5949
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5950
5950
  }>>>, Schema.optionalKey<Schema.Struct<{
5951
5951
  readonly aggregateID: Schema.String;
5952
- readonly seq: Schema.Int;
5953
- readonly version: Schema.Int;
5952
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
5953
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
5954
5954
  }>>, never, never>;
5955
5955
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
5956
5956
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6021,12 +6021,12 @@ export declare const Definitions: readonly [Schema.Struct<{
6021
6021
  readonly type: Schema.Literal<"session.next.renamed">;
6022
6022
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6023
6023
  readonly aggregateID: Schema.String;
6024
- readonly seq: Schema.Int;
6025
- readonly version: Schema.Int;
6024
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6025
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6026
6026
  }>>>, Schema.optionalKey<Schema.Struct<{
6027
6027
  readonly aggregateID: Schema.String;
6028
- readonly seq: Schema.Int;
6029
- readonly version: Schema.Int;
6028
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6029
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6030
6030
  }>>, never, never>;
6031
6031
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6032
6032
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6077,12 +6077,12 @@ export declare const Definitions: readonly [Schema.Struct<{
6077
6077
  readonly type: Schema.Literal<"session.next.forked">;
6078
6078
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6079
6079
  readonly aggregateID: Schema.String;
6080
- readonly seq: Schema.Int;
6081
- readonly version: Schema.Int;
6080
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6081
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6082
6082
  }>>>, Schema.optionalKey<Schema.Struct<{
6083
6083
  readonly aggregateID: Schema.String;
6084
- readonly seq: Schema.Int;
6085
- readonly version: Schema.Int;
6084
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6085
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6086
6086
  }>>, never, never>;
6087
6087
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6088
6088
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6149,12 +6149,12 @@ export declare const Definitions: readonly [Schema.Struct<{
6149
6149
  readonly type: Schema.Literal<"session.next.prompted">;
6150
6150
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6151
6151
  readonly aggregateID: Schema.String;
6152
- readonly seq: Schema.Int;
6153
- readonly version: Schema.Int;
6152
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6153
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6154
6154
  }>>>, Schema.optionalKey<Schema.Struct<{
6155
6155
  readonly aggregateID: Schema.String;
6156
- readonly seq: Schema.Int;
6157
- readonly version: Schema.Int;
6156
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6157
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6158
6158
  }>>, never, never>;
6159
6159
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6160
6160
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6459,12 +6459,12 @@ export declare const Definitions: readonly [Schema.Struct<{
6459
6459
  readonly type: Schema.Literal<"session.next.prompt.admitted">;
6460
6460
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6461
6461
  readonly aggregateID: Schema.String;
6462
- readonly seq: Schema.Int;
6463
- readonly version: Schema.Int;
6462
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6463
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6464
6464
  }>>>, Schema.optionalKey<Schema.Struct<{
6465
6465
  readonly aggregateID: Schema.String;
6466
- readonly seq: Schema.Int;
6467
- readonly version: Schema.Int;
6466
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6467
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6468
6468
  }>>, never, never>;
6469
6469
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6470
6470
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6769,12 +6769,12 @@ export declare const Definitions: readonly [Schema.Struct<{
6769
6769
  readonly type: Schema.Literal<"session.next.execution.settled">;
6770
6770
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6771
6771
  readonly aggregateID: Schema.String;
6772
- readonly seq: Schema.Int;
6773
- readonly version: Schema.Int;
6772
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6773
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6774
6774
  }>>>, Schema.optionalKey<Schema.Struct<{
6775
6775
  readonly aggregateID: Schema.String;
6776
- readonly seq: Schema.Int;
6777
- readonly version: Schema.Int;
6776
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6777
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6778
6778
  }>>, never, never>;
6779
6779
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6780
6780
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6839,12 +6839,12 @@ export declare const Definitions: readonly [Schema.Struct<{
6839
6839
  readonly type: Schema.Literal<"session.next.context.updated">;
6840
6840
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6841
6841
  readonly aggregateID: Schema.String;
6842
- readonly seq: Schema.Int;
6843
- readonly version: Schema.Int;
6842
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6843
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6844
6844
  }>>>, Schema.optionalKey<Schema.Struct<{
6845
6845
  readonly aggregateID: Schema.String;
6846
- readonly seq: Schema.Int;
6847
- readonly version: Schema.Int;
6846
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6847
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6848
6848
  }>>, never, never>;
6849
6849
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6850
6850
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6901,12 +6901,12 @@ export declare const Definitions: readonly [Schema.Struct<{
6901
6901
  readonly type: Schema.Literal<"session.next.synthetic">;
6902
6902
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6903
6903
  readonly aggregateID: Schema.String;
6904
- readonly seq: Schema.Int;
6905
- readonly version: Schema.Int;
6904
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6905
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6906
6906
  }>>>, Schema.optionalKey<Schema.Struct<{
6907
6907
  readonly aggregateID: Schema.String;
6908
- readonly seq: Schema.Int;
6909
- readonly version: Schema.Int;
6908
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6909
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6910
6910
  }>>, never, never>;
6911
6911
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6912
6912
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -6967,12 +6967,12 @@ export declare const Definitions: readonly [Schema.Struct<{
6967
6967
  readonly type: Schema.Literal<"session.next.skill.activated">;
6968
6968
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6969
6969
  readonly aggregateID: Schema.String;
6970
- readonly seq: Schema.Int;
6971
- readonly version: Schema.Int;
6970
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6971
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6972
6972
  }>>>, Schema.optionalKey<Schema.Struct<{
6973
6973
  readonly aggregateID: Schema.String;
6974
- readonly seq: Schema.Int;
6975
- readonly version: Schema.Int;
6974
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6975
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
6976
6976
  }>>, never, never>;
6977
6977
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6978
6978
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7031,12 +7031,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7031
7031
  readonly type: Schema.Literal<"session.next.shell.started">;
7032
7032
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7033
7033
  readonly aggregateID: Schema.String;
7034
- readonly seq: Schema.Int;
7035
- readonly version: Schema.Int;
7034
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7035
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7036
7036
  }>>>, Schema.optionalKey<Schema.Struct<{
7037
7037
  readonly aggregateID: Schema.String;
7038
- readonly seq: Schema.Int;
7039
- readonly version: Schema.Int;
7038
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7039
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7040
7040
  }>>, never, never>;
7041
7041
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7042
7042
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7095,12 +7095,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7095
7095
  readonly type: Schema.Literal<"session.next.shell.ended">;
7096
7096
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7097
7097
  readonly aggregateID: Schema.String;
7098
- readonly seq: Schema.Int;
7099
- readonly version: Schema.Int;
7098
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7099
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7100
7100
  }>>>, Schema.optionalKey<Schema.Struct<{
7101
7101
  readonly aggregateID: Schema.String;
7102
- readonly seq: Schema.Int;
7103
- readonly version: Schema.Int;
7102
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7103
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7104
7104
  }>>, never, never>;
7105
7105
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7106
7106
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7153,12 +7153,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7153
7153
  readonly type: Schema.Literal<"session.next.step.started">;
7154
7154
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7155
7155
  readonly aggregateID: Schema.String;
7156
- readonly seq: Schema.Int;
7157
- readonly version: Schema.Int;
7156
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7157
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7158
7158
  }>>>, Schema.optionalKey<Schema.Struct<{
7159
7159
  readonly aggregateID: Schema.String;
7160
- readonly seq: Schema.Int;
7161
- readonly version: Schema.Int;
7160
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7161
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7162
7162
  }>>, never, never>;
7163
7163
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7164
7164
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7251,12 +7251,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7251
7251
  readonly type: Schema.Literal<"session.next.step.ended">;
7252
7252
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7253
7253
  readonly aggregateID: Schema.String;
7254
- readonly seq: Schema.Int;
7255
- readonly version: Schema.Int;
7254
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7255
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7256
7256
  }>>>, Schema.optionalKey<Schema.Struct<{
7257
7257
  readonly aggregateID: Schema.String;
7258
- readonly seq: Schema.Int;
7259
- readonly version: Schema.Int;
7258
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7259
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7260
7260
  }>>, never, never>;
7261
7261
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7262
7262
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7337,12 +7337,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7337
7337
  readonly type: Schema.Literal<"session.next.step.failed">;
7338
7338
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7339
7339
  readonly aggregateID: Schema.String;
7340
- readonly seq: Schema.Int;
7341
- readonly version: Schema.Int;
7340
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7341
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7342
7342
  }>>>, Schema.optionalKey<Schema.Struct<{
7343
7343
  readonly aggregateID: Schema.String;
7344
- readonly seq: Schema.Int;
7345
- readonly version: Schema.Int;
7344
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7345
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7346
7346
  }>>, never, never>;
7347
7347
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7348
7348
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7405,12 +7405,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7405
7405
  readonly type: Schema.Literal<"session.next.text.started">;
7406
7406
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7407
7407
  readonly aggregateID: Schema.String;
7408
- readonly seq: Schema.Int;
7409
- readonly version: Schema.Int;
7408
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7409
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7410
7410
  }>>>, Schema.optionalKey<Schema.Struct<{
7411
7411
  readonly aggregateID: Schema.String;
7412
- readonly seq: Schema.Int;
7413
- readonly version: Schema.Int;
7412
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7413
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7414
7414
  }>>, never, never>;
7415
7415
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7416
7416
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7467,12 +7467,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7467
7467
  readonly type: Schema.Literal<"session.next.text.delta">;
7468
7468
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7469
7469
  readonly aggregateID: Schema.String;
7470
- readonly seq: Schema.Int;
7471
- readonly version: Schema.Int;
7470
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7471
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7472
7472
  }>>>, Schema.optionalKey<Schema.Struct<{
7473
7473
  readonly aggregateID: Schema.String;
7474
- readonly seq: Schema.Int;
7475
- readonly version: Schema.Int;
7474
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7475
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7476
7476
  }>>, never, never>;
7477
7477
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7478
7478
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7531,12 +7531,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7531
7531
  readonly type: Schema.Literal<"session.next.text.ended">;
7532
7532
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7533
7533
  readonly aggregateID: Schema.String;
7534
- readonly seq: Schema.Int;
7535
- readonly version: Schema.Int;
7534
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7535
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7536
7536
  }>>>, Schema.optionalKey<Schema.Struct<{
7537
7537
  readonly aggregateID: Schema.String;
7538
- readonly seq: Schema.Int;
7539
- readonly version: Schema.Int;
7538
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7539
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7540
7540
  }>>, never, never>;
7541
7541
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7542
7542
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7595,12 +7595,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7595
7595
  readonly type: Schema.Literal<"session.next.reasoning.started">;
7596
7596
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7597
7597
  readonly aggregateID: Schema.String;
7598
- readonly seq: Schema.Int;
7599
- readonly version: Schema.Int;
7598
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7599
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7600
7600
  }>>>, Schema.optionalKey<Schema.Struct<{
7601
7601
  readonly aggregateID: Schema.String;
7602
- readonly seq: Schema.Int;
7603
- readonly version: Schema.Int;
7602
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7603
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7604
7604
  }>>, never, never>;
7605
7605
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7606
7606
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7659,12 +7659,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7659
7659
  readonly type: Schema.Literal<"session.next.reasoning.delta">;
7660
7660
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7661
7661
  readonly aggregateID: Schema.String;
7662
- readonly seq: Schema.Int;
7663
- readonly version: Schema.Int;
7662
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7663
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7664
7664
  }>>>, Schema.optionalKey<Schema.Struct<{
7665
7665
  readonly aggregateID: Schema.String;
7666
- readonly seq: Schema.Int;
7667
- readonly version: Schema.Int;
7666
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7667
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7668
7668
  }>>, never, never>;
7669
7669
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7670
7670
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7723,12 +7723,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7723
7723
  readonly type: Schema.Literal<"session.next.reasoning.ended">;
7724
7724
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7725
7725
  readonly aggregateID: Schema.String;
7726
- readonly seq: Schema.Int;
7727
- readonly version: Schema.Int;
7726
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7727
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7728
7728
  }>>>, Schema.optionalKey<Schema.Struct<{
7729
7729
  readonly aggregateID: Schema.String;
7730
- readonly seq: Schema.Int;
7731
- readonly version: Schema.Int;
7730
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7731
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7732
7732
  }>>, never, never>;
7733
7733
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7734
7734
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7789,12 +7789,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7789
7789
  readonly type: Schema.Literal<"session.next.tool.input.started">;
7790
7790
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7791
7791
  readonly aggregateID: Schema.String;
7792
- readonly seq: Schema.Int;
7793
- readonly version: Schema.Int;
7792
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7793
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7794
7794
  }>>>, Schema.optionalKey<Schema.Struct<{
7795
7795
  readonly aggregateID: Schema.String;
7796
- readonly seq: Schema.Int;
7797
- readonly version: Schema.Int;
7796
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7797
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7798
7798
  }>>, never, never>;
7799
7799
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7800
7800
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7853,12 +7853,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7853
7853
  readonly type: Schema.Literal<"session.next.tool.input.delta">;
7854
7854
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7855
7855
  readonly aggregateID: Schema.String;
7856
- readonly seq: Schema.Int;
7857
- readonly version: Schema.Int;
7856
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7857
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7858
7858
  }>>>, Schema.optionalKey<Schema.Struct<{
7859
7859
  readonly aggregateID: Schema.String;
7860
- readonly seq: Schema.Int;
7861
- readonly version: Schema.Int;
7860
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7861
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7862
7862
  }>>, never, never>;
7863
7863
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7864
7864
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7917,12 +7917,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7917
7917
  readonly type: Schema.Literal<"session.next.tool.input.ended">;
7918
7918
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7919
7919
  readonly aggregateID: Schema.String;
7920
- readonly seq: Schema.Int;
7921
- readonly version: Schema.Int;
7920
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7921
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7922
7922
  }>>>, Schema.optionalKey<Schema.Struct<{
7923
7923
  readonly aggregateID: Schema.String;
7924
- readonly seq: Schema.Int;
7925
- readonly version: Schema.Int;
7924
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7925
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7926
7926
  }>>, never, never>;
7927
7927
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7928
7928
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7981,12 +7981,12 @@ export declare const Definitions: readonly [Schema.Struct<{
7981
7981
  readonly type: Schema.Literal<"session.next.tool.called">;
7982
7982
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7983
7983
  readonly aggregateID: Schema.String;
7984
- readonly seq: Schema.Int;
7985
- readonly version: Schema.Int;
7984
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7985
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7986
7986
  }>>>, Schema.optionalKey<Schema.Struct<{
7987
7987
  readonly aggregateID: Schema.String;
7988
- readonly seq: Schema.Int;
7989
- readonly version: Schema.Int;
7988
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
7989
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
7990
7990
  }>>, never, never>;
7991
7991
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7992
7992
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8055,12 +8055,12 @@ export declare const Definitions: readonly [Schema.Struct<{
8055
8055
  readonly type: Schema.Literal<"session.next.tool.progress">;
8056
8056
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8057
8057
  readonly aggregateID: Schema.String;
8058
- readonly seq: Schema.Int;
8059
- readonly version: Schema.Int;
8058
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8059
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8060
8060
  }>>>, Schema.optionalKey<Schema.Struct<{
8061
8061
  readonly aggregateID: Schema.String;
8062
- readonly seq: Schema.Int;
8063
- readonly version: Schema.Int;
8062
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8063
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8064
8064
  }>>, never, never>;
8065
8065
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8066
8066
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8137,12 +8137,12 @@ export declare const Definitions: readonly [Schema.Struct<{
8137
8137
  readonly type: Schema.Literal<"session.next.tool.success">;
8138
8138
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8139
8139
  readonly aggregateID: Schema.String;
8140
- readonly seq: Schema.Int;
8141
- readonly version: Schema.Int;
8140
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8141
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8142
8142
  }>>>, Schema.optionalKey<Schema.Struct<{
8143
8143
  readonly aggregateID: Schema.String;
8144
- readonly seq: Schema.Int;
8145
- readonly version: Schema.Int;
8144
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8145
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8146
8146
  }>>, never, never>;
8147
8147
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8148
8148
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8231,12 +8231,12 @@ export declare const Definitions: readonly [Schema.Struct<{
8231
8231
  readonly type: Schema.Literal<"session.next.tool.failed">;
8232
8232
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8233
8233
  readonly aggregateID: Schema.String;
8234
- readonly seq: Schema.Int;
8235
- readonly version: Schema.Int;
8234
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8235
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8236
8236
  }>>>, Schema.optionalKey<Schema.Struct<{
8237
8237
  readonly aggregateID: Schema.String;
8238
- readonly seq: Schema.Int;
8239
- readonly version: Schema.Int;
8238
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8239
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8240
8240
  }>>, never, never>;
8241
8241
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8242
8242
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8311,12 +8311,12 @@ export declare const Definitions: readonly [Schema.Struct<{
8311
8311
  readonly type: Schema.Literal<"session.next.retried">;
8312
8312
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8313
8313
  readonly aggregateID: Schema.String;
8314
- readonly seq: Schema.Int;
8315
- readonly version: Schema.Int;
8314
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8315
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8316
8316
  }>>>, Schema.optionalKey<Schema.Struct<{
8317
8317
  readonly aggregateID: Schema.String;
8318
- readonly seq: Schema.Int;
8319
- readonly version: Schema.Int;
8318
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8319
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8320
8320
  }>>, never, never>;
8321
8321
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8322
8322
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8383,12 +8383,12 @@ export declare const Definitions: readonly [Schema.Struct<{
8383
8383
  readonly type: Schema.Literal<"session.next.compaction.started">;
8384
8384
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8385
8385
  readonly aggregateID: Schema.String;
8386
- readonly seq: Schema.Int;
8387
- readonly version: Schema.Int;
8386
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8387
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8388
8388
  }>>>, Schema.optionalKey<Schema.Struct<{
8389
8389
  readonly aggregateID: Schema.String;
8390
- readonly seq: Schema.Int;
8391
- readonly version: Schema.Int;
8390
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8391
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8392
8392
  }>>, never, never>;
8393
8393
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8394
8394
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8445,12 +8445,12 @@ export declare const Definitions: readonly [Schema.Struct<{
8445
8445
  readonly type: Schema.Literal<"session.next.compaction.delta">;
8446
8446
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8447
8447
  readonly aggregateID: Schema.String;
8448
- readonly seq: Schema.Int;
8449
- readonly version: Schema.Int;
8448
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8449
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8450
8450
  }>>>, Schema.optionalKey<Schema.Struct<{
8451
8451
  readonly aggregateID: Schema.String;
8452
- readonly seq: Schema.Int;
8453
- readonly version: Schema.Int;
8452
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8453
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8454
8454
  }>>, never, never>;
8455
8455
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8456
8456
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8507,12 +8507,12 @@ export declare const Definitions: readonly [Schema.Struct<{
8507
8507
  readonly type: Schema.Literal<"session.next.compaction.ended">;
8508
8508
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8509
8509
  readonly aggregateID: Schema.String;
8510
- readonly seq: Schema.Int;
8511
- readonly version: Schema.Int;
8510
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8511
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8512
8512
  }>>>, Schema.optionalKey<Schema.Struct<{
8513
8513
  readonly aggregateID: Schema.String;
8514
- readonly seq: Schema.Int;
8515
- readonly version: Schema.Int;
8514
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8515
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8516
8516
  }>>, never, never>;
8517
8517
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8518
8518
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8573,12 +8573,12 @@ export declare const Definitions: readonly [Schema.Struct<{
8573
8573
  readonly type: Schema.Literal<"session.next.revert.staged">;
8574
8574
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8575
8575
  readonly aggregateID: Schema.String;
8576
- readonly seq: Schema.Int;
8577
- readonly version: Schema.Int;
8576
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8577
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8578
8578
  }>>>, Schema.optionalKey<Schema.Struct<{
8579
8579
  readonly aggregateID: Schema.String;
8580
- readonly seq: Schema.Int;
8581
- readonly version: Schema.Int;
8580
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8581
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8582
8582
  }>>, never, never>;
8583
8583
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8584
8584
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8669,12 +8669,12 @@ export declare const Definitions: readonly [Schema.Struct<{
8669
8669
  readonly type: Schema.Literal<"session.next.revert.cleared">;
8670
8670
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8671
8671
  readonly aggregateID: Schema.String;
8672
- readonly seq: Schema.Int;
8673
- readonly version: Schema.Int;
8672
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8673
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8674
8674
  }>>>, Schema.optionalKey<Schema.Struct<{
8675
8675
  readonly aggregateID: Schema.String;
8676
- readonly seq: Schema.Int;
8677
- readonly version: Schema.Int;
8676
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8677
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8678
8678
  }>>, never, never>;
8679
8679
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8680
8680
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8723,12 +8723,12 @@ export declare const Definitions: readonly [Schema.Struct<{
8723
8723
  readonly type: Schema.Literal<"session.next.revert.committed">;
8724
8724
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8725
8725
  readonly aggregateID: Schema.String;
8726
- readonly seq: Schema.Int;
8727
- readonly version: Schema.Int;
8726
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8727
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8728
8728
  }>>>, Schema.optionalKey<Schema.Struct<{
8729
8729
  readonly aggregateID: Schema.String;
8730
- readonly seq: Schema.Int;
8731
- readonly version: Schema.Int;
8730
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8731
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8732
8732
  }>>, never, never>;
8733
8733
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8734
8734
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8784,12 +8784,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
8784
8784
  readonly type: Schema.Literal<"session.next.agent.switched">;
8785
8785
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8786
8786
  readonly aggregateID: Schema.String;
8787
- readonly seq: Schema.Int;
8788
- readonly version: Schema.Int;
8787
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8788
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8789
8789
  }>>>, Schema.optionalKey<Schema.Struct<{
8790
8790
  readonly aggregateID: Schema.String;
8791
- readonly seq: Schema.Int;
8792
- readonly version: Schema.Int;
8791
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8792
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8793
8793
  }>>, never, never>;
8794
8794
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8795
8795
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8846,12 +8846,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
8846
8846
  readonly type: Schema.Literal<"session.next.model.switched">;
8847
8847
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8848
8848
  readonly aggregateID: Schema.String;
8849
- readonly seq: Schema.Int;
8850
- readonly version: Schema.Int;
8849
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8850
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8851
8851
  }>>>, Schema.optionalKey<Schema.Struct<{
8852
8852
  readonly aggregateID: Schema.String;
8853
- readonly seq: Schema.Int;
8854
- readonly version: Schema.Int;
8853
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8854
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8855
8855
  }>>, never, never>;
8856
8856
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8857
8857
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8940,12 +8940,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
8940
8940
  readonly type: Schema.Literal<"session.next.moved">;
8941
8941
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8942
8942
  readonly aggregateID: Schema.String;
8943
- readonly seq: Schema.Int;
8944
- readonly version: Schema.Int;
8943
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8944
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8945
8945
  }>>>, Schema.optionalKey<Schema.Struct<{
8946
8946
  readonly aggregateID: Schema.String;
8947
- readonly seq: Schema.Int;
8948
- readonly version: Schema.Int;
8947
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
8948
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
8949
8949
  }>>, never, never>;
8950
8950
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8951
8951
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9016,12 +9016,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
9016
9016
  readonly type: Schema.Literal<"session.next.renamed">;
9017
9017
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9018
9018
  readonly aggregateID: Schema.String;
9019
- readonly seq: Schema.Int;
9020
- readonly version: Schema.Int;
9019
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9020
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9021
9021
  }>>>, Schema.optionalKey<Schema.Struct<{
9022
9022
  readonly aggregateID: Schema.String;
9023
- readonly seq: Schema.Int;
9024
- readonly version: Schema.Int;
9023
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9024
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9025
9025
  }>>, never, never>;
9026
9026
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9027
9027
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9072,12 +9072,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
9072
9072
  readonly type: Schema.Literal<"session.next.forked">;
9073
9073
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9074
9074
  readonly aggregateID: Schema.String;
9075
- readonly seq: Schema.Int;
9076
- readonly version: Schema.Int;
9075
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9076
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9077
9077
  }>>>, Schema.optionalKey<Schema.Struct<{
9078
9078
  readonly aggregateID: Schema.String;
9079
- readonly seq: Schema.Int;
9080
- readonly version: Schema.Int;
9079
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9080
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9081
9081
  }>>, never, never>;
9082
9082
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9083
9083
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9144,12 +9144,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
9144
9144
  readonly type: Schema.Literal<"session.next.prompted">;
9145
9145
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9146
9146
  readonly aggregateID: Schema.String;
9147
- readonly seq: Schema.Int;
9148
- readonly version: Schema.Int;
9147
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9148
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9149
9149
  }>>>, Schema.optionalKey<Schema.Struct<{
9150
9150
  readonly aggregateID: Schema.String;
9151
- readonly seq: Schema.Int;
9152
- readonly version: Schema.Int;
9151
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9152
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9153
9153
  }>>, never, never>;
9154
9154
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9155
9155
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9454,12 +9454,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
9454
9454
  readonly type: Schema.Literal<"session.next.prompt.admitted">;
9455
9455
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9456
9456
  readonly aggregateID: Schema.String;
9457
- readonly seq: Schema.Int;
9458
- readonly version: Schema.Int;
9457
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9458
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9459
9459
  }>>>, Schema.optionalKey<Schema.Struct<{
9460
9460
  readonly aggregateID: Schema.String;
9461
- readonly seq: Schema.Int;
9462
- readonly version: Schema.Int;
9461
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9462
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9463
9463
  }>>, never, never>;
9464
9464
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9465
9465
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9764,12 +9764,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
9764
9764
  readonly type: Schema.Literal<"session.next.context.updated">;
9765
9765
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9766
9766
  readonly aggregateID: Schema.String;
9767
- readonly seq: Schema.Int;
9768
- readonly version: Schema.Int;
9767
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9768
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9769
9769
  }>>>, Schema.optionalKey<Schema.Struct<{
9770
9770
  readonly aggregateID: Schema.String;
9771
- readonly seq: Schema.Int;
9772
- readonly version: Schema.Int;
9771
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9772
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9773
9773
  }>>, never, never>;
9774
9774
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9775
9775
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9826,12 +9826,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
9826
9826
  readonly type: Schema.Literal<"session.next.synthetic">;
9827
9827
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9828
9828
  readonly aggregateID: Schema.String;
9829
- readonly seq: Schema.Int;
9830
- readonly version: Schema.Int;
9829
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9830
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9831
9831
  }>>>, Schema.optionalKey<Schema.Struct<{
9832
9832
  readonly aggregateID: Schema.String;
9833
- readonly seq: Schema.Int;
9834
- readonly version: Schema.Int;
9833
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9834
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9835
9835
  }>>, never, never>;
9836
9836
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9837
9837
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9892,12 +9892,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
9892
9892
  readonly type: Schema.Literal<"session.next.skill.activated">;
9893
9893
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9894
9894
  readonly aggregateID: Schema.String;
9895
- readonly seq: Schema.Int;
9896
- readonly version: Schema.Int;
9895
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9896
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9897
9897
  }>>>, Schema.optionalKey<Schema.Struct<{
9898
9898
  readonly aggregateID: Schema.String;
9899
- readonly seq: Schema.Int;
9900
- readonly version: Schema.Int;
9899
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9900
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9901
9901
  }>>, never, never>;
9902
9902
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9903
9903
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -9956,12 +9956,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
9956
9956
  readonly type: Schema.Literal<"session.next.shell.started">;
9957
9957
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9958
9958
  readonly aggregateID: Schema.String;
9959
- readonly seq: Schema.Int;
9960
- readonly version: Schema.Int;
9959
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9960
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9961
9961
  }>>>, Schema.optionalKey<Schema.Struct<{
9962
9962
  readonly aggregateID: Schema.String;
9963
- readonly seq: Schema.Int;
9964
- readonly version: Schema.Int;
9963
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
9964
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
9965
9965
  }>>, never, never>;
9966
9966
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
9967
9967
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10020,12 +10020,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10020
10020
  readonly type: Schema.Literal<"session.next.shell.ended">;
10021
10021
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10022
10022
  readonly aggregateID: Schema.String;
10023
- readonly seq: Schema.Int;
10024
- readonly version: Schema.Int;
10023
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10024
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10025
10025
  }>>>, Schema.optionalKey<Schema.Struct<{
10026
10026
  readonly aggregateID: Schema.String;
10027
- readonly seq: Schema.Int;
10028
- readonly version: Schema.Int;
10027
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10028
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10029
10029
  }>>, never, never>;
10030
10030
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10031
10031
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10078,12 +10078,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10078
10078
  readonly type: Schema.Literal<"session.next.step.started">;
10079
10079
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10080
10080
  readonly aggregateID: Schema.String;
10081
- readonly seq: Schema.Int;
10082
- readonly version: Schema.Int;
10081
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10082
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10083
10083
  }>>>, Schema.optionalKey<Schema.Struct<{
10084
10084
  readonly aggregateID: Schema.String;
10085
- readonly seq: Schema.Int;
10086
- readonly version: Schema.Int;
10085
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10086
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10087
10087
  }>>, never, never>;
10088
10088
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10089
10089
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10176,12 +10176,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10176
10176
  readonly type: Schema.Literal<"session.next.step.ended">;
10177
10177
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10178
10178
  readonly aggregateID: Schema.String;
10179
- readonly seq: Schema.Int;
10180
- readonly version: Schema.Int;
10179
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10180
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10181
10181
  }>>>, Schema.optionalKey<Schema.Struct<{
10182
10182
  readonly aggregateID: Schema.String;
10183
- readonly seq: Schema.Int;
10184
- readonly version: Schema.Int;
10183
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10184
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10185
10185
  }>>, never, never>;
10186
10186
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10187
10187
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10262,12 +10262,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10262
10262
  readonly type: Schema.Literal<"session.next.step.failed">;
10263
10263
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10264
10264
  readonly aggregateID: Schema.String;
10265
- readonly seq: Schema.Int;
10266
- readonly version: Schema.Int;
10265
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10266
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10267
10267
  }>>>, Schema.optionalKey<Schema.Struct<{
10268
10268
  readonly aggregateID: Schema.String;
10269
- readonly seq: Schema.Int;
10270
- readonly version: Schema.Int;
10269
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10270
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10271
10271
  }>>, never, never>;
10272
10272
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10273
10273
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10330,12 +10330,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10330
10330
  readonly type: Schema.Literal<"session.next.text.started">;
10331
10331
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10332
10332
  readonly aggregateID: Schema.String;
10333
- readonly seq: Schema.Int;
10334
- readonly version: Schema.Int;
10333
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10334
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10335
10335
  }>>>, Schema.optionalKey<Schema.Struct<{
10336
10336
  readonly aggregateID: Schema.String;
10337
- readonly seq: Schema.Int;
10338
- readonly version: Schema.Int;
10337
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10338
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10339
10339
  }>>, never, never>;
10340
10340
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10341
10341
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10392,12 +10392,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10392
10392
  readonly type: Schema.Literal<"session.next.text.ended">;
10393
10393
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10394
10394
  readonly aggregateID: Schema.String;
10395
- readonly seq: Schema.Int;
10396
- readonly version: Schema.Int;
10395
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10396
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10397
10397
  }>>>, Schema.optionalKey<Schema.Struct<{
10398
10398
  readonly aggregateID: Schema.String;
10399
- readonly seq: Schema.Int;
10400
- readonly version: Schema.Int;
10399
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10400
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10401
10401
  }>>, never, never>;
10402
10402
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10403
10403
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10456,12 +10456,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10456
10456
  readonly type: Schema.Literal<"session.next.tool.input.started">;
10457
10457
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10458
10458
  readonly aggregateID: Schema.String;
10459
- readonly seq: Schema.Int;
10460
- readonly version: Schema.Int;
10459
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10460
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10461
10461
  }>>>, Schema.optionalKey<Schema.Struct<{
10462
10462
  readonly aggregateID: Schema.String;
10463
- readonly seq: Schema.Int;
10464
- readonly version: Schema.Int;
10463
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10464
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10465
10465
  }>>, never, never>;
10466
10466
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10467
10467
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10520,12 +10520,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10520
10520
  readonly type: Schema.Literal<"session.next.tool.input.ended">;
10521
10521
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10522
10522
  readonly aggregateID: Schema.String;
10523
- readonly seq: Schema.Int;
10524
- readonly version: Schema.Int;
10523
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10524
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10525
10525
  }>>>, Schema.optionalKey<Schema.Struct<{
10526
10526
  readonly aggregateID: Schema.String;
10527
- readonly seq: Schema.Int;
10528
- readonly version: Schema.Int;
10527
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10528
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10529
10529
  }>>, never, never>;
10530
10530
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10531
10531
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10584,12 +10584,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10584
10584
  readonly type: Schema.Literal<"session.next.tool.called">;
10585
10585
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10586
10586
  readonly aggregateID: Schema.String;
10587
- readonly seq: Schema.Int;
10588
- readonly version: Schema.Int;
10587
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10588
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10589
10589
  }>>>, Schema.optionalKey<Schema.Struct<{
10590
10590
  readonly aggregateID: Schema.String;
10591
- readonly seq: Schema.Int;
10592
- readonly version: Schema.Int;
10591
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10592
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10593
10593
  }>>, never, never>;
10594
10594
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10595
10595
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10658,12 +10658,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10658
10658
  readonly type: Schema.Literal<"session.next.tool.progress">;
10659
10659
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10660
10660
  readonly aggregateID: Schema.String;
10661
- readonly seq: Schema.Int;
10662
- readonly version: Schema.Int;
10661
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10662
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10663
10663
  }>>>, Schema.optionalKey<Schema.Struct<{
10664
10664
  readonly aggregateID: Schema.String;
10665
- readonly seq: Schema.Int;
10666
- readonly version: Schema.Int;
10665
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10666
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10667
10667
  }>>, never, never>;
10668
10668
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10669
10669
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10740,12 +10740,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10740
10740
  readonly type: Schema.Literal<"session.next.tool.success">;
10741
10741
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10742
10742
  readonly aggregateID: Schema.String;
10743
- readonly seq: Schema.Int;
10744
- readonly version: Schema.Int;
10743
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10744
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10745
10745
  }>>>, Schema.optionalKey<Schema.Struct<{
10746
10746
  readonly aggregateID: Schema.String;
10747
- readonly seq: Schema.Int;
10748
- readonly version: Schema.Int;
10747
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10748
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10749
10749
  }>>, never, never>;
10750
10750
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10751
10751
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10834,12 +10834,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10834
10834
  readonly type: Schema.Literal<"session.next.tool.failed">;
10835
10835
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10836
10836
  readonly aggregateID: Schema.String;
10837
- readonly seq: Schema.Int;
10838
- readonly version: Schema.Int;
10837
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10838
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10839
10839
  }>>>, Schema.optionalKey<Schema.Struct<{
10840
10840
  readonly aggregateID: Schema.String;
10841
- readonly seq: Schema.Int;
10842
- readonly version: Schema.Int;
10841
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10842
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10843
10843
  }>>, never, never>;
10844
10844
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10845
10845
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10914,12 +10914,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10914
10914
  readonly type: Schema.Literal<"session.next.reasoning.started">;
10915
10915
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10916
10916
  readonly aggregateID: Schema.String;
10917
- readonly seq: Schema.Int;
10918
- readonly version: Schema.Int;
10917
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10918
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10919
10919
  }>>>, Schema.optionalKey<Schema.Struct<{
10920
10920
  readonly aggregateID: Schema.String;
10921
- readonly seq: Schema.Int;
10922
- readonly version: Schema.Int;
10921
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10922
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10923
10923
  }>>, never, never>;
10924
10924
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10925
10925
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -10978,12 +10978,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
10978
10978
  readonly type: Schema.Literal<"session.next.reasoning.ended">;
10979
10979
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10980
10980
  readonly aggregateID: Schema.String;
10981
- readonly seq: Schema.Int;
10982
- readonly version: Schema.Int;
10981
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10982
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10983
10983
  }>>>, Schema.optionalKey<Schema.Struct<{
10984
10984
  readonly aggregateID: Schema.String;
10985
- readonly seq: Schema.Int;
10986
- readonly version: Schema.Int;
10985
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
10986
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
10987
10987
  }>>, never, never>;
10988
10988
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10989
10989
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11044,12 +11044,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
11044
11044
  readonly type: Schema.Literal<"session.next.retried">;
11045
11045
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11046
11046
  readonly aggregateID: Schema.String;
11047
- readonly seq: Schema.Int;
11048
- readonly version: Schema.Int;
11047
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11048
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11049
11049
  }>>>, Schema.optionalKey<Schema.Struct<{
11050
11050
  readonly aggregateID: Schema.String;
11051
- readonly seq: Schema.Int;
11052
- readonly version: Schema.Int;
11051
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11052
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11053
11053
  }>>, never, never>;
11054
11054
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11055
11055
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11116,12 +11116,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
11116
11116
  readonly type: Schema.Literal<"session.next.compaction.started">;
11117
11117
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11118
11118
  readonly aggregateID: Schema.String;
11119
- readonly seq: Schema.Int;
11120
- readonly version: Schema.Int;
11119
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11120
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11121
11121
  }>>>, Schema.optionalKey<Schema.Struct<{
11122
11122
  readonly aggregateID: Schema.String;
11123
- readonly seq: Schema.Int;
11124
- readonly version: Schema.Int;
11123
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11124
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11125
11125
  }>>, never, never>;
11126
11126
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11127
11127
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11178,12 +11178,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
11178
11178
  readonly type: Schema.Literal<"session.next.compaction.ended">;
11179
11179
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11180
11180
  readonly aggregateID: Schema.String;
11181
- readonly seq: Schema.Int;
11182
- readonly version: Schema.Int;
11181
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11182
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11183
11183
  }>>>, Schema.optionalKey<Schema.Struct<{
11184
11184
  readonly aggregateID: Schema.String;
11185
- readonly seq: Schema.Int;
11186
- readonly version: Schema.Int;
11185
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11186
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11187
11187
  }>>, never, never>;
11188
11188
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11189
11189
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11244,12 +11244,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
11244
11244
  readonly type: Schema.Literal<"session.next.revert.staged">;
11245
11245
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11246
11246
  readonly aggregateID: Schema.String;
11247
- readonly seq: Schema.Int;
11248
- readonly version: Schema.Int;
11247
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11248
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11249
11249
  }>>>, Schema.optionalKey<Schema.Struct<{
11250
11250
  readonly aggregateID: Schema.String;
11251
- readonly seq: Schema.Int;
11252
- readonly version: Schema.Int;
11251
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11252
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11253
11253
  }>>, never, never>;
11254
11254
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11255
11255
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11340,12 +11340,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
11340
11340
  readonly type: Schema.Literal<"session.next.revert.cleared">;
11341
11341
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11342
11342
  readonly aggregateID: Schema.String;
11343
- readonly seq: Schema.Int;
11344
- readonly version: Schema.Int;
11343
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11344
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11345
11345
  }>>>, Schema.optionalKey<Schema.Struct<{
11346
11346
  readonly aggregateID: Schema.String;
11347
- readonly seq: Schema.Int;
11348
- readonly version: Schema.Int;
11347
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11348
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11349
11349
  }>>, never, never>;
11350
11350
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11351
11351
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11394,12 +11394,12 @@ export declare const Durable: Schema.Union<readonly [Schema.Struct<{
11394
11394
  readonly type: Schema.Literal<"session.next.revert.committed">;
11395
11395
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11396
11396
  readonly aggregateID: Schema.String;
11397
- readonly seq: Schema.Int;
11398
- readonly version: Schema.Int;
11397
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11398
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11399
11399
  }>>>, Schema.optionalKey<Schema.Struct<{
11400
11400
  readonly aggregateID: Schema.String;
11401
- readonly seq: Schema.Int;
11402
- readonly version: Schema.Int;
11401
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11402
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11403
11403
  }>>, never, never>;
11404
11404
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11405
11405
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11456,12 +11456,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
11456
11456
  readonly type: Schema.Literal<"session.next.agent.switched">;
11457
11457
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11458
11458
  readonly aggregateID: Schema.String;
11459
- readonly seq: Schema.Int;
11460
- readonly version: Schema.Int;
11459
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11460
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11461
11461
  }>>>, Schema.optionalKey<Schema.Struct<{
11462
11462
  readonly aggregateID: Schema.String;
11463
- readonly seq: Schema.Int;
11464
- readonly version: Schema.Int;
11463
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11464
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11465
11465
  }>>, never, never>;
11466
11466
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11467
11467
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11518,12 +11518,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
11518
11518
  readonly type: Schema.Literal<"session.next.model.switched">;
11519
11519
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11520
11520
  readonly aggregateID: Schema.String;
11521
- readonly seq: Schema.Int;
11522
- readonly version: Schema.Int;
11521
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11522
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11523
11523
  }>>>, Schema.optionalKey<Schema.Struct<{
11524
11524
  readonly aggregateID: Schema.String;
11525
- readonly seq: Schema.Int;
11526
- readonly version: Schema.Int;
11525
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11526
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11527
11527
  }>>, never, never>;
11528
11528
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11529
11529
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11612,12 +11612,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
11612
11612
  readonly type: Schema.Literal<"session.next.moved">;
11613
11613
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11614
11614
  readonly aggregateID: Schema.String;
11615
- readonly seq: Schema.Int;
11616
- readonly version: Schema.Int;
11615
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11616
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11617
11617
  }>>>, Schema.optionalKey<Schema.Struct<{
11618
11618
  readonly aggregateID: Schema.String;
11619
- readonly seq: Schema.Int;
11620
- readonly version: Schema.Int;
11619
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11620
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11621
11621
  }>>, never, never>;
11622
11622
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11623
11623
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11688,12 +11688,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
11688
11688
  readonly type: Schema.Literal<"session.next.renamed">;
11689
11689
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11690
11690
  readonly aggregateID: Schema.String;
11691
- readonly seq: Schema.Int;
11692
- readonly version: Schema.Int;
11691
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11692
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11693
11693
  }>>>, Schema.optionalKey<Schema.Struct<{
11694
11694
  readonly aggregateID: Schema.String;
11695
- readonly seq: Schema.Int;
11696
- readonly version: Schema.Int;
11695
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11696
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11697
11697
  }>>, never, never>;
11698
11698
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11699
11699
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11744,12 +11744,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
11744
11744
  readonly type: Schema.Literal<"session.next.forked">;
11745
11745
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11746
11746
  readonly aggregateID: Schema.String;
11747
- readonly seq: Schema.Int;
11748
- readonly version: Schema.Int;
11747
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11748
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11749
11749
  }>>>, Schema.optionalKey<Schema.Struct<{
11750
11750
  readonly aggregateID: Schema.String;
11751
- readonly seq: Schema.Int;
11752
- readonly version: Schema.Int;
11751
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11752
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11753
11753
  }>>, never, never>;
11754
11754
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11755
11755
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11816,12 +11816,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
11816
11816
  readonly type: Schema.Literal<"session.next.prompted">;
11817
11817
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11818
11818
  readonly aggregateID: Schema.String;
11819
- readonly seq: Schema.Int;
11820
- readonly version: Schema.Int;
11819
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11820
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11821
11821
  }>>>, Schema.optionalKey<Schema.Struct<{
11822
11822
  readonly aggregateID: Schema.String;
11823
- readonly seq: Schema.Int;
11824
- readonly version: Schema.Int;
11823
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
11824
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
11825
11825
  }>>, never, never>;
11826
11826
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11827
11827
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12126,12 +12126,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12126
12126
  readonly type: Schema.Literal<"session.next.prompt.admitted">;
12127
12127
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12128
12128
  readonly aggregateID: Schema.String;
12129
- readonly seq: Schema.Int;
12130
- readonly version: Schema.Int;
12129
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12130
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12131
12131
  }>>>, Schema.optionalKey<Schema.Struct<{
12132
12132
  readonly aggregateID: Schema.String;
12133
- readonly seq: Schema.Int;
12134
- readonly version: Schema.Int;
12133
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12134
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12135
12135
  }>>, never, never>;
12136
12136
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12137
12137
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12436,12 +12436,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12436
12436
  readonly type: Schema.Literal<"session.next.execution.settled">;
12437
12437
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12438
12438
  readonly aggregateID: Schema.String;
12439
- readonly seq: Schema.Int;
12440
- readonly version: Schema.Int;
12439
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12440
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12441
12441
  }>>>, Schema.optionalKey<Schema.Struct<{
12442
12442
  readonly aggregateID: Schema.String;
12443
- readonly seq: Schema.Int;
12444
- readonly version: Schema.Int;
12443
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12444
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12445
12445
  }>>, never, never>;
12446
12446
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12447
12447
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12506,12 +12506,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12506
12506
  readonly type: Schema.Literal<"session.next.context.updated">;
12507
12507
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12508
12508
  readonly aggregateID: Schema.String;
12509
- readonly seq: Schema.Int;
12510
- readonly version: Schema.Int;
12509
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12510
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12511
12511
  }>>>, Schema.optionalKey<Schema.Struct<{
12512
12512
  readonly aggregateID: Schema.String;
12513
- readonly seq: Schema.Int;
12514
- readonly version: Schema.Int;
12513
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12514
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12515
12515
  }>>, never, never>;
12516
12516
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12517
12517
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12568,12 +12568,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12568
12568
  readonly type: Schema.Literal<"session.next.synthetic">;
12569
12569
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12570
12570
  readonly aggregateID: Schema.String;
12571
- readonly seq: Schema.Int;
12572
- readonly version: Schema.Int;
12571
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12572
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12573
12573
  }>>>, Schema.optionalKey<Schema.Struct<{
12574
12574
  readonly aggregateID: Schema.String;
12575
- readonly seq: Schema.Int;
12576
- readonly version: Schema.Int;
12575
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12576
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12577
12577
  }>>, never, never>;
12578
12578
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12579
12579
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12634,12 +12634,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12634
12634
  readonly type: Schema.Literal<"session.next.skill.activated">;
12635
12635
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12636
12636
  readonly aggregateID: Schema.String;
12637
- readonly seq: Schema.Int;
12638
- readonly version: Schema.Int;
12637
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12638
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12639
12639
  }>>>, Schema.optionalKey<Schema.Struct<{
12640
12640
  readonly aggregateID: Schema.String;
12641
- readonly seq: Schema.Int;
12642
- readonly version: Schema.Int;
12641
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12642
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12643
12643
  }>>, never, never>;
12644
12644
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12645
12645
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12698,12 +12698,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12698
12698
  readonly type: Schema.Literal<"session.next.shell.started">;
12699
12699
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12700
12700
  readonly aggregateID: Schema.String;
12701
- readonly seq: Schema.Int;
12702
- readonly version: Schema.Int;
12701
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12702
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12703
12703
  }>>>, Schema.optionalKey<Schema.Struct<{
12704
12704
  readonly aggregateID: Schema.String;
12705
- readonly seq: Schema.Int;
12706
- readonly version: Schema.Int;
12705
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12706
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12707
12707
  }>>, never, never>;
12708
12708
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12709
12709
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12762,12 +12762,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12762
12762
  readonly type: Schema.Literal<"session.next.shell.ended">;
12763
12763
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12764
12764
  readonly aggregateID: Schema.String;
12765
- readonly seq: Schema.Int;
12766
- readonly version: Schema.Int;
12765
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12766
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12767
12767
  }>>>, Schema.optionalKey<Schema.Struct<{
12768
12768
  readonly aggregateID: Schema.String;
12769
- readonly seq: Schema.Int;
12770
- readonly version: Schema.Int;
12769
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12770
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12771
12771
  }>>, never, never>;
12772
12772
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12773
12773
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12820,12 +12820,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12820
12820
  readonly type: Schema.Literal<"session.next.step.started">;
12821
12821
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12822
12822
  readonly aggregateID: Schema.String;
12823
- readonly seq: Schema.Int;
12824
- readonly version: Schema.Int;
12823
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12824
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12825
12825
  }>>>, Schema.optionalKey<Schema.Struct<{
12826
12826
  readonly aggregateID: Schema.String;
12827
- readonly seq: Schema.Int;
12828
- readonly version: Schema.Int;
12827
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12828
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12829
12829
  }>>, never, never>;
12830
12830
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12831
12831
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -12918,12 +12918,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
12918
12918
  readonly type: Schema.Literal<"session.next.step.ended">;
12919
12919
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12920
12920
  readonly aggregateID: Schema.String;
12921
- readonly seq: Schema.Int;
12922
- readonly version: Schema.Int;
12921
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12922
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12923
12923
  }>>>, Schema.optionalKey<Schema.Struct<{
12924
12924
  readonly aggregateID: Schema.String;
12925
- readonly seq: Schema.Int;
12926
- readonly version: Schema.Int;
12925
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12926
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
12927
12927
  }>>, never, never>;
12928
12928
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12929
12929
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13004,12 +13004,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13004
13004
  readonly type: Schema.Literal<"session.next.step.failed">;
13005
13005
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13006
13006
  readonly aggregateID: Schema.String;
13007
- readonly seq: Schema.Int;
13008
- readonly version: Schema.Int;
13007
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13008
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13009
13009
  }>>>, Schema.optionalKey<Schema.Struct<{
13010
13010
  readonly aggregateID: Schema.String;
13011
- readonly seq: Schema.Int;
13012
- readonly version: Schema.Int;
13011
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13012
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13013
13013
  }>>, never, never>;
13014
13014
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13015
13015
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13072,12 +13072,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13072
13072
  readonly type: Schema.Literal<"session.next.text.started">;
13073
13073
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13074
13074
  readonly aggregateID: Schema.String;
13075
- readonly seq: Schema.Int;
13076
- readonly version: Schema.Int;
13075
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13076
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13077
13077
  }>>>, Schema.optionalKey<Schema.Struct<{
13078
13078
  readonly aggregateID: Schema.String;
13079
- readonly seq: Schema.Int;
13080
- readonly version: Schema.Int;
13079
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13080
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13081
13081
  }>>, never, never>;
13082
13082
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13083
13083
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13134,12 +13134,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13134
13134
  readonly type: Schema.Literal<"session.next.text.delta">;
13135
13135
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13136
13136
  readonly aggregateID: Schema.String;
13137
- readonly seq: Schema.Int;
13138
- readonly version: Schema.Int;
13137
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13138
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13139
13139
  }>>>, Schema.optionalKey<Schema.Struct<{
13140
13140
  readonly aggregateID: Schema.String;
13141
- readonly seq: Schema.Int;
13142
- readonly version: Schema.Int;
13141
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13142
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13143
13143
  }>>, never, never>;
13144
13144
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13145
13145
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13198,12 +13198,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13198
13198
  readonly type: Schema.Literal<"session.next.text.ended">;
13199
13199
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13200
13200
  readonly aggregateID: Schema.String;
13201
- readonly seq: Schema.Int;
13202
- readonly version: Schema.Int;
13201
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13202
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13203
13203
  }>>>, Schema.optionalKey<Schema.Struct<{
13204
13204
  readonly aggregateID: Schema.String;
13205
- readonly seq: Schema.Int;
13206
- readonly version: Schema.Int;
13205
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13206
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13207
13207
  }>>, never, never>;
13208
13208
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13209
13209
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13262,12 +13262,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13262
13262
  readonly type: Schema.Literal<"session.next.reasoning.started">;
13263
13263
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13264
13264
  readonly aggregateID: Schema.String;
13265
- readonly seq: Schema.Int;
13266
- readonly version: Schema.Int;
13265
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13266
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13267
13267
  }>>>, Schema.optionalKey<Schema.Struct<{
13268
13268
  readonly aggregateID: Schema.String;
13269
- readonly seq: Schema.Int;
13270
- readonly version: Schema.Int;
13269
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13270
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13271
13271
  }>>, never, never>;
13272
13272
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13273
13273
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13326,12 +13326,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13326
13326
  readonly type: Schema.Literal<"session.next.reasoning.delta">;
13327
13327
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13328
13328
  readonly aggregateID: Schema.String;
13329
- readonly seq: Schema.Int;
13330
- readonly version: Schema.Int;
13329
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13330
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13331
13331
  }>>>, Schema.optionalKey<Schema.Struct<{
13332
13332
  readonly aggregateID: Schema.String;
13333
- readonly seq: Schema.Int;
13334
- readonly version: Schema.Int;
13333
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13334
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13335
13335
  }>>, never, never>;
13336
13336
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13337
13337
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13390,12 +13390,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13390
13390
  readonly type: Schema.Literal<"session.next.reasoning.ended">;
13391
13391
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13392
13392
  readonly aggregateID: Schema.String;
13393
- readonly seq: Schema.Int;
13394
- readonly version: Schema.Int;
13393
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13394
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13395
13395
  }>>>, Schema.optionalKey<Schema.Struct<{
13396
13396
  readonly aggregateID: Schema.String;
13397
- readonly seq: Schema.Int;
13398
- readonly version: Schema.Int;
13397
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13398
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13399
13399
  }>>, never, never>;
13400
13400
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13401
13401
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13456,12 +13456,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13456
13456
  readonly type: Schema.Literal<"session.next.tool.input.started">;
13457
13457
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13458
13458
  readonly aggregateID: Schema.String;
13459
- readonly seq: Schema.Int;
13460
- readonly version: Schema.Int;
13459
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13460
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13461
13461
  }>>>, Schema.optionalKey<Schema.Struct<{
13462
13462
  readonly aggregateID: Schema.String;
13463
- readonly seq: Schema.Int;
13464
- readonly version: Schema.Int;
13463
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13464
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13465
13465
  }>>, never, never>;
13466
13466
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13467
13467
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13520,12 +13520,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13520
13520
  readonly type: Schema.Literal<"session.next.tool.input.delta">;
13521
13521
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13522
13522
  readonly aggregateID: Schema.String;
13523
- readonly seq: Schema.Int;
13524
- readonly version: Schema.Int;
13523
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13524
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13525
13525
  }>>>, Schema.optionalKey<Schema.Struct<{
13526
13526
  readonly aggregateID: Schema.String;
13527
- readonly seq: Schema.Int;
13528
- readonly version: Schema.Int;
13527
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13528
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13529
13529
  }>>, never, never>;
13530
13530
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13531
13531
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13584,12 +13584,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13584
13584
  readonly type: Schema.Literal<"session.next.tool.input.ended">;
13585
13585
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13586
13586
  readonly aggregateID: Schema.String;
13587
- readonly seq: Schema.Int;
13588
- readonly version: Schema.Int;
13587
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13588
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13589
13589
  }>>>, Schema.optionalKey<Schema.Struct<{
13590
13590
  readonly aggregateID: Schema.String;
13591
- readonly seq: Schema.Int;
13592
- readonly version: Schema.Int;
13591
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13592
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13593
13593
  }>>, never, never>;
13594
13594
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13595
13595
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13648,12 +13648,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13648
13648
  readonly type: Schema.Literal<"session.next.tool.called">;
13649
13649
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13650
13650
  readonly aggregateID: Schema.String;
13651
- readonly seq: Schema.Int;
13652
- readonly version: Schema.Int;
13651
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13652
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13653
13653
  }>>>, Schema.optionalKey<Schema.Struct<{
13654
13654
  readonly aggregateID: Schema.String;
13655
- readonly seq: Schema.Int;
13656
- readonly version: Schema.Int;
13655
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13656
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13657
13657
  }>>, never, never>;
13658
13658
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13659
13659
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13722,12 +13722,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13722
13722
  readonly type: Schema.Literal<"session.next.tool.progress">;
13723
13723
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13724
13724
  readonly aggregateID: Schema.String;
13725
- readonly seq: Schema.Int;
13726
- readonly version: Schema.Int;
13725
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13726
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13727
13727
  }>>>, Schema.optionalKey<Schema.Struct<{
13728
13728
  readonly aggregateID: Schema.String;
13729
- readonly seq: Schema.Int;
13730
- readonly version: Schema.Int;
13729
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13730
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13731
13731
  }>>, never, never>;
13732
13732
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13733
13733
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13804,12 +13804,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13804
13804
  readonly type: Schema.Literal<"session.next.tool.success">;
13805
13805
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13806
13806
  readonly aggregateID: Schema.String;
13807
- readonly seq: Schema.Int;
13808
- readonly version: Schema.Int;
13807
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13808
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13809
13809
  }>>>, Schema.optionalKey<Schema.Struct<{
13810
13810
  readonly aggregateID: Schema.String;
13811
- readonly seq: Schema.Int;
13812
- readonly version: Schema.Int;
13811
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13812
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13813
13813
  }>>, never, never>;
13814
13814
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13815
13815
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13898,12 +13898,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13898
13898
  readonly type: Schema.Literal<"session.next.tool.failed">;
13899
13899
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13900
13900
  readonly aggregateID: Schema.String;
13901
- readonly seq: Schema.Int;
13902
- readonly version: Schema.Int;
13901
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13902
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13903
13903
  }>>>, Schema.optionalKey<Schema.Struct<{
13904
13904
  readonly aggregateID: Schema.String;
13905
- readonly seq: Schema.Int;
13906
- readonly version: Schema.Int;
13905
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13906
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13907
13907
  }>>, never, never>;
13908
13908
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13909
13909
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -13978,12 +13978,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13978
13978
  readonly type: Schema.Literal<"session.next.retried">;
13979
13979
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13980
13980
  readonly aggregateID: Schema.String;
13981
- readonly seq: Schema.Int;
13982
- readonly version: Schema.Int;
13981
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13982
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13983
13983
  }>>>, Schema.optionalKey<Schema.Struct<{
13984
13984
  readonly aggregateID: Schema.String;
13985
- readonly seq: Schema.Int;
13986
- readonly version: Schema.Int;
13985
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
13986
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13987
13987
  }>>, never, never>;
13988
13988
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
13989
13989
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14050,12 +14050,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14050
14050
  readonly type: Schema.Literal<"session.next.compaction.started">;
14051
14051
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14052
14052
  readonly aggregateID: Schema.String;
14053
- readonly seq: Schema.Int;
14054
- readonly version: Schema.Int;
14053
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14054
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
14055
14055
  }>>>, Schema.optionalKey<Schema.Struct<{
14056
14056
  readonly aggregateID: Schema.String;
14057
- readonly seq: Schema.Int;
14058
- readonly version: Schema.Int;
14057
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14058
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
14059
14059
  }>>, never, never>;
14060
14060
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14061
14061
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14112,12 +14112,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14112
14112
  readonly type: Schema.Literal<"session.next.compaction.delta">;
14113
14113
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14114
14114
  readonly aggregateID: Schema.String;
14115
- readonly seq: Schema.Int;
14116
- readonly version: Schema.Int;
14115
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14116
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
14117
14117
  }>>>, Schema.optionalKey<Schema.Struct<{
14118
14118
  readonly aggregateID: Schema.String;
14119
- readonly seq: Schema.Int;
14120
- readonly version: Schema.Int;
14119
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14120
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
14121
14121
  }>>, never, never>;
14122
14122
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14123
14123
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14174,12 +14174,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14174
14174
  readonly type: Schema.Literal<"session.next.compaction.ended">;
14175
14175
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14176
14176
  readonly aggregateID: Schema.String;
14177
- readonly seq: Schema.Int;
14178
- readonly version: Schema.Int;
14177
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14178
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
14179
14179
  }>>>, Schema.optionalKey<Schema.Struct<{
14180
14180
  readonly aggregateID: Schema.String;
14181
- readonly seq: Schema.Int;
14182
- readonly version: Schema.Int;
14181
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14182
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
14183
14183
  }>>, never, never>;
14184
14184
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14185
14185
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14240,12 +14240,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14240
14240
  readonly type: Schema.Literal<"session.next.revert.staged">;
14241
14241
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14242
14242
  readonly aggregateID: Schema.String;
14243
- readonly seq: Schema.Int;
14244
- readonly version: Schema.Int;
14243
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14244
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
14245
14245
  }>>>, Schema.optionalKey<Schema.Struct<{
14246
14246
  readonly aggregateID: Schema.String;
14247
- readonly seq: Schema.Int;
14248
- readonly version: Schema.Int;
14247
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14248
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
14249
14249
  }>>, never, never>;
14250
14250
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14251
14251
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14336,12 +14336,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14336
14336
  readonly type: Schema.Literal<"session.next.revert.cleared">;
14337
14337
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14338
14338
  readonly aggregateID: Schema.String;
14339
- readonly seq: Schema.Int;
14340
- readonly version: Schema.Int;
14339
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14340
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
14341
14341
  }>>>, Schema.optionalKey<Schema.Struct<{
14342
14342
  readonly aggregateID: Schema.String;
14343
- readonly seq: Schema.Int;
14344
- readonly version: Schema.Int;
14343
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14344
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
14345
14345
  }>>, never, never>;
14346
14346
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14347
14347
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -14390,12 +14390,12 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
14390
14390
  readonly type: Schema.Literal<"session.next.revert.committed">;
14391
14391
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14392
14392
  readonly aggregateID: Schema.String;
14393
- readonly seq: Schema.Int;
14394
- readonly version: Schema.Int;
14393
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14394
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
14395
14395
  }>>>, Schema.optionalKey<Schema.Struct<{
14396
14396
  readonly aggregateID: Schema.String;
14397
- readonly seq: Schema.Int;
14398
- readonly version: Schema.Int;
14397
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
14398
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
14399
14399
  }>>, never, never>;
14400
14400
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14401
14401
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;