@opencode/protocol 2.1.3 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/api.d.ts +6 -4
  2. package/dist/api.js +7 -5
  3. package/dist/client.d.ts +1 -0
  4. package/dist/client.js +16 -2
  5. package/dist/errors.d.ts +32 -0
  6. package/dist/errors.js +35 -0
  7. package/dist/groups/agent.d.ts +12 -2
  8. package/dist/groups/agent.js +2 -1
  9. package/dist/groups/debug.d.ts +14 -1
  10. package/dist/groups/debug.js +26 -0
  11. package/dist/groups/event.d.ts +1235 -1467
  12. package/dist/groups/event.js +9 -0
  13. package/dist/groups/experimental.d.ts +238 -0
  14. package/dist/groups/experimental.js +4 -0
  15. package/dist/groups/fs.d.ts +15 -3
  16. package/dist/groups/fs.js +27 -1
  17. package/dist/groups/generate.d.ts +194 -3
  18. package/dist/groups/generate.js +41 -5
  19. package/dist/groups/mcp.d.ts +49 -25
  20. package/dist/groups/mcp.js +40 -4
  21. package/dist/groups/media.d.ts +8 -0
  22. package/dist/groups/media.js +18 -0
  23. package/dist/groups/message.d.ts +2266 -27
  24. package/dist/groups/message.js +29 -4
  25. package/dist/groups/model.d.ts +47 -0
  26. package/dist/groups/model.js +8 -2
  27. package/dist/groups/permission.d.ts +6 -13
  28. package/dist/groups/permission.js +4 -3
  29. package/dist/groups/persistent-pty.d.ts +0 -8
  30. package/dist/groups/plugin.d.ts +18 -2
  31. package/dist/groups/plugin.js +15 -1
  32. package/dist/groups/provider.d.ts +24 -0
  33. package/dist/groups/pty.d.ts +33 -33
  34. package/dist/groups/server.d.ts +2 -0
  35. package/dist/groups/server.js +2 -0
  36. package/dist/groups/session.d.ts +609 -551
  37. package/dist/groups/session.js +18 -34
  38. package/dist/groups/usage.d.ts +95 -0
  39. package/dist/groups/usage.js +22 -0
  40. package/dist/groups/vcs.d.ts +2 -0
  41. package/dist/groups/vcs.js +1 -0
  42. package/dist/groups/voice.d.ts +2 -18
  43. package/dist/groups/voice.js +3 -19
  44. package/package.json +6 -4
@@ -1,10 +1,256 @@
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";
6
+ /** Experimental: the `session.inbox.list` response for clients that opt into `experimental-media-uri`. */
7
+ export declare const SessionMediaInboxResponse: Schema.Struct<{
8
+ readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
9
+ readonly type: Schema.tag<"user">;
10
+ readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
11
+ readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
12
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
13
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
14
+ };
15
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
16
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
17
+ };
18
+ readonly time: Schema.Struct<{
19
+ readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
20
+ }>;
21
+ readonly payload: Schema.Struct<{
22
+ readonly text: Schema.String;
23
+ readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
24
+ readonly name: Schema.String;
25
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
26
+ readonly start: Schema.Finite;
27
+ readonly end: Schema.Finite;
28
+ readonly text: Schema.String;
29
+ }>>>, Schema.optionalKey<Schema.Struct<{
30
+ readonly start: Schema.Finite;
31
+ readonly end: Schema.Finite;
32
+ readonly text: Schema.String;
33
+ }>>, never, never>;
34
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
35
+ readonly name: Schema.String;
36
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
37
+ readonly start: Schema.Finite;
38
+ readonly end: Schema.Finite;
39
+ readonly text: Schema.String;
40
+ }>>>, Schema.optionalKey<Schema.Struct<{
41
+ readonly start: Schema.Finite;
42
+ readonly end: Schema.Finite;
43
+ readonly text: Schema.String;
44
+ }>>, never, never>;
45
+ }>>>, never, never>;
46
+ readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
47
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
48
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
49
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
50
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
51
+ readonly start: Schema.Finite;
52
+ readonly end: Schema.Finite;
53
+ readonly text: Schema.String;
54
+ }>>>, Schema.optionalKey<Schema.Struct<{
55
+ readonly start: Schema.Finite;
56
+ readonly end: Schema.Finite;
57
+ readonly text: Schema.String;
58
+ }>>, never, never>;
59
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
60
+ readonly id: Schema.brand<Schema.String, "Skill.ID">;
61
+ readonly name: Schema.brand<Schema.String, "Skill.Name">;
62
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
63
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
64
+ readonly start: Schema.Finite;
65
+ readonly end: Schema.Finite;
66
+ readonly text: Schema.String;
67
+ }>>>, Schema.optionalKey<Schema.Struct<{
68
+ readonly start: Schema.Finite;
69
+ readonly end: Schema.Finite;
70
+ readonly text: Schema.String;
71
+ }>>, never, never>;
72
+ }>>>, never, never>;
73
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
74
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
75
+ readonly data: Schema.String;
76
+ readonly mime: Schema.String;
77
+ readonly source: Schema.Union<readonly [Schema.Struct<{
78
+ readonly type: Schema.Literal<"inline">;
79
+ }>, Schema.Struct<{
80
+ readonly type: Schema.Literal<"uri">;
81
+ readonly uri: Schema.String;
82
+ }>]>;
83
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
84
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
85
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
86
+ readonly start: Schema.Finite;
87
+ readonly end: Schema.Finite;
88
+ readonly text: Schema.String;
89
+ }>>>, Schema.optionalKey<Schema.Struct<{
90
+ readonly start: Schema.Finite;
91
+ readonly end: Schema.Finite;
92
+ readonly text: Schema.String;
93
+ }>>, never, never>;
94
+ }> & {
95
+ create: (input: import("@opencode/schema/prompt").FileAttachment) => {
96
+ readonly data: string;
97
+ readonly mime: string;
98
+ readonly source: {
99
+ readonly type: "inline";
100
+ } | {
101
+ readonly type: "uri";
102
+ readonly uri: string;
103
+ };
104
+ readonly name?: string | undefined;
105
+ readonly description?: string | undefined;
106
+ readonly mention?: {
107
+ readonly start: number;
108
+ readonly end: number;
109
+ readonly text: string;
110
+ } | undefined;
111
+ };
112
+ }, Schema.Struct<{
113
+ readonly mime: Schema.String;
114
+ readonly source: Schema.Union<readonly [Schema.Struct<{
115
+ readonly type: Schema.Literal<"inline">;
116
+ }>, Schema.Struct<{
117
+ readonly type: Schema.Literal<"uri">;
118
+ readonly uri: Schema.String;
119
+ }>]>;
120
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
121
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
122
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
123
+ readonly start: Schema.Finite;
124
+ readonly end: Schema.Finite;
125
+ readonly text: Schema.String;
126
+ }>>>, Schema.optionalKey<Schema.Struct<{
127
+ readonly start: Schema.Finite;
128
+ readonly end: Schema.Finite;
129
+ readonly text: Schema.String;
130
+ }>>, never, never>;
131
+ readonly uri: Schema.String;
132
+ readonly bytes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
133
+ readonly width: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
134
+ readonly height: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
135
+ }>]>>>>, Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
136
+ readonly data: Schema.String;
137
+ readonly mime: Schema.String;
138
+ readonly source: Schema.Union<readonly [Schema.Struct<{
139
+ readonly type: Schema.Literal<"inline">;
140
+ }>, Schema.Struct<{
141
+ readonly type: Schema.Literal<"uri">;
142
+ readonly uri: Schema.String;
143
+ }>]>;
144
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
145
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
146
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
147
+ readonly start: Schema.Finite;
148
+ readonly end: Schema.Finite;
149
+ readonly text: Schema.String;
150
+ }>>>, Schema.optionalKey<Schema.Struct<{
151
+ readonly start: Schema.Finite;
152
+ readonly end: Schema.Finite;
153
+ readonly text: Schema.String;
154
+ }>>, never, never>;
155
+ }> & {
156
+ create: (input: import("@opencode/schema/prompt").FileAttachment) => {
157
+ readonly data: string;
158
+ readonly mime: string;
159
+ readonly source: {
160
+ readonly type: "inline";
161
+ } | {
162
+ readonly type: "uri";
163
+ readonly uri: string;
164
+ };
165
+ readonly name?: string | undefined;
166
+ readonly description?: string | undefined;
167
+ readonly mention?: {
168
+ readonly start: number;
169
+ readonly end: number;
170
+ readonly text: string;
171
+ } | undefined;
172
+ };
173
+ }, Schema.Struct<{
174
+ readonly mime: Schema.String;
175
+ readonly source: Schema.Union<readonly [Schema.Struct<{
176
+ readonly type: Schema.Literal<"inline">;
177
+ }>, Schema.Struct<{
178
+ readonly type: Schema.Literal<"uri">;
179
+ readonly uri: Schema.String;
180
+ }>]>;
181
+ readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
182
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
183
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
184
+ readonly start: Schema.Finite;
185
+ readonly end: Schema.Finite;
186
+ readonly text: Schema.String;
187
+ }>>>, Schema.optionalKey<Schema.Struct<{
188
+ readonly start: Schema.Finite;
189
+ readonly end: Schema.Finite;
190
+ readonly text: Schema.String;
191
+ }>>, never, never>;
192
+ readonly uri: Schema.String;
193
+ readonly bytes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
194
+ readonly width: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
195
+ readonly height: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
196
+ }>]>>>, never, never>;
197
+ }>;
198
+ }>, Schema.Struct<{
199
+ readonly type: Schema.tag<"synthetic">;
200
+ readonly payload: Schema.Struct<{
201
+ readonly text: Schema.String;
202
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
203
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
204
+ }>;
205
+ readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
206
+ readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
207
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
208
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
209
+ };
210
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
211
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
212
+ };
213
+ readonly time: Schema.Struct<{
214
+ readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
215
+ }>;
216
+ }>, Schema.Struct<{
217
+ readonly type: Schema.tag<"compaction">;
218
+ readonly payload: Schema.Struct<{}>;
219
+ readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
220
+ readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
221
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
222
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
223
+ };
224
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
225
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
226
+ };
227
+ readonly time: Schema.Struct<{
228
+ readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
229
+ }>;
230
+ }>, Schema.Struct<{
231
+ readonly type: Schema.tag<"move">;
232
+ readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
233
+ readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
234
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
235
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
236
+ };
237
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
238
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
239
+ };
240
+ readonly time: Schema.Struct<{
241
+ readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
242
+ }>;
243
+ readonly payload: Schema.Struct<{
244
+ readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
245
+ global: string & import("effect/Brand").Brand<"Project.ID">;
246
+ };
247
+ readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
248
+ readonly location: Schema.Struct<{
249
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
250
+ }>;
251
+ }>;
252
+ }>]>>;
253
+ }>;
8
254
  export declare const SessionsCursor: Schema.brand<Schema.String, "SessionsCursor"> & {
9
255
  make: (input: {
10
256
  readonly order?: "asc" | "desc" | undefined;
@@ -81,7 +327,6 @@ export declare const SessionsQuery: Schema.Struct<{
81
327
  readonly search: Schema.optional<Schema.String>;
82
328
  readonly parentID: Schema.optional<Schema.Union<readonly [Schema.brand<Schema.String, "SessionID"> & {
83
329
  create: () => string & import("effect/Brand").Brand<"SessionID">;
84
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
85
330
  }, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
86
331
  readonly archived: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
87
332
  readonly directory: Schema.optional<Schema.brand<Schema.String, "AbsolutePath">>;
@@ -164,19 +409,16 @@ export declare const SessionsQuery: Schema.Struct<{
164
409
  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
410
  readonly data: Schema.$Record<Schema.brand<Schema.String, "SessionID"> & {
166
411
  create: () => string & import("effect/Brand").Brand<"SessionID">;
167
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
168
412
  }, Schema.Struct<{
169
413
  readonly type: Schema.Literal<"running">;
170
414
  }>>;
171
415
  }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.background", "POST", "/api/session/:sessionID/background", Schema.toCodecStringTree<Schema.Struct<{
172
416
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
173
417
  create: () => string & import("effect/Brand").Brand<"SessionID">;
174
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
175
418
  };
176
- }>>, 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<{
419
+ }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.command", "POST", "/api/session/:sessionID/command", Schema.toCodecStringTree<Schema.Struct<{
177
420
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
178
421
  create: () => string & import("effect/Brand").Brand<"SessionID">;
179
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
180
422
  };
181
423
  }>>, never, Schema.toCodecJson<Schema.Struct<{
182
424
  readonly text: Schema.String;
@@ -193,18 +435,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
193
435
  readonly end: Schema.Finite;
194
436
  readonly text: Schema.String;
195
437
  }>>, 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<{
438
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
208
439
  readonly uri: Schema.String;
209
440
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
210
441
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -217,18 +448,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
217
448
  readonly end: Schema.Finite;
218
449
  readonly text: Schema.String;
219
450
  }>>, 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>;
451
+ }>>>, never, never>;
232
452
  readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
