@opencode/protocol 2.1.2 → 2.1.4

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.
@@ -1,7 +1,5 @@
1
- import { PromptInput } from "@opencode/schema/prompt-input";
2
1
  import { Session } from "@opencode/schema/session";
3
2
  import { InstructionEntry } from "@opencode/schema/instruction-entry";
4
- import { Event } from "@opencode/schema/event";
5
3
  import { Context, Schema } from "effect";
6
4
  import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from "effect/http-api";
7
5
  import { ConflictError, LocationNotFoundError, CommandExecutionError, CommandNotFoundError, FormAlreadySettledError, FormInvalidAnswerError, FormNotFoundError, InvalidCursorError, InvalidRequestError, MessageNotFoundError, ServiceUnavailableError, SessionBusyError, SessionNotFoundError, SkillNotFoundError, UnknownError } from "../errors.js";
@@ -81,7 +79,6 @@ export declare const SessionsQuery: Schema.Struct<{
81
79
  readonly search: Schema.optional<Schema.String>;
82
80
  readonly parentID: Schema.optional<Schema.Union<readonly [Schema.brand<Schema.String, "SessionID"> & {
83
81
  create: () => string & import("effect/Brand").Brand<"SessionID">;
84
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
85
82
  }, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
86
83
  readonly archived: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
87
84
  readonly directory: Schema.optional<Schema.brand<Schema.String, "AbsolutePath">>;
@@ -164,19 +161,16 @@ export declare const SessionsQuery: Schema.Struct<{
164
161
  export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, FormI extends HttpApiMiddleware.AnyId, FormS>(sessionLocationMiddleware: Context.Key<I, S>, formLocationMiddleware: Context.Key<FormI, FormS>) => HttpApiGroup.HttpApiGroup<"server.session", HttpApiEndpoint.HttpApiEndpoint<"session.active", "GET", "/api/session/active", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
165
162
  readonly data: Schema.$Record<Schema.brand<Schema.String, "SessionID"> & {
166
163
  create: () => string & import("effect/Brand").Brand<"SessionID">;
167
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
168
164
  }, Schema.Struct<{
169
165
  readonly type: Schema.Literal<"running">;
170
166
  }>>;
171
167
  }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.background", "POST", "/api/session/:sessionID/background", Schema.toCodecStringTree<Schema.Struct<{
172
168
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
173
169
  create: () => string & import("effect/Brand").Brand<"SessionID">;
174
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
175
170
  };
176
171
  }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.command", "POST", "/api/session/:sessionID/command", Schema.toCodecStringTree<Schema.Struct<{
177
172
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
178
173
  create: () => string & import("effect/Brand").Brand<"SessionID">;
179
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
180
174
  };
181
175
  }>>, never, Schema.toCodecJson<Schema.Struct<{
182
176
  readonly text: Schema.String;
@@ -193,18 +187,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
193
187
  readonly end: Schema.Finite;
194
188
  readonly text: Schema.String;
195
189
  }>>, never, never>;
196
- }> & {
197
- create: (input: PromptInput.FileAttachment) => {
198
- readonly uri: string;
199
- readonly name?: string | undefined;
200
- readonly description?: string | undefined;
201
- readonly mention?: {
202
- readonly start: number;
203
- readonly end: number;
204
- readonly text: string;
205
- } | undefined;
206
- };
207
- }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
190
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
208
191
  readonly uri: Schema.String;
209
192
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
210
193
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -217,18 +200,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
217
200
  readonly end: Schema.Finite;
218
201
  readonly text: Schema.String;
219
202
  }>>, never, never>;
220
- }> & {
221
- create: (input: PromptInput.FileAttachment) => {
222
- readonly uri: string;
223
- readonly name?: string | undefined;
224
- readonly description?: string | undefined;
225
- readonly mention?: {
226
- readonly start: number;
227
- readonly end: number;
228
- readonly text: string;
229
- } | undefined;
230
- };
231
- }>>, never, never>;
203
+ }>>>, never, never>;
232
204
  readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
233
205
  readonly name: Schema.String;
234
206
  readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
@@ -280,12 +252,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
280
252
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof CommandNotFoundError | typeof CommandExecutionError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.compact", "POST", "/api/session/:sessionID/compact", Schema.toCodecStringTree<Schema.Struct<{
281
253
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
282
254
  create: () => string & import("effect/Brand").Brand<"SessionID">;
283
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
284
255
  };
285
256
  }>>, never, Schema.toCodecJson<Schema.Struct<{
286
257
  readonly id: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
287
258
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
288
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
259
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
289
260
  }>;
290
261
  readonly delivery: Schema.optional<Schema.Literals<readonly ["steer", "queue"]>>;
291
262
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -295,11 +266,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
295
266
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
296
267
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
297
268
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
298
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
269
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
299
270
  };
300
271
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
301
272
  create: () => string & import("effect/Brand").Brand<"SessionID">;
302
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
303
273
  };
304
274
  readonly time: Schema.Struct<{
305
275
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -308,13 +278,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
308
278
  }>>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.context", "GET", "/api/session/:sessionID/context", Schema.toCodecStringTree<Schema.Struct<{
309
279
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
310
280
  create: () => string & import("effect/Brand").Brand<"SessionID">;
311
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
312
281
  };
313
282
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
314
283
  readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
315
284
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
316
285
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
317
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
286
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
318
287
  };
319
288
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
320
289
  readonly time: Schema.Struct<{
@@ -326,7 +295,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
326
295
  }>, Schema.Struct<{
327
296
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
328
297
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
329
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
298
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
330
299
  };
331
300
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
332
301
  readonly time: Schema.Struct<{
@@ -404,7 +373,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
404
373
  }>, Schema.Struct<{
405
374
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
406
375
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
407
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
376
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
408
377
  };
409
378
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
410
379
  readonly time: Schema.Struct<{
@@ -434,7 +403,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
434
403
  }>, Schema.Struct<{
435
404
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
436
405
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
437
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
406
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
438
407
  };
439
408
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
440
409
  readonly time: Schema.Struct<{
@@ -572,7 +541,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
572
541
  }>, Schema.Struct<{
573
542
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
574
543
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
575
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
544
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
576
545
  };
577
546
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
578
547
  readonly time: Schema.Struct<{
@@ -584,7 +553,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
584
553
  }>, Schema.Struct<{
585
554
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
586
555
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
587
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
556
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
588
557
  };
589
558
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
590
559
  readonly time: Schema.Struct<{
@@ -596,7 +565,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
596
565
  }>, Schema.Struct<{
597
566
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
598
567
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
599
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
568
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
600
569
  };
601
570
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
602
571
  readonly time: Schema.Struct<{
@@ -609,7 +578,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
609
578
  }>, Schema.Struct<{
610
579
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
611
580
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
612
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
581
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
613
582
  };
614
583
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
615
584
  readonly type: Schema.tag<"shell">;
@@ -638,7 +607,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
638
607
  }>, Schema.Struct<{
639
608
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
640
609
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
641
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
610
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
642
611
  };
643
612
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
644
613
  readonly type: Schema.tag<"assistant">;
@@ -838,7 +807,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
838
807
  }>, Schema.Union<readonly [Schema.Struct<{
839
808
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
840
809
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
841
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
810
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
842
811
  };
843
812
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
844
813
  readonly time: Schema.Struct<{
@@ -851,7 +820,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
851
820
  }>, Schema.Struct<{
852
821
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
853
822
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
854
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
823
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
855
824
  };
856
825
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
857
826
  readonly time: Schema.Struct<{
@@ -932,7 +901,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
932
901
  }>, Schema.Struct<{
933
902
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
934
903
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
935
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
904
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
936
905
  };
937
906
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
938
907
  readonly time: Schema.Struct<{
@@ -977,7 +946,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
977
946
  }>]>, Schema.Struct<{
978
947
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
979
948
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
980
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
949
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
981
950
  };
982
951
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
983
952
  readonly time: Schema.Struct<{
@@ -1010,11 +979,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1010
979
  }>>, Schema.toCodecJson<typeof UnknownError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.create", "POST", "/api/session", never, never, Schema.toCodecJson<Schema.Struct<{
1011
980
  readonly id: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
1012
981
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1013
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1014
982
  }>;
1015
983
  readonly parentID: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
1016
984
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1017
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1018
985
  }>;
1019
986
  readonly title: Schema.optional<Schema.String>;
1020
987
  readonly agent: Schema.optional<Schema.brand<Schema.String, "Agent.ID">>;
@@ -1054,49 +1021,44 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1054
1021
  readonly data: Schema.Struct<{
1055
1022
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
1056
1023
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1057
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1058
1024
  };
1059
1025
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
1060
1026
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1061
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1062
1027
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
1063
1028
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1064
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1065
1029
  }>, never, never>;
1066
1030
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1067
1031
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1068
1032
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1069
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1070
1033
  };
1071
1034
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
1072
1035
  readonly type: Schema.Literal<"before">;
1073
1036
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1074
1037
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1075
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1038
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1076
1039
  };
1077
1040
  }>, Schema.Struct<{
1078
1041
  readonly type: Schema.Literal<"through">;
1079
1042
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1080
1043
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1081
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1044
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1082
1045
  };
1083
1046
  }>]>;
1084
1047
  }>>>, Schema.optionalKey<Schema.Struct<{
1085
1048
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1086
1049
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1087
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1088
1050
  };
1089
1051
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
1090
1052
  readonly type: Schema.Literal<"before">;
1091
1053
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1092
1054
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1093
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1055
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1094
1056
  };
1095
1057
  }>, Schema.Struct<{
1096
1058
  readonly type: Schema.Literal<"through">;
1097
1059
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1098
1060
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1099
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1061
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1100
1062
  };
1101
1063
  }>]>;
1102
1064
  }>>, never, never>;
@@ -1184,7 +1146,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1184
1146
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1185
1147
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1186
1148
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1187
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1149
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1188
1150
  };
1189
1151
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1190
1152
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -1204,7 +1166,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1204
1166
  }>>>, Schema.optionalKey<Schema.Struct<{
1205
1167
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1206
1168
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1207
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1169
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1208
1170
  };
1209
1171
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1210
1172
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -1229,16 +1191,15 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1229
1191
  }>>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.diff", "GET", "/api/session/:sessionID/diff", Schema.toCodecStringTree<Schema.Struct<{
