@opencode/server 0.0.0-dev-21641 → 0.0.0-dev-21647

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 (103) hide show
  1. package/dist/api.d.ts +60 -182
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{process-61g22bd8.js → handlers-0dncng21.js} +2 -2
  5. package/dist/chunks/{process-ntj59ngc.js → handlers-2b2wekgg.js} +1 -1
  6. package/dist/chunks/{process-hxgz4x38.js → handlers-2yr2dq97.js} +2 -2
  7. package/dist/chunks/{process-1ahadpvw.js → handlers-3154e7fk.js} +1 -1
  8. package/dist/chunks/{process-nmcxqxxx.js → handlers-31acg4hb.js} +2 -2
  9. package/dist/chunks/{process-e6e4kz0w.js → handlers-39nnfjx1.js} +4 -4
  10. package/dist/chunks/{process-5pdfedjd.js → handlers-3te71694.js} +4 -4
  11. package/dist/chunks/{process-g1bp01xw.js → handlers-49c878v9.js} +2 -2
  12. package/dist/chunks/{process-j66ekhc9.js → handlers-4b0899hb.js} +2 -2
  13. package/dist/chunks/{process-beavrejz.js → handlers-4b2ne72c.js} +15 -15
  14. package/dist/chunks/{process-0m3x7bpx.js → handlers-4qjw9nya.js} +4 -4
  15. package/dist/chunks/{process-ksvmmk2r.js → handlers-5w10ccet.js} +1 -1
  16. package/dist/chunks/{process-9h3s5d39.js → handlers-6xea6nhh.js} +3 -3
  17. package/dist/chunks/{process-4vaqgjp8.js → handlers-72ygafj3.js} +2 -2
  18. package/dist/chunks/{process-7b9xm1qg.js → handlers-7b9xm1qg.js} +1 -1
  19. package/dist/chunks/{process-q94cqec2.js → handlers-7m24hj1r.js} +6 -6
  20. package/dist/chunks/{process-2s3n8phw.js → handlers-91mt6ewz.js} +2 -2
  21. package/dist/chunks/{process-g0hb7yrk.js → handlers-9me4q8wt.js} +4 -4
  22. package/dist/chunks/{process-k8mh0c14.js → handlers-a6kxe6a7.js} +3 -3
  23. package/dist/chunks/{process-310fnwjb.js → handlers-aj1jc7g7.js} +4 -4
  24. package/dist/chunks/{process-qbrxhger.js → handlers-cfhthk6z.js} +1 -1
  25. package/dist/chunks/{process-vkgak0vv.js → handlers-e4x9285j.js} +2 -2
  26. package/dist/chunks/{process-zfjz2b4g.js → handlers-e7pctymn.js} +1 -1
  27. package/dist/chunks/{process-e2cx9grb.js → handlers-f4b2q3tn.js} +1 -1
  28. package/dist/chunks/{process-y7p3rgqn.js → handlers-ga3m49sz.js} +2 -2
  29. package/dist/chunks/{process-gqq6kfhc.js → handlers-gymtz25n.js} +3 -3
  30. package/dist/chunks/{process-j4at0y5c.js → handlers-j4at0y5c.js} +1 -1
  31. package/dist/chunks/{process-scq1j2yg.js → handlers-j5aeaa16.js} +1 -1
  32. package/dist/chunks/{process-k6dz4enc.js → handlers-k6dz4enc.js} +1 -1
  33. package/dist/chunks/{process-vg7gkftg.js → handlers-kaqtndqt.js} +2 -2
  34. package/dist/chunks/{process-g0g9ma1m.js → handlers-kcjd09wg.js} +2 -2
  35. package/dist/chunks/{process-xt7xrv1r.js → handlers-kd6vzpgq.js} +2 -2
  36. package/dist/chunks/{process-kqr36gas.js → handlers-kqr36gas.js} +1 -1
  37. package/dist/chunks/{process-10jzh2zk.js → handlers-nv8hzzrz.js} +3 -3
  38. package/dist/chunks/{process-t7dxwnb0.js → handlers-pmjbkszz.js} +2 -2
  39. package/dist/chunks/{process-zmx22v3a.js → handlers-q69f22pd.js} +2 -2
  40. package/dist/chunks/{process-axn7c0ev.js → handlers-qvy2s3nb.js} +2 -2
  41. package/dist/chunks/{process-84c2hft7.js → handlers-rzb49fwy.js} +32 -32
  42. package/dist/chunks/{process-5bchp9s2.js → handlers-swdgbzpj.js} +2 -2
  43. package/dist/chunks/{process-026wrard.js → handlers-t3j5ftv1.js} +3 -3
  44. package/dist/chunks/{process-vg73xc24.js → handlers-x0608mvx.js} +1 -1
  45. package/dist/chunks/{process-yet0vexm.js → handlers-x74w7e1f.js} +1 -1
  46. package/dist/chunks/{process-rrf9gkkq.js → handlers-x9vr2ttf.js} +2 -2
  47. package/dist/chunks/{process-aajxxgqb.js → handlers-xmwystkq.js} +2 -2
  48. package/dist/cors.js +1 -1
  49. package/dist/event-feed.js +1 -1
  50. package/dist/fetch.js +49 -49
  51. package/dist/handlers/agent.js +6 -6
  52. package/dist/handlers/command.js +6 -6
  53. package/dist/handlers/config.js +6 -6
  54. package/dist/handlers/credential.js +6 -6
  55. package/dist/handlers/debug.js +6 -6
  56. package/dist/handlers/event.js +7 -7
  57. package/dist/handlers/form.js +6 -6
  58. package/dist/handlers/fs.js +6 -6
  59. package/dist/handlers/generate.js +6 -6
  60. package/dist/handlers/integration.js +6 -6
  61. package/dist/handlers/location.js +6 -6
  62. package/dist/handlers/mcp.js +8 -8
  63. package/dist/handlers/message.js +6 -6
  64. package/dist/handlers/migration.js +6 -6
  65. package/dist/handlers/model.js +6 -6
  66. package/dist/handlers/permission.js +6 -6
  67. package/dist/handlers/persistent-pty.js +8 -8
  68. package/dist/handlers/plugin.js +6 -6
  69. package/dist/handlers/project.js +6 -6
  70. package/dist/handlers/provider.js +6 -6
  71. package/dist/handlers/pty-socket.js +1 -1
  72. package/dist/handlers/pty.js +8 -8
  73. package/dist/handlers/reference.js +6 -6
  74. package/dist/handlers/rpc.js +6 -6
  75. package/dist/handlers/server.js +9 -9
  76. package/dist/handlers/session-error.js +1 -1
  77. package/dist/handlers/session.js +6 -6
  78. package/dist/handlers/shell.js +6 -6
  79. package/dist/handlers/skill.js +6 -6
  80. package/dist/handlers/vcs.js +6 -6
  81. package/dist/handlers/voice.js +6 -6
  82. package/dist/handlers/websearch.js +6 -6
  83. package/dist/handlers/worktree.js +6 -6
  84. package/dist/handlers.js +43 -43
  85. package/dist/location.js +4 -4
  86. package/dist/middleware/authorization.js +2 -2
  87. package/dist/middleware/form-location.js +3 -3
  88. package/dist/middleware/schema-error.js +1 -1
  89. package/dist/middleware/session-location.js +3 -3
  90. package/dist/pairing.js +1 -1
  91. package/dist/process.js +51 -51
  92. package/dist/request-tracing.js +1 -1
  93. package/dist/routes.js +46 -46
  94. package/dist/server-info.js +3 -3
  95. package/dist/service-status.js +3 -3
  96. package/dist/workerd.js +50 -50
  97. package/package.json +8 -8
  98. /package/dist/chunks/{process-9rqn6x4v.js → handlers-9rqn6x4v.js} +0 -0
  99. /package/dist/chunks/{process-erzfdgke.js → handlers-erzfdgke.js} +0 -0
  100. /package/dist/chunks/{process-h6rt5k9s.js → handlers-h6rt5k9s.js} +0 -0
  101. /package/dist/chunks/{process-q4bn6dy8.js → handlers-q4bn6dy8.js} +0 -0
  102. /package/dist/chunks/{process-smaf4a18.js → handlers-smaf4a18.js} +0 -0
  103. /package/dist/chunks/{process-yc7nft6q.js → handlers-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -301,7 +301,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
301
301
  readonly data: import("effect/Schema").Struct<{
302
302
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
303
303
  create: () => string & import("effect/Brand").Brand<"SessionID">;
304
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
305
304
  };
306
305
  readonly projectID: import("effect/Schema").brand<import("effect/Schema").String, "Project.ID"> & {
307
306
  global: string & import("effect/Brand").Brand<"Project.ID">;
@@ -319,10 +318,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
319
318
  readonly subpath: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>, never, never>;
320
319
  readonly parentID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
321
320
  create: () => string & import("effect/Brand").Brand<"SessionID">;
322
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
323
321
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
324
322
  create: () => string & import("effect/Brand").Brand<"SessionID">;
325
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
326
323
  }>, never, never>;
327
324
  readonly slug: import("effect/Schema").String;
328
325
  readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -394,7 +391,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
394
391
  data: import("effect/Schema").Struct<{
395
392
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
396
393
  create: () => string & import("effect/Brand").Brand<"SessionID">;
397
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
398
394
  };
399
395
  readonly projectID: import("effect/Schema").brand<import("effect/Schema").String, "Project.ID"> & {
400
396
  global: string & import("effect/Brand").Brand<"Project.ID">;
@@ -412,10 +408,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
412
408
  readonly subpath: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>, never, never>;
413
409
  readonly parentID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
414
410
  create: () => string & import("effect/Brand").Brand<"SessionID">;
415
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
416
411
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
417
412
  create: () => string & import("effect/Brand").Brand<"SessionID">;
418
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
419
413
  }>, never, never>;
420
414
  readonly slug: import("effect/Schema").String;
421
415
  readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -511,7 +505,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
511
505
  readonly data: import("effect/Schema").Struct<{
512
506
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
513
507
  create: () => string & import("effect/Brand").Brand<"SessionID">;
514
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
515
508
  };
516
509
  readonly agent: import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">;
517
510
  readonly previous: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">>, never, never>;
@@ -526,7 +519,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
526
519
  data: import("effect/Schema").Struct<{
527
520
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
528
521
  create: () => string & import("effect/Brand").Brand<"SessionID">;
529
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
530
522
  };
531
523
  readonly agent: import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">;
532
524
  readonly previous: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">>, never, never>;
@@ -565,7 +557,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
565
557
  readonly data: import("effect/Schema").Struct<{
566
558
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
567
559
  create: () => string & import("effect/Brand").Brand<"SessionID">;
568
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
569
560
  };
570
561
  readonly model: import("effect/Schema").Struct<{
571
562
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Model.ID">;
@@ -646,7 +637,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
646
637
  data: import("effect/Schema").Struct<{
647
638
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
648
639
  create: () => string & import("effect/Brand").Brand<"SessionID">;
649
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
650
640
  };
651
641
  readonly model: import("effect/Schema").Struct<{
652
642
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Model.ID">;
@@ -765,7 +755,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
765
755
  readonly subpath: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>, never, never>;
766
756
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
767
757
  create: () => string & import("effect/Brand").Brand<"SessionID">;
768
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
769
758
  };
770
759
  }>;
771
760
  }> & {
@@ -792,7 +781,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
792
781
  readonly subpath: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>, never, never>;
793
782
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
794
783
  create: () => string & import("effect/Brand").Brand<"SessionID">;
795
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
796
784
  };