233
453
  readonly name: Schema.String;
234
454
  readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
@@ -280,12 +500,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
280
500
  }>>, 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
501
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
282
502
  create: () => string & import("effect/Brand").Brand<"SessionID">;
283
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
284
503
  };
285
504
  }>>, never, Schema.toCodecJson<Schema.Struct<{
286
505
  readonly id: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
287
506
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
288
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
507
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
289
508
  }>;
290
509
  readonly delivery: Schema.optional<Schema.Literals<readonly ["steer", "queue"]>>;
291
510
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -295,11 +514,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
295
514
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
296
515
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
297
516
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
298
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
517
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
299
518
  };
300
519
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
301
520
  create: () => string & import("effect/Brand").Brand<"SessionID">;
302
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
303
521
  };
304
522
  readonly time: Schema.Struct<{
305
523
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -308,13 +526,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
308
526
  }>>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.context", "GET", "/api/session/:sessionID/context", Schema.toCodecStringTree<Schema.Struct<{
309
527
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
310
528
  create: () => string & import("effect/Brand").Brand<"SessionID">;
311
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
312
529
  };
313
530
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
314
531
  readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
315
532
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
316
533
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
317
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
534
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
318
535
  };
319
536
  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
537
  readonly time: Schema.Struct<{
@@ -326,7 +543,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
326
543
  }>, Schema.Struct<{
327
544
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
328
545
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
329
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
546
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
330
547
  };
331
548
  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
549
  readonly time: Schema.Struct<{
@@ -404,7 +621,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
404
621
  }>, Schema.Struct<{
405
622
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
406
623
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
407
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
624
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
408
625
  };
409
626
  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
627
  readonly time: Schema.Struct<{
@@ -434,7 +651,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
434
651
  }>, Schema.Struct<{
435
652
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
436
653
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
437
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
654
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
438
655
  };
439
656
  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
657
  readonly time: Schema.Struct<{
@@ -572,7 +789,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
572
789
  }>, Schema.Struct<{
573
790
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
574
791
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
575
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
792
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
576
793
  };
577
794
  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
795
  readonly time: Schema.Struct<{
@@ -584,7 +801,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
584
801
  }>, Schema.Struct<{
585
802
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
586
803
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
587
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
804
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
588
805
  };
589
806
  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
807
  readonly time: Schema.Struct<{
@@ -596,7 +813,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
596
813
  }>, Schema.Struct<{
597
814
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
598
815
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
599
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
816
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
600
817
  };
601
818
  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
819
  readonly time: Schema.Struct<{
@@ -609,7 +826,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
609
826
  }>, Schema.Struct<{
610
827
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
611
828
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
612
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
829
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
613
830
  };
614
831
  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
832
  readonly type: Schema.tag<"shell">;
@@ -638,7 +855,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
638
855
  }>, Schema.Struct<{
639
856
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
640
857
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
641
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
858
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
642
859
  };
643
860
  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
861
  readonly type: Schema.tag<"assistant">;
@@ -838,7 +1055,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
838
1055
  }>, Schema.Union<readonly [Schema.Struct<{
839
1056
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
840
1057
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
841
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1058
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
842
1059
  };
843
1060
  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
1061
  readonly time: Schema.Struct<{
@@ -851,7 +1068,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
851
1068
  }>, Schema.Struct<{
852
1069
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
853
1070
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
854
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1071
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
855
1072
  };
856
1073
  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
1074
  readonly time: Schema.Struct<{
@@ -932,7 +1149,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
932
1149
  }>, Schema.Struct<{
933
1150
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
934
1151
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
935
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1152
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
936
1153
  };
937
1154
  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
1155
  readonly time: Schema.Struct<{
@@ -977,7 +1194,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
977
1194
  }>]>, Schema.Struct<{
978
1195
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
979
1196
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
980
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1197
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
981
1198
  };
982
1199
  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
1200
  readonly time: Schema.Struct<{
@@ -1010,11 +1227,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1010
1227
  }>>, Schema.toCodecJson<typeof UnknownError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.create", "POST", "/api/session", never, never, Schema.toCodecJson<Schema.Struct<{
1011
1228
  readonly id: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
1012
1229
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1013
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1014
1230
  }>;
1015
1231
  readonly parentID: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
1016
1232
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1017
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1018
1233
  }>;
1019
1234
  readonly title: Schema.optional<Schema.String>;
1020
1235
  readonly agent: Schema.optional<Schema.brand<Schema.String, "Agent.ID">>;
@@ -1054,49 +1269,44 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1054
1269
  readonly data: Schema.Struct<{
1055
1270
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
1056
1271
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1057
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1058
1272
  };
1059
1273
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
1060
1274
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1061
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1062
1275
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
1063
1276
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1064
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1065
1277
  }>, never, never>;
1066
1278
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1067
1279
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1068
1280
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1069
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1070
1281
  };
1071
1282
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
1072
1283
  readonly type: Schema.Literal<"before">;
1073
1284
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1074
1285
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1075
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1286
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1076
1287
  };
1077
1288
  }>, Schema.Struct<{
1078
1289
  readonly type: Schema.Literal<"through">;
1079
1290
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1080
1291
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1081
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1292
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1082
1293
  };
1083
1294
  }>]>;
1084
1295
  }>>>, Schema.optionalKey<Schema.Struct<{
1085
1296
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1086
1297
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1087
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1088
1298
  };
1089
1299
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
1090
1300
  readonly type: Schema.Literal<"before">;
1091
1301
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1092
1302
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1093
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1303
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1094
1304
  };
1095
1305
  }>, Schema.Struct<{
1096
1306
  readonly type: Schema.Literal<"through">;
1097
1307
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1098
1308
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1099
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1309
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1100
1310
  };
1101
1311
  }>]>;
1102
1312
  }>>, never, never>;
@@ -1184,7 +1394,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1184
1394
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1185
1395
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1186
1396
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1187
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1397
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1188
1398
  };
1189
1399
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1190
1400
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -1194,17 +1404,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1194
1404
  readonly additions: Schema.Int;
1195
1405
  readonly deletions: Schema.Int;
1196
1406
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
1407
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
1197
1408
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
1198
1409
  readonly file: Schema.String;
1199
1410
  readonly patch: Schema.String;
1200
1411
  readonly additions: Schema.Int;
1201
1412
  readonly deletions: Schema.Int;
1202
1413
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
1414
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
1203
1415
  }>>>, never, never>;
1204
1416
  }>>>, Schema.optionalKey<Schema.Struct<{
1205
1417
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1206
1418
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1207
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1419
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1208
1420
  };
1209
1421
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1210
1422
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -1214,12 +1426,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1214
1426
  readonly additions: Schema.Int;
1215
1427
  readonly deletions: Schema.Int;
1216
1428
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
1429
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
1217
1430
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
1218
1431
  readonly file: Schema.String;
1219
1432
  readonly patch: Schema.String;
1220
1433
  readonly additions: Schema.Int;
1221
1434
  readonly deletions: Schema.Int;
1222
1435
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
1436
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
1223
1437
  }>>>, never, never>;
1224
1438
  }>>, never, never>;
1225
1439
  readonly location: Schema.Struct<{
@@ -1229,16 +1443,15 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1229
1443
  }>>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.diff", "GET", "/api/session/:sessionID/diff", Schema.toCodecStringTree<Schema.Struct<{
1230
1444
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
1231
1445
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1232
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1233
1446
  };
1234
1447
  }>>, Schema.toCodecStringTree<Schema.Struct<{
1235
1448
  readonly from: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
1236
1449
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1237
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1450
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1238
1451
  }>;
1239
1452
  readonly to: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
1240
1453
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1241
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1454
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1242
1455
  }>;
1243
1456
  readonly context: Schema.optional<Schema.compose<Schema.Int, Schema.NumberFromString>>;
1244
1457
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
@@ -1248,18 +1461,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1248
1461
  readonly additions: Schema.Int;
1249
1462
  readonly deletions: Schema.Int;
1250
1463
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
1464
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
1251
1465
  }>>;
1252
1466
  }>>, 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
1467
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
1254
1468
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1255
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1256
1469
  };
1257
1470
  }>>, never, Schema.toCodecJson<Schema.Struct<{
1258
1471
  readonly variables: Schema.$Record<Schema.String, Schema.String>;
1259
1472
  }>>, 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
1473
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
1261
1474
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1262
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1263
1475
  };
1264
1476
  }>>, Schema.toCodecStringTree<Schema.Struct<{
1265
1477
  readonly sanitize: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
@@ -1268,49 +1480,44 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1268
1480
  readonly info: Schema.Struct<{
1269
1481
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
1270
1482
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1271
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1272
1483
  };
1273
1484
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
1274
1485
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1275
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1276
1486
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
1277
1487
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1278
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1279
1488
  }>, never, never>;
1280
1489
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1281
1490
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1282
1491
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1283
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1284
1492
  };
1285
1493
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
1286
1494
  readonly type: Schema.Literal<"before">;
1287
1495
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1288
1496
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1289
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1497
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1290
1498
  };
1291
1499
  }>, Schema.Struct<{
1292
1500
  readonly type: Schema.Literal<"through">;
1293
1501
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1294
1502
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1295
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1503
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1296
1504
  };
1297
1505
  }>]>;
1298
1506
  }>>>, Schema.optionalKey<Schema.Struct<{
1299
1507
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1300
1508
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1301
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1302
1509
  };
1303
1510
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
1304
1511
  readonly type: Schema.Literal<"before">;
1305
1512
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1306
1513
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1307
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1514
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1308
1515
  };
1309
1516
  }>, Schema.Struct<{
1310
1517
  readonly type: Schema.Literal<"through">;
1311
1518
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1312
1519
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1313
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1520
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1314
1521
  };
1315
1522
  }>]>;
1316
1523
  }>>, never, never>;
@@ -1398,7 +1605,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1398
1605
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
1399
1606
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1400
1607
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1401
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1608
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1402
1609
  };
1403
1610
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1404
1611
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -1408,17 +1615,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1408
1615
  readonly additions: Schema.Int;
1409
1616
  readonly deletions: Schema.Int;
1410
1617
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
1618
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
1411
1619
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
1412
1620
  readonly file: Schema.String;
1413
1621
  readonly patch: Schema.String;
1414
1622
  readonly additions: Schema.Int;
1415
1623
  readonly deletions: Schema.Int;
1416
1624
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
1625
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
1417
1626
  }>>>, never, never>;
1418
1627
  }>>>, Schema.optionalKey<Schema.Struct<{
1419
1628
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
1420
1629
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1421
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1630
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1422
1631
  };
1423
1632
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1424
1633
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -1428,12 +1637,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1428
1637
  readonly additions: Schema.Int;
1429
1638
  readonly deletions: Schema.Int;
1430
1639
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
1640
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
1431
1641
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
1432
1642
  readonly file: Schema.String;
