@opencode-ai/protocol 0.0.0-next-14798 → 0.0.0-next-14801

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.
@@ -1763,21 +1763,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
1763
1763
  }>>, HttpApiEndpoint.StringTree<Schema.Struct<{
1764
1764
  after: Schema.optional<Schema.compose<Schema.brand<Schema.Int, "Event.Seq">, Schema.NumberFromString>>;
1765
1765
  follow: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
1766
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiSchema.StreamSse<HttpApiSchema.SseEventFromData<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
1766
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiSchema.StreamSse<HttpApiSchema.SseEventFromData<Schema.Union<readonly [Schema.Union<readonly ((Schema.Struct<{
1767
1767
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
1768
1768
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
1769
1769
  };
1770
1770
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1771
1771
  readonly type: Schema.Literal<"session.next.agent.switched">;
1772
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1772
+ readonly durable: Schema.Struct<{
1773
1773
  readonly aggregateID: Schema.String;
1774
1774
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1775
1775
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
1776
- }>>>, Schema.optionalKey<Schema.Struct<{
1777
- readonly aggregateID: Schema.String;
1778
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1779
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1780
- }>>, never, never>;
1776
+ }>;
1781
1777
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1782
1778
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
1783
1779
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -1809,6 +1805,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
1809
1805
  };
1810
1806
  }>;
1811
1807
  }> & {
1808
+ type: "session.next.agent.switched";
1809
+ durability: "durable";
1810
+ durable: {
1811
+ readonly version: number;
1812
+ readonly aggregate: string;
1813
+ };
1812
1814
  data: Schema.Struct<{
1813
1815
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1814
1816
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1820,26 +1822,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
1820
1822
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1821
1823
  };
1822
1824
  }>;
1823
- durable?: {
1824
- readonly version: number;
1825
- readonly aggregate: string;
1826
- } | undefined;
1827
- type: "session.next.agent.switched";
1828
- }, Schema.Struct<{
1825
+ }) | (Schema.Struct<{
1829
1826
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
1830
1827
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
1831
1828
  };
1832
1829
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1833
1830
  readonly type: Schema.Literal<"session.next.model.switched">;
1834
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1835
- readonly aggregateID: Schema.String;
1836
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1837
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1838
- }>>>, Schema.optionalKey<Schema.Struct<{
1831
+ readonly durable: Schema.Struct<{
1839
1832
  readonly aggregateID: Schema.String;
1840
1833
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1841
1834
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
1842
- }>>, never, never>;
1835
+ }>;
1843
1836
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1844
1837
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
1845
1838
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -1887,6 +1880,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
1887
1880
  };
1888
1881
  }>;
1889
1882
  }> & {
1883
+ type: "session.next.model.switched";
1884
+ durability: "durable";
1885
+ durable: {
1886
+ readonly version: number;
1887
+ readonly aggregate: string;
1888
+ };
1890
1889
  data: Schema.Struct<{
1891
1890
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1892
1891
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -1914,26 +1913,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
1914
1913
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1915
1914
  };
1916
1915
  }>;
1917
- durable?: {
1918
- readonly version: number;
1919
- readonly aggregate: string;
1920
- } | undefined;
1921
- type: "session.next.model.switched";
1922
- }, Schema.Struct<{
1916
+ }) | (Schema.Struct<{
1923
1917
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
1924
1918
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
1925
1919
  };
1926
1920
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1927
1921
  readonly type: Schema.Literal<"session.next.moved">;
1928
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1929
- readonly aggregateID: Schema.String;
1930
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1931
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
1932
- }>>>, Schema.optionalKey<Schema.Struct<{
1922
+ readonly durable: Schema.Struct<{
1933
1923
  readonly aggregateID: Schema.String;
1934
1924
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
1935
1925
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
1936
- }>>, never, never>;
1926
+ }>;
1937
1927
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1938
1928
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
1939
1929
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -1972,6 +1962,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
1972
1962
  };
1973
1963
  }>;
1974
1964
  }> & {
1965
+ type: "session.next.moved";
1966
+ durability: "durable";
1967
+ durable: {
1968
+ readonly version: number;
1969
+ readonly aggregate: string;
1970
+ };
1975
1971
  data: Schema.Struct<{
1976
1972
  readonly location: Schema.Struct<{
1977
1973
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -1990,26 +1986,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
1990
1986
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1991
1987
  };
1992
1988
  }>;
1993
- durable?: {
1994
- readonly version: number;
1995
- readonly aggregate: string;
1996
- } | undefined;
1997
- type: "session.next.moved";
1998
- }, Schema.Struct<{
1989
+ }) | (Schema.Struct<{
1999
1990
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2000
1991
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
2001
1992
  };
2002
1993
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2003
1994
  readonly type: Schema.Literal<"session.next.renamed">;
2004
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2005
- readonly aggregateID: Schema.String;
2006
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2007
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2008
- }>>>, Schema.optionalKey<Schema.Struct<{
1995
+ readonly durable: Schema.Struct<{
2009
1996
  readonly aggregateID: Schema.String;
2010
1997
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2011
1998
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
2012
- }>>, never, never>;
1999
+ }>;
2013
2000
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2014
2001
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2015
2002
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -2038,6 +2025,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2038
2025
  };
2039
2026
  }>;
2040
2027
  }> & {
2028
+ type: "session.next.renamed";
2029
+ durability: "durable";
2030
+ durable: {
2031
+ readonly version: number;
2032
+ readonly aggregate: string;
2033
+ };
2041
2034
  data: Schema.Struct<{
2042
2035
  readonly title: Schema.String;
2043
2036
  readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -2046,26 +2039,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2046
2039
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2047
2040
  };
2048
2041
  }>;
2049
- durable?: {
2050
- readonly version: number;
2051
- readonly aggregate: string;
2052
- } | undefined;
2053
- type: "session.next.renamed";
2054
- }, Schema.Struct<{
2042
+ }) | (Schema.Struct<{
2055
2043
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2056
2044
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
2057
2045
  };
2058
2046
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2059
2047
  readonly type: Schema.Literal<"session.next.forked">;
2060
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2048
+ readonly durable: Schema.Struct<{
2061
2049
  readonly aggregateID: Schema.String;
2062
2050
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2063
2051
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
2064
- }>>>, Schema.optionalKey<Schema.Struct<{
2065
- readonly aggregateID: Schema.String;
2066
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2067
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2068
- }>>, never, never>;
2052
+ }>;
2069
2053
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2070
2054
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2071
2055
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -2102,6 +2086,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2102
2086
  };
2103
2087
  }>;
2104
2088
  }> & {
2089
+ type: "session.next.forked";
2090
+ durability: "durable";
2091
+ durable: {
2092
+ readonly version: number;
2093
+ readonly aggregate: string;
2094
+ };
2105
2095
  data: Schema.Struct<{
2106
2096
  readonly parentID: Schema.brand<Schema.String, "SessionID"> & {
2107
2097
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -2118,26 +2108,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2118
2108
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2119
2109
  };
2120
2110
  }>;
2121
- durable?: {
2122
- readonly version: number;
2123
- readonly aggregate: string;
2124
- } | undefined;
2125
- type: "session.next.forked";
2126
- }, Schema.Struct<{
2111
+ }) | (Schema.Struct<{
2127
2112
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2128
2113
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
2129
2114
  };
2130
2115
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2131
2116
  readonly type: Schema.Literal<"session.next.prompted">;
2132
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2133
- readonly aggregateID: Schema.String;
2134
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2135
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2136
- }>>>, Schema.optionalKey<Schema.Struct<{
2117
+ readonly durable: Schema.Struct<{
2137
2118
  readonly aggregateID: Schema.String;
2138
2119
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2139
2120
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
2140
- }>>, never, never>;
2121
+ }>;
2141
2122
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2142
2123
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2143
2124
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -2293,6 +2274,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2293
2274
  };
2294
2275
  }>;
2295
2276
  }> & {
2277
+ type: "session.next.prompted";
2278
+ durability: "durable";
2279
+ durable: {
2280
+ readonly version: number;
2281
+ readonly aggregate: string;
2282
+ };
2296
2283
  data: Schema.Struct<{
2297
2284
  messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2298
2285
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -2428,26 +2415,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2428
2415
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2429
2416
  };
2430
2417
  }>;
2431
- durable?: {
2432
- readonly version: number;
2433
- readonly aggregate: string;
2434
- } | undefined;
2435
- type: "session.next.prompted";
2436
- }, Schema.Struct<{
2418
+ }) | (Schema.Struct<{
2437
2419
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2438
2420
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
2439
2421
  };
2440
2422
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2441
2423
  readonly type: Schema.Literal<"session.next.prompt.admitted">;
2442
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2443
- readonly aggregateID: Schema.String;
2444
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2445
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2446
- }>>>, Schema.optionalKey<Schema.Struct<{
2424
+ readonly durable: Schema.Struct<{
2447
2425
  readonly aggregateID: Schema.String;
2448
2426
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2449
2427
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
2450
- }>>, never, never>;
2428
+ }>;
2451
2429
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2452
2430
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2453
2431
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -2603,6 +2581,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2603
2581
  };