797
785
  }>;
798
786
  }, import("effect/Schema").Struct<{
@@ -829,7 +817,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
829
817
  readonly data: import("effect/Schema").Struct<{
830
818
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
831
819
  create: () => string & import("effect/Brand").Brand<"SessionID">;
832
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
833
820
  };
834
821
  readonly title: import("effect/Schema").String;
835
822
  }>;
@@ -843,7 +830,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
843
830
  data: import("effect/Schema").Struct<{
844
831
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
845
832
  create: () => string & import("effect/Brand").Brand<"SessionID">;
846
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
847
833
  };
848
834
  readonly title: import("effect/Schema").String;
849
835
  }>;
@@ -881,7 +867,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
881
867
  readonly data: import("effect/Schema").Struct<{
882
868
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
883
869
  create: () => string & import("effect/Brand").Brand<"SessionID">;
884
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
885
870
  };
886
871
  readonly metadata: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>;
887
872
  }>;
@@ -895,7 +880,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
895
880
  data: import("effect/Schema").Struct<{
896
881
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
897
882
  create: () => string & import("effect/Brand").Brand<"SessionID">;
898
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
899
883
  };
900
884
  readonly metadata: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>;
901
885
  }>;
@@ -933,7 +917,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
933
917
  readonly data: import("effect/Schema").Struct<{
934
918
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
935
919
  create: () => string & import("effect/Brand").Brand<"SessionID">;
936
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
937
920
  };