1433
1643
  readonly patch: Schema.String;
1434
1644
  readonly additions: Schema.Int;
1435
1645
  readonly deletions: Schema.Int;
1436
1646
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
1647
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
1437
1648
  }>>>, never, never>;
1438
1649
  }>>, never, never>;
1439
1650
  readonly location: Schema.Struct<{
@@ -1443,7 +1654,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1443
1654
  readonly messages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1444
1655
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1445
1656
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1446
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1657
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1447
1658
  };
1448
1659
  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
1660
  readonly time: Schema.Struct<{
@@ -1455,7 +1666,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1455
1666
  }>, Schema.Struct<{
1456
1667
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1457
1668
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1458
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1669
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1459
1670
  };
1460
1671
  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
1672
  readonly time: Schema.Struct<{
@@ -1533,7 +1744,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1533
1744
  }>, Schema.Struct<{
1534
1745
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1535
1746
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1536
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1747
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1537
1748
  };
1538
1749
  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
1750
  readonly time: Schema.Struct<{
@@ -1563,7 +1774,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1563
1774
  }>, Schema.Struct<{
1564
1775
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1565
1776
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1566
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1777
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1567
1778
  };
1568
1779
  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
1780
  readonly time: Schema.Struct<{
@@ -1701,7 +1912,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1701
1912
  }>, Schema.Struct<{
1702
1913
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1703
1914
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1704
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1915
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1705
1916
  };
1706
1917
  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
1918
  readonly time: Schema.Struct<{
@@ -1713,7 +1924,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1713
1924
  }>, Schema.Struct<{
1714
1925
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1715
1926
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1716
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1927
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1717
1928
  };
1718
1929
  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
1930
  readonly time: Schema.Struct<{
@@ -1725,7 +1936,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1725
1936
  }>, Schema.Struct<{
1726
1937
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1727
1938
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1728
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1939
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1729
1940
  };
1730
1941
  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
1942
  readonly time: Schema.Struct<{
@@ -1738,7 +1949,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1738
1949
  }>, Schema.Struct<{
1739
1950
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1740
1951
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1741
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1952
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1742
1953
  };
1743
1954
  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
1955
  readonly type: Schema.tag<"shell">;
@@ -1767,7 +1978,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1767
1978
  }>, Schema.Struct<{
1768
1979
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1769
1980
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1770
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1981
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1771
1982
  };
1772
1983
  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
1984
  readonly type: Schema.tag<"assistant">;
@@ -1967,7 +2178,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1967
2178
  }>, Schema.Union<readonly [Schema.Struct<{
1968
2179
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1969
2180
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1970
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2181
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1971
2182
  };
1972
2183
  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
2184
  readonly time: Schema.Struct<{
@@ -1980,7 +2191,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
1980
2191
  }>, Schema.Struct<{
1981
2192
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
1982
2193
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1983
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2194
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1984
2195
  };
1985
2196
  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
2197
  readonly time: Schema.Struct<{
@@ -2061,7 +2272,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2061
2272
  }>, Schema.Struct<{
2062
2273
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
2063
2274
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2064
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2275
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2065
2276
  };
2066
2277
  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
2278
  readonly time: Schema.Struct<{
@@ -2106,7 +2317,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2106
2317
  }>]>, Schema.Struct<{
2107
2318
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
2108
2319
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2109
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2320
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2110
2321
  };
2111
2322
  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
2323
  readonly time: Schema.Struct<{
@@ -2140,60 +2351,54 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2140
2351
  }>>, Schema.toCodecJson<typeof UnknownError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.fork", "POST", "/api/session/:sessionID/fork", Schema.toCodecStringTree<Schema.Struct<{
2141
2352
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
2142
2353
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2143
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2144
2354
  };
2145
2355
  }>>, never, Schema.toCodecJson<Schema.Struct<{
2146
2356
  readonly before: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
2147
2357
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2148
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2358
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2149
2359
  }>;
2150
2360
  }>>, never, Schema.toCodecJson<Schema.Struct<{
2151
2361
  readonly data: Schema.Struct<{
2152
2362
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
2153
2363
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2154
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2155
2364
  };
2156
2365
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
2157
2366
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2158
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2159
2367
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
2160
2368
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2161
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2162
2369
  }>, never, never>;
2163
2370
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2164
2371
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2165
2372
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2166
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2167
2373
  };
2168
2374
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
2169
2375
  readonly type: Schema.Literal<"before">;
2170
2376
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2171
2377
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2172
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2378
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2173
2379
  };
2174
2380
  }>, Schema.Struct<{
2175
2381
  readonly type: Schema.Literal<"through">;
2176
2382
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2177
2383
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2178
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2384
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2179
2385
  };
2180
2386
  }>]>;
2181
2387
  }>>>, Schema.optionalKey<Schema.Struct<{
2182
2388
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2183
2389
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2184
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2185
2390
  };
2186
2391
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
2187
2392
  readonly type: Schema.Literal<"before">;
2188
2393
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2189
2394
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2190
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2395
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2191
2396
  };
2192
2397
  }>, Schema.Struct<{
2193
2398
  readonly type: Schema.Literal<"through">;
2194
2399
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2195
2400
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2196
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2401
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2197
2402
  };
2198
2403
  }>]>;
2199
2404
  }>>, never, never>;
@@ -2281,7 +2486,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2281
2486
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2282
2487
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2283
2488
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2284
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2489
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2285
2490
  };
2286
2491
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2287
2492
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -2291,17 +2496,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2291
2496
  readonly additions: Schema.Int;
2292
2497
  readonly deletions: Schema.Int;
2293
2498
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
2499
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
2294
2500
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
2295
2501
  readonly file: Schema.String;
2296
2502
  readonly patch: Schema.String;
2297
2503
  readonly additions: Schema.Int;
2298
2504
  readonly deletions: Schema.Int;
2299
2505
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
2506
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
2300
2507
  }>>>, never, never>;
2301
2508
  }>>>, Schema.optionalKey<Schema.Struct<{
2302
2509
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2303
2510
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2304
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2511
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2305
2512
  };
2306
2513
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2307
2514
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -2311,19 +2518,21 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2311
2518
  readonly additions: Schema.Int;
2312
2519
  readonly deletions: Schema.Int;
2313
2520
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
2521
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
2314
2522
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
2315
2523
  readonly file: Schema.String;
2316
2524
  readonly patch: Schema.String;
2317
2525
  readonly additions: Schema.Int;
2318
2526
  readonly deletions: Schema.Int;
2319
2527
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
2528
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
2320
2529
  }>>>, never, never>;
2321
2530
  }>>, never, never>;
2322
2531
  readonly location: Schema.Struct<{
2323
2532
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2324
2533
  }>;
2325
2534
  }>;
2326
- }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof SessionNotFoundError | typeof MessageNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.cancel", "DELETE", "/api/session/:sessionID/form/:formID", Schema.toCodecStringTree<Schema.Struct<{
2535
+ }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof SessionNotFoundError | typeof MessageNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.form.cancel", "DELETE", "/api/session/:sessionID/form/:formID", Schema.toCodecStringTree<Schema.Struct<{
2327
2536
  sessionID: Schema.String;
2328
2537
  formID: Schema.brand<Schema.String, "Form.ID"> & {
2329
2538
  create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
@@ -2867,7 +3076,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2867
3076
  }>>, 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
3077
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
2869
3078
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2870
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2871
3079
  };
2872
3080
  }>>, never, Schema.toCodecJson<Schema.Struct<{
2873
3081
  readonly prompt: Schema.String;
@@ -2878,55 +3086,49 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
2878
3086
  }>>, Schema.toCodecJson<typeof ServiceUnavailableError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.get", "GET", "/api/session/:sessionID", Schema.toCodecStringTree<Schema.Struct<{
2879
3087
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
2880
3088
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2881
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2882
3089
  };
2883
3090
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
2884
3091
  readonly data: Schema.Struct<{
2885
3092
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
2886
3093
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2887
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2888
3094
  };
2889
3095
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
2890
3096
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2891
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2892
3097
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
2893
3098
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2894
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2895
3099
  }>, never, never>;
2896
3100
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2897
3101
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2898
3102
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2899
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2900
3103
  };
2901
3104
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
2902
3105
  readonly type: Schema.Literal<"before">;
2903
3106
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2904
3107
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2905
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3108
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2906
3109
  };
2907
3110
  }>, Schema.Struct<{
2908
3111
  readonly type: Schema.Literal<"through">;
2909
3112
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2910
3113
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2911
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3114
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2912
3115
  };
2913
3116
  }>]>;
2914
3117
  }>>>, Schema.optionalKey<Schema.Struct<{
2915
3118
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2916
3119
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2917
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2918
3120
  };
2919
3121
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
2920
3122
  readonly type: Schema.Literal<"before">;
2921
3123
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2922
3124
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2923
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3125
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2924
3126
  };
2925
3127
  }>, Schema.Struct<{
2926
3128
  readonly type: Schema.Literal<"through">;
2927
3129
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2928
3130
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2929
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3131
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2930
3132
  };
2931
3133
  }>]>;
2932
3134
  }>>, never, never>;
@@ -3014,7 +3216,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3014
3216
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3015
3217
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3016
3218
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3017
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3219
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3018
3220
  };
3019
3221
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3020
3222
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -3024,17 +3226,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3024
3226
  readonly additions: Schema.Int;
3025
3227
  readonly deletions: Schema.Int;
3026
3228
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3229
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
3027
3230
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3028
3231
  readonly file: Schema.String;
3029
3232
  readonly patch: Schema.String;
3030
3233
  readonly additions: Schema.Int;
3031
3234
  readonly deletions: Schema.Int;
3032
3235
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3236
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
3033
3237
  }>>>, never, never>;
3034
3238
  }>>>, Schema.optionalKey<Schema.Struct<{
3035
3239
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3036
3240
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3037
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3241
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3038
3242
  };
3039
3243
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3040
3244
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -3044,12 +3248,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3044
3248
  readonly additions: Schema.Int;
3045
3249
  readonly deletions: Schema.Int;
3046
3250
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3251
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
3047
3252
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3048
3253
  readonly file: Schema.String;
3049
3254
  readonly patch: Schema.String;
3050
3255
  readonly additions: Schema.Int;
3051
3256
  readonly deletions: Schema.Int;
3052
3257
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3258
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
3053
3259
  }>>>, never, never>;
3054
3260
  }>>, never, never>;
3055
3261
  readonly location: Schema.Struct<{
@@ -3060,49 +3266,44 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3060
3266
  readonly info: Schema.Struct<{
3061
3267
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
3062
3268
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3063
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3064
3269
  };
3065
3270
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
3066
3271
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3067
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3068
3272
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
3069
3273
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3070
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3071
3274
  }>, never, never>;
3072
3275
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3073
3276
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3074
3277
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3075
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3076
3278
  };
3077
3279
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
3078
3280
  readonly type: Schema.Literal<"before">;
3079
3281
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3080
3282
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3081
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3283
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3082
3284
  };
3083
3285
  }>, Schema.Struct<{
3084
3286
  readonly type: Schema.Literal<"through">;
3085
3287
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3086
3288
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3087
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3289
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3088
3290
  };
3089
3291
  }>]>;
3090
3292
  }>>>, Schema.optionalKey<Schema.Struct<{
3091
3293
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3092
3294
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3093
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3094
3295
  };
3095
3296
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
3096
3297
  readonly type: Schema.Literal<"before">;
3097
3298
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3098
3299
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3099
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3300
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3100
3301
  };
3101
3302
  }>, Schema.Struct<{
3102
3303
  readonly type: Schema.Literal<"through">;
3103
3304
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3104
3305
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3105
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3306
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3106
3307
  };
3107
3308
  }>]>;
3108
3309
  }>>, never, never>;
@@ -3190,7 +3391,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3190
3391
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3191
3392
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3192
3393
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3193
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3394
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3194
3395
  };