1230
1192
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
1231
1193
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1232
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1233
1194
  };
1234
1195
  }>>, Schema.toCodecStringTree<Schema.Struct<{
1235
1196
  readonly from: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
1236
1197
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1237
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1198
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1238
1199
  }>;
1239
1200
  readonly to: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
1240
1201
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1241
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1202
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1242
1203
  }>;
1243
1204
  readonly context: Schema.optional<Schema.compose<Schema.Int, Schema.NumberFromString>>;
1244
1205
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
@@ -1252,14 +1213,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1252
1213
  }>>, Schema.toCodecJson<typeof LocationNotFoundError | typeof InvalidRequestError | typeof UnknownError | typeof SessionNotFoundError | typeof MessageNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.environment", "PUT", "/api/session/:sessionID/environment", Schema.toCodecStringTree<Schema.Struct<{
1253
1214
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
1254
1215
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1255
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1256
1216
  };
1257
1217
  }>>, never, Schema.toCodecJson<Schema.Struct<{
1258
1218
  readonly variables: Schema.$Record<Schema.String, Schema.String>;
1259
1219
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.export", "GET", "/api/experimental/session/:sessionID/export", Schema.toCodecStringTree<Schema.Struct<{
1260
1220
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
1261
1221
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1262
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1263
1222
  };
1264
1223
  }>>, Schema.toCodecStringTree<Schema.Struct<{
1265
1224
  readonly sanitize: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
@@ -1268,49 +1227,44 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1268
1227
  readonly info: Schema.Struct<{
1269
1228
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
1270
1229
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1271
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1272
1230
  };
1273
1231
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
1274
1232
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1275
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1276
1233
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
1277
1234
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1278
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1279
1235
  }>, never, never>;
1280
1236
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1281
1237
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1282
1238
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1283
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1284
1239
  };
1285
1240
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
1286
1241
  readonly type: Schema.Literal<"before">;
1287
1242
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1288
1243
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1289
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1244
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1290
1245
  };
1291
1246
  }>, Schema.Struct<{
1292
1247
  readonly type: Schema.Literal<"through">;
1293
1248
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1294
1249
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1295
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1250
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1296
1251
  };
1297
1252
  }>]>;
1298
1253
  }>>>, Schema.optionalKey<Schema.Struct<{
1299
1254
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1300
1255
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1301
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1302
1256
  };
1303
1257
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
1304
1258
  readonly type: Schema.Literal<"before">;
1305
1259
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1306
1260
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1307
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1261
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1308
1262
  };
1309
1263
  }>, Schema.Struct<{
1310
1264
  readonly type: Schema.Literal<"through">;
1311
1265
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1312
1266
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1313
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1267
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1314
1268
  };
1315
1269
  }>]>;
1316
1270
  }>>, never, never>;
@@ -1398,7 +1352,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1398
1352
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1399
1353
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1400
1354
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1401
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1355
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1402
1356
  };
1403
1357
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1404
1358
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -1418,7 +1372,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1418
1372
  }>>>, Schema.optionalKey<Schema.Struct<{
1419
1373
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1420
1374
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1421
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1375
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1422
1376
  };
1423
1377
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1424
1378
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -1443,7 +1397,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1443
1397
  readonly messages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1444
1398
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1445
1399
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1446
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1400
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1447
1401
  };
1448
1402
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1449
1403
  readonly time: Schema.Struct<{
@@ -1455,7 +1409,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1455
1409
  }>, Schema.Struct<{
1456
1410
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1457
1411
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1458
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1412
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1459
1413
  };
1460
1414
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1461
1415
  readonly time: Schema.Struct<{
@@ -1533,7 +1487,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1533
1487
  }>, Schema.Struct<{
1534
1488
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1535
1489
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1536
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1490
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1537
1491
  };
1538
1492
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1539
1493
  readonly time: Schema.Struct<{
@@ -1563,7 +1517,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1563
1517
  }>, Schema.Struct<{
1564
1518
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1565
1519
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1566
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1520
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1567
1521
  };
1568
1522
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1569
1523
  readonly time: Schema.Struct<{
@@ -1701,7 +1655,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1701
1655
  }>, Schema.Struct<{
1702
1656
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1703
1657
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1704
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1658
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1705
1659
  };
1706
1660
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1707
1661
  readonly time: Schema.Struct<{
@@ -1713,7 +1667,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1713
1667
  }>, Schema.Struct<{
1714
1668
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1715
1669
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1716
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1670
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1717
1671
  };
1718
1672
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1719
1673
  readonly time: Schema.Struct<{
@@ -1725,7 +1679,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1725
1679
  }>, Schema.Struct<{
1726
1680
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1727
1681
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1728
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1682
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1729
1683
  };
1730
1684
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1731
1685
  readonly time: Schema.Struct<{
@@ -1738,7 +1692,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1738
1692
  }>, Schema.Struct<{
1739
1693
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1740
1694
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1741
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1695
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1742
1696
  };
1743
1697
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1744
1698
  readonly type: Schema.tag<"shell">;
@@ -1767,7 +1721,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1767
1721
  }>, Schema.Struct<{
1768
1722
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1769
1723
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1770
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1724
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1771
1725
  };
1772
1726
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1773
1727
  readonly type: Schema.tag<"assistant">;
@@ -1967,7 +1921,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1967
1921
  }>, Schema.Union<readonly [Schema.Struct<{
1968
1922
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1969
1923
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1970
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1924
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1971
1925
  };
1972
1926
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1973
1927
  readonly time: Schema.Struct<{
@@ -1980,7 +1934,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1980
1934
  }>, Schema.Struct<{
1981
1935
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1982
1936
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1983
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1937
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1984
1938
  };
1985
1939
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1986
1940
  readonly time: Schema.Struct<{
@@ -2061,7 +2015,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2061
2015
  }>, Schema.Struct<{
2062
2016
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
2063
2017
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2064
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2018
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2065
2019
  };
2066
2020
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2067
2021
  readonly time: Schema.Struct<{
@@ -2106,7 +2060,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2106
2060
  }>]>, Schema.Struct<{
2107
2061
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
2108
2062
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2109
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2063
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2110
2064
  };
2111
2065
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2112
2066
  readonly time: Schema.Struct<{
@@ -2140,60 +2094,54 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2140
2094
  }>>, Schema.toCodecJson<typeof UnknownError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.fork", "POST", "/api/session/:sessionID/fork", Schema.toCodecStringTree<Schema.Struct<{
2141
2095
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
2142
2096
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2143
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2144
2097
  };
2145
2098
  }>>, never, Schema.toCodecJson<Schema.Struct<{
2146
2099
  readonly before: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
2147
2100
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2148
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2101
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2149
2102
  }>;
2150
2103
  }>>, never, Schema.toCodecJson<Schema.Struct<{
2151
2104
  readonly data: Schema.Struct<{
2152
2105
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
2153
2106
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2154
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2155
2107
  };
2156
2108
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
2157
2109
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2158
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2159
2110
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
2160
2111
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2161
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2162
2112
  }>, never, never>;
2163
2113
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2164
2114
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2165
2115
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2166
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2167
2116
  };
2168
2117
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
2169
2118
  readonly type: Schema.Literal<"before">;
2170
2119
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2171
2120
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2172
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2121
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2173
2122
  };
2174
2123
  }>, Schema.Struct<{
2175
2124
  readonly type: Schema.Literal<"through">;
2176
2125
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2177
2126
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2178
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2127
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2179
2128
  };
2180
2129
  }>]>;
2181
2130
  }>>>, Schema.optionalKey<Schema.Struct<{
2182
2131
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2183
2132
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2184
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2185
2133
  };
2186
2134
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
2187
2135
  readonly type: Schema.Literal<"before">;
2188
2136
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2189
2137
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2190
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2138
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2191
2139
  };
2192
2140
  }>, Schema.Struct<{
2193
2141
  readonly type: Schema.Literal<"through">;
2194
2142
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2195
2143
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2196
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2144
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2197
2145
  };
2198
2146
  }>]>;
2199
2147
  }>>, never, never>;
@@ -2281,7 +2229,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2281
2229
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2282
2230
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2283
2231
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2284
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2232
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2285
2233
  };
2286
2234
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2287
2235
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -2301,7 +2249,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2301
2249
  }>>>, Schema.optionalKey<Schema.Struct<{
2302
2250
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2303
2251
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2304
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2252
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2305
2253
  };
2306
2254
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2307
2255
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -2867,7 +2815,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2867
2815
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof FormNotFoundError | typeof FormAlreadySettledError | typeof FormInvalidAnswerError>, FormI, HttpApiMiddleware.Requires<FormI>> | HttpApiEndpoint.HttpApiEndpoint<"session.generate", "POST", "/api/session/:sessionID/generate", Schema.toCodecStringTree<Schema.Struct<{
2868
2816
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
2869
2817
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2870
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2871
2818
  };
2872
2819
  }>>, never, Schema.toCodecJson<Schema.Struct<{
2873
2820
  readonly prompt: Schema.String;
@@ -2878,55 +2825,49 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2878
2825
  }>>, Schema.toCodecJson<typeof ServiceUnavailableError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.get", "GET", "/api/session/:sessionID", Schema.toCodecStringTree<Schema.Struct<{
2879
2826
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
2880
2827
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2881
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2882
2828
  };
2883
2829
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
2884
2830
  readonly data: Schema.Struct<{
2885
2831
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
2886
2832
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2887
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2888
2833
  };
2889
2834
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
2890
2835
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2891
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2892
2836
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
2893
2837
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2894
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2895
2838
  }>, never, never>;
2896
2839
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2897
2840
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2898
2841
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2899
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2900
2842
  };
2901
2843
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
2902
2844
  readonly type: Schema.Literal<"before">;
2903
2845
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2904
2846
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2905
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2847
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2906
2848
  };
2907
2849
  }>, Schema.Struct<{
2908
2850
  readonly type: Schema.Literal<"through">;
2909
2851
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2910
2852
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2911
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2853
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2912
2854
  };
2913
2855
  }>]>;
2914
2856
  }>>>, Schema.optionalKey<Schema.Struct<{
2915
2857
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2916
2858
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2917
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2918
2859
  };
2919
2860
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
2920
2861
  readonly type: Schema.Literal<"before">;
2921
2862
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2922
2863
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2923
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2864
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2924
2865
  };