938
921
  readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
939
922
  readonly action: import("effect/Schema").String;
@@ -951,7 +934,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
951
934
  data: import("effect/Schema").Struct<{
952
935
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
953
936
  create: () => string & import("effect/Brand").Brand<"SessionID">;
954
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
955
937
  };
956
938
  readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
957
939
  readonly action: import("effect/Schema").String;
@@ -993,7 +975,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
993
975
  readonly data: import("effect/Schema").Struct<{
994
976
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
995
977
  create: () => string & import("effect/Brand").Brand<"SessionID">;
996
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
997
978
  };
998
979
  readonly idle: import("effect/Schema").Finite;
999
980
  }>;
@@ -1007,7 +988,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1007
988
  data: import("effect/Schema").Struct<{
1008
989
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1009
990
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1010
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1011
991
  };
1012
992
  readonly idle: import("effect/Schema").Finite;
1013
993
  }>;
@@ -1045,7 +1025,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1045
1025
  readonly data: import("effect/Schema").Struct<{
1046
1026
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1047
1027
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1048
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1049
1028
  };
1050
1029
  }>;
1051
1030
  }> & {
@@ -1058,7 +1037,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1058
1037
  data: import("effect/Schema").Struct<{
1059
1038
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1060
1039
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1061
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1062
1040
  };
1063
1041
  }>;
1064
1042
  }, import("effect/Schema").Struct<{
@@ -1095,7 +1073,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1095
1073
  readonly data: import("effect/Schema").Struct<{
1096
1074
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1097
1075
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1098
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1099
1076
  };
1100
1077
  }>;
1101
1078
  }> & {
@@ -1108,7 +1085,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1108
1085
  data: import("effect/Schema").Struct<{
1109
1086
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1110
1087
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1111
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1112
1088
  };
1113
1089
  }>;
1114
1090
  }, import("effect/Schema").Struct<{
@@ -1140,7 +1116,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1140
1116
  readonly data: import("effect/Schema").Struct<{
1141
1117
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1142
1118
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1143
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1144
1119
  };
1145
1120
  readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
1146
1121
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -1162,7 +1137,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1162
1137
  data: import("effect/Schema").Struct<{
1163
1138
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1164
1139
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1165
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1166
1140
  };
1167
1141
  readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
1168
1142
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -1211,7 +1185,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1211
1185
  readonly data: import("effect/Schema").Struct<{
1212
1186
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1213
1187
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1214
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1215
1188
  };
1216
1189
  }>;
1217
1190
  }> & {
@@ -1224,7 +1197,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1224
1197
  data: import("effect/Schema").Struct<{
1225
1198
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1226
1199
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1227
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1228
1200
  };
1229
1201
  }>;
1230
1202
  }, import("effect/Schema").Struct<{
@@ -1261,23 +1233,21 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1261
1233
  readonly data: import("effect/Schema").Struct<{
1262
1234
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1263
1235
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1264
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1265
1236
  };
1266
1237
  readonly parentID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1267
1238
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1268
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1269
1239
  };
1270
1240
  readonly boundary: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1271
1241
  readonly type: import("effect/Schema").Literal<"before">;
1272
1242
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1273
1243
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1274
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1244
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1275
1245
  };
1276
1246
  }>, import("effect/Schema").Struct<{
1277
1247
  readonly type: import("effect/Schema").Literal<"through">;
1278
1248
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1279
1249
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1280
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1250
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1281
1251
  };
1282
1252
  }>]>;
1283
1253
  readonly instructions: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Key">, import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Key">, import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">>>, never, never>;
@@ -1301,23 +1271,21 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1301
1271
  data: import("effect/Schema").Struct<{
1302
1272
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1303
1273
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1304
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1305
1274
  };
1306
1275
  readonly parentID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1307
1276
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1308
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1309
1277
  };
1310
1278
  readonly boundary: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1311
1279
  readonly type: import("effect/Schema").Literal<"before">;
1312
1280
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1313
1281
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1314
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1282
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1315
1283
  };
1316
1284
  }>, import("effect/Schema").Struct<{
1317
1285
  readonly type: import("effect/Schema").Literal<"through">;
1318
1286
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1319
1287
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1320
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1288
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1321
1289
  };
1322
1290
  }>]>;
1323
1291
  readonly instructions: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Key">, import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Key">, import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">>>, never, never>;