2604
2582
  }>;
2605
2583
  }> & {
2584
+ type: "session.next.prompt.admitted";
2585
+ durability: "durable";
2586
+ durable: {
2587
+ readonly version: number;
2588
+ readonly aggregate: string;
2589
+ };
2606
2590
  data: Schema.Struct<{
2607
2591
  messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2608
2592
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -2738,26 +2722,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2738
2722
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2739
2723
  };
2740
2724
  }>;
2741
- durable?: {
2742
- readonly version: number;
2743
- readonly aggregate: string;
2744
- } | undefined;
2745
- type: "session.next.prompt.admitted";
2746
- }, Schema.Struct<{
2725
+ }) | (Schema.Struct<{
2747
2726
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2748
2727
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
2749
2728
  };
2750
2729
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2751
2730
  readonly type: Schema.Literal<"session.next.context.updated">;
2752
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2753
- readonly aggregateID: Schema.String;
2754
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2755
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2756
- }>>>, Schema.optionalKey<Schema.Struct<{
2731
+ readonly durable: Schema.Struct<{
2757
2732
  readonly aggregateID: Schema.String;
2758
2733
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2759
2734
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
2760
- }>>, never, never>;
2735
+ }>;
2761
2736
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2762
2737
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2763
2738
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -2789,6 +2764,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2789
2764
  };
2790
2765
  }>;
2791
2766
  }> & {
2767
+ type: "session.next.context.updated";
2768
+ durability: "durable";
2769
+ durable: {
2770
+ readonly version: number;
2771
+ readonly aggregate: string;
2772
+ };
2792
2773
  data: Schema.Struct<{
2793
2774
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2794
2775
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -2800,26 +2781,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2800
2781
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2801
2782
  };
2802
2783
  }>;
2803
- durable?: {
2804
- readonly version: number;
2805
- readonly aggregate: string;
2806
- } | undefined;
2807
- type: "session.next.context.updated";
2808
- }, Schema.Struct<{
2784
+ }) | (Schema.Struct<{
2809
2785
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2810
2786
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
2811
2787
  };
2812
2788
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2813
2789
  readonly type: Schema.Literal<"session.next.synthetic">;
2814
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2790
+ readonly durable: Schema.Struct<{
2815
2791
  readonly aggregateID: Schema.String;
2816
2792
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2817
2793
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
2818
- }>>>, Schema.optionalKey<Schema.Struct<{
2819
- readonly aggregateID: Schema.String;
2820
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2821
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2822
- }>>, never, never>;
2794
+ }>;
2823
2795
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2824
2796
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2825
2797
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -2853,6 +2825,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2853
2825
  };
2854
2826
  }>;
2855
2827
  }> & {
2828
+ type: "session.next.synthetic";
2829
+ durability: "durable";
2830
+ durable: {
2831
+ readonly version: number;
2832
+ readonly aggregate: string;
2833
+ };
2856
2834
  data: Schema.Struct<{
2857
2835
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2858
2836
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -2866,26 +2844,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2866
2844
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2867
2845
  };
2868
2846
  }>;
2869
- durable?: {
2870
- readonly version: number;
2871
- readonly aggregate: string;
2872
- } | undefined;
2873
- type: "session.next.synthetic";
2874
- }, Schema.Struct<{
2847
+ }) | (Schema.Struct<{
2875
2848
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2876
2849
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
2877
2850
  };
2878
2851
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2879
2852
  readonly type: Schema.Literal<"session.next.skill.activated">;
2880
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2881
- readonly aggregateID: Schema.String;
2882
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2883
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2884
- }>>>, Schema.optionalKey<Schema.Struct<{
2853
+ readonly durable: Schema.Struct<{
2885
2854
  readonly aggregateID: Schema.String;
2886
2855
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2887
2856
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
2888
- }>>, never, never>;
2857
+ }>;
2889
2858
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2890
2859
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2891
2860
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -2918,6 +2887,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2918
2887
  };
2919
2888
  }>;
2920
2889
  }> & {
2890
+ type: "session.next.skill.activated";
2891
+ durability: "durable";
2892
+ durable: {
2893
+ readonly version: number;
2894
+ readonly aggregate: string;
2895
+ };
2921
2896
  data: Schema.Struct<{
2922
2897
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2923
2898
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -2930,26 +2905,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2930
2905
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2931
2906
  };
2932
2907
  }>;
2933
- durable?: {
2934
- readonly version: number;
2935
- readonly aggregate: string;
2936
- } | undefined;
2937
- type: "session.next.skill.activated";
2938
- }, Schema.Struct<{
2908
+ }) | (Schema.Struct<{
2939
2909
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2940
2910
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
2941
2911
  };
2942
2912
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2943
2913
  readonly type: Schema.Literal<"session.next.shell.started">;
2944
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2945
- readonly aggregateID: Schema.String;
2946
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2947
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
2948
- }>>>, Schema.optionalKey<Schema.Struct<{
2914
+ readonly durable: Schema.Struct<{
2949
2915
  readonly aggregateID: Schema.String;
2950
2916
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2951
2917
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
2952
- }>>, never, never>;
2918
+ }>;
2953
2919
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2954
2920
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2955
2921
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -2982,6 +2948,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2982
2948
  };
2983
2949
  }>;
2984
2950
  }> & {
2951
+ type: "session.next.shell.started";
2952
+ durability: "durable";
2953
+ durable: {
2954
+ readonly version: number;
2955
+ readonly aggregate: string;
2956
+ };
2985
2957
  data: Schema.Struct<{
2986
2958
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2987
2959
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -2994,26 +2966,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
2994
2966
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2995
2967
  };
2996
2968
  }>;
2997
- durable?: {
2998
- readonly version: number;
2999
- readonly aggregate: string;
3000
- } | undefined;
3001
- type: "session.next.shell.started";
3002
- }, Schema.Struct<{
2969
+ }) | (Schema.Struct<{
3003
2970
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3004
2971
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3005
2972
  };
3006
2973
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3007
2974
  readonly type: Schema.Literal<"session.next.shell.ended">;
3008
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3009
- readonly aggregateID: Schema.String;
3010
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3011
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3012
- }>>>, Schema.optionalKey<Schema.Struct<{
2975
+ readonly durable: Schema.Struct<{
3013
2976
  readonly aggregateID: Schema.String;
3014
2977
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3015
2978
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3016
- }>>, never, never>;
2979
+ }>;
3017
2980
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3018
2981
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3019
2982
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3043,6 +3006,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3043
3006
  };
3044
3007
  }>;
3045
3008
  }> & {
3009
+ type: "session.next.shell.ended";
3010
+ durability: "durable";
3011
+ durable: {
3012
+ readonly version: number;
3013
+ readonly aggregate: string;
3014
+ };
3046
3015
  data: Schema.Struct<{
3047
3016
  readonly callID: Schema.String;
3048
3017
  readonly output: Schema.String;
@@ -3052,26 +3021,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3052
3021
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3053
3022
  };
3054
3023
  }>;
3055
- durable?: {
3056
- readonly version: number;
3057
- readonly aggregate: string;
3058
- } | undefined;
3059
- type: "session.next.shell.ended";
3060
- }, Schema.Struct<{
3024
+ }) | (Schema.Struct<{
3061
3025
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3062
3026
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3063
3027
  };
3064
3028
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3065
3029
  readonly type: Schema.Literal<"session.next.step.started">;
3066
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3030
+ readonly durable: Schema.Struct<{
3067
3031
  readonly aggregateID: Schema.String;
3068
3032
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3069
3033
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3070
- }>>>, Schema.optionalKey<Schema.Struct<{
3071
- readonly aggregateID: Schema.String;
3072
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3073
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3074
- }>>, never, never>;
3034
+ }>;
3075
3035
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3076
3036
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3077
3037
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3121,6 +3081,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3121
3081
  };
3122
3082
  }>;
3123
3083
  }> & {
3084
+ type: "session.next.step.started";
3085
+ durability: "durable";
3086
+ durable: {
3087
+ readonly version: number;
3088
+ readonly aggregate: string;
3089
+ };
3124
3090
  data: Schema.Struct<{
3125
3091
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3126
3092
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -3150,26 +3116,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3150
3116
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3151
3117
  };
3152
3118
  }>;
3153
- durable?: {
3154
- readonly version: number;
3155
- readonly aggregate: string;
3156
- } | undefined;
3157
- type: "session.next.step.started";
3158
- }, Schema.Struct<{
3119
+ }) | (Schema.Struct<{
3159
3120
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3160
3121
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3161
3122
  };
3162
3123
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3163
3124
  readonly type: Schema.Literal<"session.next.step.ended">;
3164
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3165
- readonly aggregateID: Schema.String;
3166
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3167
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3168
- }>>>, Schema.optionalKey<Schema.Struct<{
3125
+ readonly durable: Schema.Struct<{
3169
3126
  readonly aggregateID: Schema.String;
3170
3127
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3171
3128
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3172
- }>>, never, never>;
3129
+ }>;
3173
3130
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3174
3131
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3175
3132
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3213,6 +3170,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3213
3170
  };