2925
2866
  }>, Schema.Struct<{
2926
2867
  readonly type: Schema.Literal<"through">;
2927
2868
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2928
2869
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2929
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2870
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2930
2871
  };
2931
2872
  }>]>;
2932
2873
  }>>, never, never>;
@@ -3014,7 +2955,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3014
2955
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3015
2956
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3016
2957
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3017
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2958
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3018
2959
  };
3019
2960
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3020
2961
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -3034,7 +2975,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3034
2975
  }>>>, Schema.optionalKey<Schema.Struct<{
3035
2976
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3036
2977
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3037
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2978
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3038
2979
  };
3039
2980
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3040
2981
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -3060,49 +3001,44 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3060
3001
  readonly info: Schema.Struct<{
3061
3002
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
3062
3003
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3063
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3064
3004
  };
3065
3005
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
3066
3006
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3067
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3068
3007
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
3069
3008
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3070
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3071
3009
  }>, never, never>;
3072
3010
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3073
3011
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3074
3012
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3075
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3076
3013
  };
3077
3014
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
3078
3015
  readonly type: Schema.Literal<"before">;
3079
3016
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3080
3017
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3081
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3018
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3082
3019
  };
3083
3020
  }>, Schema.Struct<{
3084
3021
  readonly type: Schema.Literal<"through">;
3085
3022
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3086
3023
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3087
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3024
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3088
3025
  };
3089
3026
  }>]>;
3090
3027
  }>>>, Schema.optionalKey<Schema.Struct<{
3091
3028
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3092
3029
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3093
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3094
3030
  };
3095
3031
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
3096
3032
  readonly type: Schema.Literal<"before">;
3097
3033
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3098
3034
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3099
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3035
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3100
3036
  };
3101
3037
  }>, Schema.Struct<{
3102
3038
  readonly type: Schema.Literal<"through">;
3103
3039
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3104
3040
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3105
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3041
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3106
3042
  };
3107
3043
  }>]>;
3108
3044
  }>>, never, never>;
@@ -3190,7 +3126,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3190
3126
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3191
3127
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3192
3128
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3193
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3129
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3194
3130
  };
3195
3131
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3196
3132
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -3210,7 +3146,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3210
3146
  }>>>, Schema.optionalKey<Schema.Struct<{
3211
3147
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3212
3148
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3213
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3149
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3214
3150
  };
3215
3151
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3216
3152
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -3235,7 +3171,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3235
3171
  readonly messages: Schema.decodeTo<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
3236
3172
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3237
3173
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3238
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3174
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3239
3175
  };
3240
3176
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3241
3177
  readonly time: Schema.Struct<{
@@ -3247,7 +3183,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3247
3183
  }>, Schema.Struct<{
3248
3184
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3249
3185
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3250
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3186
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3251
3187
  };
3252
3188
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3253
3189
  readonly time: Schema.Struct<{
@@ -3325,7 +3261,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3325
3261
  }>, Schema.Struct<{
3326
3262
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3327
3263
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3328
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3264
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3329
3265
  };
3330
3266
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3331
3267
  readonly time: Schema.Struct<{
@@ -3355,7 +3291,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3355
3291
  }>, Schema.Struct<{
3356
3292
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3357
3293
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3358
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3294
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3359
3295
  };
3360
3296
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3361
3297
  readonly time: Schema.Struct<{
@@ -3493,7 +3429,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3493
3429
  }>, Schema.Struct<{
3494
3430
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3495
3431
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3496
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3432
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3497
3433
  };
3498
3434
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3499
3435
  readonly time: Schema.Struct<{
@@ -3505,7 +3441,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3505
3441
  }>, Schema.Struct<{
3506
3442
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3507
3443
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3508
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3444
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3509
3445
  };
3510
3446
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3511
3447
  readonly time: Schema.Struct<{
@@ -3517,7 +3453,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3517
3453
  }>, Schema.Struct<{
3518
3454
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3519
3455
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3520
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3456
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3521
3457
  };
3522
3458
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3523
3459
  readonly time: Schema.Struct<{
@@ -3530,7 +3466,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3530
3466
  }>, Schema.Struct<{
3531
3467
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3532
3468
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3533
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3469
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3534
3470
  };
3535
3471
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3536
3472
  readonly type: Schema.tag<"shell">;
@@ -3559,7 +3495,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3559
3495
  }>, Schema.Struct<{
3560
3496
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3561
3497
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3562
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3498
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3563
3499
  };
3564
3500
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3565
3501
  readonly type: Schema.tag<"assistant">;
@@ -3759,7 +3695,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3759
3695
  }>, Schema.Union<readonly [Schema.Struct<{
3760
3696
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3761
3697
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3762
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3698
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3763
3699
  };
3764
3700
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3765
3701
  readonly time: Schema.Struct<{
@@ -3772,7 +3708,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3772
3708
  }>, Schema.Struct<{
3773
3709
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3774
3710
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3775
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3711
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3776
3712
  };
3777
3713
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3778
3714
  readonly time: Schema.Struct<{
@@ -3853,7 +3789,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3853
3789
  }>, Schema.Struct<{
3854
3790
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3855
3791
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3856
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3792
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3857
3793
  };
3858
3794
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3859
3795
  readonly time: Schema.Struct<{
@@ -3898,7 +3834,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3898
3834
  }>]>, Schema.Struct<{
3899
3835
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3900
3836
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3901
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3837
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3902
3838
  };
3903
3839
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
3904
3840
  readonly time: Schema.Struct<{
@@ -3935,49 +3871,44 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3935
3871
  readonly data: Schema.Struct<{
3936
3872
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
3937
3873
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3938
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3939
3874
  };
3940
3875
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
3941
3876
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3942
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3943
3877
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
3944
3878
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3945
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3946
3879
  }>, never, never>;
3947
3880
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3948
3881
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3949
3882
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3950
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3951
3883
  };
3952
3884
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
3953
3885
  readonly type: Schema.Literal<"before">;
3954
3886
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3955
3887
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3956
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3888
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3957
3889
  };
3958
3890
  }>, Schema.Struct<{
3959
3891
  readonly type: Schema.Literal<"through">;
3960
3892
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3961
3893
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3962
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3894
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3963
3895
  };
3964
3896
  }>]>;
3965
3897
  }>>>, Schema.optionalKey<Schema.Struct<{
3966
3898
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3967
3899
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3968
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3969
3900
  };
3970
3901
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
3971
3902
  readonly type: Schema.Literal<"before">;
3972
3903
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3973
3904
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3974
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3905
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3975
3906
  };
3976
3907
  }>, Schema.Struct<{
3977
3908
  readonly type: Schema.Literal<"through">;
3978
3909
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3979
3910
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3980
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3911
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3981
3912
  };
3982
3913
  }>]>;
3983
3914
  }>>, never, never>;
@@ -4065,7 +3996,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4065
3996
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4066
3997
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4067
3998
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4068
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3999
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4069
4000
  };
4070
4001
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4071
4002
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -4085,7 +4016,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4085
4016
  }>>>, Schema.optionalKey<Schema.Struct<{
4086
4017
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4087
4018
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4088
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4019
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4089
4020
  };
4090
4021
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4091
4022
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -4110,16 +4041,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4110
4041
  }>>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.inbox.cancel", "DELETE", "/api/session/:sessionID/inbox/:inboxID", Schema.toCodecStringTree<Schema.Struct<{
4111
4042
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4112
4043
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4113
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4114
4044
  };
4115
4045
  inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4116
4046
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4117
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4047
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4118
4048
  };
4119
4049
  }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.inbox.list", "GET", "/api/session/:sessionID/inbox", Schema.toCodecStringTree<Schema.Struct<{
4120
4050
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4121
4051
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4122
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4123
4052
  };
4124
4053
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
4125
4054
  readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
@@ -4258,11 +4187,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4258
4187
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
4259
4188
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
4260
4189
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4261
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4190
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4262
4191
  };
4263
4192
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4264
4193
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4265
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4266
4194
  };
4267
4195
  readonly time: Schema.Struct<{
4268
4196
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -4277,11 +4205,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4277
4205
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
4278
4206
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
4279
4207
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4280
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4208
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4281
4209
  };
4282
4210
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4283
4211
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4284
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4285
4212
  };
4286
4213
  readonly time: Schema.Struct<{
4287
4214
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -4292,11 +4219,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4292
4219
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
4293
4220
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
4294
4221
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4295
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4222
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4296
4223
  };
4297
4224
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4298
4225
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4299
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4300
4226
  };
4301
4227
  readonly time: Schema.Struct<{
4302
4228
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -4306,11 +4232,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4306
4232
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
4307
4233
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
4308
4234
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4309
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4235
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4310
4236
  };
4311
4237
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4312
4238
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4313
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4314
4239
  };
4315
4240
  readonly time: Schema.Struct<{
4316
4241
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -4328,18 +4253,16 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4328
4253
  }>>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.inbox.update", "PATCH", "/api/session/:sessionID/inbox/:inboxID", Schema.toCodecStringTree<Schema.Struct<{
4329
4254
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4330
4255
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4331
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4332
4256
  };
4333
4257
  inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4334
4258
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4335
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4259
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4336
4260
  };
4337
4261
  }>>, never, Schema.toCodecJson<Schema.Struct<{
4338
4262
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
4339
4263
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.list", "GET", "/api/experimental/session/:sessionID/instructions/entries", Schema.toCodecStringTree<Schema.Struct<{
4340
4264
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4341
4265
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4342
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4343
4266
  };
4344
4267
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
4345
4268
  readonly data: Schema.$Array<Schema.Struct<{
@@ -4349,7 +4272,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4349
4272
  }>>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.put", "PUT", "/api/experimental/session/:sessionID/instructions/entries/:key", Schema.toCodecStringTree<Schema.Struct<{
4350
4273
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4351
4274
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4352
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4353
4275
  };
4354
4276
  key: Schema.String;
4355
4277
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -4357,13 +4279,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4357
4279
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof InstructionEntry.ValueTooLargeError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.remove", "DELETE", "/api/experimental/session/:sessionID/instructions/entries/:key", Schema.toCodecStringTree<Schema.Struct<{
4358
4280
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4359
4281
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4360
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4361
4282
  };
4362
4283
  key: Schema.String;
4363
4284
  }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.interrupt", "POST", "/api/session/:sessionID/interrupt", Schema.toCodecStringTree<Schema.Struct<{