3195
3396
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3196
3397
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -3200,17 +3401,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3200
3401
  readonly additions: Schema.Int;
3201
3402
  readonly deletions: Schema.Int;
3202
3403
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3404
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
3203
3405
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3204
3406
  readonly file: Schema.String;
3205
3407
  readonly patch: Schema.String;
3206
3408
  readonly additions: Schema.Int;
3207
3409
  readonly deletions: Schema.Int;
3208
3410
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3411
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
3209
3412
  }>>>, never, never>;
3210
3413
  }>>>, Schema.optionalKey<Schema.Struct<{
3211
3414
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3212
3415
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3213
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3416
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3214
3417
  };
3215
3418
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3216
3419
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -3220,12 +3423,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3220
3423
  readonly additions: Schema.Int;
3221
3424
  readonly deletions: Schema.Int;
3222
3425
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3426
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
3223
3427
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
3224
3428
  readonly file: Schema.String;
3225
3429
  readonly patch: Schema.String;
3226
3430
  readonly additions: Schema.Int;
3227
3431
  readonly deletions: Schema.Int;
3228
3432
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
3433
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
3229
3434
  }>>>, never, never>;
3230
3435
  }>>, never, never>;
3231
3436
  readonly location: Schema.Struct<{
@@ -3235,7 +3440,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3235
3440
  readonly messages: Schema.decodeTo<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
3236
3441
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3237
3442
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3238
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3443
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3239
3444
  };
3240
3445
  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
3446
  readonly time: Schema.Struct<{
@@ -3247,7 +3452,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3247
3452
  }>, Schema.Struct<{
3248
3453
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3249
3454
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3250
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3455
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3251
3456
  };
3252
3457
  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
3458
  readonly time: Schema.Struct<{
@@ -3325,7 +3530,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3325
3530
  }>, Schema.Struct<{
3326
3531
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3327
3532
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3328
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3533
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3329
3534
  };
3330
3535
  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
3536
  readonly time: Schema.Struct<{
@@ -3355,7 +3560,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3355
3560
  }>, Schema.Struct<{
3356
3561
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3357
3562
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3358
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3563
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3359
3564
  };
3360
3565
  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
3566
  readonly time: Schema.Struct<{
@@ -3493,7 +3698,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3493
3698
  }>, Schema.Struct<{
3494
3699
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3495
3700
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3496
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3701
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3497
3702
  };
3498
3703
  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
3704
  readonly time: Schema.Struct<{
@@ -3505,7 +3710,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3505
3710
  }>, Schema.Struct<{
3506
3711
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3507
3712
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3508
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3713
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3509
3714
  };
3510
3715
  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
3716
  readonly time: Schema.Struct<{
@@ -3517,7 +3722,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3517
3722
  }>, Schema.Struct<{
3518
3723
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3519
3724
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3520
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3725
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3521
3726
  };
3522
3727
  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
3728
  readonly time: Schema.Struct<{
@@ -3530,7 +3735,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3530
3735
  }>, Schema.Struct<{
3531
3736
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3532
3737
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3533
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3738
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3534
3739
  };
3535
3740
  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
3741
  readonly type: Schema.tag<"shell">;
@@ -3559,7 +3764,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3559
3764
  }>, Schema.Struct<{
3560
3765
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3561
3766
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3562
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3767
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3563
3768
  };
3564
3769
  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
3770
  readonly type: Schema.tag<"assistant">;
@@ -3759,7 +3964,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3759
3964
  }>, Schema.Union<readonly [Schema.Struct<{
3760
3965
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3761
3966
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3762
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3967
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3763
3968
  };
3764
3969
  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
3970
  readonly time: Schema.Struct<{
@@ -3772,7 +3977,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3772
3977
  }>, Schema.Struct<{
3773
3978
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3774
3979
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3775
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3980
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3776
3981
  };
3777
3982
  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
3983
  readonly time: Schema.Struct<{
@@ -3853,7 +4058,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3853
4058
  }>, Schema.Struct<{
3854
4059
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3855
4060
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3856
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4061
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3857
4062
  };
3858
4063
  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
4064
  readonly time: Schema.Struct<{
@@ -3898,7 +4103,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3898
4103
  }>]>, Schema.Struct<{
3899
4104
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
3900
4105
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3901
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4106
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3902
4107
  };
3903
4108
  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
4109
  readonly time: Schema.Struct<{
@@ -3935,49 +4140,44 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
3935
4140
  readonly data: Schema.Struct<{
3936
4141
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
3937
4142
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3938
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3939
4143
  };
3940
4144
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
3941
4145
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3942
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3943
4146
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
3944
4147
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3945
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3946
4148
  }>, never, never>;
3947
4149
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
3948
4150
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3949
4151
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3950
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3951
4152
  };
3952
4153
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
3953
4154
  readonly type: Schema.Literal<"before">;
3954
4155
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3955
4156
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3956
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4157
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3957
4158
  };
3958
4159
  }>, Schema.Struct<{
3959
4160
  readonly type: Schema.Literal<"through">;
3960
4161
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3961
4162
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3962
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4163
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3963
4164
  };
3964
4165
  }>]>;
3965
4166
  }>>>, Schema.optionalKey<Schema.Struct<{
3966
4167
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3967
4168
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3968
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3969
4169
  };
3970
4170
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
3971
4171
  readonly type: Schema.Literal<"before">;
3972
4172
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3973
4173
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3974
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4174
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3975
4175
  };
3976
4176
  }>, Schema.Struct<{
3977
4177
  readonly type: Schema.Literal<"through">;
3978
4178
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
3979
4179
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3980
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4180
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3981
4181
  };
3982
4182
  }>]>;
3983
4183
  }>>, never, never>;
@@ -4065,7 +4265,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4065
4265
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4066
4266
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4067
4267
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4068
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4268
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4069
4269
  };
4070
4270
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4071
4271
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -4075,17 +4275,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4075
4275
  readonly additions: Schema.Int;
4076
4276
  readonly deletions: Schema.Int;
4077
4277
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
4278
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
4078
4279
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
4079
4280
  readonly file: Schema.String;
4080
4281
  readonly patch: Schema.String;
4081
4282
  readonly additions: Schema.Int;
4082
4283
  readonly deletions: Schema.Int;
4083
4284
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
4285
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
4084
4286
  }>>>, never, never>;
4085
4287
  }>>>, Schema.optionalKey<Schema.Struct<{
4086
4288
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4087
4289
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4088
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4290
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4089
4291
  };
4090
4292
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4091
4293
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -4095,12 +4297,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4095
4297
  readonly additions: Schema.Int;
4096
4298
  readonly deletions: Schema.Int;
4097
4299
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
4300
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
4098
4301
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
4099
4302
  readonly file: Schema.String;
4100
4303
  readonly patch: Schema.String;
4101
4304
  readonly additions: Schema.Int;
4102
4305
  readonly deletions: Schema.Int;
4103
4306
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
4307
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
4104
4308
  }>>>, never, never>;
4105
4309
  }>>, never, never>;
4106
4310
  readonly location: Schema.Struct<{
@@ -4110,16 +4314,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4110
4314
  }>>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.inbox.cancel", "DELETE", "/api/session/:sessionID/inbox/:inboxID", Schema.toCodecStringTree<Schema.Struct<{
4111
4315
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4112
4316
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4113
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4114
4317
  };
4115
4318
  inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4116
4319
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4117
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4320
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4118
4321
  };
4119
4322
  }>>, 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
4323
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4121
4324
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4122
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4123
4325
  };
4124
4326
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
4125
4327
  readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
@@ -4258,11 +4460,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4258
4460
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
4259
4461
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
4260
4462
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4261
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4463
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4262
4464
  };
4263
4465
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4264
4466
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4265
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4266
4467
  };
4267
4468
  readonly time: Schema.Struct<{
4268
4469
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -4277,11 +4478,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4277
4478
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
4278
4479
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
4279
4480
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4280
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4481
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4281
4482
  };
4282
4483
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4283
4484
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4284
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4285
4485
  };
4286
4486
  readonly time: Schema.Struct<{
4287
4487
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -4292,11 +4492,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4292
4492
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
4293
4493
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
4294
4494
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4295
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4495
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4296
4496
  };
4297
4497
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4298
4498
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4299
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4300
4499
  };
4301
4500
  readonly time: Schema.Struct<{
4302
4501
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -4306,11 +4505,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4306
4505
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
4307
4506
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
4308
4507
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4309
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4508
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4310
4509
  };
4311
4510
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4312
4511
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4313
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4314
4512
  };
4315
4513
  readonly time: Schema.Struct<{
4316
4514
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -4328,53 +4526,47 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4328
4526
  }>>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.inbox.update", "PATCH", "/api/session/:sessionID/inbox/:inboxID", Schema.toCodecStringTree<Schema.Struct<{
4329
4527
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4330
4528
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4331
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4332
4529
  };
4333
4530
  inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4334
4531
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4335
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4532
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4336
4533
  };
4337
4534
  }>>, never, Schema.toCodecJson<Schema.Struct<{
4338
4535
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
4339
4536
  }>>, 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
4537
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4341
4538
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4342
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4343
4539
  };
4344
4540
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
4345
4541
  readonly data: Schema.$Array<Schema.Struct<{
4346
4542
  readonly key: Schema.String;
4347
4543
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
4348
4544
  }>>;
4349
- }>>, 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<{
4545
+ }>>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.put", "PUT", "/api/experimental/session/:sessionID/instructions/entries/:key", Schema.toCodecStringTree<Schema.Struct<{
4350
4546
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4351
4547
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4352
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4353
4548
  };
4354
4549
  key: Schema.String;
4355
4550
  }>>, never, Schema.toCodecJson<Schema.Struct<{
4356
4551
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
4357
- }>>, 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<{
4552
+ }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof InstructionEntry.ValueTooLargeError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.remove", "DELETE", "/api/experimental/session/:sessionID/instructions/entries/:key", Schema.toCodecStringTree<Schema.Struct<{
4358
4553
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4359
4554
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4360
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4361
4555
  };
4362
4556
  key: Schema.String;
4363
- }>>, 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<{
4557
+ }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.interrupt", "POST", "/api/session/:sessionID/interrupt", Schema.toCodecStringTree<Schema.Struct<{
4364
4558
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4365
4559
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4366
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4367
4560
  };
4368
4561
  }>>, Schema.toCodecStringTree<Schema.Struct<{
4369
4562
  resume: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
4370
4563
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
4371
4564
  readonly interrupted: Schema.Boolean;
4372
- }>>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.list", "GET", "/api/session", never, Schema.toCodecStringTree<Schema.Struct<{
4565
+ }>>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.list", "GET", "/api/session", never, Schema.toCodecStringTree<Schema.Struct<{
4373
4566
  readonly order: Schema.optional<Schema.Literals<readonly ["asc", "desc"]>>;
4374
4567
  readonly search: Schema.optional<Schema.String>;
4375
4568
  readonly parentID: Schema.optional<Schema.Union<readonly [Schema.brand<Schema.String, "SessionID"> & {
4376
4569
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4377
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4378
4570
  }, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
4379
4571
  readonly archived: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
4380
4572
  readonly directory: Schema.optional<Schema.brand<Schema.String, "AbsolutePath">>;
@@ -4457,49 +4649,44 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4457
4649
  readonly data: Schema.$Array<Schema.Struct<{
4458
4650
  readonly id: Schema.brand<Schema.String, "SessionID"> & {
4459
4651
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4460
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4461
4652
  };
4462
4653
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
4463
4654
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4464
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4465
4655
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
4466
4656
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4467
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4468
4657
  }>, never, never>;
4469
4658
  readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4470
4659
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4471
4660
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4472
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4473
4661
  };
4474
4662
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
4475
4663
  readonly type: Schema.Literal<"before">;
4476
4664
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4477
4665
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4478
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4666
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4479
4667
  };
4480
4668
  }>, Schema.Struct<{
4481
4669
  readonly type: Schema.Literal<"through">;
4482
4670
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4483
4671
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4484
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4672
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4485
4673
  };