3214
3171
  }>;
3215
3172
  }> & {
3173
+ type: "session.next.step.ended";
3174
+ durability: "durable";
3175
+ durable: {
3176
+ readonly version: number;
3177
+ readonly aggregate: string;
3178
+ };
3216
3179
  data: Schema.Struct<{
3217
3180
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3218
3181
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -3236,26 +3199,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3236
3199
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3237
3200
  };
3238
3201
  }>;
3239
- durable?: {
3240
- readonly version: number;
3241
- readonly aggregate: string;
3242
- } | undefined;
3243
- type: "session.next.step.ended";
3244
- }, Schema.Struct<{
3202
+ }) | (Schema.Struct<{
3245
3203
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3246
3204
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3247
3205
  };
3248
3206
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3249
3207
  readonly type: Schema.Literal<"session.next.step.failed">;
3250
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3251
- readonly aggregateID: Schema.String;
3252
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3253
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3254
- }>>>, Schema.optionalKey<Schema.Struct<{
3208
+ readonly durable: Schema.Struct<{
3255
3209
  readonly aggregateID: Schema.String;
3256
3210
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3257
3211
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3258
- }>>, never, never>;
3212
+ }>;
3259
3213
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3260
3214
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3261
3215
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3290,6 +3244,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3290
3244
  };
3291
3245
  }>;
3292
3246
  }> & {
3247
+ type: "session.next.step.failed";
3248
+ durability: "durable";
3249
+ durable: {
3250
+ readonly version: number;
3251
+ readonly aggregate: string;
3252
+ };
3293
3253
  data: Schema.Struct<{
3294
3254
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3295
3255
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -3304,26 +3264,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3304
3264
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3305
3265
  };
3306
3266
  }>;
3307
- durable?: {
3308
- readonly version: number;
3309
- readonly aggregate: string;
3310
- } | undefined;
3311
- type: "session.next.step.failed";
3312
- }, Schema.Struct<{
3267
+ }) | (Schema.Struct<{
3313
3268
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3314
3269
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3315
3270
  };
3316
3271
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3317
3272
  readonly type: Schema.Literal<"session.next.text.started">;
3318
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3319
- readonly aggregateID: Schema.String;
3320
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3321
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3322
- }>>>, Schema.optionalKey<Schema.Struct<{
3273
+ readonly durable: Schema.Struct<{
3323
3274
  readonly aggregateID: Schema.String;
3324
3275
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3325
3276
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3326
- }>>, never, never>;
3277
+ }>;
3327
3278
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3328
3279
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3329
3280
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3355,6 +3306,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3355
3306
  };
3356
3307
  }>;
3357
3308
  }> & {
3309
+ type: "session.next.text.started";
3310
+ durability: "durable";
3311
+ durable: {
3312
+ readonly version: number;
3313
+ readonly aggregate: string;
3314
+ };
3358
3315
  data: Schema.Struct<{
3359
3316
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3360
3317
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -3366,26 +3323,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3366
3323
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3367
3324
  };
3368
3325
  }>;
3369
- durable?: {
3370
- readonly version: number;
3371
- readonly aggregate: string;
3372
- } | undefined;
3373
- type: "session.next.text.started";
3374
- }, Schema.Struct<{
3326
+ }) | (Schema.Struct<{
3375
3327
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3376
3328
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3377
3329
  };
3378
3330
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3379
3331
  readonly type: Schema.Literal<"session.next.text.ended">;
3380
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3332
+ readonly durable: Schema.Struct<{
3381
3333
  readonly aggregateID: Schema.String;
3382
3334
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3383
3335
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3384
- }>>>, Schema.optionalKey<Schema.Struct<{
3385
- readonly aggregateID: Schema.String;
3386
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3387
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3388
- }>>, never, never>;
3336
+ }>;
3389
3337
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3390
3338
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3391
3339
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3418,6 +3366,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3418
3366
  };
3419
3367
  }>;
3420
3368
  }> & {
3369
+ type: "session.next.text.ended";
3370
+ durability: "durable";
3371
+ durable: {
3372
+ readonly version: number;
3373
+ readonly aggregate: string;
3374
+ };
3421
3375
  data: Schema.Struct<{
3422
3376
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3423
3377
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -3430,26 +3384,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3430
3384
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3431
3385
  };
3432
3386
  }>;
3433
- durable?: {
3434
- readonly version: number;
3435
- readonly aggregate: string;
3436
- } | undefined;
3437
- type: "session.next.text.ended";
3438
- }, Schema.Struct<{
3387
+ }) | (Schema.Struct<{
3439
3388
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3440
3389
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3441
3390
  };
3442
3391
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3443
- readonly type: Schema.Literal<"session.next.tool.input.started">;
3444
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3445
- readonly aggregateID: Schema.String;
3446
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3447
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3448
- }>>>, Schema.optionalKey<Schema.Struct<{
3392
+ readonly type: Schema.Literal<"session.next.reasoning.started">;
3393
+ readonly durable: Schema.Struct<{
3449
3394
  readonly aggregateID: Schema.String;
3450
3395
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3451
3396
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3452
- }>>, never, never>;
3397
+ }>;
3453
3398
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3454
3399
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3455
3400
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3470,11 +3415,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3470
3415
  }>, never, never>;
3471
3416
  }>>, never, never>;
3472
3417
  readonly data: Schema.Struct<{
3473
- readonly name: Schema.String;
3474
3418
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3475
3419
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3476
3420
  };
3477
- readonly callID: Schema.String;
3421
+ readonly reasoningID: Schema.String;
3422
+ readonly providerMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3478
3423
  readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
3479
3424
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3480
3425
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -3482,38 +3427,35 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3482
3427
  };
3483
3428
  }>;
3484
3429
  }> & {
3430
+ type: "session.next.reasoning.started";
3431
+ durability: "durable";
3432
+ durable: {
3433
+ readonly version: number;
3434
+ readonly aggregate: string;
3435
+ };
3485
3436
  data: Schema.Struct<{
3486
- readonly name: Schema.String;
3487
3437
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3488
3438
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3489
3439
  };
3490
- readonly callID: Schema.String;
3440
+ readonly reasoningID: Schema.String;
3441
+ readonly providerMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3491
3442
  readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
3492
3443
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3493
3444
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3494
3445
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3495
3446
  };
3496
3447
  }>;
3497
- durable?: {
3498
- readonly version: number;
3499
- readonly aggregate: string;
3500
- } | undefined;
3501
- type: "session.next.tool.input.started";
3502
- }, Schema.Struct<{
3448
+ }) | (Schema.Struct<{
3503
3449
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3504
3450
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3505
3451
  };
3506
3452
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3507
- readonly type: Schema.Literal<"session.next.tool.input.ended">;
3508
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3509
- readonly aggregateID: Schema.String;
3510
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3511
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3512
- }>>>, Schema.optionalKey<Schema.Struct<{
3453
+ readonly type: Schema.Literal<"session.next.reasoning.ended">;
3454
+ readonly durable: Schema.Struct<{
3513
3455
  readonly aggregateID: Schema.String;
3514
3456
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3515
3457
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3516
- }>>, never, never>;
3458
+ }>;
3517
3459
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3518
3460
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3519
3461
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3534,11 +3476,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3534
3476
  }>, never, never>;
3535
3477
  }>>, never, never>;
3536
3478
  readonly data: Schema.Struct<{
3537
- readonly text: Schema.String;
3538
3479
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3539
3480
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3540
3481
  };
3541
- readonly callID: Schema.String;
3482
+ readonly reasoningID: Schema.String;
3483
+ readonly text: Schema.String;
3484
+ readonly providerMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3542
3485
  readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
3543
3486
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3544
3487
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -3546,38 +3489,36 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3546
3489
  };
3547
3490
  }>;
3548
3491
  }> & {
3492
+ type: "session.next.reasoning.ended";
3493
+ durability: "durable";
3494
+ durable: {
3495
+ readonly version: number;
3496
+ readonly aggregate: string;
3497
+ };
3549
3498
  data: Schema.Struct<{
3550
- readonly text: Schema.String;
3551
3499
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3552
3500
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3553
3501
  };
3554
- readonly callID: Schema.String;
3502
+ readonly reasoningID: Schema.String;
3503
+ readonly text: Schema.String;
3504
+ readonly providerMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3555
3505
  readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
3556
3506
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3557
3507
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3558
3508
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3559
3509
  };
3560
3510
  }>;
3561
- durable?: {
3562
- readonly version: number;
3563
- readonly aggregate: string;
3564
- } | undefined;
3565
- type: "session.next.tool.input.ended";
3566
- }, Schema.Struct<{
3511
+ }) | (Schema.Struct<{
3567
3512
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3568
3513
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3569
3514
  };
3570
3515
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3571
- readonly type: Schema.Literal<"session.next.tool.called">;
3572
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3573
- readonly aggregateID: Schema.String;
3574
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3575
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3576
- }>>>, Schema.optionalKey<Schema.Struct<{
3516
+ readonly type: Schema.Literal<"session.next.tool.input.started">;
3517
+ readonly durable: Schema.Struct<{
3577
3518
  readonly aggregateID: Schema.String;
3578
3519
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3579
3520
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3580
- }>>, never, never>;
3521
+ }>;
3581
3522
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3582
3523
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3583
3524
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3598,12 +3539,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3598
3539
  }>, never, never>;