@@ -1365,11 +1333,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1365
1333
  readonly data: import("effect/Schema").Struct<{
1366
1334
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1367
1335
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1368
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1369
1336
  };
1370
1337
  inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1371
1338
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1372
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1339
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1373
1340
  };
1374
1341
  }>;
1375
1342
  }> & {
@@ -1382,11 +1349,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1382
1349
  data: import("effect/Schema").Struct<{
1383
1350
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1384
1351
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1385
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1386
1352
  };
1387
1353
  inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1388
1354
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1389
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1355
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1390
1356
  };
1391
1357
  }>;
1392
1358
  }, import("effect/Schema").Struct<{
@@ -1423,11 +1389,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1423
1389
  readonly data: import("effect/Schema").Struct<{
1424
1390
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1425
1391
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1426
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1427
1392
  };
1428
1393
  readonly inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1429
1394
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1430
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1395
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1431
1396
  };
1432
1397
  readonly item: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1433
1398
  readonly type: import("effect/Schema").tag<"user">;
@@ -1606,11 +1571,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1606
1571
  data: import("effect/Schema").Struct<{
1607
1572
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1608
1573
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1609
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1610
1574
  };
1611
1575
  readonly inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1612
1576
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1613
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1577
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1614
1578
  };
1615
1579
  readonly item: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1616
1580
  readonly type: import("effect/Schema").tag<"user">;
@@ -1813,11 +1777,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1813
1777
  readonly data: import("effect/Schema").Struct<{
1814
1778
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1815
1779
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1816
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1817
1780
  };
1818
1781
  inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1819
1782
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1820
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1783
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1821
1784
  };
1822
1785
  }>;
1823
1786
  }> & {
@@ -1830,11 +1793,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1830
1793
  data: import("effect/Schema").Struct<{
1831
1794
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1832
1795
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1833
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1834
1796
  };
1835
1797
  inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1836
1798
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1837
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1799
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1838
1800
  };
1839
1801
  }>;
1840
1802
  }, import("effect/Schema").Struct<{
@@ -1871,11 +1833,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1871
1833
  readonly data: import("effect/Schema").Struct<{
1872
1834
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1873
1835
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1874
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1875
1836
  };
1876
1837
  readonly inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1877
1838
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1878
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1839
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1879
1840
  };
1880
1841
  readonly delivery: import("effect/Schema").Literals<readonly ["steer", "queue"]>;
1881
1842
  }>;
@@ -1889,11 +1850,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1889
1850
  data: import("effect/Schema").Struct<{
1890
1851
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1891
1852
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1892
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1893
1853
  };
1894
1854
  readonly inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1895
1855
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1896
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1856
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1897
1857
  };
1898
1858
  readonly delivery: import("effect/Schema").Literals<readonly ["steer", "queue"]>;
1899
1859
  }>;
@@ -1931,7 +1891,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1931
1891
  readonly data: import("effect/Schema").Struct<{
1932
1892
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1933
1893
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1934
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1935
1894
  };
1936
1895
  }>;
1937
1896
  }> & {
@@ -1944,7 +1903,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1944
1903
  data: import("effect/Schema").Struct<{
1945
1904
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1946
1905
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1947
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1948
1906
  };
1949
1907
  }>;
1950
1908
  }, import("effect/Schema").Struct<{
@@ -1981,7 +1939,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1981
1939
  readonly data: import("effect/Schema").Struct<{
1982
1940
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1983
1941
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1984
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1985
1942
  };
1986
1943
  }>;
1987
1944
  }> & {
@@ -1994,7 +1951,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1994
1951
  data: import("effect/Schema").Struct<{
1995
1952
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1996
1953
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1997
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1998
1954
  };
1999
1955
  }>;