4486
4674
  }>]>;
4487
4675
  }>>>, Schema.optionalKey<Schema.Struct<{
4488
4676
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4489
4677
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4490
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4491
4678
  };
4492
4679
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
4493
4680
  readonly type: Schema.Literal<"before">;
4494
4681
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4495
4682
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4496
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4683
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4497
4684
  };
4498
4685
  }>, Schema.Struct<{
4499
4686
  readonly type: Schema.Literal<"through">;
4500
4687
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4501
4688
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4502
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4689
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4503
4690
  };
4504
4691
  }>]>;
4505
4692
  }>>, never, never>;
@@ -4587,7 +4774,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4587
4774
  readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
4588
4775
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4589
4776
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4590
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4777
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4591
4778
  };
4592
4779
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4593
4780
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -4597,17 +4784,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4597
4784
  readonly additions: Schema.Int;
4598
4785
  readonly deletions: Schema.Int;
4599
4786
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
4787
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
4600
4788
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
4601
4789
  readonly file: Schema.String;
4602
4790
  readonly patch: Schema.String;
4603
4791
  readonly additions: Schema.Int;
4604
4792
  readonly deletions: Schema.Int;
4605
4793
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
4794
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
4606
4795
  }>>>, never, never>;
4607
4796
  }>>>, Schema.optionalKey<Schema.Struct<{
4608
4797
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
4609
4798
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4610
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4799
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4611
4800
  };
4612
4801
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4613
4802
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -4617,12 +4806,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4617
4806
  readonly additions: Schema.Int;
4618
4807
  readonly deletions: Schema.Int;
4619
4808
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
4809
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
4620
4810
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
4621
4811
  readonly file: Schema.String;
4622
4812
  readonly patch: Schema.String;
4623
4813
  readonly additions: Schema.Int;
4624
4814
  readonly deletions: Schema.Int;
4625
4815
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
4816
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
4626
4817
  }>>>, never, never>;
4627
4818
  }>>, never, never>;
4628
4819
  readonly location: Schema.Struct<{
@@ -4774,7 +4965,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4774
4965
  }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof InvalidCursorError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.log", "GET", "/api/experimental/session/:sessionID/log", Schema.toCodecStringTree<Schema.Struct<{
4775
4966
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4776
4967
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4777
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4778
4968
  };
4779
4969
  }>>, Schema.toCodecStringTree<Schema.Struct<{
4780
4970
  after: Schema.optional<Schema.compose<Schema.brand<Schema.Int, "Event.Seq">, Schema.NumberFromString>>;
@@ -4813,7 +5003,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4813
5003
  readonly data: Schema.Struct<{
4814
5004
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4815
5005
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4816
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4817
5006
  };
4818
5007
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
4819
5008
  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 +5017,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4828
5017
  data: Schema.Struct<{
4829
5018
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4830
5019
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4831
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4832
5020
  };
4833
5021
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
4834
5022
  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 +5055,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4867
5055
  readonly data: Schema.Struct<{
4868
5056
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4869
5057
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4870
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4871
5058
  };
4872
5059
  }>;
4873
5060
  }> & {
@@ -4880,7 +5067,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4880
5067
  data: Schema.Struct<{
4881
5068
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
4882
5069
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4883
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4884
5070
  };
4885
5071
  }>;
4886
5072
  }) | (Schema.Struct<{
@@ -4917,7 +5103,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
4917
5103
  readonly data: Schema.Struct<{
4918
5104
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4919
5105
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4920
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4921
5106
  };
4922
5107
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
4923
5108
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
@@ -5000,7 +5185,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5000
5185
  data: Schema.Struct<{
5001
5186
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5002
5187
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5003
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5004
5188
  };
5005
5189
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5006
5190
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
@@ -5107,7 +5291,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5107
5291
  readonly data: Schema.Struct<{
5108
5292
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5109
5293
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5110
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5111
5294
  };
5112
5295
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5113
5296
  readonly error: Schema.Struct<{
@@ -5123,10 +5306,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5123
5306
  }>;
5124
5307
  readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
5125
5308
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5126
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5309
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5127
5310
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
5128
5311
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5129
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5312
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5130
5313
  }>, never, never>;
5131
5314
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
5132
5315
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -5161,7 +5344,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5161
5344
  data: Schema.Struct<{
5162
5345
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5163
5346
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5164
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5165
5347
  };
5166
5348
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5167
5349
  readonly error: Schema.Struct<{
@@ -5177,10 +5359,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5177
5359
  }>;
5178
5360
  readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
5179
5361
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5180
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5362
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5181
5363
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
5182
5364
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5183
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5365
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5184
5366
  }>, never, never>;
5185
5367
  readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
5186
5368
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -5239,15 +5421,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5239
5421
  readonly data: Schema.Struct<{
5240
5422
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5241
5423
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5242
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5243
5424
  };
5244
5425
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5245
5426
  readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
5246
5427
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5247
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5428
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5248
5429
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
5249
5430
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5250
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5431
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5251
5432
  }>, never, never>;
5252
5433
  }>;
5253
5434
  }> & {
@@ -5260,15 +5441,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5260
5441
  data: Schema.Struct<{
5261
5442
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5262
5443
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5263
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5264
5444
  };
5265
5445
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
5266
5446
  readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
5267
5447
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5268
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5448
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5269
5449
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
5270
5450
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5271
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5451
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5272
5452
  }>, never, never>;
5273
5453
  }>;
5274
5454
  }) | (Schema.Struct<{
@@ -5305,7 +5485,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5305
5485
  readonly data: Schema.Struct<{
5306
5486
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5307
5487
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5308
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5309
5488
  };
5310
5489
  readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
5311
5490
  global: string & import("effect/Brand").Brand<"Project.ID">;
@@ -5323,10 +5502,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5323
5502
  readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
5324
5503
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
5325
5504
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5326
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5327
5505
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
5328
5506
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5329
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5330
5507
  }>, never, never>;
5331
5508
  readonly slug: Schema.String;
5332
5509
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -5398,7 +5575,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5398
5575
  data: Schema.Struct<{
5399
5576
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5400
5577
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5401
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5402
5578
  };
5403
5579
  readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
5404
5580
  global: string & import("effect/Brand").Brand<"Project.ID">;
@@ -5416,10 +5592,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5416
5592
  readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
5417
5593
  readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
5418
5594
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5419
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5420
5595
  }>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
5421
5596
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5422
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5423
5597
  }>, never, never>;
5424
5598
  readonly slug: Schema.String;
5425
5599
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -5515,7 +5689,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5515
5689
  readonly data: Schema.Struct<{
5516
5690
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5517
5691
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5518
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5519
5692
  };
5520
5693
  }>;
5521
5694
  }> & {
@@ -5528,7 +5701,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5528
5701
  data: Schema.Struct<{
5529
5702
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5530
5703
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5531
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5532
5704
  };
5533
5705
  }>;
5534
5706
  }) | (Schema.Struct<{
@@ -5565,7 +5737,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5565
5737
  readonly data: Schema.Struct<{
5566
5738
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5567
5739
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5568
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5569
5740
  };
5570
5741
  readonly error: Schema.Struct<{
5571
5742
  readonly type: Schema.String;
@@ -5589,7 +5760,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5589
5760
  data: Schema.Struct<{
5590
5761
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5591
5762
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5592
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5593
5763
  };
5594
5764
  readonly error: Schema.Struct<{
5595
5765
  readonly type: Schema.String;
@@ -5637,7 +5807,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5637
5807
  readonly data: Schema.Struct<{
5638
5808
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5639
5809
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5640
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5641
5810
  };
5642
5811
  readonly reason: Schema.Literals<readonly ["user", "shutdown", "superseded", "inactivity"]>;
5643
5812
  }>;
@@ -5651,7 +5820,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5651
5820
  data: Schema.Struct<{
5652
5821
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5653
5822
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5654
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5655
5823
  };
5656
5824
  readonly reason: Schema.Literals<readonly ["user", "shutdown", "superseded", "inactivity"]>;
5657
5825
  }>;
@@ -5689,7 +5857,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5689
5857
  readonly data: Schema.Struct<{
5690
5858
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5691
5859
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5692
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5693
5860
  };
5694
5861
  }>;
5695
5862
  }> & {
@@ -5702,7 +5869,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5702
5869
  data: Schema.Struct<{
5703
5870
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5704
5871
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5705
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5706
5872
  };
5707
5873
  }>;
5708
5874
  }) | (Schema.Struct<{
@@ -5739,7 +5905,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5739
5905
  readonly data: Schema.Struct<{
5740
5906
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5741
5907
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5742
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5743
5908
  };
5744
5909
  }>;
5745
5910
  }> & {
@@ -5752,7 +5917,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5752
5917
  data: Schema.Struct<{
5753
5918
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5754
5919
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5755
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5756
5920
  };
5757
5921
  }>;
5758
5922
  }) | (Schema.Struct<{
@@ -5789,23 +5953,21 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5789
5953
  readonly data: Schema.Struct<{
5790
5954
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5791
5955
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5792
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5793
5956
  };
5794
5957
  readonly parentID: Schema.brand<Schema.String, "SessionID"> & {
5795
5958
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5796
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5797
5959
  };
5798
5960
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
5799
5961
  readonly type: Schema.Literal<"before">;
5800
5962
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5801
5963
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5802
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5964
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5803
5965
  };
5804
5966
  }>, Schema.Struct<{
5805
5967
  readonly type: Schema.Literal<"through">;
5806
5968
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5807
5969
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5808
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5970
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5809
5971
  };
5810
5972
  }>]>;
5811
5973
  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 +5991,21 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5829
5991
  data: Schema.Struct<{
5830
5992
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5831
5993
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5832
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5833
5994
  };
5834
5995
  readonly parentID: Schema.brand<Schema.String, "SessionID"> & {
5835
5996
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5836
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5837
5997
  };
5838
5998
  readonly boundary: Schema.Union<readonly [Schema.Struct<{
5839
5999
  readonly type: Schema.Literal<"before">;
5840
6000
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5841
6001
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5842
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6002
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5843
6003
  };
5844
6004
  }>, Schema.Struct<{
5845
6005
  readonly type: Schema.Literal<"through">;
5846
6006
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5847
6007
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5848
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6008
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5849
6009
  };
5850
6010
  }>]>;
5851
6011
  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 +6053,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5893
6053
  readonly data: Schema.Struct<{
5894
6054
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5895
6055
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5896
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5897
6056
  };
5898
6057
  inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5899
6058
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5900
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6059
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5901
6060
  };
5902
6061
  }>;
5903
6062
  }> & {
@@ -5910,11 +6069,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5910
6069
  data: Schema.Struct<{
5911
6070
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5912
6071
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5913
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5914
6072
  };
5915
6073
  inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5916
6074
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5917
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6075
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5918
6076
  };
5919
6077
  }>;
5920
6078
  }) | (Schema.Struct<{
@@ -5951,11 +6109,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5951
6109
  readonly data: Schema.Struct<{
5952
6110
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5953
6111
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5954
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5955
6112
  };
5956
6113
  inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5957
6114
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5958
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6115
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5959
6116
  };
5960
6117
  }>;
5961
6118
  }> & {
@@ -5968,11 +6125,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
5968
6125
  data: Schema.Struct<{
5969
6126
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
5970
6127
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5971
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5972
6128
  };
5973
6129
  inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
5974
6130
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
5975
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6131
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
5976
6132
  };
5977
6133
  }>;
5978
6134
  }) | (Schema.Struct<{
@@ -6009,11 +6165,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6009
6165
  readonly data: Schema.Struct<{
6010
6166
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6011
6167
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6012
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6013
6168
  };
6014
6169
  readonly inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6015
6170
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6016
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6171
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6017
6172
  };
6018
6173
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
6019
6174
  }>;
@@ -6027,11 +6182,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6027
6182
  data: Schema.Struct<{
6028
6183
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6029
6184
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6030
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6031
6185
  };