4364
4285
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4365
4286
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4366
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4367
4287
  };
4368
4288
  }>>, Schema.toCodecStringTree<Schema.Struct<{
4369
4289
  resume: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
@@ -4374,7 +4294,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4374
4294
  readonly search: Schema.optional<Schema.String>;
4375
4295
  readonly parentID: Schema.optional<Schema.Union<readonly [Schema.brand<Schema.String, "SessionID"> & {
4376
4296
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4377
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4378
4297
  }, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
4379
4298
  readonly archived: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
4380
4299
  readonly directory: Schema.optional<Schema.brand<Schema.String, "AbsolutePath">>;
@@ -4457,49 +4376,44 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4457
4376
  readonly data: Schema.$Array<Schema.Struct<{
4458
4377
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
4459
4378
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4460
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4461
4379
  };
4462
4380
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
4463
4381
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4464
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4465
4382
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
4466
4383
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4467
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4468
4384
  }>, never, never>;
4469
4385
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4470
4386
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4471
4387
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4472
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4473
4388
  };
4474
4389
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
4475
4390
  readonly type: Schema.Literal<"before">;
4476
4391
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4477
4392
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4478
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4393
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4479
4394
  };
4480
4395
  }>, Schema.Struct<{
4481
4396
  readonly type: Schema.Literal<"through">;
4482
4397
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4483
4398
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4484
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4399
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4485
4400
  };
4486
4401
  }>]>;
4487
4402
  }>>>, Schema.optionalKey<Schema.Struct<{
4488
4403
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4489
4404
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4490
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4491
4405
  };
4492
4406
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
4493
4407
  readonly type: Schema.Literal<"before">;
4494
4408
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4495
4409
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4496
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4410
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4497
4411
  };
4498
4412
  }>, Schema.Struct<{
4499
4413
  readonly type: Schema.Literal<"through">;
4500
4414
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4501
4415
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4502
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4416
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4503
4417
  };
4504
4418
  }>]>;
4505
4419
  }>>, never, never>;
@@ -4587,7 +4501,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4587
4501
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4588
4502
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4589
4503
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4590
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4504
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4591
4505
  };
4592
4506
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4593
4507
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -4607,7 +4521,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4607
4521
  }>>>, Schema.optionalKey<Schema.Struct<{
4608
4522
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4609
4523
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4610
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4524
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4611
4525
  };
4612
4526
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4613
4527
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -4774,12 +4688,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4774
4688
  }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof InvalidCursorError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.log", "GET", "/api/experimental/session/:sessionID/log", Schema.toCodecStringTree<Schema.Struct<{
4775
4689
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4776
4690
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4777
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4778
4691
  };
4779
4692
  }>>, Schema.toCodecStringTree<Schema.Struct<{
4780
4693
  after: Schema.optional<Schema.compose<Schema.brand<Schema.Int, "Event.Seq">, Schema.NumberFromString>>;
4781
4694
  follow: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
4782
- }>>, never, never, HttpApiSchema.StreamSse<HttpApiSchema.SseEventFromData<Schema.Union<readonly [Schema.Union<readonly [...((Schema.Struct<{
4695
+ }>>, never, never, HttpApiSchema.StreamSse<HttpApiSchema.SseEventFromData<Schema.Union<readonly [Schema.toTaggedUnion<"type", readonly [...((Schema.Struct<{
4783
4696
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4784
4697
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
4785
4698
  };
@@ -4813,7 +4726,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4813
4726
  readonly data: Schema.Struct<{
4814
4727
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4815
4728
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4816
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4817
4729
  };
4818
4730
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
4819
4731
  readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
@@ -4828,7 +4740,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4828
4740
  data: Schema.Struct<{
4829
4741
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4830
4742
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4831
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4832
4743
  };
4833
4744
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
4834
4745
  readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
@@ -4867,7 +4778,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4867
4778
  readonly data: Schema.Struct<{
4868
4779
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4869
4780
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4870
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4871
4781
  };
4872
4782
  }>;
4873
4783
  }> & {
@@ -4880,7 +4790,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4880
4790
  data: Schema.Struct<{
4881
4791
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4882
4792
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4883
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4884
4793
  };
4885
4794
  }>;
4886
4795
  }) | (Schema.Struct<{
@@ -4917,7 +4826,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4917
4826
  readonly data: Schema.Struct<{
4918
4827
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4919
4828
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4920
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4921
4829
  };
4922
4830
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
4923
4831
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
@@ -5000,7 +4908,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5000
4908
  data: Schema.Struct<{
5001
4909
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5002
4910
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5003
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5004
4911
  };
5005
4912
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5006
4913
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
@@ -5107,7 +5014,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5107
5014
  readonly data: Schema.Struct<{
5108
5015
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5109
5016
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5110
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5111
5017
  };
5112
5018
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5113
5019
  readonly error: Schema.Struct<{
@@ -5123,10 +5029,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5123
5029
  }>;
5124
5030
  readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
5125
5031
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5126
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5032
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5127
5033
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
5128
5034
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5129
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5035
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5130
5036
  }>, never, never>;
5131
5037
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
5132
5038
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -5161,7 +5067,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5161
5067
  data: Schema.Struct<{
5162
5068
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5163
5069
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5164
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5165
5070
  };
5166
5071
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5167
5072
  readonly error: Schema.Struct<{
@@ -5177,10 +5082,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5177
5082
  }>;
5178
5083
  readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
5179
5084
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5180
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5085
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5181
5086
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
5182
5087
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5183
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5088
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5184
5089
  }>, never, never>;
5185
5090
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
5186
5091
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -5239,15 +5144,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5239
5144
  readonly data: Schema.Struct<{
5240
5145
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5241
5146
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5242
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5243
5147
  };
5244
5148
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5245
5149
  readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
5246
5150
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5247
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5151
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5248
5152
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
5249
5153
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5250
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5154
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5251
5155
  }>, never, never>;
5252
5156
  }>;
5253
5157
  }> & {
@@ -5260,15 +5164,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5260
5164
  data: Schema.Struct<{
5261
5165
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5262
5166
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5263
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5264
5167
  };
5265
5168
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5266
5169
  readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
5267
5170
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5268
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5171
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5269
5172
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
5270
5173
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5271
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5174
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5272
5175
  }>, never, never>;
5273
5176
  }>;
5274
5177
  }) | (Schema.Struct<{
@@ -5305,7 +5208,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5305
5208
  readonly data: Schema.Struct<{
5306
5209
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5307
5210
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5308
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5309
5211
  };
5310
5212
  readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
5311
5213
  global: string & import("effect/Brand").Brand<"Project.ID">;
@@ -5323,10 +5225,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5323
5225
  readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
5324
5226
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
5325
5227
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5326
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5327
5228
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
5328
5229
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5329
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5330
5230
  }>, never, never>;
5331
5231
  readonly slug: Schema.String;
5332
5232
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -5398,7 +5298,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5398
5298
  data: Schema.Struct<{
5399
5299
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5400
5300
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5401
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5402
5301
  };
5403
5302
  readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
5404
5303
  global: string & import("effect/Brand").Brand<"Project.ID">;
@@ -5416,10 +5315,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5416
5315
  readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
5417
5316
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
5418
5317
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5419
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5420
5318
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
5421
5319
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5422
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5423
5320
  }>, never, never>;
5424
5321
  readonly slug: Schema.String;
5425
5322
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -5515,7 +5412,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5515
5412
  readonly data: Schema.Struct<{
5516
5413
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5517
5414
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5518
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5519
5415
  };
5520
5416
  }>;
5521
5417
  }> & {
@@ -5528,7 +5424,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5528
5424
  data: Schema.Struct<{
5529
5425
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5530
5426
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5531
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5532
5427
  };
5533
5428
  }>;
5534
5429
  }) | (Schema.Struct<{
@@ -5565,7 +5460,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5565
5460
  readonly data: Schema.Struct<{
5566
5461
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5567
5462
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5568
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5569
5463
  };
5570
5464
  readonly error: Schema.Struct<{
5571
5465
  readonly type: Schema.String;
@@ -5589,7 +5483,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5589
5483
  data: Schema.Struct<{
5590
5484
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5591
5485
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5592
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5593
5486
  };
5594
5487
  readonly error: Schema.Struct<{
5595
5488
  readonly type: Schema.String;
@@ -5637,7 +5530,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5637
5530
  readonly data: Schema.Struct<{
5638
5531
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5639
5532
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5640
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5641
5533
  };
5642
5534
  readonly reason: Schema.Literals<readonly ["user", "shutdown", "superseded", "inactivity"]>;
5643
5535
  }>;
@@ -5651,7 +5543,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5651
5543
  data: Schema.Struct<{
5652
5544
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5653
5545
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5654
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5655
5546
  };
5656
5547
  readonly reason: Schema.Literals<readonly ["user", "shutdown", "superseded", "inactivity"]>;
5657
5548
  }>;
@@ -5689,7 +5580,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5689
5580
  readonly data: Schema.Struct<{
5690
5581
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5691
5582
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5692
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5693
5583
  };
5694
5584
  }>;
5695
5585
  }> & {
@@ -5702,7 +5592,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5702
5592
  data: Schema.Struct<{
5703
5593
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5704
5594
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5705
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5706
5595
  };
5707
5596
  }>;
5708
5597
  }) | (Schema.Struct<{
@@ -5739,7 +5628,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5739
5628
  readonly data: Schema.Struct<{
5740
5629
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5741
5630
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5742
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5743
5631
  };
5744
5632
  }>;
5745
5633
  }> & {
@@ -5752,7 +5640,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5752
5640
  data: Schema.Struct<{
5753
5641
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5754
5642
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5755
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5756
5643
  };
5757
5644
  }>;
5758
5645
  }) | (Schema.Struct<{
@@ -5789,23 +5676,21 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5789
5676
  readonly data: Schema.Struct<{
5790
5677
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5791
5678
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5792
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5793
5679
  };
5794
5680
  readonly parentID: Schema.brand<Schema.String, "SessionID"> & {
5795
5681
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5796
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5797
5682
  };
5798
5683
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
5799
5684
  readonly type: Schema.Literal<"before">;
5800
5685
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5801
5686
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5802
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5687
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5803
5688
  };
5804
5689
  }>, Schema.Struct<{
5805
5690
  readonly type: Schema.Literal<"through">;
5806
5691
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5807
5692
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5808
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5693
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5809
5694
  };