3599
3540
  }>>, never, never>;
3600
3541
  readonly data: Schema.Struct<{
3601
- readonly tool: Schema.String;
3602
- readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
3603
- readonly provider: Schema.Struct<{
3604
- readonly executed: Schema.Boolean;
3605
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3606
- }>;
3542
+ readonly name: Schema.String;
3607
3543
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3608
3544
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3609
3545
  };
@@ -3615,13 +3551,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3615
3551
  };
3616
3552
  }>;
3617
3553
  }> & {
3554
+ type: "session.next.tool.input.started";
3555
+ durability: "durable";
3556
+ durable: {
3557
+ readonly version: number;
3558
+ readonly aggregate: string;
3559
+ };
3618
3560
  data: Schema.Struct<{
3619
- readonly tool: Schema.String;
3620
- readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
3621
- readonly provider: Schema.Struct<{
3622
- readonly executed: Schema.Boolean;
3623
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3624
- }>;
3561
+ readonly name: Schema.String;
3625
3562
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3626
3563
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3627
3564
  };
@@ -3632,26 +3569,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3632
3569
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3633
3570
  };
3634
3571
  }>;
3635
- durable?: {
3636
- readonly version: number;
3637
- readonly aggregate: string;
3638
- } | undefined;
3639
- type: "session.next.tool.called";
3640
- }, Schema.Struct<{
3572
+ }) | (Schema.Struct<{
3641
3573
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3642
3574
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3643
3575
  };
3644
3576
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3645
- readonly type: Schema.Literal<"session.next.tool.progress">;
3646
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3647
- readonly aggregateID: Schema.String;
3648
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3649
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3650
- }>>>, Schema.optionalKey<Schema.Struct<{
3577
+ readonly type: Schema.Literal<"session.next.tool.input.ended">;
3578
+ readonly durable: Schema.Struct<{
3651
3579
  readonly aggregateID: Schema.String;
3652
3580
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3653
3581
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3654
- }>>, never, never>;
3582
+ }>;
3655
3583
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3656
3584
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3657
3585
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3672,16 +3600,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3672
3600
  }>, never, never>;
3673
3601
  }>>, never, never>;
3674
3602
  readonly data: Schema.Struct<{
3675
- readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
3676
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
3677
- readonly type: Schema.Literal<"text">;
3678
- readonly text: Schema.String;
3679
- }>, Schema.Struct<{
3680
- readonly type: Schema.Literal<"file">;
3681
- readonly uri: Schema.String;
3682
- readonly mime: Schema.String;
3683
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3684
- }>]>>;
3603
+ readonly text: Schema.String;
3685
3604
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3686
3605
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3687
3606
  };
@@ -3693,17 +3612,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3693
3612
  };
3694
3613
  }>;
3695
3614
  }> & {
3615
+ type: "session.next.tool.input.ended";
3616
+ durability: "durable";
3617
+ durable: {
3618
+ readonly version: number;
3619
+ readonly aggregate: string;
3620
+ };
3696
3621
  data: Schema.Struct<{
3697
- readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
3698
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
3699
- readonly type: Schema.Literal<"text">;
3700
- readonly text: Schema.String;
3701
- }>, Schema.Struct<{
3702
- readonly type: Schema.Literal<"file">;
3703
- readonly uri: Schema.String;
3704
- readonly mime: Schema.String;
3705
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3706
- }>]>>;
3622
+ readonly text: Schema.String;
3707
3623
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3708
3624
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3709
3625
  };
@@ -3714,26 +3630,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3714
3630
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3715
3631
  };
3716
3632
  }>;
3717
- durable?: {
3718
- readonly version: number;
3719
- readonly aggregate: string;
3720
- } | undefined;
3721
- type: "session.next.tool.progress";
3722
- }, Schema.Struct<{
3633
+ }) | (Schema.Struct<{
3723
3634
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3724
3635
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3725
3636
  };
3726
3637
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3727
- readonly type: Schema.Literal<"session.next.tool.success">;
3728
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3729
- readonly aggregateID: Schema.String;
3730
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3731
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3732
- }>>>, Schema.optionalKey<Schema.Struct<{
3638
+ readonly type: Schema.Literal<"session.next.tool.called">;
3639
+ readonly durable: Schema.Struct<{
3733
3640
  readonly aggregateID: Schema.String;
3734
3641
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3735
3642
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3736
- }>>, never, never>;
3643
+ }>;
3737
3644
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3738
3645
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3739
3646
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3754,18 +3661,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3754
3661
  }>, never, never>;
3755
3662
  }>>, never, never>;
3756
3663
  readonly data: Schema.Struct<{
3757
- readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
3758
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
3759
- readonly type: Schema.Literal<"text">;
3760
- readonly text: Schema.String;
3761
- }>, Schema.Struct<{
3762
- readonly type: Schema.Literal<"file">;
3763
- readonly uri: Schema.String;
3764
- readonly mime: Schema.String;
3765
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3766
- }>]>>;
3767
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
3768
- readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
3664
+ readonly tool: Schema.String;
3665
+ readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
3769
3666
  readonly provider: Schema.Struct<{
3770
3667
  readonly executed: Schema.Boolean;
3771
3668
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
@@ -3781,19 +3678,15 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3781
3678
  };
3782
3679
  }>;
3783
3680
  }> & {
3681
+ type: "session.next.tool.called";
3682
+ durability: "durable";
3683
+ durable: {
3684
+ readonly version: number;
3685
+ readonly aggregate: string;
3686
+ };
3784
3687
  data: Schema.Struct<{
3785
- readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
3786
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
3787
- readonly type: Schema.Literal<"text">;
3788
- readonly text: Schema.String;
3789
- }>, Schema.Struct<{
3790
- readonly type: Schema.Literal<"file">;
3791
- readonly uri: Schema.String;
3792
- readonly mime: Schema.String;
3793
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3794
- }>]>>;
3795
- readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
3796
- readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
3688
+ readonly tool: Schema.String;
3689
+ readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
3797
3690
  readonly provider: Schema.Struct<{
3798
3691
  readonly executed: Schema.Boolean;
3799
3692
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
@@ -3808,26 +3701,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3808
3701
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3809
3702
  };
3810
3703
  }>;
3811
- durable?: {
3812
- readonly version: number;
3813
- readonly aggregate: string;
3814
- } | undefined;
3815
- type: "session.next.tool.success";
3816
- }, Schema.Struct<{
3704
+ }) | (Schema.Struct<{
3817
3705
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3818
3706
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3819
3707
  };
3820
3708
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3821
- readonly type: Schema.Literal<"session.next.tool.failed">;
3822
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3823
- readonly aggregateID: Schema.String;
3824
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3825
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3826
- }>>>, Schema.optionalKey<Schema.Struct<{
3709
+ readonly type: Schema.Literal<"session.next.tool.progress">;
3710
+ readonly durable: Schema.Struct<{
3827
3711
  readonly aggregateID: Schema.String;
3828
3712
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3829
3713
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3830
- }>>, never, never>;
3714
+ }>;
3831
3715
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3832
3716
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3833
3717
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3848,15 +3732,16 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3848
3732
  }>, never, never>;
3849
3733
  }>>, never, never>;
3850
3734
  readonly data: Schema.Struct<{
3851
- readonly error: Schema.Struct<{
3852
- readonly type: Schema.Literal<"unknown">;
3853
- readonly message: Schema.String;
3854
- }>;
3855
- readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
3856
- readonly provider: Schema.Struct<{
3857
- readonly executed: Schema.Boolean;
3858
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3859
- }>;
3735
+ readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
3736
+ readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
3737
+ readonly type: Schema.Literal<"text">;
3738
+ readonly text: Schema.String;
3739
+ }>, Schema.Struct<{
3740
+ readonly type: Schema.Literal<"file">;
3741
+ readonly uri: Schema.String;
3742
+ readonly mime: Schema.String;
3743
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3744
+ }>]>>;
3860
3745
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3861
3746
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3862
3747
  };
@@ -3868,16 +3753,23 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3868
3753
  };
3869
3754
  }>;
3870
3755
  }> & {
3756
+ type: "session.next.tool.progress";
3757
+ durability: "durable";
3758
+ durable: {
3759
+ readonly version: number;
3760
+ readonly aggregate: string;
3761
+ };
3871
3762
  data: Schema.Struct<{
3872
- readonly error: Schema.Struct<{
3873
- readonly type: Schema.Literal<"unknown">;
3874
- readonly message: Schema.String;
3875
- }>;
3876
- readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
3877
- readonly provider: Schema.Struct<{
3878
- readonly executed: Schema.Boolean;
3879
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3880
- }>;
3763
+ readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
3764
+ readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
3765
+ readonly type: Schema.Literal<"text">;
3766
+ readonly text: Schema.String;
3767
+ }>, Schema.Struct<{
3768
+ readonly type: Schema.Literal<"file">;
3769
+ readonly uri: Schema.String;
3770
+ readonly mime: Schema.String;
3771
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3772
+ }>]>>;
3881
3773
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3882
3774
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3883
3775
  };