6032
6186
  readonly inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6033
6187
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6034
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6188
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6035
6189
  };
6036
6190
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
6037
6191
  }>;
@@ -6069,11 +6223,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6069
6223
  readonly data: Schema.Struct<{
6070
6224
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6071
6225
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6072
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6073
6226
  };
6074
6227
  readonly inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6075
6228
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6076
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6229
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6077
6230
  };
6078
6231
  readonly item: Schema.Union<readonly [Schema.Struct<{
6079
6232
  readonly type: Schema.tag<"user">;
@@ -6252,11 +6405,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6252
6405
  data: Schema.Struct<{
6253
6406
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6254
6407
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6255
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6256
6408
  };
6257
6409
  readonly inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6258
6410
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6259
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6411
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6260
6412
  };
6261
6413
  readonly item: Schema.Union<readonly [Schema.Struct<{
6262
6414
  readonly type: Schema.tag<"user">;
@@ -6459,7 +6611,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6459
6611
  readonly data: Schema.Struct<{
6460
6612
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6461
6613
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6462
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6463
6614
  };
6464
6615
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
6465
6616
  readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -6474,7 +6625,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6474
6625
  data: Schema.Struct<{
6475
6626
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6476
6627
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6477
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6478
6628
  };
6479
6629
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
6480
6630
  readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -6513,7 +6663,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6513
6663
  readonly data: Schema.Struct<{
6514
6664
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6515
6665
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6516
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6517
6666
  };
6518
6667
  readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
6519
6668
  }>;
@@ -6527,7 +6676,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6527
6676
  data: Schema.Struct<{
6528
6677
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6529
6678
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6530
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6531
6679
  };
6532
6680
  readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
6533
6681
  }>;
@@ -6565,7 +6713,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6565
6713
  readonly data: Schema.Struct<{
6566
6714
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6567
6715
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6568
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6569
6716
  };
6570
6717
  readonly model: Schema.Struct<{
6571
6718
  readonly id: Schema.brand<Schema.String, "Model.ID">;
@@ -6646,7 +6793,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6646
6793
  data: Schema.Struct<{
6647
6794
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6648
6795
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6649
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6650
6796
  };
6651
6797
  readonly model: Schema.Struct<{
6652
6798
  readonly id: Schema.brand<Schema.String, "Model.ID">;
@@ -6765,7 +6911,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6765
6911
  readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
6766
6912
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6767
6913
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6768
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6769
6914
  };
6770
6915
  }>;
6771
6916
  }> & {
@@ -6792,7 +6937,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6792
6937
  readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
6793
6938
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6794
6939
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6795
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6796
6940
  };
6797
6941
  }>;
6798
6942
  }) | (Schema.Struct<{
@@ -6829,7 +6973,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6829
6973
  readonly data: Schema.Struct<{
6830
6974
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6831
6975
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6832
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6833
6976
  };
6834
6977
  readonly permissions: Schema.$Array<Schema.Struct<{
6835
6978
  readonly action: Schema.String;
@@ -6847,7 +6990,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6847
6990
  data: Schema.Struct<{
6848
6991
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6849
6992
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6850
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6851
6993
  };
6852
6994
  readonly permissions: Schema.$Array<Schema.Struct<{
6853
6995
  readonly action: Schema.String;
@@ -6889,11 +7031,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6889
7031
  readonly data: Schema.Struct<{
6890
7032
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6891
7033
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6892
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6893
7034
  };
6894
7035
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6895
7036
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6896
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7037
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6897
7038
  };
6898
7039
  readonly ordinal: Schema.Int;
6899
7040
  readonly text: Schema.String;
@@ -6909,11 +7050,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6909
7050
  data: Schema.Struct<{
6910
7051
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6911
7052
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6912
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6913
7053
  };
6914
7054
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6915
7055
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6916
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7056
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6917
7057
  };
6918
7058
  readonly ordinal: Schema.Int;
6919
7059
  readonly text: Schema.String;
@@ -6953,11 +7093,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6953
7093
  readonly data: Schema.Struct<{
6954
7094
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6955
7095
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6956
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6957
7096
  };
6958
7097
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6959
7098
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6960
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7099
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6961
7100
  };
6962
7101
  readonly ordinal: Schema.Int;
6963
7102
  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 +7111,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6972
7111
  data: Schema.Struct<{
6973
7112
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6974
7113
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6975
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6976
7114
  };
6977
7115
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
6978
7116
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
6979
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7117
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
6980
7118
  };
6981
7119
  readonly ordinal: Schema.Int;
6982
7120
  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 +7153,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7015
7153
  readonly data: Schema.Struct<{
7016
7154
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7017
7155
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7018
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7019
7156
  };
7020
7157
  readonly title: Schema.String;
7021
7158
  }>;
@@ -7029,7 +7166,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7029
7166
  data: Schema.Struct<{
7030
7167
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7031
7168
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7032
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7033
7169
  };
7034
7170
  readonly title: Schema.String;
7035
7171
  }>;
@@ -7067,11 +7203,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7067
7203
  readonly data: Schema.Struct<{
7068
7204
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7069
7205
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7070
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7071
7206
  };
7072
7207
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7073
7208
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7074
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7209
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7075
7210
  };
7076
7211
  readonly attempt: Schema.Int;
7077
7212
  readonly at: Schema.Int;
@@ -7097,11 +7232,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7097
7232
  data: Schema.Struct<{
7098
7233
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7099
7234
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7100
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7101
7235
  };
7102
7236
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7103
7237
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7104
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7238
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7105
7239
  };
7106
7240
  readonly attempt: Schema.Int;
7107
7241
  readonly at: Schema.Int;
@@ -7151,7 +7285,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7151
7285
  readonly data: Schema.Struct<{
7152
7286
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
7153
7287
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7154
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7155
7288
  };
7156
7289
  }>;
7157
7290
  }> & {
@@ -7164,7 +7297,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7164
7297
  data: Schema.Struct<{
7165
7298
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
7166
7299
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7167
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7168
7300
  };
7169
7301
  }>;
7170
7302
  }) | (Schema.Struct<{
@@ -7201,11 +7333,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7201
7333
  readonly data: Schema.Struct<{
7202
7334
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7203
7335
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7204
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7205
7336
  };
7206
7337
  readonly to: Schema.brand<Schema.String, "Session.Message.ID"> & {
7207
7338
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7208
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7339
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7209
7340
  };
7210
7341
  }>;
7211
7342
  }> & {
@@ -7218,11 +7349,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7218
7349
  data: Schema.Struct<{
7219
7350
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7220
7351
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7221
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7222
7352
  };
7223
7353
  readonly to: Schema.brand<Schema.String, "Session.Message.ID"> & {
7224
7354
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7225
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7355
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7226
7356
  };
7227
7357
  }>;
7228
7358
  }) | (Schema.Struct<{
@@ -7259,12 +7389,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7259
7389
  readonly data: Schema.Struct<{
7260
7390
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7261
7391
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7262
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7263
7392
  };
7264
7393
  readonly revert: Schema.Struct<{
7265
7394
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7266
7395
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7267
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7396
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7268
7397
  };
7269
7398
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
7270
7399
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -7274,12 +7403,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7274
7403
  readonly additions: Schema.Int;
7275
7404
  readonly deletions: Schema.Int;
7276
7405
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
7406
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
7277
7407
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
7278
7408
  readonly file: Schema.String;
7279
7409
  readonly patch: Schema.String;
7280
7410
  readonly additions: Schema.Int;
7281
7411
  readonly deletions: Schema.Int;
7282
7412
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
7413
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
7283
7414
  }>>>, never, never>;
7284
7415
  }>;
7285
7416
  }>;
@@ -7293,12 +7424,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7293
7424
  data: Schema.Struct<{
7294
7425
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7295
7426
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7296
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7297
7427
  };
7298
7428
  readonly revert: Schema.Struct<{
7299
7429
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7300
7430
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7301
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7431
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7302
7432
  };
7303
7433
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
7304
7434
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -7308,12 +7438,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7308
7438
  readonly additions: Schema.Int;
7309
7439
  readonly deletions: Schema.Int;
7310
7440
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
7441
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
7311
7442
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
7312
7443
  readonly file: Schema.String;
7313
7444
  readonly patch: Schema.String;
7314
7445
  readonly additions: Schema.Int;
7315
7446
  readonly deletions: Schema.Int;
7316
7447
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
7448
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
7317
7449
  }>>>, never, never>;
7318
7450
  }>;
7319
7451
  }>;
@@ -7351,7 +7483,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7351
7483
  readonly data: Schema.Struct<{
7352
7484
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7353
7485
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7354
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7355
7486
  };
7356
7487
  readonly shell: Schema.Struct<{
7357
7488
  readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
@@ -7389,7 +7520,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7389
7520
  data: Schema.Struct<{
7390
7521
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7391
7522
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7392
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7393
7523
  };
7394
7524
  readonly shell: Schema.Struct<{
7395
7525
  readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
@@ -7451,7 +7581,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7451
7581
  readonly data: Schema.Struct<{
7452
7582
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7453
7583
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7454
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7455
7584
  };
7456
7585
  readonly shell: Schema.Struct<{
7457
7586
  readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
@@ -7483,7 +7612,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7483
7612
  data: Schema.Struct<{
7484
7613
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7485
7614
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7486
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7487
7615
  };
7488
7616
  readonly shell: Schema.Struct<{
7489
7617
  readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
@@ -7539,7 +7667,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7539
7667
  readonly data: Schema.Struct<{
7540
7668
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7541
7669
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7542
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7543
7670
  };
7544
7671
  readonly id: Schema.brand<Schema.String, "Skill.ID">;
7545
7672
  readonly name: Schema.brand<Schema.String, "Skill.Name">;
@@ -7555,7 +7682,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7555
7682
  data: Schema.Struct<{
7556
7683
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7557
7684
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7558
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7559
7685
  };
7560
7686
  readonly id: Schema.brand<Schema.String, "Skill.ID">;
7561
7687
  readonly name: Schema.brand<Schema.String, "Skill.Name">;
@@ -7595,11 +7721,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7595
7721
  readonly data: Schema.Struct<{
7596
7722
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7597
7723
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7598
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7599
7724
  };
7600
7725
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7601
7726
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7602
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7727
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7603
7728
  };
7604
7729
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
7605
7730
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -7629,11 +7754,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7629
7754
  data: Schema.Struct<{
7630
7755
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7631
7756
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7632
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7633
7757
  };
7634
7758
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7635
7759
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7636
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7760
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7637
7761
  };
7638
7762
  readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
7639
7763
  readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -7687,11 +7811,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7687
7811
  readonly data: Schema.Struct<{
7688
7812
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7689
7813
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7690
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7691
7814
  };
7692
7815
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7693
7816
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7694
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7817
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7695
7818
  };
7696
7819
  readonly error: Schema.Struct<{
7697
7820
  readonly type: Schema.String;
@@ -7742,11 +7865,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7742
7865
  data: Schema.Struct<{
7743
7866
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7744
7867
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7745
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7746
7868
  };
7747
7869
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7748
7870
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7749
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7871
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7750
7872
  };
7751
7873
  readonly error: Schema.Struct<{
7752
7874
  readonly type: Schema.String;
@@ -7821,11 +7943,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7821
7943
  readonly data: Schema.Struct<{
7822
7944
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7823
7945
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7824
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7825
7946
  };
7826
7947
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7827
7948
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7828
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7949
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7829
7950
  };
7830
7951
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
7831
7952
  readonly model: Schema.Struct<{
@@ -7864,11 +7985,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7864
7985
  data: Schema.Struct<{
7865
7986
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7866
7987
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7867
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7868
7988
  };
7869
7989
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7870
7990
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7871
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7991
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7872
7992
  };
7873
7993
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
7874
7994
  readonly model: Schema.Struct<{
@@ -7931,11 +8051,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7931
8051
  readonly data: Schema.Struct<{
7932
8052
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7933
8053
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7934
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7935
8054
  };
7936
8055
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7937
8056
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7938
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8057
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7939
8058
  };
7940
8059
  }>;