2000
1956
  }, import("effect/Schema").Struct<{
@@ -2031,7 +1987,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2031
1987
  readonly data: import("effect/Schema").Struct<{
2032
1988
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2033
1989
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2034
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2035
1990
  };
2036
1991
  readonly error: import("effect/Schema").Struct<{
2037
1992
  readonly type: import("effect/Schema").String;
@@ -2055,7 +2010,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2055
2010
  data: import("effect/Schema").Struct<{
2056
2011
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2057
2012
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2058
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2059
2013
  };
2060
2014
  readonly error: import("effect/Schema").Struct<{
2061
2015
  readonly type: import("effect/Schema").String;
@@ -2103,7 +2057,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2103
2057
  readonly data: import("effect/Schema").Struct<{
2104
2058
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2105
2059
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2106
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2107
2060
  };
2108
2061
  readonly reason: import("effect/Schema").Literals<readonly ["user", "shutdown", "superseded", "inactivity"]>;
2109
2062
  }>;
@@ -2117,7 +2070,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2117
2070
  data: import("effect/Schema").Struct<{
2118
2071
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2119
2072
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2120
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2121
2073
  };
2122
2074
  readonly reason: import("effect/Schema").Literals<readonly ["user", "shutdown", "superseded", "inactivity"]>;
2123
2075
  }>;
@@ -2155,7 +2107,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2155
2107
  readonly data: import("effect/Schema").Struct<{
2156
2108
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2157
2109
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2158
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2159
2110
  };
2160
2111
  readonly delta: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">, import("effect/Schema").Literal<"removed">]>>;
2161
2112
  readonly text: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -2170,7 +2121,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2170
2121
  data: import("effect/Schema").Struct<{
2171
2122
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2172
2123
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2173
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2174
2124
  };
2175
2125
  readonly delta: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">, import("effect/Schema").Literal<"removed">]>>;
2176
2126
  readonly text: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -2209,7 +2159,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2209
2159
  readonly data: import("effect/Schema").Struct<{
2210
2160
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2211
2161
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2212
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2213
2162
  };
2214
2163
  readonly text: import("effect/Schema").String;
2215
2164
  readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -2225,7 +2174,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2225
2174
  data: import("effect/Schema").Struct<{
2226
2175
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2227
2176
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2228
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2229
2177
  };
2230
2178
  readonly text: import("effect/Schema").String;
2231
2179
  readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -2265,7 +2213,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2265
2213
  readonly data: import("effect/Schema").Struct<{
2266
2214
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2267
2215
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2268
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2269
2216
  };
2270
2217
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Skill.ID">;
2271
2218
  readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Skill.Name">;
@@ -2281,7 +2228,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2281
2228
  data: import("effect/Schema").Struct<{
2282
2229
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2283
2230
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2284
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2285
2231
  };
2286
2232
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Skill.ID">;
2287
2233
  readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Skill.Name">;
@@ -2321,7 +2267,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2321
2267
  readonly data: import("effect/Schema").Struct<{
2322
2268
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2323
2269
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2324
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2325
2270
  };
2326
2271
  readonly shell: import("effect/Schema").Struct<{
2327
2272
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Shell.ID"> & {
@@ -2353,7 +2298,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2353
2298
  data: import("effect/Schema").Struct<{
2354
2299
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2355
2300
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2356
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2357
2301
  };
2358
2302
  readonly shell: import("effect/Schema").Struct<{
2359
2303
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Shell.ID"> & {
@@ -2409,7 +2353,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2409
2353
  readonly data: import("effect/Schema").Struct<{
2410
2354
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2411
2355
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2412
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2413
2356
  };
2414
2357
  readonly shell: import("effect/Schema").Struct<{
2415
2358
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Shell.ID"> & {
@@ -2447,7 +2390,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2447
2390
  data: import("effect/Schema").Struct<{
2448
2391
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2449
2392
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2450
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2451
2393
  };
2452
2394
  readonly shell: import("effect/Schema").Struct<{
2453
2395
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Shell.ID"> & {
@@ -2509,11 +2451,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2509
2451
  readonly data: import("effect/Schema").Struct<{
2510
2452
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2511
2453
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2512
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2513
2454
  };
2514
2455
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2515
2456
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2516
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2457
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2517
2458
  };
2518
2459
  readonly agent: import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">;
2519
2460
  readonly model: import("effect/Schema").Struct<{
@@ -2552,11 +2493,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2552
2493
  data: import("effect/Schema").Struct<{
2553
2494
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2554
2495
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2555
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2556
2496
  };
2557
2497
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2558
2498
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2559
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2499
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2560
2500
  };
2561
2501
  readonly agent: import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">;
2562
2502
  readonly model: import("effect/Schema").Struct<{
@@ -2619,11 +2559,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2619
2559
  readonly data: import("effect/Schema").Struct<{
2620
2560
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2621
2561
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2622
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2623
2562
  };
2624
2563
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2625
2564
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2626
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2565
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2627
2566
  };
2628
2567
  }>;
2629
2568
  }> & {
@@ -2636,11 +2575,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2636
2575
  data: import("effect/Schema").Struct<{
2637
2576
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2638
2577
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2639
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2640
2578
  };
2641
2579
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2642
2580
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2643
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2581
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2644
2582
  };
2645
2583
  }>;
2646
2584
  }, import("effect/Schema").Struct<{
@@ -2677,11 +2615,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2677
2615
  readonly data: import("effect/Schema").Struct<{
2678
2616
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2679
2617
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2680
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2681
2618
  };
2682
2619
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2683
2620
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2684
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2621
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2685
2622
  };
2686
2623
  readonly finish: import("effect/Schema").Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
2687
2624
  readonly rawFinish: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -2711,11 +2648,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2711
2648
  data: import("effect/Schema").Struct<{
2712
2649
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2713
2650
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2714
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2715
2651
  };
2716
2652
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2717
2653
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2718
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2654
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2719
2655
  };
2720
2656
  readonly finish: import("effect/Schema").Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
2721
2657
  readonly rawFinish: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -2769,11 +2705,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2769
2705
  readonly data: import("effect/Schema").Struct<{
2770
2706
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2771
2707
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2772
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2773
2708
  };
2774
2709
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2775
2710
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2776
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2711
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2777
2712
  };
2778
2713
  readonly error: import("effect/Schema").Struct<{
2779
2714
  readonly type: import("effect/Schema").String;
@@ -2824,11 +2759,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2824
2759
  data: import("effect/Schema").Struct<{
2825
2760
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2826
2761
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2827
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2828
2762
  };
2829
2763
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2830
2764
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2831
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2765
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2832
2766
  };
2833
2767
  readonly error: import("effect/Schema").Struct<{
2834
2768
  readonly type: import("effect/Schema").String;
@@ -2903,11 +2837,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2903
2837
  readonly data: import("effect/Schema").Struct<{
2904
2838
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2905
2839
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2906
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2907
2840
  };
2908
2841
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2909
2842
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2910
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2843
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2911
2844
  };
2912
2845
  readonly ordinal: import("effect/Schema").Int;
2913
2846
  }>;
@@ -2921,11 +2854,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2921
2854
  data: import("effect/Schema").Struct<{
2922
2855
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2923
2856
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2924
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2925
2857
  };
2926
2858
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2927
2859
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2928
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2860
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2929
2861
  };
2930
2862
  readonly ordinal: import("effect/Schema").Int;
2931
2863
  }>;
@@ -2958,11 +2890,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2958
2890
  readonly data: import("effect/Schema").Struct<{
2959
2891
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2960
2892
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2961
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2962
2893
  };
2963
2894
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2964
2895
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2965
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2896
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2966
2897
  };
2967
2898
  readonly ordinal: import("effect/Schema").Int;
2968
2899
  readonly delta: import("effect/Schema").String;
@@ -2974,11 +2905,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2974
2905
  data: import("effect/Schema").Struct<{
2975
2906
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2976
2907
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2977
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2978
2908
  };