5810
5695
  }>]>;
5811
5696
  readonly instructions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.brand<Schema.String, "Instruction.Key">, Schema.brand<Schema.String, "Instruction.Hash">>>>, Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "Instruction.Key">, Schema.brand<Schema.String, "Instruction.Hash">>>, never, never>;
@@ -5829,23 +5714,21 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5829
5714
  data: Schema.Struct<{
5830
5715
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5831
5716
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5832
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5833
5717
  };
5834
5718
  readonly parentID: Schema.brand<Schema.String, "SessionID"> & {
5835
5719
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5836
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5837
5720
  };
5838
5721
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
5839
5722
  readonly type: Schema.Literal<"before">;
5840
5723
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5841
5724
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5842
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5725
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5843
5726
  };
5844
5727
  }>, Schema.Struct<{
5845
5728
  readonly type: Schema.Literal<"through">;
5846
5729
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5847
5730
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5848
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5731
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5849
5732
  };
5850
5733
  }>]>;
5851
5734
  readonly instructions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.brand<Schema.String, "Instruction.Key">, Schema.brand<Schema.String, "Instruction.Hash">>>>, Schema.optionalKey<Schema.$Record<Schema.brand<Schema.String, "Instruction.Key">, Schema.brand<Schema.String, "Instruction.Hash">>>, never, never>;
@@ -5893,11 +5776,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5893
5776
  readonly data: Schema.Struct<{
5894
5777
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5895
5778
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5896
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5897
5779
  };
5898
5780
  inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5899
5781
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5900
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5782
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5901
5783
  };
5902
5784
  }>;
5903
5785
  }> & {
@@ -5910,11 +5792,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5910
5792
  data: Schema.Struct<{
5911
5793
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5912
5794
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5913
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5914
5795
  };
5915
5796
  inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5916
5797
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5917
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5798
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5918
5799
  };
5919
5800
  }>;
5920
5801
  }) | (Schema.Struct<{
@@ -5951,11 +5832,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5951
5832
  readonly data: Schema.Struct<{
5952
5833
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5953
5834
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5954
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5955
5835
  };
5956
5836
  inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5957
5837
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5958
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5838
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5959
5839
  };
5960
5840
  }>;
5961
5841
  }> & {
@@ -5968,11 +5848,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5968
5848
  data: Schema.Struct<{
5969
5849
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5970
5850
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5971
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5972
5851
  };
5973
5852
  inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5974
5853
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5975
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5854
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5976
5855
  };
5977
5856
  }>;
5978
5857
  }) | (Schema.Struct<{
@@ -6009,11 +5888,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6009
5888
  readonly data: Schema.Struct<{
6010
5889
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6011
5890
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6012
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6013
5891
  };
6014
5892
  readonly inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6015
5893
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6016
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5894
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6017
5895
  };
6018
5896
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
6019
5897
  }>;
@@ -6027,11 +5905,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6027
5905
  data: Schema.Struct<{
6028
5906
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6029
5907
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6030
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6031
5908
  };
6032
5909
  readonly inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6033
5910
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6034
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5911
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6035
5912
  };
6036
5913
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
6037
5914
  }>;
@@ -6069,11 +5946,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6069
5946
  readonly data: Schema.Struct<{
6070
5947
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6071
5948
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6072
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6073
5949
  };
6074
5950
  readonly inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6075
5951
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6076
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5952
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6077
5953
  };
6078
5954
  readonly item: Schema.Union<readonly [Schema.Struct<{
6079
5955
  readonly type: Schema.tag<"user">;
@@ -6252,11 +6128,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6252
6128
  data: Schema.Struct<{
6253
6129
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6254
6130
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6255
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6256
6131
  };
6257
6132
  readonly inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6258
6133
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6259
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6134
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6260
6135
  };
6261
6136
  readonly item: Schema.Union<readonly [Schema.Struct<{
6262
6137
  readonly type: Schema.tag<"user">;
@@ -6459,7 +6334,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6459
6334
  readonly data: Schema.Struct<{
6460
6335
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6461
6336
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6462
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6463
6337
  };
6464
6338
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
6465
6339
  readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -6474,7 +6348,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6474
6348
  data: Schema.Struct<{
6475
6349
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6476
6350
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6477
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6478
6351
  };
6479
6352
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
6480
6353
  readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -6513,7 +6386,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6513
6386
  readonly data: Schema.Struct<{
6514
6387
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6515
6388
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6516
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6517
6389
  };
6518
6390
  readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
6519
6391
  }>;
@@ -6527,7 +6399,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6527
6399
  data: Schema.Struct<{
6528
6400
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6529
6401
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6530
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6531
6402
  };
6532
6403
  readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
6533
6404
  }>;
@@ -6565,7 +6436,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6565
6436
  readonly data: Schema.Struct<{
6566
6437
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6567
6438
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6568
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6569
6439
  };
6570
6440
  readonly model: Schema.Struct<{
6571
6441
  readonly id: Schema.brand<Schema.String, "Model.ID">;
@@ -6646,7 +6516,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6646
6516
  data: Schema.Struct<{
6647
6517
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6648
6518
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6649
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6650
6519
  };
6651
6520
  readonly model: Schema.Struct<{
6652
6521
  readonly id: Schema.brand<Schema.String, "Model.ID">;
@@ -6765,7 +6634,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6765
6634
  readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
6766
6635
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6767
6636
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6768
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6769
6637
  };
6770
6638
  }>;
6771
6639
  }> & {
@@ -6792,7 +6660,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6792
6660
  readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
6793
6661
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6794
6662
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6795
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6796
6663
  };
6797
6664
  }>;
6798
6665
  }) | (Schema.Struct<{
@@ -6829,7 +6696,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6829
6696
  readonly data: Schema.Struct<{
6830
6697
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6831
6698
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6832
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6833
6699
  };
6834
6700
  readonly permissions: Schema.$Array<Schema.Struct<{
6835
6701
  readonly action: Schema.String;
@@ -6847,7 +6713,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6847
6713
  data: Schema.Struct<{
6848
6714
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6849
6715
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6850
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6851
6716
  };
6852
6717
  readonly permissions: Schema.$Array<Schema.Struct<{
6853
6718
  readonly action: Schema.String;
@@ -6889,11 +6754,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6889
6754
  readonly data: Schema.Struct<{
6890
6755
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6891
6756
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6892
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6893
6757
  };
6894
6758
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6895
6759
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6896
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6760
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6897
6761
  };
6898
6762
  readonly ordinal: Schema.Int;
6899
6763
  readonly text: Schema.String;
@@ -6909,11 +6773,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6909
6773
  data: Schema.Struct<{
6910
6774
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6911
6775
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6912
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6913
6776
  };
6914
6777
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6915
6778
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6916
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6779
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6917
6780
  };
6918
6781
  readonly ordinal: Schema.Int;
6919
6782
  readonly text: Schema.String;
@@ -6953,11 +6816,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6953
6816
  readonly data: Schema.Struct<{
6954
6817
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6955
6818
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6956
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6957
6819
  };
6958
6820
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6959
6821
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6960
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6822
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6961
6823
  };
6962
6824
  readonly ordinal: Schema.Int;
6963
6825
  readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -6972,11 +6834,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6972
6834
  data: Schema.Struct<{
6973
6835
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6974
6836
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6975
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6976
6837
  };
6977
6838
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6978
6839
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6979
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6840
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6980
6841
  };
6981
6842
  readonly ordinal: Schema.Int;
6982
6843
  readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
@@ -7015,7 +6876,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7015
6876
  readonly data: Schema.Struct<{
7016
6877
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7017
6878
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7018
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7019
6879
  };
7020
6880
  readonly title: Schema.String;
7021
6881
  }>;
@@ -7029,7 +6889,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7029
6889
  data: Schema.Struct<{
7030
6890
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7031
6891
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7032
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7033
6892
  };
7034
6893
  readonly title: Schema.String;
7035
6894
  }>;
@@ -7067,11 +6926,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7067
6926
  readonly data: Schema.Struct<{
7068
6927
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7069
6928
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7070
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7071
6929
  };
7072
6930
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7073
6931
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7074
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6932
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7075
6933
  };
7076
6934
  readonly attempt: Schema.Int;
7077
6935
  readonly at: Schema.Int;
@@ -7097,11 +6955,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7097
6955
  data: Schema.Struct<{
7098
6956
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7099
6957
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7100
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7101
6958
  };
7102
6959
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7103
6960
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7104
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6961
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7105
6962
  };
7106
6963
  readonly attempt: Schema.Int;
7107
6964
  readonly at: Schema.Int;
@@ -7151,7 +7008,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7151
7008
  readonly data: Schema.Struct<{
7152
7009
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
7153
7010
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7154
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7155
7011
  };
7156
7012
  }>;
7157
7013
  }> & {
@@ -7164,7 +7020,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7164
7020
  data: Schema.Struct<{
7165
7021
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
7166
7022
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7167
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7168
7023
  };
7169
7024
  }>;
7170
7025
  }) | (Schema.Struct<{
@@ -7201,11 +7056,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7201
7056
  readonly data: Schema.Struct<{
7202
7057
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7203
7058
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7204
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7205
7059
  };
7206
7060
  readonly to: Schema.brand<Schema.String, "Session.Message.ID"> & {
7207
7061
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7208
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7062
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7209
7063
  };
7210
7064
  }>;
7211
7065
  }> & {
@@ -7218,11 +7072,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7218
7072
  data: Schema.Struct<{
7219
7073
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7220
7074
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7221
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7222
7075
  };
7223
7076
  readonly to: Schema.brand<Schema.String, "Session.Message.ID"> & {
7224
7077
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7225
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7078
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7226
7079
  };
7227
7080
  }>;