7941
8060
  }> & {
@@ -7948,11 +8067,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7948
8067
  data: Schema.Struct<{
7949
8068
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7950
8069
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7951
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7952
8070
  };
7953
8071
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
7954
8072
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
7955
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8073
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
7956
8074
  };
7957
8075
  }>;
7958
8076
  }) | (Schema.Struct<{
@@ -7989,7 +8107,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
7989
8107
  readonly data: Schema.Struct<{
7990
8108
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7991
8109
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7992
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7993
8110
  };
7994
8111
  readonly text: Schema.String;
7995
8112
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -8005,7 +8122,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8005
8122
  data: Schema.Struct<{
8006
8123
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8007
8124
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8008
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8009
8125
  };
8010
8126
  readonly text: Schema.String;
8011
8127
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -8045,11 +8161,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8045
8161
  readonly data: Schema.Struct<{
8046
8162
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8047
8163
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8048
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8049
8164
  };
8050
8165
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8051
8166
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8052
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8167
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8053
8168
  };
8054
8169
  readonly ordinal: Schema.Int;
8055
8170
  readonly text: Schema.String;
@@ -8065,11 +8180,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8065
8180
  data: Schema.Struct<{
8066
8181
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8067
8182
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8068
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8069
8183
  };
8070
8184
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8071
8185
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8072
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8186
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8073
8187
  };
8074
8188
  readonly ordinal: Schema.Int;
8075
8189
  readonly text: Schema.String;
@@ -8109,11 +8223,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8109
8223
  readonly data: Schema.Struct<{
8110
8224
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8111
8225
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8112
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8113
8226
  };
8114
8227
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8115
8228
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8116
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8229
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8117
8230
  };
8118
8231
  readonly ordinal: Schema.Int;
8119
8232
  }>;
@@ -8127,11 +8240,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8127
8240
  data: Schema.Struct<{
8128
8241
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8129
8242
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8130
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8131
8243
  };
8132
8244
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8133
8245
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8134
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8246
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8135
8247
  };
8136
8248
  readonly ordinal: Schema.Int;
8137
8249
  }>;
@@ -8169,11 +8281,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8169
8281
  readonly data: Schema.Struct<{
8170
8282
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8171
8283
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8172
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8173
8284
  };
8174
8285
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8175
8286
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8176
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8287
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8177
8288
  };
8178
8289
  readonly id: Schema.String;
8179
8290
  readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
@@ -8190,11 +8301,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8190
8301
  data: Schema.Struct<{
8191
8302
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8192
8303
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8193
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8194
8304
  };
8195
8305
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8196
8306
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8197
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8307
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8198
8308
  };
8199
8309
  readonly id: Schema.String;
8200
8310
  readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
@@ -8235,11 +8345,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8235
8345
  readonly data: Schema.Struct<{
8236
8346
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8237
8347
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8238
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8239
8348
  };
8240
8349
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8241
8350
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8242
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8351
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8243
8352
  };
8244
8353
  readonly id: Schema.String;
8245
8354
  readonly error: Schema.Struct<{
@@ -8284,11 +8393,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8284
8393
  data: Schema.Struct<{
8285
8394
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8286
8395
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8287
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8288
8396
  };
8289
8397
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8290
8398
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8291
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8399
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8292
8400
  };
8293
8401
  readonly id: Schema.String;
8294
8402
  readonly error: Schema.Struct<{
@@ -8357,11 +8465,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8357
8465
  readonly data: Schema.Struct<{
8358
8466
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8359
8467
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8360
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8361
8468
  };
8362
8469
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8363
8470
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8364
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8471
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8365
8472
  };
8366
8473
  readonly id: Schema.String;
8367
8474
  readonly text: Schema.String;
@@ -8376,11 +8483,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8376
8483
  data: Schema.Struct<{
8377
8484
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8378
8485
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8379
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8380
8486
  };
8381
8487
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8382
8488
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8383
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8489
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8384
8490
  };
8385
8491
  readonly id: Schema.String;
8386
8492
  readonly text: Schema.String;
@@ -8419,11 +8525,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8419
8525
  readonly data: Schema.Struct<{
8420
8526
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8421
8527
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8422
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8423
8528
  };
8424
8529
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8425
8530
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8426
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8531
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8427
8532
  };
8428
8533
  readonly id: Schema.String;
8429
8534
  readonly name: Schema.String;
@@ -8438,11 +8543,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8438
8543
  data: Schema.Struct<{
8439
8544
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8440
8545
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8441
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8442
8546
  };
8443
8547
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8444
8548
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8445
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8549
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8446
8550
  };
8447
8551
  readonly id: Schema.String;
8448
8552
  readonly name: Schema.String;
@@ -8481,11 +8585,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8481
8585
  readonly data: Schema.Struct<{
8482
8586
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8483
8587
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8484
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8485
8588
  };
8486
8589
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8487
8590
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8488
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8591
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8489
8592
  };
8490
8593
  readonly id: Schema.String;
8491
8594
  readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
@@ -8511,11 +8614,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8511
8614
  data: Schema.Struct<{
8512
8615
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8513
8616
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8514
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8515
8617
  };
8516
8618
  readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8517
8619
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8518
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8620
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8519
8621
  };
8520
8622
  readonly id: Schema.String;
8521
8623
  readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
@@ -8565,7 +8667,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8565
8667
  readonly data: Schema.Struct<{
8566
8668
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
8567
8669
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8568
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8569
8670
  };
8570
8671
  }>;
8571
8672
  }> & {
@@ -8578,7 +8679,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8578
8679
  data: Schema.Struct<{
8579
8680
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
8580
8681
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8581
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8582
8682
  };
8583
8683
  }>;
8584
8684
  }) | (Schema.Struct<{
@@ -8615,7 +8715,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8615
8715
  readonly data: Schema.Struct<{
8616
8716
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8617
8717
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8618
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8619
8718
  };
8620
8719
  readonly idle: Schema.Finite;
8621
8720
  }>;
@@ -8629,7 +8728,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8629
8728
  data: Schema.Struct<{
8630
8729
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8631
8730
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8632
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8633
8731
  };
8634
8732
  readonly idle: Schema.Finite;
8635
8733
  }>;
@@ -8667,7 +8765,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8667
8765
  readonly data: Schema.Struct<{
8668
8766
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8669
8767
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8670
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8671
8768
  };
8672
8769
  readonly source: Schema.Literals<readonly ["title", "compaction"]>;
8673
8770
  readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -8693,7 +8790,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8693
8790
  data: Schema.Struct<{
8694
8791
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8695
8792
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8696
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8697
8793
  };
8698
8794
  readonly source: Schema.Literals<readonly ["title", "compaction"]>;
8699
8795
  readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
@@ -8743,11 +8839,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8743
8839
  readonly data: Schema.Struct<{
8744
8840
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8745
8841
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8746
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8747
8842
  };
8748
8843
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8749
8844
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8750
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8845
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8751
8846
  };
8752
8847
  readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
8753
8848
  readonly type: Schema.tag<"text">;
@@ -8840,11 +8935,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8840
8935
  data: Schema.Struct<{
8841
8936
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8842
8937
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8843
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
8844
8938
  };
8845
8939
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
8846
8940
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
8847
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8941
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
8848
8942
  };
8849
8943
  readonly content: Schema.$Array<Schema.toEncoded<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
8850
8944
  readonly type: Schema.tag<"text">;
@@ -9434,7 +9528,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
9434
9528
  readonly metadata?: {
9435
9529
  readonly [x: string]: unknown;
9436
9530
  } | undefined;
9437
- readonly type: "session.metadata.updated";
9531
+ readonly type: "session.message.content.updated";
9438
9532
  readonly durable: {
9439
9533
  readonly aggregateID: string;
9440
9534
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -9446,14 +9540,135 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
9446
9540
  } | undefined;
9447
9541
  readonly data: {
9448
9542
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
9449
- readonly metadata: {
9450
- readonly [x: string]: Schema.Json;
9451
- };
9452
- };
9453
- } | {
9454
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
9455
- readonly created: number;
9456
- readonly metadata?: {
9543
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
9544
+ readonly content: readonly ({
9545
+ readonly type: "tool";
9546
+ readonly id: string;
9547
+ readonly name: string;
9548
+ readonly executed?: boolean | undefined;
9549
+ readonly native?: {
9550
+ readonly [x: string]: unknown;
9551
+ } | undefined;
9552
+ readonly state: {
9553
+ readonly status: "streaming";
9554
+ readonly input: string;
9555
+ } | {
9556
+ readonly status: "running";
9557
+ readonly input: {
9558
+ readonly [x: string]: unknown;
9559
+ };
9560
+ readonly metadata: {
9561
+ readonly [x: string]: Schema.Json;
9562
+ };
9563
+ } | {
9564
+ readonly status: "completed";
9565
+ readonly input: {
9566
+ readonly [x: string]: unknown;
9567
+ };
9568
+ readonly content: readonly [{
9569
+ readonly type: "text";
9570
+ readonly text: string;
9571
+ } | {
9572
+ readonly type: "file";
9573
+ readonly uri: string;
9574
+ readonly mime: string;
9575
+ readonly name?: string | undefined;
9576
+ }, ...({
9577
+ readonly type: "text";
9578
+ readonly text: string;
9579
+ } | {
9580
+ readonly type: "file";
9581
+ readonly uri: string;
9582
+ readonly mime: string;
9583
+ readonly name?: string | undefined;
9584
+ })[]];
9585
+ readonly metadata?: {
9586
+ readonly [x: string]: Schema.Json;
9587
+ } | undefined;
9588
+ } | {
9589
+ readonly status: "error";
9590
+ readonly input: {
9591
+ readonly [x: string]: unknown;
9592
+ };
9593
+ readonly error: {
9594
+ readonly type: string;
9595
+ readonly message: string;
9596
+ readonly status?: number | undefined;
9597
+ readonly response?: {
9598
+ readonly body: string;
9599
+ } | undefined;
9600
+ readonly retryAfterMs?: number | undefined;
9601
+ };
9602
+ readonly content?: readonly [{
9603
+ readonly type: "text";
9604
+ readonly text: string;
9605
+ } | {
9606
+ readonly type: "file";
9607
+ readonly uri: string;
9608
+ readonly mime: string;
9609
+ readonly name?: string | undefined;
9610
+ }, ...({
9611
+ readonly type: "text";
9612
+ readonly text: string;
9613
+ } | {
9614
+ readonly type: "file";
9615
+ readonly uri: string;
9616
+ readonly mime: string;
9617
+ readonly name?: string | undefined;
9618
+ })[]] | undefined;
9619
+ readonly metadata?: {
9620
+ readonly [x: string]: Schema.Json;
9621
+ } | undefined;
9622
+ };
9623
+ readonly time: {
9624
+ readonly created: number;
9625
+ readonly ran?: number | undefined;
9626
+ readonly completed?: number | undefined;
9627
+ };
9628
+ } | {
9629
+ readonly type: "text";
9630
+ readonly text: string;
9631
+ readonly native?: {
9632
+ readonly [x: string]: unknown;
9633
+ } | undefined;
9634
+ } | {
9635
+ readonly type: "reasoning";
9636
+ readonly text: string;
9637
+ readonly native?: {
9638
+ readonly [x: string]: unknown;
9639
+ } | undefined;
9640
+ readonly time?: {
9641
+ readonly created: number;
9642
+ readonly completed?: number | undefined;
9643
+ } | undefined;
9644
+ })[];
9645
+ };
9646
+ } | {
9647
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
9648
+ readonly created: number;
9649
+ readonly metadata?: {
9650
+ readonly [x: string]: unknown;
9651
+ } | undefined;
9652
+ readonly type: "session.metadata.updated";
9653
+ readonly durable: {
9654
+ readonly aggregateID: string;
9655
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
9656
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
9657
+ };
9658
+ readonly location?: {
9659
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
9660
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
9661
+ } | undefined;
9662
+ readonly data: {
9663
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
9664
+ readonly metadata: {
9665
+ readonly [x: string]: Schema.Json;
9666
+ };
9667
+ };
9668
+ } | {
9669
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
9670
+ readonly created: number;
9671
+ readonly metadata?: {
9457
9672
  readonly [x: string]: unknown;
9458
9673
  } | undefined;
9459
9674
  readonly type: "session.model.selected";
@@ -9695,6 +9910,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
9695
9910
  readonly additions: number;
9696
9911
  readonly deletions: number;
9697
9912
  readonly status: "added" | "deleted" | "modified";
9913
+ readonly more?: true | undefined;
9698
9914
  }[] | undefined;