@@ -3888,26 +3780,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3888
3780
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3889
3781
  };
3890
3782
  }>;
3891
- durable?: {
3892
- readonly version: number;
3893
- readonly aggregate: string;
3894
- } | undefined;
3895
- type: "session.next.tool.failed";
3896
- }, Schema.Struct<{
3783
+ }) | (Schema.Struct<{
3897
3784
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3898
3785
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3899
3786
  };
3900
3787
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3901
- readonly type: Schema.Literal<"session.next.reasoning.started">;
3902
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3903
- readonly aggregateID: Schema.String;
3904
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3905
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3906
- }>>>, Schema.optionalKey<Schema.Struct<{
3788
+ readonly type: Schema.Literal<"session.next.tool.success">;
3789
+ readonly durable: Schema.Struct<{
3907
3790
  readonly aggregateID: Schema.String;
3908
3791
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3909
3792
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3910
- }>>, never, never>;
3793
+ }>;
3911
3794
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3912
3795
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3913
3796
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3928,11 +3811,26 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3928
3811
  }>, never, never>;
3929
3812
  }>>, never, never>;
3930
3813
  readonly data: Schema.Struct<{
3814
+ readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
3815
+ readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
3816
+ readonly type: Schema.Literal<"text">;
3817
+ readonly text: Schema.String;
3818
+ }>, Schema.Struct<{
3819
+ readonly type: Schema.Literal<"file">;
3820
+ readonly uri: Schema.String;
3821
+ readonly mime: Schema.String;
3822
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3823
+ }>]>>;
3824
+ readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
3825
+ readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
3826
+ readonly provider: Schema.Struct<{
3827
+ readonly executed: Schema.Boolean;
3828
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3829
+ }>;
3931
3830
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3932
3831
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3933
3832
  };
3934
- readonly reasoningID: Schema.String;
3935
- readonly providerMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3833
+ readonly callID: Schema.String;
3936
3834
  readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
3937
3835
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3938
3836
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -3940,38 +3838,50 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3940
3838
  };
3941
3839
  }>;
3942
3840
  }> & {
3841
+ type: "session.next.tool.success";
3842
+ durability: "durable";
3843
+ durable: {
3844
+ readonly version: number;
3845
+ readonly aggregate: string;
3846
+ };
3943
3847
  data: Schema.Struct<{
3848
+ readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
3849
+ readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
3850
+ readonly type: Schema.Literal<"text">;
3851
+ readonly text: Schema.String;
3852
+ }>, Schema.Struct<{
3853
+ readonly type: Schema.Literal<"file">;
3854
+ readonly uri: Schema.String;
3855
+ readonly mime: Schema.String;
3856
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3857
+ }>]>>;
3858
+ readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
3859
+ readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
3860
+ readonly provider: Schema.Struct<{
3861
+ readonly executed: Schema.Boolean;
3862
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3863
+ }>;
3944
3864
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3945
3865
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3946
3866
  };
3947
- readonly reasoningID: Schema.String;
3948
- readonly providerMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3867
+ readonly callID: Schema.String;
3949
3868
  readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
3950
3869
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3951
3870
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3952
3871
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3953
3872
  };
3954
3873
  }>;
3955
- durable?: {
3956
- readonly version: number;
3957
- readonly aggregate: string;
3958
- } | undefined;
3959
- type: "session.next.reasoning.started";
3960
- }, Schema.Struct<{
3874
+ }) | (Schema.Struct<{
3961
3875
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3962
3876
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3963
3877
  };
3964
3878
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3965
- readonly type: Schema.Literal<"session.next.reasoning.ended">;
3966
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3967
- readonly aggregateID: Schema.String;
3968
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3969
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
3970
- }>>>, Schema.optionalKey<Schema.Struct<{
3879
+ readonly type: Schema.Literal<"session.next.tool.failed">;
3880
+ readonly durable: Schema.Struct<{
3971
3881
  readonly aggregateID: Schema.String;
3972
3882
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
3973
3883
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
3974
- }>>, never, never>;
3884
+ }>;
3975
3885
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3976
3886
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
3977
3887
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -3992,12 +3902,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
3992
3902
  }>, never, never>;
3993
3903
  }>>, never, never>;
3994
3904
  readonly data: Schema.Struct<{
3905
+ readonly error: Schema.Struct<{
3906
+ readonly type: Schema.Literal<"unknown">;
3907
+ readonly message: Schema.String;
3908
+ }>;
3909
+ readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
3910
+ readonly provider: Schema.Struct<{
3911
+ readonly executed: Schema.Boolean;
3912
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3913
+ }>;
3995
3914
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3996
3915
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3997
3916
  };
3998
- readonly reasoningID: Schema.String;
3999
- readonly text: Schema.String;
4000
- readonly providerMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3917
+ readonly callID: Schema.String;
4001
3918
  readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
4002
3919
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4003
3920
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -4005,39 +3922,43 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4005
3922
  };
4006
3923
  }>;
4007
3924
  }> & {
3925
+ type: "session.next.tool.failed";
3926
+ durability: "durable";
3927
+ durable: {
3928
+ readonly version: number;
3929
+ readonly aggregate: string;
3930
+ };
4008
3931
  data: Schema.Struct<{
3932
+ readonly error: Schema.Struct<{
3933
+ readonly type: Schema.Literal<"unknown">;
3934
+ readonly message: Schema.String;
3935
+ }>;
3936
+ readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
3937
+ readonly provider: Schema.Struct<{
3938
+ readonly executed: Schema.Boolean;
3939
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3940
+ }>;
4009
3941
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4010
3942
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4011
3943
  };
4012
- readonly reasoningID: Schema.String;
4013
- readonly text: Schema.String;
4014
- readonly providerMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
3944
+ readonly callID: Schema.String;
4015
3945
  readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
4016
3946
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4017
3947
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4018
3948
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4019
3949
  };
4020
3950
  }>;
4021
- durable?: {
4022
- readonly version: number;
4023
- readonly aggregate: string;
4024
- } | undefined;
4025
- type: "session.next.reasoning.ended";
4026
- }, Schema.Struct<{
3951
+ }) | (Schema.Struct<{
4027
3952
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4028
3953
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
4029
3954
  };
4030
3955
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
4031
3956
  readonly type: Schema.Literal<"session.next.retried">;
4032
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3957
+ readonly durable: Schema.Struct<{
4033
3958
  readonly aggregateID: Schema.String;
4034
3959
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4035
3960
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
4036
- }>>>, Schema.optionalKey<Schema.Struct<{
4037
- readonly aggregateID: Schema.String;
4038
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4039
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4040
- }>>, never, never>;
3961
+ }>;
4041
3962
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4042
3963
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
4043
3964
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -4074,6 +3995,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4074
3995
  };
4075
3996
  }>;
4076
3997
  }> & {
3998
+ type: "session.next.retried";
3999
+ durability: "durable";
4000
+ durable: {
4001
+ readonly version: number;
4002
+ readonly aggregate: string;
4003
+ };
4077
4004
  data: Schema.Struct<{
4078
4005
  readonly attempt: Schema.Finite;
4079
4006
  readonly error: Schema.Struct<{
@@ -4090,26 +4017,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4090
4017
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4091
4018
  };
4092
4019
  }>;
4093
- durable?: {
4094
- readonly version: number;
4095
- readonly aggregate: string;
4096
- } | undefined;
4097
- type: "session.next.retried";
4098
- }, Schema.Struct<{
4020
+ }) | (Schema.Struct<{
4099
4021
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4100
4022
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
4101
4023
  };
4102
4024
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
4103
4025
  readonly type: Schema.Literal<"session.next.compaction.started">;
4104
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4105
- readonly aggregateID: Schema.String;
4106
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4107
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4108
- }>>>, Schema.optionalKey<Schema.Struct<{
4026
+ readonly durable: Schema.Struct<{
4109
4027
  readonly aggregateID: Schema.String;
4110
4028
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4111
4029
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
4112
- }>>, never, never>;
4030
+ }>;
4113
4031
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4114
4032
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
4115
4033
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -4141,6 +4059,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4141
4059
  };
4142
4060
  }>;
4143
4061
  }> & {
4062
+ type: "session.next.compaction.started";
4063
+ durability: "durable";
4064
+ durable: {
4065
+ readonly version: number;
4066
+ readonly aggregate: string;
4067
+ };
4144
4068
  data: Schema.Struct<{
4145
4069
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4146
4070
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -4152,26 +4076,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4152
4076
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4153
4077
  };
4154
4078
  }>;