2979
2909
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2980
2910
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2981
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2911
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2982
2912
  };
2983
2913
  readonly ordinal: import("effect/Schema").Int;
2984
2914
  readonly delta: import("effect/Schema").String;
@@ -3017,11 +2947,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3017
2947
  readonly data: import("effect/Schema").Struct<{
3018
2948
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3019
2949
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3020
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3021
2950
  };
3022
2951
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3023
2952
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3024
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2953
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3025
2954
  };
3026
2955
  readonly ordinal: import("effect/Schema").Int;
3027
2956
  readonly text: import("effect/Schema").String;
@@ -3037,11 +2966,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3037
2966
  data: import("effect/Schema").Struct<{
3038
2967
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3039
2968
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3040
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3041
2969
  };
3042
2970
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3043
2971
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3044
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2972
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3045
2973
  };
3046
2974
  readonly ordinal: import("effect/Schema").Int;
3047
2975
  readonly text: import("effect/Schema").String;
@@ -3081,11 +3009,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3081
3009
  readonly data: import("effect/Schema").Struct<{
3082
3010
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3083
3011
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3084
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3085
3012
  };
3086
3013
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3087
3014
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3088
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3015
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3089
3016
  };
3090
3017
  readonly ordinal: import("effect/Schema").Int;
3091
3018
  readonly native: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
@@ -3100,11 +3027,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3100
3027
  data: import("effect/Schema").Struct<{
3101
3028
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3102
3029
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3103
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3104
3030
  };
3105
3031
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3106
3032
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3107
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3033
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3108
3034
  };
3109
3035
  readonly ordinal: import("effect/Schema").Int;
3110
3036
  readonly native: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
@@ -3138,11 +3064,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3138
3064
  readonly data: import("effect/Schema").Struct<{
3139
3065
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3140
3066
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3141
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3142
3067
  };
3143
3068
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3144
3069
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3145
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3070
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3146
3071
  };
3147
3072
  readonly ordinal: import("effect/Schema").Int;
3148
3073
  readonly delta: import("effect/Schema").String;
@@ -3154,11 +3079,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3154
3079
  data: import("effect/Schema").Struct<{
3155
3080
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3156
3081
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3157
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3158
3082
  };
3159
3083
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3160
3084
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3161
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3085
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3162
3086
  };
3163
3087
  readonly ordinal: import("effect/Schema").Int;
3164
3088
  readonly delta: import("effect/Schema").String;
@@ -3197,11 +3121,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3197
3121
  readonly data: import("effect/Schema").Struct<{
3198
3122
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3199
3123
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3200
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3201
3124
  };
3202
3125
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3203
3126
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3204
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3127
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3205
3128
  };
3206
3129
  readonly ordinal: import("effect/Schema").Int;
3207
3130
  readonly text: import("effect/Schema").String;
@@ -3217,11 +3140,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3217
3140
  data: import("effect/Schema").Struct<{
3218
3141
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3219
3142
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3220
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3221
3143
  };
3222
3144
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3223
3145
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3224
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3146
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3225
3147
  };
3226
3148
  readonly ordinal: import("effect/Schema").Int;
3227
3149
  readonly text: import("effect/Schema").String;
@@ -3261,11 +3183,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3261
3183
  readonly data: import("effect/Schema").Struct<{
3262
3184
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3263
3185
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3264
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3265
3186
  };
3266
3187
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3267
3188
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3268
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3189
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3269
3190
  };
3270
3191
  readonly id: import("effect/Schema").String;
3271
3192
  readonly name: import("effect/Schema").String;
@@ -3280,11 +3201,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3280
3201
  data: import("effect/Schema").Struct<{
3281
3202
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3282
3203
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3283
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3284
3204
  };
3285
3205
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3286
3206
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3287
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3207
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3288
3208
  };
3289
3209
  readonly id: import("effect/Schema").String;
3290
3210
  readonly name: import("effect/Schema").String;
@@ -3318,11 +3238,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3318
3238
  readonly data: import("effect/Schema").Struct<{
3319
3239
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3320
3240
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3321
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3322
3241
  };
3323
3242
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3324
3243
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3325
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3244
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3326
3245
  };
3327
3246
  readonly id: import("effect/Schema").String;
3328
3247
  readonly delta: import("effect/Schema").String;
@@ -3334,11 +3253,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3334
3253
  data: import("effect/Schema").Struct<{
3335
3254
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3336
3255
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3337
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3338
3256
  };
3339
3257
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3340
3258
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3341
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3259
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3342
3260
  };
3343
3261
  readonly id: import("effect/Schema").String;
3344
3262
  readonly delta: import("effect/Schema").String;
@@ -3377,11 +3295,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3377
3295
  readonly data: import("effect/Schema").Struct<{
3378
3296
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3379
3297
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3380
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3381
3298
  };
3382
3299
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3383
3300
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3384
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3301
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3385
3302
  };
3386
3303
  readonly id: import("effect/Schema").String;
3387
3304
  readonly text: import("effect/Schema").String;
@@ -3396,11 +3313,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3396
3313
  data: import("effect/Schema").Struct<{
3397
3314
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3398
3315
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3399
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3400
3316
  };
3401
3317
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3402
3318
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3403
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3319
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3404
3320
  };
3405
3321
  readonly id: import("effect/Schema").String;
3406
3322
  readonly text: import("effect/Schema").String;
@@ -3439,11 +3355,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3439
3355
  readonly data: import("effect/Schema").Struct<{
3440
3356
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3441
3357
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3442
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3443
3358
  };
3444
3359
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3445
3360
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3446
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3361
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3447
3362
  };
3448
3363
  readonly id: import("effect/Schema").String;
3449
3364
  readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
@@ -3460,11 +3375,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3460
3375
  data: import("effect/Schema").Struct<{
3461
3376
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3462
3377
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3463
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3464
3378
  };