7228
7081
  }) | (Schema.Struct<{
@@ -7259,12 +7112,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7259
7112
  readonly data: Schema.Struct<{
7260
7113
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7261
7114
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7262
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7263
7115
  };
7264
7116
  readonly revert: Schema.Struct<{
7265
7117
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7266
7118
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7267
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7119
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7268
7120
  };
7269
7121
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
7270
7122
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -7293,12 +7145,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7293
7145
  data: Schema.Struct<{
7294
7146
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7295
7147
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7296
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7297
7148
  };
7298
7149
  readonly revert: Schema.Struct<{
7299
7150
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7300
7151
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7301
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7152
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7302
7153
  };
7303
7154
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
7304
7155
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -7351,7 +7202,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7351
7202
  readonly data: Schema.Struct<{
7352
7203
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7353
7204
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7354
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7355
7205
  };
7356
7206
  readonly shell: Schema.Struct<{
7357
7207
  readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
@@ -7389,7 +7239,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7389
7239
  data: Schema.Struct<{
7390
7240
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7391
7241
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7392
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7393
7242
  };
7394
7243
  readonly shell: Schema.Struct<{
7395
7244
  readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
@@ -7451,7 +7300,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7451
7300
  readonly data: Schema.Struct<{
7452
7301
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7453
7302
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7454
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7455
7303
  };
7456
7304
  readonly shell: Schema.Struct<{
7457
7305
  readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
@@ -7483,7 +7331,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7483
7331
  data: Schema.Struct<{
7484
7332
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7485
7333
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7486
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7487
7334
  };
7488
7335
  readonly shell: Schema.Struct<{
7489
7336
  readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
@@ -7539,7 +7386,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7539
7386
  readonly data: Schema.Struct<{
7540
7387
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7541
7388
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7542
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7543
7389
  };
7544
7390
  readonly id: Schema.brand<Schema.String, "Skill.ID">;
7545
7391
  readonly name: Schema.brand<Schema.String, "Skill.Name">;
@@ -7555,7 +7401,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7555
7401
  data: Schema.Struct<{
7556
7402
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7557
7403
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7558
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7559
7404
  };
7560
7405
  readonly id: Schema.brand<Schema.String, "Skill.ID">;
7561
7406
  readonly name: Schema.brand<Schema.String, "Skill.Name">;
@@ -7595,11 +7440,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7595
7440
  readonly data: Schema.Struct<{
7596
7441
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7597
7442
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7598
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7599
7443
  };
7600
7444
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7601
7445
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7602
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7446
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7603
7447
  };
7604
7448
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
7605
7449
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -7629,11 +7473,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7629
7473
  data: Schema.Struct<{
7630
7474
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7631
7475
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7632
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7633
7476
  };
7634
7477
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7635
7478
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7636
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7479
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7637
7480
  };
7638
7481
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
7639
7482
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -7687,11 +7530,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7687
7530
  readonly data: Schema.Struct<{
7688
7531
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7689
7532
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7690
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7691
7533
  };
7692
7534
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7693
7535
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7694
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7536
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7695
7537
  };
7696
7538
  readonly error: Schema.Struct<{
7697
7539
  readonly type: Schema.String;
@@ -7742,11 +7584,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7742
7584
  data: Schema.Struct<{
7743
7585
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7744
7586
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7745
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7746
7587
  };
7747
7588
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7748
7589
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7749
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7590
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7750
7591
  };
7751
7592
  readonly error: Schema.Struct<{
7752
7593
  readonly type: Schema.String;
@@ -7821,11 +7662,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7821
7662
  readonly data: Schema.Struct<{
7822
7663
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7823
7664
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7824
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7825
7665
  };
7826
7666
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7827
7667
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7828
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7668
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7829
7669
  };
7830
7670
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
7831
7671
  readonly model: Schema.Struct<{
@@ -7864,11 +7704,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7864
7704
  data: Schema.Struct<{
7865
7705
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7866
7706
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7867
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7868
7707
  };
7869
7708
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7870
7709
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7871
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7710
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7872
7711
  };
7873
7712
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
7874
7713
  readonly model: Schema.Struct<{
@@ -7931,11 +7770,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7931
7770
  readonly data: Schema.Struct<{
7932
7771
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7933
7772
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7934
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7935
7773
  };
7936
7774
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7937
7775
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7938
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7776
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7939
7777
  };
7940
7778
  }>;
7941
7779
  }> & {
@@ -7948,11 +7786,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7948
7786
  data: Schema.Struct<{
7949
7787
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7950
7788
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7951
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7952
7789
  };
7953
7790
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7954
7791
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7955
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7792
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7956
7793
  };
7957
7794
  }>;
7958
7795
  }) | (Schema.Struct<{
@@ -7989,7 +7826,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7989
7826
  readonly data: Schema.Struct<{
7990
7827
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7991
7828
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7992
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7993
7829
  };
7994
7830
  readonly text: Schema.String;
7995
7831
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -8005,7 +7841,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8005
7841
  data: Schema.Struct<{
8006
7842
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8007
7843
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8008
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8009
7844
  };
8010
7845
  readonly text: Schema.String;
8011
7846
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -8045,11 +7880,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8045
7880
  readonly data: Schema.Struct<{
8046
7881
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8047
7882
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8048
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8049
7883
  };
8050
7884
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8051
7885
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8052
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7886
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8053
7887
  };
8054
7888
  readonly ordinal: Schema.Int;
8055
7889
  readonly text: Schema.String;
@@ -8065,11 +7899,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8065
7899
  data: Schema.Struct<{
8066
7900
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8067
7901
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8068
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8069
7902
  };
8070
7903
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8071
7904
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8072
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7905
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8073
7906
  };
8074
7907
  readonly ordinal: Schema.Int;
8075
7908
  readonly text: Schema.String;
@@ -8109,11 +7942,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8109
7942
  readonly data: Schema.Struct<{
8110
7943
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8111
7944
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8112
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8113
7945
  };
8114
7946
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8115
7947
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8116
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7948
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8117
7949
  };
8118
7950
  readonly ordinal: Schema.Int;
8119
7951
  }>;
@@ -8127,11 +7959,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8127
7959
  data: Schema.Struct<{
8128
7960
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8129
7961
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8130
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8131
7962
  };
8132
7963
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8133
7964
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8134
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7965
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8135
7966
  };
8136
7967
  readonly ordinal: Schema.Int;
8137
7968
  }>;
@@ -8169,11 +8000,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8169
8000
  readonly data: Schema.Struct<{
8170
8001
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8171
8002
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8172
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8173
8003
  };
8174
8004
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8175
8005
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8176
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8006
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8177
8007
  };
8178
8008
  readonly id: Schema.String;
8179
8009
  readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
@@ -8190,11 +8020,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8190
8020
  data: Schema.Struct<{
8191
8021
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8192
8022
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8193
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8194
8023
  };
8195
8024
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8196
8025
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8197
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8026
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8198
8027
  };
8199
8028
  readonly id: Schema.String;
8200
8029
  readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
@@ -8235,11 +8064,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8235
8064
  readonly data: Schema.Struct<{
8236
8065
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8237
8066
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8238
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8239
8067
  };
8240
8068
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8241
8069
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8242
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8070
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8243
8071
  };
8244
8072
  readonly id: Schema.String;
8245
8073
  readonly error: Schema.Struct<{
@@ -8284,11 +8112,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8284
8112
  data: Schema.Struct<{
8285
8113
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8286
8114
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8287
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8288
8115
  };
8289
8116
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8290
8117
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8291
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8118
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8292
8119
  };
8293
8120
  readonly id: Schema.String;
8294
8121
  readonly error: Schema.Struct<{
@@ -8357,11 +8184,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8357
8184
  readonly data: Schema.Struct<{
8358
8185
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8359
8186
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8360
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8361
8187
  };
8362
8188
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8363
8189
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8364
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8190
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8365
8191
  };
8366
8192
  readonly id: Schema.String;
8367
8193
  readonly text: Schema.String;
@@ -8376,11 +8202,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8376
8202
  data: Schema.Struct<{
8377
8203
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8378
8204
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8379
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8380
8205
  };
8381
8206
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8382
8207
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8383
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8208
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8384
8209
  };
8385
8210
  readonly id: Schema.String;
8386
8211
  readonly text: Schema.String;
@@ -8419,11 +8244,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8419
8244
  readonly data: Schema.Struct<{
8420
8245
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8421
8246
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8422
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8423
8247
  };
8424
8248
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8425
8249
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8426
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8250
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8427
8251
  };
8428
8252
  readonly id: Schema.String;
8429
8253
  readonly name: Schema.String;
@@ -8438,11 +8262,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8438
8262
  data: Schema.Struct<{
8439
8263
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8440
8264
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8441
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8442
8265
  };
8443
8266
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8444
8267
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8445
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8268
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8446
8269
  };
8447
8270
  readonly id: Schema.String;
8448
8271
  readonly name: Schema.String;
@@ -8481,11 +8304,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8481
8304
  readonly data: Schema.Struct<{
8482
8305
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8483
8306
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8484
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8485
8307
  };
8486
8308
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8487
8309
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8488
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8310
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8489
8311
  };
8490
8312
  readonly id: Schema.String;
8491
8313
  readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
@@ -8511,11 +8333,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8511
8333
  data: Schema.Struct<{
8512
8334
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8513
8335
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8514
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8515
8336
  };
8516
8337
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8517
8338
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8518
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8339
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8519
8340
  };
8520
8341
  readonly id: Schema.String;
8521
8342
  readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
@@ -8565,7 +8386,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8565
8386
  readonly data: Schema.Struct<{
8566
8387
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
8567
8388
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8568
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8569
8389
  };
8570
8390
  }>;
8571
8391
  }> & {
@@ -8578,7 +8398,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8578
8398
  data: Schema.Struct<{
8579
8399
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
8580
8400
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8581
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8582
8401
  };
8583
8402
  }>;
8584
8403
  }) | (Schema.Struct<{
@@ -8615,7 +8434,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8615
8434
  readonly data: Schema.Struct<{
8616
8435
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8617
8436
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8618
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8619
8437
  };
8620
8438
  readonly idle: Schema.Finite;
8621
8439
  }>;
@@ -8629,7 +8447,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8629
8447
  data: Schema.Struct<{
8630
8448
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8631
8449
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8632
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8633
8450
  };
8634
8451
  readonly idle: Schema.Finite;
8635
8452
  }>;
@@ -8667,7 +8484,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8667
8484
  readonly data: Schema.Struct<{
8668
8485
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8669
8486
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8670
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8671
8487
  };
8672
8488
  readonly source: Schema.Literals<readonly ["title", "compaction"]>;
8673
8489
  readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -8693,7 +8509,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8693
8509
  data: Schema.Struct<{
8694
8510
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8695
8511
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8696
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8697
8512
  };