9699
9915
  };
9700
9916
  };
@@ -10197,27 +10413,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10197
10413
  readonly metadata?: {
10198
10414
  readonly [x: string]: unknown;
10199
10415
  } | 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";
10416
+ readonly type: "session.usage.recorded";
10221
10417
  readonly durable: {
10222
10418
  readonly aggregateID: string;
10223
10419
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -10229,108 +10425,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10229
10425
  } | undefined;
10230
10426
  readonly data: {
10231
10427
  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;
10428
+ readonly source: "compaction" | "title";
10429
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
10430
+ readonly tokens: {
10431
+ readonly input: number;
10432
+ readonly output: number;
10433
+ readonly reasoning: number;
10434
+ readonly cache: {
10435
+ readonly read: number;
10436
+ readonly write: number;
10332
10437
  };
10333
- })[];
10438
+ };
10334
10439
  };
10335
10440
  } | {
10336
10441
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -10338,7 +10443,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10338
10443
  readonly metadata?: {
10339
10444
  readonly [x: string]: unknown;
10340
10445
  } | undefined;
10341
- readonly type: "session.usage.recorded";
10446
+ readonly type: "session.viewed";
10342
10447
  readonly durable: {
10343
10448
  readonly aggregateID: string;
10344
10449
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -10350,17 +10455,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10350
10455
  } | undefined;
10351
10456
  readonly data: {
10352
10457
  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
- };
10458
+ readonly idle: number;
10364
10459
  };
10365
10460
  } | {
10366
10461
  readonly type: "log.synced";
@@ -10369,17 +10464,16 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10369
10464
  }>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.message", "GET", "/api/session/:sessionID/message/:messageID", Schema.toCodecStringTree<Schema.Struct<{
10370
10465
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
10371
10466
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10372
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
10373
10467
  };
10374
10468
  messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
10375
10469
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10376
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10470
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10377
10471
  };
10378
10472
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
10379
10473
  readonly data: Schema.Union<readonly [Schema.Struct<{
10380
10474
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10381
10475
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10382
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10476
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10383
10477
  };
10384
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>;
10385
10479
  readonly time: Schema.Struct<{
@@ -10391,7 +10485,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10391
10485
  }>, Schema.Struct<{
10392
10486
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10393
10487
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10394
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10488
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10395
10489
  };
10396
10490
  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
10491
  readonly time: Schema.Struct<{
@@ -10469,7 +10563,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10469
10563
  }>, Schema.Struct<{
10470
10564
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10471
10565
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10472
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10566
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10473
10567
  };
10474
10568
  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
10569
  readonly time: Schema.Struct<{
@@ -10499,7 +10593,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10499
10593
  }>, Schema.Struct<{
10500
10594
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10501
10595
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10502
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10596
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10503
10597
  };
10504
10598
  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
10599
  readonly time: Schema.Struct<{
@@ -10637,7 +10731,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10637
10731
  }>, Schema.Struct<{
10638
10732
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10639
10733
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10640
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10734
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10641
10735
  };
10642
10736
  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
10737
  readonly time: Schema.Struct<{
@@ -10649,7 +10743,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10649
10743
  }>, Schema.Struct<{
10650
10744
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10651
10745
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10652
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10746
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10653
10747
  };
10654
10748
  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
10749
  readonly time: Schema.Struct<{
@@ -10661,7 +10755,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10661
10755
  }>, Schema.Struct<{
10662
10756
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10663
10757
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10664
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10758
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10665
10759
  };
10666
10760
  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
10761
  readonly time: Schema.Struct<{
@@ -10674,7 +10768,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10674
10768
  }>, Schema.Struct<{
10675
10769
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10676
10770
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10677
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10771
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10678
10772
  };
10679
10773
  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
10774
  readonly type: Schema.tag<"shell">;
@@ -10703,7 +10797,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10703
10797
  }>, Schema.Struct<{
10704
10798
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10705
10799
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10706
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10800
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10707
10801
  };
10708
10802
  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
10803
  readonly type: Schema.tag<"assistant">;
@@ -10903,7 +10997,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10903
10997
  }>, Schema.Union<readonly [Schema.Struct<{
10904
10998
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10905
10999
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10906
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11000
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10907
11001
  };
10908
11002
  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
11003
  readonly time: Schema.Struct<{
@@ -10916,7 +11010,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10916
11010
  }>, Schema.Struct<{
10917
11011
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10918
11012
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
10919
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11013
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
10920
11014
  };
10921
11015
  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
11016
  readonly time: Schema.Struct<{
@@ -10997,7 +11091,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10997
11091
  }>, Schema.Struct<{
10998
11092
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
10999
11093
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11000
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11094
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11001
11095
  };
11002
11096
  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
11097
  readonly time: Schema.Struct<{
@@ -11042,7 +11136,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11042
11136
  }>]>, Schema.Struct<{
11043
11137
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
11044
11138
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11045
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11139
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11046
11140
  };
11047
11141
  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
11142
  readonly time: Schema.Struct<{
@@ -11075,7 +11169,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11075
11169
  }>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof MessageNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.move", "POST", "/api/session/:sessionID/move", Schema.toCodecStringTree<Schema.Struct<{
11076
11170
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11077
11171
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11078
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11079
11172
  };
11080
11173
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11081
11174
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -11083,7 +11176,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11083
11176
  }>>, 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
11177
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11085
11178
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11086
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11087
11179
  };
11088
11180
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11089
11181
  readonly text: Schema.String;
@@ -11100,18 +11192,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11100
11192
  readonly end: Schema.Finite;
11101
11193
  readonly text: Schema.String;
11102
11194
  }>>, 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<{
11195
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
11115
11196
  readonly uri: Schema.String;
11116
11197
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11117
11198
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -11124,18 +11205,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11124
11205
  readonly end: Schema.Finite;
11125
11206
  readonly text: Schema.String;
11126
11207
  }>>, 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>;
11208
+ }>>>, never, never>;
11139
11209
  readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11140
11210
  readonly name: Schema.String;
11141
11211
  readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
@@ -11184,7 +11254,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11184
11254
  }>>>, never, never>;
11185
11255
  readonly id: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
11186
11256
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11187
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11257
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11188
11258
  }>;
11189
11259
  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
11260
  readonly delivery: Schema.optional<Schema.Literals<readonly ["steer", "queue"]>>;
@@ -11326,11 +11396,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11326
11396
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
11327
11397
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
11328
11398
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11329
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11399
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11330
11400
  };
11331
11401
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11332
11402
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11333
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11334
11403
  };
11335
11404
  readonly time: Schema.Struct<{
11336
11405
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -11339,34 +11408,30 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11339
11408
  }>>, 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
11409
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11341
11410
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11342
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11343
11411
  };
11344
11412
  }>>, 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
11413
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11346
11414
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11347
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11348
11415
  };
11349
11416
  }>>, 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
11417
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11351
11418
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11352
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11353
11419
  };
11354
- }>>, 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<{
11420
+ }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionBusyError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.revert.stage", "POST", "/api/session/:sessionID/revert/stage", Schema.toCodecStringTree<Schema.Struct<{
11355
11421
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11356
11422
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11357
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11358
11423
  };
11359
11424
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11360
11425
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
11361
11426
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11362
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11427
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11363
11428
  };
11364
11429
  readonly files: Schema.optional<Schema.Boolean>;
11365
11430
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11366
11431
  readonly data: Schema.Struct<{
11367
11432
  readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
11368
11433
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11369
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11434
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11370
11435
  };
11371
11436
  readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11372
11437
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
@@ -11376,29 +11441,29 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11376
11441
  readonly additions: Schema.Int;
11377
11442
  readonly deletions: Schema.Int;
11378
11443
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
11444
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
11379
11445
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
11380
11446
  readonly file: Schema.String;
11381
11447
  readonly patch: Schema.String;
11382
11448
  readonly additions: Schema.Int;
11383
11449
  readonly deletions: Schema.Int;
11384
11450
  readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
11451
+ readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
11385
11452
  }>>>, never, never>;
11386
11453
  }>;
11387
11454
  }>>, 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
11455
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11389
11456
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11390
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11391
11457
  };
11392
11458
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11393
11459
  readonly id: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
11394
11460
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11395
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11461
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11396
11462
  }>;
11397
11463
  readonly command: Schema.String;
11398
11464
  }>>, 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
11465
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11400
11466
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11401
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11402
11467
  };
11403
11468
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11404
11469
  readonly id: Schema.brand<Schema.String, "Skill.ID">;
@@ -11508,14 +11573,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11508
11573
  }>>, Schema.toCodecJson<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.switchAgent", "POST", "/api/session/:sessionID/agent", Schema.toCodecStringTree<Schema.Struct<{
11509
11574
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11510
11575
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11511
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11512
11576
  };
11513
11577
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11514
11578
  readonly agent: Schema.brand<Schema.String, "Agent.ID">;
11515
- }>>, 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<{
11579
+ }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.switchModel", "POST", "/api/session/:sessionID/model", Schema.toCodecStringTree<Schema.Struct<{
11516
11580
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11517
11581
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11518
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11519
11582
  };
11520
11583
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11521
11584
  readonly model: Schema.Struct<{
@@ -11541,15 +11604,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11541
11604
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
11542
11605
  };
11543
11606
  };
11544
- }>>, 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<{
11607
+ }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.synthetic", "POST", "/api/session/:sessionID/synthetic", Schema.toCodecStringTree<Schema.Struct<{
11545
11608
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11546
11609
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11547
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11548
11610
  };
11549
11611
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11550
11612
  readonly id: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
11551
11613
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11552
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11614
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11553
11615
  }>;
11554
11616
  readonly text: Schema.String;
11555
11617
  readonly description: Schema.optional<Schema.String>;
@@ -11567,11 +11629,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11567
11629
  readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
11568
11630
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
11569
11631
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
11570
- fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11632
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
11571
11633
  };
11572
11634
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
11573
11635
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11574
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11575
11636
  };
11576
11637
  readonly time: Schema.Struct<{
11577
11638
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
@@ -11580,7 +11641,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11580
11641
  }>>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.update", "PATCH", "/api/session/:sessionID", Schema.toCodecStringTree<Schema.Struct<{
11581
11642
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11582
11643
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11583
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11584
11644
  };
11585
11645
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11586
11646
  readonly title: Schema.optional<Schema.String>;
@@ -11591,16 +11651,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11591
11651
  readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
11592
11652
  }>>>;
11593
11653
  readonly archived: Schema.optional<Schema.Boolean>;
11594
- }>>, 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<{
11654
+ }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof LocationNotFoundError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.view", "POST", "/api/session/:sessionID/view", Schema.toCodecStringTree<Schema.Struct<{
11595
11655
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11596
11656
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11597
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11598
11657
  };
11599
11658
  }>>, never, Schema.toCodecJson<Schema.Struct<{
11600
11659
  readonly idle: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
11601
11660
  }>>, 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
11661
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
11603
11662
  create: () => string & import("effect/Brand").Brand<"SessionID">;
11604
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
11605
11663
  };
11606
- }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ServiceUnavailableError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>>, false>;
11664
+ }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ServiceUnavailableError | typeof SessionNotFoundError>, never, never>, false>;