3465
3379
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3466
3380
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3467
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3381
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3468
3382
  };
3469
3383
  readonly id: import("effect/Schema").String;
3470
3384
  readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
@@ -3500,11 +3414,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3500
3414
  readonly data: import("effect/Schema").Struct<{
3501
3415
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3502
3416
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3503
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3504
3417
  };
3505
3418
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3506
3419
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3507
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3420
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3508
3421
  };
3509
3422
  readonly id: import("effect/Schema").String;
3510
3423
  readonly metadata: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>;
@@ -3516,11 +3429,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3516
3429
  data: import("effect/Schema").Struct<{
3517
3430
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3518
3431
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3519
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3520
3432
  };
3521
3433
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3522
3434
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3523
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3435
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3524
3436
  };
3525
3437
  readonly id: import("effect/Schema").String;
3526
3438
  readonly metadata: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>;
@@ -3559,11 +3471,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3559
3471
  readonly data: import("effect/Schema").Struct<{
3560
3472
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3561
3473
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3562
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3563
3474
  };
3564
3475
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3565
3476
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3566
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3477
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3567
3478
  };
3568
3479
  readonly id: import("effect/Schema").String;
3569
3480
  readonly content: import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
@@ -3589,11 +3500,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3589
3500
  data: import("effect/Schema").Struct<{
3590
3501
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3591
3502
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3592
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3593
3503
  };
3594
3504
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3595
3505
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3596
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3506
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3597
3507
  };
3598
3508
  readonly id: import("effect/Schema").String;
3599
3509
  readonly content: import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
@@ -3643,11 +3553,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3643
3553
  readonly data: import("effect/Schema").Struct<{
3644
3554
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3645
3555
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3646
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3647
3556
  };
3648
3557
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3649
3558
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3650
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3559
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3651
3560
  };
3652
3561
  readonly id: import("effect/Schema").String;
3653
3562
  readonly error: import("effect/Schema").Struct<{
@@ -3692,11 +3601,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3692
3601
  data: import("effect/Schema").Struct<{
3693
3602
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3694
3603
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3695
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3696
3604
  };
3697
3605
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3698
3606
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3699
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3607
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3700
3608
  };
3701
3609
  readonly id: import("effect/Schema").String;
3702
3610
  readonly error: import("effect/Schema").Struct<{
@@ -3765,11 +3673,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3765
3673
  readonly data: import("effect/Schema").Struct<{
3766
3674
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3767
3675
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3768
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3769
3676
  };
3770
3677
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3771
3678
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3772
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3679
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3773
3680
  };
3774
3681
  readonly attempt: import("effect/Schema").Int;
3775
3682
  readonly at: import("effect/Schema").Int;
@@ -3795,11 +3702,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3795
3702
  data: import("effect/Schema").Struct<{
3796
3703
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3797
3704
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3798
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3799
3705
  };
3800
3706
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3801
3707
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3802
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3708
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3803
3709
  };
3804
3710
  readonly attempt: import("effect/Schema").Int;
3805
3711
  readonly at: import("effect/Schema").Int;
@@ -3849,15 +3755,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3849
3755
  readonly data: import("effect/Schema").Struct<{
3850
3756
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3851
3757
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3852
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3853
3758
  };
3854
3759
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
3855
3760
  readonly inputID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3856
3761
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3857
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3762
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3858
3763
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3859
3764
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3860
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3765
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3861
3766
  }>, never, never>;
3862
3767
  }>;
3863
3768
  }> & {
@@ -3870,15 +3775,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3870
3775
  data: import("effect/Schema").Struct<{
3871
3776
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3872
3777
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3873
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3874
3778
  };
3875
3779
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
3876
3780
  readonly inputID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3877
3781
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3878
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3782
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3879
3783
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3880
3784
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3881
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3785
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3882
3786
  }>, never, never>;
3883
3787
  }>;
3884
3788
  }, import("effect/Schema").Struct<{
@@ -3910,7 +3814,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3910
3814
  readonly data: import("effect/Schema").Struct<{
3911
3815
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3912
3816
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3913
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3914
3817
  };
3915
3818
  readonly text: import("effect/Schema").String;
3916
3819
  }>;
@@ -3921,7 +3824,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3921
3824
  data: import("effect/Schema").Struct<{
3922
3825
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3923
3826
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3924
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3925
3827
  };
3926
3828
  readonly text: import("effect/Schema").String;
3927
3829
  }>;
@@ -3959,7 +3861,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3959
3861
  readonly data: import("effect/Schema").Struct<{
3960
3862
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3961
3863
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3962
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3963
3864
  };
3964
3865
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
3965
3866
  readonly model: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
@@ -4042,7 +3943,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4042
3943
  data: import("effect/Schema").Struct<{
4043
3944
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4044
3945
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4045
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4046
3946
  };
4047
3947
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
4048
3948
  readonly model: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
@@ -4149,7 +4049,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4149
4049
  readonly data: import("effect/Schema").Struct<{
4150
4050
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4151
4051
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4152
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4153
4052
  };
4154
4053
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
4155
4054
  readonly error: import("effect/Schema").Struct<{
@@ -4165,10 +4064,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4165
4064
  }>;
4166
4065
  readonly inputID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4167
4066
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4168
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4067
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4169
4068
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4170
4069
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4171
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4070
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4172
4071
  }>, never, never>;
4173
4072
  readonly cost: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
4174
4073
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -4203,7 +4102,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4203
4102
  data: import("effect/Schema").Struct<{
4204
4103
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4205
4104
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4206
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4207
4105
  };
4208
4106
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
4209
4107
  readonly error: import("effect/Schema").Struct<{
@@ -4219,10 +4117,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4219
4117
  }>;
4220
4118
  readonly inputID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4221
4119
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4222
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4120
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4223
4121
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4224
4122
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4225
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4123
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4226
4124
  }>, never, never>;