8698
8513
  readonly source: Schema.Literals<readonly ["title", "compaction"]>;
8699
8514
  readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -8743,11 +8558,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8743
8558
  readonly data: Schema.Struct<{
8744
8559
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8745
8560
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8746
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8747
8561
  };
8748
8562
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8749
8563
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8750
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8564
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8751
8565
  };
8752
8566
  readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
8753
8567
  readonly type: Schema.tag<"text">;
@@ -8840,11 +8654,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8840
8654
  data: Schema.Struct<{
8841
8655
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8842
8656
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8843
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8844
8657
  };
8845
8658
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8846
8659
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8847
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8660
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8848
8661
  };
8849
8662
  readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
8850
8663
  readonly type: Schema.tag<"text">;
@@ -9428,6 +9241,127 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
9428
9241
  };
9429
9242
  readonly text?: string | undefined;
9430
9243
  };
9244
+ } | {
9245
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
9246
+ readonly created: number;
9247
+ readonly metadata?: {
9248
+ readonly [x: string]: unknown;
9249
+ } | undefined;
9250
+ readonly type: "session.message.content.updated";
9251
+ readonly durable: {
9252
+ readonly aggregateID: string;
9253
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
9254
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
9255
+ };
9256
+ readonly location?: {
9257
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
9258
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
9259
+ } | undefined;
9260
+ readonly data: {
9261
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
9262
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
9263
+ readonly content: readonly ({
9264
+ readonly type: "tool";
9265
+ readonly id: string;
9266
+ readonly name: string;
9267
+ readonly executed?: boolean | undefined;
9268
+ readonly native?: {
9269
+ readonly [x: string]: unknown;
9270
+ } | undefined;
9271
+ readonly state: {
9272
+ readonly status: "streaming";
9273
+ readonly input: string;
9274
+ } | {
9275
+ readonly status: "running";
9276
+ readonly input: {
9277
+ readonly [x: string]: unknown;
9278
+ };
9279
+ readonly metadata: {
9280
+ readonly [x: string]: Schema.Json;
9281
+ };
9282
+ } | {
9283
+ readonly status: "completed";
9284
+ readonly input: {
9285
+ readonly [x: string]: unknown;
9286
+ };
9287
+ readonly content: readonly [{
9288
+ readonly type: "text";
9289
+ readonly text: string;
9290
+ } | {
9291
+ readonly type: "file";
9292
+ readonly uri: string;
9293
+ readonly mime: string;
9294
+ readonly name?: string | undefined;
9295
+ }, ...({
9296
+ readonly type: "text";
9297
+ readonly text: string;
9298
+ } | {
9299
+ readonly type: "file";
9300
+ readonly uri: string;
9301
+ readonly mime: string;
9302
+ readonly name?: string | undefined;
9303
+ })[]];
9304
+ readonly metadata?: {
9305
+ readonly [x: string]: Schema.Json;
9306
+ } | undefined;
9307
+ } | {
9308
+ readonly status: "error";
9309
+ readonly input: {
9310
+ readonly [x: string]: unknown;
9311
+ };
9312
+ readonly error: {
9313
+ readonly type: string;
9314
+ readonly message: string;
9315
+ readonly status?: number | undefined;
9316
+ readonly response?: {
9317
+ readonly body: string;
9318
+ } | undefined;
9319
+ readonly retryAfterMs?: number | undefined;
9320
+ };
9321
+ readonly content?: readonly [{
9322
+ readonly type: "text";
9323
+ readonly text: string;
9324
+ } | {
9325
+ readonly type: "file";
9326
+ readonly uri: string;
9327
+ readonly mime: string;
9328
+ readonly name?: string | undefined;
9329
+ }, ...({
9330
+ readonly type: "text";
9331
+ readonly text: string;
9332
+ } | {
9333
+ readonly type: "file";
9334
+ readonly uri: string;
9335
+ readonly mime: string;
9336
+ readonly name?: string | undefined;
9337
+ })[]] | undefined;
9338
+ readonly metadata?: {
9339
+ readonly [x: string]: Schema.Json;
9340
+ } | undefined;
9341
+ };
9342
+ readonly time: {
9343
+ readonly created: number;
9344
+ readonly ran?: number | undefined;
9345
+ readonly completed?: number | undefined;
9346
+ };
9347
+ } | {
9348
+ readonly type: "text";
9349
+ readonly text: string;
9350
+ readonly native?: {
9351
+ readonly [x: string]: unknown;
9352
+ } | undefined;
9353
+ } | {
9354
+ readonly type: "reasoning";
9355
+ readonly text: string;
9356
+ readonly native?: {
9357
+ readonly [x: string]: unknown;
9358
+ } | undefined;
9359
+ readonly time?: {
9360
+ readonly created: number;
9361
+ readonly completed?: number | undefined;
9362
+ } | undefined;
9363
+ })[];
9364
+ };
9431
9365
  } | {
9432
9366
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
9433
9367
  readonly created: number;
@@ -10197,27 +10131,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10197
10131
  readonly metadata?: {
10198
10132
  readonly [x: string]: unknown;
10199
10133
  } | undefined;
10200
- readonly type: "session.viewed";
10201
- readonly durable: {
10202
- readonly aggregateID: string;
10203
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
10204
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
10205
- };
10206
- readonly location?: {
10207
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
10208
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
10209
- } | undefined;
10210
- readonly data: {
10211
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
10212
- readonly idle: number;
10213
- };
10214
- } | {
10215
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
10216
- readonly created: number;
10217
- readonly metadata?: {
10218
- readonly [x: string]: unknown;
10219
- } | undefined;
10220
- readonly type: "session.message.content.updated";
10134
+ readonly type: "session.usage.recorded";
10221
10135
  readonly durable: {
10222
10136
  readonly aggregateID: string;
10223
10137
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -10229,108 +10143,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10229
10143
  } | undefined;
10230
10144
  readonly data: {
10231
10145
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
10232
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
10233
- readonly content: readonly ({
10234
- readonly type: "text";
10235
- readonly text: string;
10236
- readonly native?: {
10237
- readonly [x: string]: unknown;
10238
- } | undefined;
10239
- } | {
10240
- readonly type: "reasoning";
10241
- readonly text: string;
10242
- readonly native?: {
10243
- readonly [x: string]: unknown;
10244
- } | undefined;
10245
- readonly time?: {
10246
- readonly created: number;
10247
- readonly completed?: number | undefined;
10248
- } | undefined;
10249
- } | {
10250
- readonly type: "tool";
10251
- readonly id: string;
10252
- readonly name: string;
10253
- readonly executed?: boolean | undefined;
10254
- readonly native?: {
10255
- readonly [x: string]: unknown;
10256
- } | undefined;
10257
- readonly state: {
10258
- readonly status: "streaming";
10259
- readonly input: string;
10260
- } | {
10261
- readonly status: "running";
10262
- readonly input: {
10263
- readonly [x: string]: unknown;
10264
- };
10265
- readonly metadata: {
10266
- readonly [x: string]: Schema.Json;
10267
- };
10268
- } | {
10269
- readonly status: "completed";
10270
- readonly input: {
10271
- readonly [x: string]: unknown;
10272
- };
10273
- readonly content: readonly [{
10274
- readonly type: "text";
10275
- readonly text: string;
10276
- } | {
10277
- readonly type: "file";
10278
- readonly uri: string;
10279
- readonly mime: string;
10280
- readonly name?: string | undefined;
10281
- }, ...({
10282
- readonly type: "text";
10283
- readonly text: string;
10284
- } | {
10285
- readonly type: "file";
10286
- readonly uri: string;
10287
- readonly mime: string;
10288
- readonly name?: string | undefined;
10289
- })[]];
10290
- readonly metadata?: {
10291
- readonly [x: string]: Schema.Json;
10292
- } | undefined;
10293
- } | {
10294
- readonly status: "error";
10295
- readonly input: {
10296
- readonly [x: string]: unknown;
10297
- };
10298
- readonly error: {
10299
- readonly type: string;
10300
- readonly message: string;
10301
- readonly status?: number | undefined;
10302
- readonly response?: {
10303
- readonly body: string;
10304
- } | undefined;
10305
- readonly retryAfterMs?: number | undefined;
10306
- };
10307
- readonly content?: readonly [{
10308
- readonly type: "text";
10309
- readonly text: string;
10310
- } | {
10311
- readonly type: "file";
10312
- readonly uri: string;
10313
- readonly mime: string;
10314
- readonly name?: string | undefined;
10315
- }, ...({
10316
- readonly type: "text";
10317
- readonly text: string;
10318
- } | {
10319
- readonly type: "file";
10320
- readonly uri: string;
10321
- readonly mime: string;
10322
- readonly name?: string | undefined;
10323
- })[]] | undefined;
10324
- readonly metadata?: {
10325
- readonly [x: string]: Schema.Json;
10326
- } | undefined;
10327
- };
10328
- readonly time: {
10329
- readonly created: number;
10330
- readonly ran?: number | undefined;
10331
- readonly completed?: number | undefined;
10146
+ readonly source: "compaction" | "title";
10147
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
10148
+ readonly tokens: {
10149
+ readonly input: number;
10150
+ readonly output: number;
10151
+ readonly reasoning: number;
10152
+ readonly cache: {
10153
+ readonly read: number;
10154
+ readonly write: number;
10332
10155
  };
10333
- })[];
10156
+ };
10334
10157
  };
10335
10158
  } | {
10336
10159
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -10338,7 +10161,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10338
10161
  readonly metadata?: {
10339
10162
  readonly [x: string]: unknown;
10340
10163
  } | undefined;
10341
- readonly type: "session.usage.recorded";
10164
+ readonly type: "session.viewed";
10342
10165
  readonly durable: {
10343
10166
  readonly aggregateID: string;
10344
10167
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -10350,17 +10173,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10350
10173
  } | undefined;
10351
10174
  readonly data: {
10352
10175
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
10353
- readonly source: "compaction" | "title";
10354
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
10355
- readonly tokens: {
10356
- readonly input: number;
10357
- readonly output: number;
10358
- readonly reasoning: number;
10359
- readonly cache: {
10360
- readonly read: number;
10361
- readonly write: number;
10362
- };
10363
- };
10176
+ readonly idle: number;
10364
10177
  };
10365
10178
  } | {
10366
10179
  readonly type: "log.synced";
@@ -10369,17 +10182,16 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10369
10182
  }>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.message", "GET", "/api/session/:sessionID/message/:messageID", Schema.toCodecStringTree<Schema.Struct<{
10370
10183
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
10371
10184
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10372
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
10373
10185
  };