4155
- durable?: {
4156
- readonly version: number;
4157
- readonly aggregate: string;
4158
- } | undefined;
4159
- type: "session.next.compaction.started";
4160
- }, Schema.Struct<{
4079
+ }) | (Schema.Struct<{
4161
4080
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4162
4081
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
4163
4082
  };
4164
4083
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
4165
4084
  readonly type: Schema.Literal<"session.next.compaction.ended">;
4166
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4167
- readonly aggregateID: Schema.String;
4168
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4169
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4170
- }>>>, Schema.optionalKey<Schema.Struct<{
4085
+ readonly durable: Schema.Struct<{
4171
4086
  readonly aggregateID: Schema.String;
4172
4087
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4173
4088
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
4174
- }>>, never, never>;
4089
+ }>;
4175
4090
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4176
4091
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
4177
4092
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -4205,6 +4120,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4205
4120
  };
4206
4121
  }>;
4207
4122
  }> & {
4123
+ type: "session.next.compaction.ended";
4124
+ durability: "durable";
4125
+ durable: {
4126
+ readonly version: number;
4127
+ readonly aggregate: string;
4128
+ };
4208
4129
  data: Schema.Struct<{
4209
4130
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4210
4131
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -4218,26 +4139,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4218
4139
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4219
4140
  };
4220
4141
  }>;
4221
- durable?: {
4222
- readonly version: number;
4223
- readonly aggregate: string;
4224
- } | undefined;
4225
- type: "session.next.compaction.ended";
4226
- }, Schema.Struct<{
4142
+ }) | (Schema.Struct<{
4227
4143
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4228
4144
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
4229
4145
  };
4230
4146
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
4231
4147
  readonly type: Schema.Literal<"session.next.revert.staged">;
4232
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4148
+ readonly durable: Schema.Struct<{
4233
4149
  readonly aggregateID: Schema.String;
4234
4150
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4235
4151
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
4236
- }>>>, Schema.optionalKey<Schema.Struct<{
4237
- readonly aggregateID: Schema.String;
4238
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4239
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4240
- }>>, never, never>;
4152
+ }>;
4241
4153
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4242
4154
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
4243
4155
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -4286,6 +4198,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4286
4198
  };
4287
4199
  }>;
4288
4200
  }> & {
4201
+ type: "session.next.revert.staged";
4202
+ durability: "durable";
4203
+ durable: {
4204
+ readonly version: number;
4205
+ readonly aggregate: string;
4206
+ };
4289
4207
  data: Schema.Struct<{
4290
4208
  readonly revert: Schema.Struct<{
4291
4209
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
@@ -4314,26 +4232,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4314
4232
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4315
4233
  };
4316
4234
  }>;
4317
- durable?: {
4318
- readonly version: number;
4319
- readonly aggregate: string;
4320
- } | undefined;
4321
- type: "session.next.revert.staged";
4322
- }, Schema.Struct<{
4235
+ }) | (Schema.Struct<{
4323
4236
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4324
4237
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
4325
4238
  };
4326
4239
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
4327
4240
  readonly type: Schema.Literal<"session.next.revert.cleared">;
4328
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4329
- readonly aggregateID: Schema.String;
4330
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4331
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4332
- }>>>, Schema.optionalKey<Schema.Struct<{
4241
+ readonly durable: Schema.Struct<{
4333
4242
  readonly aggregateID: Schema.String;
4334
4243
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4335
4244
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
4336
- }>>, never, never>;
4245
+ }>;
4337
4246
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4338
4247
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
4339
4248
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -4361,6 +4270,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4361
4270
  };
4362
4271
  }>;
4363
4272
  }> & {
4273
+ type: "session.next.revert.cleared";
4274
+ durability: "durable";
4275
+ durable: {
4276
+ readonly version: number;
4277
+ readonly aggregate: string;
4278
+ };
4364
4279
  data: Schema.Struct<{
4365
4280
  timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
4366
4281
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
@@ -4368,26 +4283,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4368
4283
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4369
4284
  };
4370
4285
  }>;
4371
- durable?: {
4372
- readonly version: number;
4373
- readonly aggregate: string;
4374
- } | undefined;
4375
- type: "session.next.revert.cleared";
4376
- }, Schema.Struct<{
4286
+ }) | (Schema.Struct<{
4377
4287
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4378
4288
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
4379
4289
  };
4380
4290
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
4381
4291
  readonly type: Schema.Literal<"session.next.revert.committed">;
4382
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4292
+ readonly durable: Schema.Struct<{
4383
4293
  readonly aggregateID: Schema.String;
4384
4294
  readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4385
4295
  readonly version: Schema.brand<Schema.Int, "Event.Version">;
4386
- }>>>, Schema.optionalKey<Schema.Struct<{
4387
- readonly aggregateID: Schema.String;
4388
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
4389
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
4390
- }>>, never, never>;
4296
+ }>;
4391
4297
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4392
4298
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
4393
4299
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -4418,6 +4324,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4418
4324
  };
4419
4325
  }>;
4420
4326
  }> & {
4327
+ type: "session.next.revert.committed";
4328
+ durability: "durable";
4329
+ durable: {
4330
+ readonly version: number;
4331
+ readonly aggregate: string;
4332
+ };
4421
4333
  data: Schema.Struct<{
4422
4334
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4423
4335
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -4428,18 +4340,18 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4428
4340
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4429
4341
  };
4430
4342
  }>;