4227
4125
  readonly cost: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
4228
4126
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -4281,12 +4179,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4281
4179
  readonly data: import("effect/Schema").Struct<{
4282
4180
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4283
4181
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4284
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4285
4182
  };
4286
4183
  readonly revert: import("effect/Schema").Struct<{
4287
4184
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4288
4185
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4289
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4186
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4290
4187
  };
4291
4188
  readonly partID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
4292
4189
  readonly snapshot: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>, never, never>;
@@ -4315,12 +4212,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4315
4212
  data: import("effect/Schema").Struct<{
4316
4213
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4317
4214
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4318
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4319
4215
  };
4320
4216
  readonly revert: import("effect/Schema").Struct<{
4321
4217
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4322
4218
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4323
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4219
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4324
4220
  };
4325
4221
  readonly partID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
4326
4222
  readonly snapshot: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>, never, never>;
@@ -4373,7 +4269,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4373
4269
  readonly data: import("effect/Schema").Struct<{
4374
4270
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4375
4271
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4376
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4377
4272
  };
4378
4273
  }>;
4379
4274
  }> & {
@@ -4386,7 +4281,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4386
4281
  data: import("effect/Schema").Struct<{
4387
4282
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4388
4283
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4389
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4390
4284
  };
4391
4285
  }>;
4392
4286
  }, import("effect/Schema").Struct<{
@@ -4423,11 +4317,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4423
4317
  readonly data: import("effect/Schema").Struct<{
4424
4318
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4425
4319
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4426
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4427
4320
  };
4428
4321
  readonly to: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4429
4322
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4430
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4323
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4431
4324
  };
4432
4325
  }>;
4433
4326
  }> & {
@@ -4440,11 +4333,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4440
4333
  data: import("effect/Schema").Struct<{
4441
4334
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4442
4335
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4443
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4444
4336
  };
4445
4337
  readonly to: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4446
4338
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4447
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4339
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4448
4340
  };
4449
4341
  }>;
4450
4342
  }, import("effect/Schema").Struct<{
@@ -4546,7 +4438,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4546
4438
  readonly data: import("effect/Schema").Struct<{
4547
4439
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4548
4440
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4549
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4550
4441
  };
4551
4442
  readonly action: import("effect/Schema").String;
4552
4443
  readonly resources: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -4573,7 +4464,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4573
4464
  data: import("effect/Schema").Struct<{
4574
4465
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4575
4466
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4576
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4577
4467
  };
4578
4468
  readonly action: import("effect/Schema").String;
4579
4469
  readonly resources: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -4622,7 +4512,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4622
4512
  readonly data: import("effect/Schema").Struct<{
4623
4513
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4624
4514
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4625
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4626
4515
  };
4627
4516
  readonly requestID: import("effect/Schema").brand<import("effect/Schema").String, "Permission.ID"> & {
4628
4517
  create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
@@ -4636,7 +4525,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4636
4525
  data: import("effect/Schema").Struct<{
4637
4526
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4638
4527
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4639
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4640
4528
  };
4641
4529
  readonly requestID: import("effect/Schema").brand<import("effect/Schema").String, "Permission.ID"> & {
4642
4530
  create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
@@ -5200,7 +5088,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5200
5088
  readonly data: import("effect/Schema").Struct<{
5201
5089
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5202
5090
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5203
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5204
5091
  };
5205
5092
  readonly terminal: import("effect/Schema").Struct<{
5206
5093
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
@@ -5216,7 +5103,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5216
5103
  readonly exitCode: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
5217
5104
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5218
5105
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5219
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5220
5106
  };
5221
5107
  readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
5222
5108
  readonly size: import("effect/Schema").Struct<{
@@ -5236,7 +5122,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5236
5122
  data: import("effect/Schema").Struct<{
5237
5123
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5238
5124
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5239
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5240
5125
  };
5241
5126
  readonly terminal: import("effect/Schema").Struct<{
5242
5127
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
@@ -5252,7 +5137,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5252
5137
  readonly exitCode: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
5253
5138
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5254
5139
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5255
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5256
5140
  };
5257
5141
  readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
5258
5142
  readonly size: import("effect/Schema").Struct<{
@@ -5294,7 +5178,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5294
5178
  readonly data: import("effect/Schema").Struct<{
5295
5179
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5296
5180
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5297
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5298
5181
  };
5299
5182
  readonly ptyID: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
5300
5183
  create: () => string & import("effect/Brand").Brand<"PtyID">;
@@ -5308,7 +5191,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5308
5191
  data: import("effect/Schema").Struct<{
5309
5192
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5310
5193
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5311
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5312
5194
  };
5313
5195
  readonly ptyID: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
5314
5196
  create: () => string & import("effect/Brand").Brand<"PtyID">;
@@ -5910,7 +5792,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5910
5792
  readonly data: import("effect/Schema").Struct<{
5911
5793
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5912
5794
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5913
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5914
5795
  };
5915
5796
  readonly status: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
5916
5797
  readonly type: import("effect/Schema").Literal<"idle">;
@@ -5945,7 +5826,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5945
5826
  data: import("effect/Schema").Struct<{
5946
5827
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5947
5828
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5948
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5949
5829
  };
5950
5830
  readonly status: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
5951
5831
  readonly type: import("effect/Schema").Literal<"idle">;
@@ -6002,7 +5882,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6002
5882
  readonly data: import("effect/Schema").Struct<{
6003
5883
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
6004
5884
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6005
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6006
5885
  };
6007
5886
  }>;
6008
5887
  }> & {
@@ -6012,7 +5891,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6012
5891
  data: import("effect/Schema").Struct<{
6013
5892
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
6014
5893
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6015
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6016
5894
  };
6017
5895
  }>;
6018
5896
  }, import("effect/Schema").Struct<{