10374
10186
  messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
10375
10187
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10376
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10188
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10377
10189
  };
10378
10190
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
10379
10191
  readonly data: Schema.Union<readonly [Schema.Struct<{
10380
10192
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10381
10193
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10382
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10194
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10383
10195
  };
10384
10196
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
10385
10197
  readonly time: Schema.Struct<{
@@ -10391,7 +10203,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10391
10203
  }>, Schema.Struct<{
10392
10204
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10393
10205
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10394
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10206
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10395
10207
  };
10396
10208
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
10397
10209
  readonly time: Schema.Struct<{
@@ -10469,7 +10281,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10469
10281
  }>, Schema.Struct<{
10470
10282
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10471
10283
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10472
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10284
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10473
10285
  };
10474
10286
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
10475
10287
  readonly time: Schema.Struct<{
@@ -10499,7 +10311,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10499
10311
  }>, Schema.Struct<{
10500
10312
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10501
10313
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10502
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10314
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10503
10315
  };
10504
10316
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
10505
10317
  readonly time: Schema.Struct<{
@@ -10637,7 +10449,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10637
10449
  }>, Schema.Struct<{
10638
10450
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10639
10451
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10640
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10452
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10641
10453
  };
10642
10454
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
10643
10455
  readonly time: Schema.Struct<{
@@ -10649,7 +10461,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10649
10461
  }>, Schema.Struct<{
10650
10462
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10651
10463
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10652
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10464
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10653
10465
  };
10654
10466
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
10655
10467
  readonly time: Schema.Struct<{
@@ -10661,7 +10473,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10661
10473
  }>, Schema.Struct<{
10662
10474
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10663
10475
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10664
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10476
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10665
10477
  };
10666
10478
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
10667
10479
  readonly time: Schema.Struct<{
@@ -10674,7 +10486,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10674
10486
  }>, Schema.Struct<{
10675
10487
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10676
10488
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10677
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10489
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10678
10490
  };
10679
10491
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
10680
10492
  readonly type: Schema.tag<"shell">;
@@ -10703,7 +10515,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10703
10515
  }>, Schema.Struct<{
10704
10516
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10705
10517
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10706
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10518
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10707
10519
  };
10708
10520
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
10709
10521
  readonly type: Schema.tag<"assistant">;
@@ -10903,7 +10715,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10903
10715
  }>, Schema.Union<readonly [Schema.Struct<{
10904
10716
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10905
10717
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10906
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10718
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10907
10719
  };
10908
10720
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
10909
10721
  readonly time: Schema.Struct<{
@@ -10916,7 +10728,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10916
10728
  }>, Schema.Struct<{
10917
10729
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10918
10730
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10919
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10731
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10920
10732
  };
10921
10733
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
10922
10734
  readonly time: Schema.Struct<{
@@ -10997,7 +10809,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10997
10809
  }>, Schema.Struct<{
10998
10810
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10999
10811
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11000
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10812
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11001
10813
  };
11002
10814
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11003
10815
  readonly time: Schema.Struct<{
@@ -11042,7 +10854,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11042
10854
  }>]>, Schema.Struct<{
11043
10855
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
11044
10856
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11045
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10857
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11046
10858
  };
11047
10859
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11048
10860
  readonly time: Schema.Struct<{
@@ -11075,7 +10887,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11075
10887
  }>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof MessageNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.move", "POST", "/api/session/:sessionID/move", Schema.toCodecStringTree<Schema.Struct<{
11076
10888
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11077
10889
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11078
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11079
10890
  };
11080
10891
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11081
10892
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11083,7 +10894,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11083
10894
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof InvalidRequestError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.prompt", "POST", "/api/session/:sessionID/prompt", Schema.toCodecStringTree<Schema.Struct<{
11084
10895
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11085
10896
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11086
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11087
10897
  };
11088
10898
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11089
10899
  readonly text: Schema.String;
@@ -11100,18 +10910,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11100
10910
  readonly end: Schema.Finite;
11101
10911
  readonly text: Schema.String;
11102
10912
  }>>, never, never>;
11103
- }> & {
11104
- create: (input: PromptInput.FileAttachment) => {
11105
- readonly uri: string;
11106
- readonly name?: string | undefined;
11107
- readonly description?: string | undefined;
11108
- readonly mention?: {
11109
- readonly start: number;
11110
- readonly end: number;
11111
- readonly text: string;
11112
- } | undefined;
11113
- };
11114
- }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
10913
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
11115
10914
  readonly uri: Schema.String;
11116
10915
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11117
10916
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -11124,18 +10923,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11124
10923
  readonly end: Schema.Finite;
11125
10924
  readonly text: Schema.String;
11126
10925
  }>>, never, never>;
11127
- }> & {
11128
- create: (input: PromptInput.FileAttachment) => {
11129
- readonly uri: string;
11130
- readonly name?: string | undefined;
11131
- readonly description?: string | undefined;
11132
- readonly mention?: {
11133
- readonly start: number;
11134
- readonly end: number;
11135
- readonly text: string;
11136
- } | undefined;
11137
- };
11138
- }>>, never, never>;
10926
+ }>>>, never, never>;
11139
10927
  readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11140
10928
  readonly name: Schema.String;
11141
10929
  readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
@@ -11184,7 +10972,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11184
10972
  }>>>, never, never>;
11185
10973
  readonly id: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
11186
10974
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11187
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10975
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11188
10976
  }>;
11189
10977
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
11190
10978
  readonly delivery: Schema.optional<Schema.Literals<readonly ["steer", "queue"]>>;
@@ -11326,11 +11114,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11326
11114
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
11327
11115
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
11328
11116
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11329
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11117
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11330
11118
  };
11331
11119
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11332
11120
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11333
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11334
11121
  };
11335
11122
  readonly time: Schema.Struct<{
11336
11123
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -11339,34 +11126,30 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11339
11126
  }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof ConflictError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.remove", "DELETE", "/api/session/:sessionID", Schema.toCodecStringTree<Schema.Struct<{
11340
11127
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11341
11128
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11342
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11343
11129
  };
11344
11130
  }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.revert.clear", "DELETE", "/api/session/:sessionID/revert", Schema.toCodecStringTree<Schema.Struct<{
11345
11131
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11346
11132
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11347
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11348
11133
  };
11349
11134
  }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionBusyError | typeof UnknownError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.revert.commit", "POST", "/api/session/:sessionID/revert/commit", Schema.toCodecStringTree<Schema.Struct<{
11350
11135
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11351
11136
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11352
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11353
11137
  };
11354
11138
  }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionBusyError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.revert.stage", "POST", "/api/session/:sessionID/revert/stage", Schema.toCodecStringTree<Schema.Struct<{
11355
11139
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11356
11140
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11357
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11358
11141
  };
11359
11142
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11360
11143
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
11361
11144
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11362
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11145
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11363
11146
  };
11364
11147
  readonly files: Schema.optional<Schema.Boolean>;
11365
11148
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11366
11149
  readonly data: Schema.Struct<{
11367
11150
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
11368
11151
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11369
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11152
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11370
11153
  };
11371
11154
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11372
11155
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -11387,18 +11170,16 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11387
11170
  }>>, Schema.toCodecJson<typeof SessionBusyError | typeof UnknownError | typeof SessionNotFoundError | typeof MessageNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.shell", "POST", "/api/session/:sessionID/shell", Schema.toCodecStringTree<Schema.Struct<{
11388
11171
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11389
11172
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11390
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11391
11173
  };
11392
11174
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11393
11175
  readonly id: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
11394
11176
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11395
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11177
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11396
11178
  }>;
11397
11179
  readonly command: Schema.String;
11398
11180
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.skill", "POST", "/api/experimental/session/:sessionID/skill", Schema.toCodecStringTree<Schema.Struct<{
11399
11181
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11400
11182
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11401
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11402
11183
  };
11403
11184
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11404
11185
  readonly id: Schema.brand<Schema.String, "Skill.ID">;
@@ -11508,14 +11289,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11508
11289
  }>>, Schema.toCodecJson<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.switchAgent", "POST", "/api/session/:sessionID/agent", Schema.toCodecStringTree<Schema.Struct<{
11509
11290
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11510
11291
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11511
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11512
11292
  };
11513
11293
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11514
11294
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
11515
11295
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.switchModel", "POST", "/api/session/:sessionID/model", Schema.toCodecStringTree<Schema.Struct<{
11516
11296
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11517
11297
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11518
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11519
11298
  };
11520
11299
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11521
11300
  readonly model: Schema.Struct<{
@@ -11544,12 +11323,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11544
11323
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.synthetic", "POST", "/api/session/:sessionID/synthetic", Schema.toCodecStringTree<Schema.Struct<{
11545
11324
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11546
11325
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11547
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11548
11326
  };
11549
11327
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11550
11328
  readonly id: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
11551
11329
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11552
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11330
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11553
11331
  }>;
11554
11332
  readonly text: Schema.String;
11555
11333
  readonly description: Schema.optional<Schema.String>;
@@ -11567,11 +11345,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11567
11345
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
11568
11346
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
11569
11347
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11570
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11348
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11571
11349
  };
11572
11350
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11573
11351
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11574
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11575
11352
  };
11576
11353
  readonly time: Schema.Struct<{
11577
11354
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -11580,7 +11357,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11580
11357
  }>>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.update", "PATCH", "/api/session/:sessionID", Schema.toCodecStringTree<Schema.Struct<{
11581
11358
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11582
11359
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11583
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11584
11360
  };
11585
11361
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11586
11362
  readonly title: Schema.optional<Schema.String>;
@@ -11594,13 +11370,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11594
11370
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.view", "POST", "/api/session/:sessionID/view", Schema.toCodecStringTree<Schema.Struct<{
11595
11371
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11596
11372
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11597
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11598
11373
  };
11599
11374
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11600
11375
  readonly idle: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
11601
11376
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.wait", "POST", "/api/experimental/session/:sessionID/wait", Schema.toCodecStringTree<Schema.Struct<{
11602
11377
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11603
11378
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11604
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11605
11379
  };
11606
11380
  }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ServiceUnavailableError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>>, false>;