4431
- durable?: {
4432
- readonly version: number;
4433
- readonly aggregate: string;
4434
- } | undefined;
4435
- type: "session.next.revert.committed";
4436
- }]>, Schema.Struct<{
4343
+ }))[]>, Schema.Struct<{
4437
4344
  readonly type: Schema.Literal<"log.synced">;
4438
4345
  readonly aggregateID: Schema.String;
4439
4346
  readonly seq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Int, "Event.Seq">>>, Schema.optionalKey<Schema.brand<Schema.Int, "Event.Seq">>, never, never>;
4440
4347
  }>]>>, Schema.Never, {
4441
4348
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4442
4349
  readonly type: "session.next.agent.switched";
4350
+ readonly durable: {
4351
+ readonly aggregateID: string;
4352
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4353
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4354
+ };
4443
4355
  readonly data: {
4444
4356
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4445
4357
  readonly agent: string;
@@ -4449,11 +4361,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4449
4361
  readonly metadata?: {
4450
4362
  readonly [x: string]: unknown;
4451
4363
  } | undefined;
4452
- readonly durable?: {
4453
- readonly aggregateID: string;
4454
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4455
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4456
- } | undefined;
4457
4364
  readonly location?: {
4458
4365
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4459
4366
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4461,6 +4368,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4461
4368
  } | {
4462
4369
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4463
4370
  readonly type: "session.next.model.switched";
4371
+ readonly durable: {
4372
+ readonly aggregateID: string;
4373
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4374
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4375
+ };
4464
4376
  readonly data: {
4465
4377
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4466
4378
  readonly model: {
@@ -4474,11 +4386,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4474
4386
  readonly metadata?: {
4475
4387
  readonly [x: string]: unknown;
4476
4388
  } | undefined;
4477
- readonly durable?: {
4478
- readonly aggregateID: string;
4479
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4480
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4481
- } | undefined;
4482
4389
  readonly location?: {
4483
4390
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4484
4391
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4486,6 +4393,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4486
4393
  } | {
4487
4394
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4488
4395
  readonly type: "session.next.moved";
4396
+ readonly durable: {
4397
+ readonly aggregateID: string;
4398
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4399
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4400
+ };
4489
4401
  readonly data: {
4490
4402
  readonly location: {
4491
4403
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
@@ -4498,11 +4410,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4498
4410
  readonly metadata?: {
4499
4411
  readonly [x: string]: unknown;
4500
4412
  } | undefined;
4501
- readonly durable?: {
4502
- readonly aggregateID: string;
4503
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4504
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4505
- } | undefined;
4506
4413
  readonly location?: {
4507
4414
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4508
4415
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4510,6 +4417,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4510
4417
  } | {
4511
4418
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4512
4419
  readonly type: "session.next.renamed";
4420
+ readonly durable: {
4421
+ readonly aggregateID: string;
4422
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4423
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4424
+ };
4513
4425
  readonly data: {
4514
4426
  readonly title: string;
4515
4427
  readonly timestamp: import("effect/DateTime").Utc;
@@ -4518,11 +4430,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4518
4430
  readonly metadata?: {
4519
4431
  readonly [x: string]: unknown;
4520
4432
  } | undefined;
4521
- readonly durable?: {
4522
- readonly aggregateID: string;
4523
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4524
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4525
- } | undefined;
4526
4433
  readonly location?: {
4527
4434
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4528
4435
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4530,6 +4437,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4530
4437
  } | {
4531
4438
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4532
4439
  readonly type: "session.next.forked";
4440
+ readonly durable: {
4441
+ readonly aggregateID: string;
4442
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4443
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4444
+ };
4533
4445
  readonly data: {
4534
4446
  readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
4535
4447
  readonly timestamp: import("effect/DateTime").Utc;
@@ -4539,11 +4451,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4539
4451
  readonly metadata?: {
4540
4452
  readonly [x: string]: unknown;
4541
4453
  } | undefined;
4542
- readonly durable?: {
4543
- readonly aggregateID: string;
4544
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4545
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4546
- } | undefined;
4547
4454
  readonly location?: {
4548
4455
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4549
4456
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4551,6 +4458,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4551
4458
  } | {
4552
4459
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4553
4460
  readonly type: "session.next.prompted";
4461
+ readonly durable: {
4462
+ readonly aggregateID: string;
4463
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4464
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4465
+ };
4554
4466
  readonly data: {
4555
4467
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4556
4468
  readonly prompt: {
@@ -4582,11 +4494,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4582
4494
  readonly metadata?: {
4583
4495
  readonly [x: string]: unknown;
4584
4496
  } | undefined;
4585
- readonly durable?: {
4586
- readonly aggregateID: string;
4587
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4588
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4589
- } | undefined;
4590
4497
  readonly location?: {
4591
4498
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4592
4499
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4594,6 +4501,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4594
4501
  } | {
4595
4502
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4596
4503
  readonly type: "session.next.prompt.admitted";
4504
+ readonly durable: {
4505
+ readonly aggregateID: string;
4506
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4507
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4508
+ };
4597
4509
  readonly data: {
4598
4510
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4599
4511
  readonly prompt: {
@@ -4625,11 +4537,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4625
4537
  readonly metadata?: {
4626
4538
  readonly [x: string]: unknown;
4627
4539
  } | undefined;
4628
- readonly durable?: {
4629
- readonly aggregateID: string;
4630
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4631
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4632
- } | undefined;
4633
4540
  readonly location?: {
4634
4541
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4635
4542
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4637,6 +4544,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4637
4544
  } | {
4638
4545
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4639
4546
  readonly type: "session.next.context.updated";
4547
+ readonly durable: {
4548
+ readonly aggregateID: string;
4549
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4550
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4551
+ };
4640
4552
  readonly data: {
4641
4553
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4642
4554
  readonly text: string;
@@ -4646,11 +4558,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4646
4558
  readonly metadata?: {
4647
4559
  readonly [x: string]: unknown;
4648
4560
  } | undefined;
4649
- readonly durable?: {
4650
- readonly aggregateID: string;
4651
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4652
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4653
- } | undefined;
4654
4561
  readonly location?: {
4655
4562
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4656
4563
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4658,6 +4565,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4658
4565
  } | {
4659
4566
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4660
4567
  readonly type: "session.next.synthetic";
4568
+ readonly durable: {
4569
+ readonly aggregateID: string;
4570
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4571
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4572
+ };
4661
4573
  readonly data: {
4662
4574
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4663
4575
  readonly text: string;
@@ -4671,11 +4583,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4671
4583
  readonly metadata?: {
4672
4584
  readonly [x: string]: unknown;
4673
4585
  } | undefined;
4674
- readonly durable?: {
4675
- readonly aggregateID: string;
4676
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4677
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4678
- } | undefined;
4679
4586
  readonly location?: {
4680
4587
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4681
4588
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4683,6 +4590,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4683
4590
  } | {
4684
4591
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4685
4592
  readonly type: "session.next.skill.activated";
4593
+ readonly durable: {
4594
+ readonly aggregateID: string;
4595
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4596
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4597
+ };
4686
4598
  readonly data: {
4687
4599
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4688
4600
  readonly name: string;
@@ -4693,11 +4605,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4693
4605
  readonly metadata?: {
4694
4606
  readonly [x: string]: unknown;
4695
4607
  } | undefined;
4696
- readonly durable?: {
4697
- readonly aggregateID: string;
4698
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4699
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4700
- } | undefined;
4701
4608
  readonly location?: {
4702
4609
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4703
4610
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4705,6 +4612,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4705
4612
  } | {
4706
4613
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4707
4614
  readonly type: "session.next.shell.started";
4615
+ readonly durable: {
4616
+ readonly aggregateID: string;
4617
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4618
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4619
+ };
4708
4620
  readonly data: {
4709
4621
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4710
4622
  readonly callID: string;
@@ -4715,11 +4627,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4715
4627
  readonly metadata?: {
4716
4628
  readonly [x: string]: unknown;
4717
4629
  } | undefined;
4718
- readonly durable?: {
4719
- readonly aggregateID: string;
4720
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4721
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4722
- } | undefined;
4723
4630
  readonly location?: {
4724
4631
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4725
4632
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4727,6 +4634,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4727
4634
  } | {
4728
4635
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4729
4636
  readonly type: "session.next.shell.ended";
4637
+ readonly durable: {
4638
+ readonly aggregateID: string;
4639
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4640
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4641
+ };
4730
4642
  readonly data: {
4731
4643
  readonly callID: string;
4732
4644
  readonly output: string;
@@ -4736,11 +4648,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4736
4648
  readonly metadata?: {
4737
4649
  readonly [x: string]: unknown;
4738
4650
  } | undefined;
4739
- readonly durable?: {
4740
- readonly aggregateID: string;
4741
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4742
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4743
- } | undefined;
4744
4651
  readonly location?: {
4745
4652
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4746
4653
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4748,6 +4655,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4748
4655
  } | {
4749
4656
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4750
4657
  readonly type: "session.next.step.started";
4658
+ readonly durable: {
4659
+ readonly aggregateID: string;
4660
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4661
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4662
+ };
4751
4663
  readonly data: {
4752
4664
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4753
4665
  readonly agent: string;
@@ -4763,11 +4675,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4763
4675
  readonly metadata?: {
4764
4676
  readonly [x: string]: unknown;
4765
4677
  } | undefined;
4766
- readonly durable?: {
4767
- readonly aggregateID: string;
4768
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4769
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4770
- } | undefined;
4771
4678
  readonly location?: {
4772
4679
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4773
4680
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4775,6 +4682,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4775
4682
  } | {
4776
4683
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4777
4684
  readonly type: "session.next.step.ended";
4685
+ readonly durable: {
4686
+ readonly aggregateID: string;
4687
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4688
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4689
+ };
4778
4690
  readonly data: {
4779
4691
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4780
4692
  readonly finish: string;
@@ -4796,11 +4708,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4796
4708
  readonly metadata?: {
4797
4709
  readonly [x: string]: unknown;
4798
4710
  } | undefined;
4799
- readonly durable?: {
4800
- readonly aggregateID: string;
4801
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4802
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4803
- } | undefined;
4804
4711
  readonly location?: {
4805
4712
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4806
4713
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4808,6 +4715,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4808
4715
  } | {
4809
4716
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4810
4717
  readonly type: "session.next.step.failed";
4718
+ readonly durable: {
4719
+ readonly aggregateID: string;
4720
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4721
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4722
+ };
4811
4723
  readonly data: {
4812
4724
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4813
4725
  readonly error: {
@@ -4820,11 +4732,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4820
4732
  readonly metadata?: {
4821
4733
  readonly [x: string]: unknown;
4822
4734
  } | undefined;
4823
- readonly durable?: {
4824
- readonly aggregateID: string;
4825
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4826
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4827
- } | undefined;
4828
4735
  readonly location?: {
4829
4736
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4830
4737
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4832,6 +4739,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4832
4739
  } | {
4833
4740
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4834
4741
  readonly type: "session.next.text.started";
4742
+ readonly durable: {
4743
+ readonly aggregateID: string;
4744
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4745
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4746
+ };
4835
4747
  readonly data: {
4836
4748
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4837
4749
  readonly textID: string;
@@ -4841,11 +4753,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4841
4753
  readonly metadata?: {
4842
4754
  readonly [x: string]: unknown;
4843
4755
  } | undefined;
4844
- readonly durable?: {
4845
- readonly aggregateID: string;
4846
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4847
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4848
- } | undefined;
4849
4756
  readonly location?: {
4850
4757
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4851
4758
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4853,6 +4760,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4853
4760
  } | {
4854
4761
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4855
4762
  readonly type: "session.next.text.ended";
4763
+ readonly durable: {
4764
+ readonly aggregateID: string;
4765
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4766
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4767
+ };
4856
4768
  readonly data: {
4857
4769
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4858
4770
  readonly textID: string;
@@ -4863,11 +4775,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4863
4775
  readonly metadata?: {
4864
4776
  readonly [x: string]: unknown;
4865
4777
  } | undefined;
4866
- readonly durable?: {
4867
- readonly aggregateID: string;
4868
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4869
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4870
- } | undefined;
4871
4778
  readonly location?: {
4872
4779
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4873
4780
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4875,6 +4782,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4875
4782
  } | {
4876
4783
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4877
4784
  readonly type: "session.next.reasoning.started";
4785
+ readonly durable: {
4786
+ readonly aggregateID: string;
4787
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4788
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4789
+ };
4878
4790
  readonly data: {
4879
4791
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4880
4792
  readonly reasoningID: string;
@@ -4889,11 +4801,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4889
4801
  readonly metadata?: {
4890
4802
  readonly [x: string]: unknown;
4891
4803
  } | undefined;
4892
- readonly durable?: {
4893
- readonly aggregateID: string;
4894
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4895
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4896
- } | undefined;
4897
4804
  readonly location?: {
4898
4805
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4899
4806
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4901,6 +4808,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4901
4808
  } | {
4902
4809
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4903
4810
  readonly type: "session.next.reasoning.ended";
4811
+ readonly durable: {
4812
+ readonly aggregateID: string;
4813
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4814
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4815
+ };
4904
4816
  readonly data: {
4905
4817
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
4906
4818
  readonly reasoningID: string;
@@ -4916,11 +4828,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4916
4828
  readonly metadata?: {
4917
4829
  readonly [x: string]: unknown;
4918
4830
  } | undefined;
4919
- readonly durable?: {
4920
- readonly aggregateID: string;
4921
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4922
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4923
- } | undefined;
4924
4831
  readonly location?: {
4925
4832
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4926
4833
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4928,6 +4835,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4928
4835
  } | {
4929
4836
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4930
4837
  readonly type: "session.next.tool.input.started";
4838
+ readonly durable: {
4839
+ readonly aggregateID: string;
4840
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4841
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4842
+ };
4931
4843
  readonly data: {
4932
4844
  readonly name: string;
4933
4845
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -4938,11 +4850,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4938
4850
  readonly metadata?: {
4939
4851
  readonly [x: string]: unknown;
4940
4852
  } | undefined;
4941
- readonly durable?: {
4942
- readonly aggregateID: string;
4943
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4944
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4945
- } | undefined;
4946
4853
  readonly location?: {
4947
4854
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4948
4855
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4950,6 +4857,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4950
4857
  } | {
4951
4858
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4952
4859
  readonly type: "session.next.tool.input.ended";
4860
+ readonly durable: {
4861
+ readonly aggregateID: string;
4862
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4863
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4864
+ };
4953
4865
  readonly data: {
4954
4866
  readonly text: string;
4955
4867
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -4960,11 +4872,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4960
4872
  readonly metadata?: {
4961
4873
  readonly [x: string]: unknown;
4962
4874
  } | undefined;
4963
- readonly durable?: {
4964
- readonly aggregateID: string;
4965
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4966
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4967
- } | undefined;
4968
4875
  readonly location?: {
4969
4876
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
4970
4877
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -4972,6 +4879,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4972
4879
  } | {
4973
4880
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
4974
4881
  readonly type: "session.next.tool.called";
4882
+ readonly durable: {
4883
+ readonly aggregateID: string;
4884
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4885
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4886
+ };
4975
4887
  readonly data: {
4976
4888
  readonly tool: string;
4977
4889
  readonly input: {
@@ -4993,11 +4905,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
4993
4905
  readonly metadata?: {
4994
4906
  readonly [x: string]: unknown;
4995
4907
  } | undefined;
4996
- readonly durable?: {
4997
- readonly aggregateID: string;
4998
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4999
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5000
- } | undefined;
5001
4908
  readonly location?: {
5002
4909
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
5003
4910
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -5005,6 +4912,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5005
4912
  } | {
5006
4913
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
5007
4914
  readonly type: "session.next.tool.progress";
4915
+ readonly durable: {
4916
+ readonly aggregateID: string;
4917
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4918
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4919
+ };
5008
4920
  readonly data: {
5009
4921
  readonly structured: {
5010
4922
  readonly [x: string]: unknown;
@@ -5026,11 +4938,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5026
4938
  readonly metadata?: {
5027
4939
  readonly [x: string]: unknown;
5028
4940
  } | undefined;
5029
- readonly durable?: {
5030
- readonly aggregateID: string;
5031
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5032
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5033
- } | undefined;
5034
4941
  readonly location?: {
5035
4942
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
5036
4943
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -5038,6 +4945,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5038
4945
  } | {
5039
4946
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
5040
4947
  readonly type: "session.next.tool.success";
4948
+ readonly durable: {
4949
+ readonly aggregateID: string;
4950
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4951
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4952
+ };
5041
4953
  readonly data: {
5042
4954
  readonly structured: {
5043
4955
  readonly [x: string]: unknown;
@@ -5069,11 +4981,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5069
4981
  readonly metadata?: {
5070
4982
  readonly [x: string]: unknown;
5071
4983
  } | undefined;
5072
- readonly durable?: {
5073
- readonly aggregateID: string;
5074
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5075
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5076
- } | undefined;
5077
4984
  readonly location?: {
5078
4985
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
5079
4986
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -5081,6 +4988,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5081
4988
  } | {
5082
4989
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
5083
4990
  readonly type: "session.next.tool.failed";
4991
+ readonly durable: {
4992
+ readonly aggregateID: string;
4993
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
4994
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4995
+ };
5084
4996
  readonly data: {
5085
4997
  readonly error: {
5086
4998
  readonly type: "unknown";
@@ -5103,11 +5015,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5103
5015
  readonly metadata?: {
5104
5016
  readonly [x: string]: unknown;
5105
5017
  } | undefined;
5106
- readonly durable?: {
5107
- readonly aggregateID: string;
5108
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5109
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5110
- } | undefined;
5111
5018
  readonly location?: {
5112
5019
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
5113
5020
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -5115,6 +5022,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5115
5022
  } | {
5116
5023
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
5117
5024
  readonly type: "session.next.retried";
5025
+ readonly durable: {
5026
+ readonly aggregateID: string;
5027
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5028
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5029
+ };
5118
5030
  readonly data: {
5119
5031
  readonly attempt: number;
5120
5032
  readonly error: {
@@ -5135,11 +5047,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5135
5047
  readonly metadata?: {
5136
5048
  readonly [x: string]: unknown;
5137
5049
  } | undefined;
5138
- readonly durable?: {
5139
- readonly aggregateID: string;
5140
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5141
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5142
- } | undefined;
5143
5050
  readonly location?: {
5144
5051
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
5145
5052
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -5147,6 +5054,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5147
5054
  } | {
5148
5055
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
5149
5056
  readonly type: "session.next.compaction.started";
5057
+ readonly durable: {
5058
+ readonly aggregateID: string;
5059
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5060
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5061
+ };
5150
5062
  readonly data: {
5151
5063
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
5152
5064
  readonly reason: "auto" | "manual";
@@ -5156,11 +5068,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5156
5068
  readonly metadata?: {
5157
5069
  readonly [x: string]: unknown;
5158
5070
  } | undefined;
5159
- readonly durable?: {
5160
- readonly aggregateID: string;
5161
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5162
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5163
- } | undefined;
5164
5071
  readonly location?: {
5165
5072
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
5166
5073
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -5168,6 +5075,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5168
5075
  } | {
5169
5076
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
5170
5077
  readonly type: "session.next.compaction.ended";
5078
+ readonly durable: {
5079
+ readonly aggregateID: string;
5080
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5081
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5082
+ };
5171
5083
  readonly data: {
5172
5084
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
5173
5085
  readonly reason: "auto" | "manual";
@@ -5179,11 +5091,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5179
5091
  readonly metadata?: {
5180
5092
  readonly [x: string]: unknown;
5181
5093
  } | undefined;
5182
- readonly durable?: {
5183
- readonly aggregateID: string;
5184
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5185
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5186
- } | undefined;
5187
5094
  readonly location?: {
5188
5095
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
5189
5096
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -5191,6 +5098,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5191
5098
  } | {
5192
5099
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
5193
5100
  readonly type: "session.next.revert.staged";
5101
+ readonly durable: {
5102
+ readonly aggregateID: string;
5103
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5104
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5105
+ };
5194
5106
  readonly data: {
5195
5107
  readonly revert: {
5196
5108
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -5211,11 +5123,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5211
5123
  readonly metadata?: {
5212
5124
  readonly [x: string]: unknown;
5213
5125
  } | undefined;
5214
- readonly durable?: {
5215
- readonly aggregateID: string;
5216
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5217
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5218
- } | undefined;
5219
5126
  readonly location?: {
5220
5127
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
5221
5128
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -5223,6 +5130,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5223
5130
  } | {
5224
5131
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
5225
5132
  readonly type: "session.next.revert.cleared";
5133
+ readonly durable: {
5134
+ readonly aggregateID: string;
5135
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5136
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5137
+ };
5226
5138
  readonly data: {
5227
5139
  readonly timestamp: import("effect/DateTime").Utc;
5228
5140
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
@@ -5230,11 +5142,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5230
5142
  readonly metadata?: {
5231
5143
  readonly [x: string]: unknown;
5232
5144
  } | undefined;
5233
- readonly durable?: {
5234
- readonly aggregateID: string;
5235
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5236
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5237
- } | undefined;
5238
5145
  readonly location?: {
5239
5146
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
5240
5147
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
@@ -5242,6 +5149,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5242
5149
  } | {
5243
5150
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
5244
5151
  readonly type: "session.next.revert.committed";
5152
+ readonly durable: {
5153
+ readonly aggregateID: string;
5154
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5155
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5156
+ };
5245
5157
  readonly data: {
5246
5158
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
5247
5159
  readonly timestamp: import("effect/DateTime").Utc;
@@ -5250,11 +5162,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
5250
5162
  readonly metadata?: {
5251
5163
  readonly [x: string]: unknown;
5252
5164
  } | undefined;
5253
- readonly durable?: {
5254
- readonly aggregateID: string;
5255
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
5256
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
5257
- } | undefined;
5258
5165
  readonly location?: {
5259
5166
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
5260
5167
  readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;