@opencode-ai/protocol 0.0.0-next-15090 → 0.0.0-next-15092
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.
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +2 -1
- package/dist/groups/agent.d.ts +10 -8
- package/dist/groups/command.d.ts +5 -5
- package/dist/groups/event.d.ts +506 -391
- package/dist/groups/generate.d.ts +2 -2
- package/dist/groups/message.d.ts +77 -136
- package/dist/groups/message.js +1 -1
- package/dist/groups/model.d.ts +52 -36
- package/dist/groups/permission.d.ts +1 -1
- package/dist/groups/session.d.ts +433 -495
- package/dist/groups/session.js +6 -6
- package/dist/groups/shell.d.ts +24 -24
- package/dist/groups/skill.d.ts +2 -1
- package/dist/groups/vcs.d.ts +5 -5
- package/package.json +2 -2
package/dist/groups/session.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from
|
|
|
5
5
|
import { ConflictError, CommandEvaluationError, CommandNotFoundError, InvalidCursorError, InvalidRequestError, MessageNotFoundError, ServiceUnavailableError, SessionBusyError, SessionNotFoundError, SkillNotFoundError, UnknownError } from "../errors.js";
|
|
6
6
|
import { SessionEvent } from "@opencode-ai/schema/session-event";
|
|
7
7
|
declare const SessionsCursorInput: Schema.Union<readonly [Schema.Struct<{
|
|
8
|
-
readonly search: Schema.optional<Schema.String>;
|
|
9
8
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
9
|
+
readonly search: Schema.optional<Schema.String>;
|
|
10
10
|
readonly workspace: Schema.optional<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11
11
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
12
12
|
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
@@ -183,9 +183,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
183
183
|
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
184
184
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
185
185
|
};
|
|
186
|
-
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "
|
|
186
|
+
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
187
187
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
188
|
-
readonly id: Schema.brand<Schema.String, "
|
|
188
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
189
189
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
190
190
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
191
191
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -199,9 +199,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
199
199
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
200
200
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
201
201
|
};
|
|
202
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
202
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
203
203
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
204
|
-
readonly id: Schema.brand<Schema.String, "
|
|
204
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
205
205
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
206
206
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
207
207
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -215,9 +215,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
215
215
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
216
216
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
217
217
|
};
|
|
218
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
218
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
219
219
|
}>>, never, never>;
|
|
220
|
-
readonly cost: Schema.Finite
|
|
220
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
221
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
222
|
+
};
|
|
221
223
|
readonly tokens: Schema.Struct<{
|
|
222
224
|
readonly input: Schema.Finite;
|
|
223
225
|
readonly output: Schema.Finite;
|
|
@@ -250,20 +252,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
250
252
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
251
253
|
};
|
|
252
254
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
253
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
254
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
255
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
255
256
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
256
|
-
readonly
|
|
257
|
-
readonly
|
|
257
|
+
readonly file: Schema.String;
|
|
258
|
+
readonly patch: Schema.String;
|
|
258
259
|
readonly additions: Schema.Int;
|
|
259
260
|
readonly deletions: Schema.Int;
|
|
260
|
-
readonly
|
|
261
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
261
262
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
262
|
-
readonly
|
|
263
|
-
readonly
|
|
263
|
+
readonly file: Schema.String;
|
|
264
|
+
readonly patch: Schema.String;
|
|
264
265
|
readonly additions: Schema.Int;
|
|
265
266
|
readonly deletions: Schema.Int;
|
|
266
|
-
readonly
|
|
267
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
267
268
|
}>>>, never, never>;
|
|
268
269
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
269
270
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -271,20 +272,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
271
272
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
272
273
|
};
|
|
273
274
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
274
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
275
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
275
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
276
276
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
277
|
-
readonly
|
|
278
|
-
readonly
|
|
277
|
+
readonly file: Schema.String;
|
|
278
|
+
readonly patch: Schema.String;
|
|
279
279
|
readonly additions: Schema.Int;
|
|
280
280
|
readonly deletions: Schema.Int;
|
|
281
|
-
readonly
|
|
281
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
282
282
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
283
|
-
readonly
|
|
284
|
-
readonly
|
|
283
|
+
readonly file: Schema.String;
|
|
284
|
+
readonly patch: Schema.String;
|
|
285
285
|
readonly additions: Schema.Int;
|
|
286
286
|
readonly deletions: Schema.Int;
|
|
287
|
-
readonly
|
|
287
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
288
288
|
}>>>, never, never>;
|
|
289
289
|
}>>, never, never>;
|
|
290
290
|
}>>;
|
|
@@ -369,9 +369,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
369
369
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
370
370
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
371
371
|
}>;
|
|
372
|
-
readonly agent: Schema.optional<Schema.brand<Schema.String, "
|
|
372
|
+
readonly agent: Schema.optional<Schema.brand<Schema.String, "Agent.ID">>;
|
|
373
373
|
readonly model: Schema.optional<Schema.Struct<{
|
|
374
|
-
readonly id: Schema.brand<Schema.String, "
|
|
374
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
375
375
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
376
376
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
377
377
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -385,7 +385,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
385
385
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
386
386
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
387
387
|
};
|
|
388
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
388
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
389
389
|
}>>;
|
|
390
390
|
readonly location: Schema.optional<Schema.Struct<{
|
|
391
391
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -438,9 +438,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
438
438
|
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
439
439
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
440
440
|
};
|
|
441
|
-
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "
|
|
441
|
+
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
442
442
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
443
|
-
readonly id: Schema.brand<Schema.String, "
|
|
443
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
444
444
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
445
445
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
446
446
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -454,9 +454,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
454
454
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
455
455
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
456
456
|
};
|
|
457
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
457
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
458
458
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
459
|
-
readonly id: Schema.brand<Schema.String, "
|
|
459
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
460
460
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
461
461
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
462
462
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -470,9 +470,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
470
470
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
471
471
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
472
472
|
};
|
|
473
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
473
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
474
474
|
}>>, never, never>;
|
|
475
|
-
readonly cost: Schema.Finite
|
|
475
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
476
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
477
|
+
};
|
|
476
478
|
readonly tokens: Schema.Struct<{
|
|
477
479
|
readonly input: Schema.Finite;
|
|
478
480
|
readonly output: Schema.Finite;
|
|
@@ -505,20 +507,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
505
507
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
506
508
|
};
|
|
507
509
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
508
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
509
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
510
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
510
511
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
511
|
-
readonly
|
|
512
|
-
readonly
|
|
512
|
+
readonly file: Schema.String;
|
|
513
|
+
readonly patch: Schema.String;
|
|
513
514
|
readonly additions: Schema.Int;
|
|
514
515
|
readonly deletions: Schema.Int;
|
|
515
|
-
readonly
|
|
516
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
516
517
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
517
|
-
readonly
|
|
518
|
-
readonly
|
|
518
|
+
readonly file: Schema.String;
|
|
519
|
+
readonly patch: Schema.String;
|
|
519
520
|
readonly additions: Schema.Int;
|
|
520
521
|
readonly deletions: Schema.Int;
|
|
521
|
-
readonly
|
|
522
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
522
523
|
}>>>, never, never>;
|
|
523
524
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
524
525
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -526,20 +527,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
526
527
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
527
528
|
};
|
|
528
529
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
529
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
530
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
530
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
531
531
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
532
|
-
readonly
|
|
533
|
-
readonly
|
|
532
|
+
readonly file: Schema.String;
|
|
533
|
+
readonly patch: Schema.String;
|
|
534
534
|
readonly additions: Schema.Int;
|
|
535
535
|
readonly deletions: Schema.Int;
|
|
536
|
-
readonly
|
|
536
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
537
537
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
538
|
-
readonly
|
|
539
|
-
readonly
|
|
538
|
+
readonly file: Schema.String;
|
|
539
|
+
readonly patch: Schema.String;
|
|
540
540
|
readonly additions: Schema.Int;
|
|
541
541
|
readonly deletions: Schema.Int;
|
|
542
|
-
readonly
|
|
542
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
543
543
|
}>>>, never, never>;
|
|
544
544
|
}>>, never, never>;
|
|
545
545
|
}>;
|
|
@@ -596,9 +596,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
596
596
|
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
597
597
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
598
598
|
};
|
|
599
|
-
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "
|
|
599
|
+
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
600
600
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
601
|
-
readonly id: Schema.brand<Schema.String, "
|
|
601
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
602
602
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
603
603
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
604
604
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -612,9 +612,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
612
612
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
613
613
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
614
614
|
};
|
|
615
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
615
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
616
616
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
617
|
-
readonly id: Schema.brand<Schema.String, "
|
|
617
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
618
618
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
619
619
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
620
620
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -628,9 +628,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
628
628
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
629
629
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
630
630
|
};
|
|
631
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
631
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
632
632
|
}>>, never, never>;
|
|
633
|
-
readonly cost: Schema.Finite
|
|
633
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
634
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
635
|
+
};
|
|
634
636
|
readonly tokens: Schema.Struct<{
|
|
635
637
|
readonly input: Schema.Finite;
|
|
636
638
|
readonly output: Schema.Finite;
|
|
@@ -663,20 +665,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
663
665
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
664
666
|
};
|
|
665
667
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
666
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
667
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
668
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
668
669
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
669
|
-
readonly
|
|
670
|
-
readonly
|
|
670
|
+
readonly file: Schema.String;
|
|
671
|
+
readonly patch: Schema.String;
|
|
671
672
|
readonly additions: Schema.Int;
|
|
672
673
|
readonly deletions: Schema.Int;
|
|
673
|
-
readonly
|
|
674
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
674
675
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
675
|
-
readonly
|
|
676
|
-
readonly
|
|
676
|
+
readonly file: Schema.String;
|
|
677
|
+
readonly patch: Schema.String;
|
|
677
678
|
readonly additions: Schema.Int;
|
|
678
679
|
readonly deletions: Schema.Int;
|
|
679
|
-
readonly
|
|
680
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
680
681
|
}>>>, never, never>;
|
|
681
682
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
682
683
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -684,20 +685,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
684
685
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
685
686
|
};
|
|
686
687
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
687
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
688
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
688
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
689
689
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
690
|
-
readonly
|
|
691
|
-
readonly
|
|
690
|
+
readonly file: Schema.String;
|
|
691
|
+
readonly patch: Schema.String;
|
|
692
692
|
readonly additions: Schema.Int;
|
|
693
693
|
readonly deletions: Schema.Int;
|
|
694
|
-
readonly
|
|
694
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
695
695
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
696
|
-
readonly
|
|
697
|
-
readonly
|
|
696
|
+
readonly file: Schema.String;
|
|
697
|
+
readonly patch: Schema.String;
|
|
698
698
|
readonly additions: Schema.Int;
|
|
699
699
|
readonly deletions: Schema.Int;
|
|
700
|
-
readonly
|
|
700
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
701
701
|
}>>>, never, never>;
|
|
702
702
|
}>>, never, never>;
|
|
703
703
|
}>;
|
|
@@ -757,9 +757,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
757
757
|
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
758
758
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
759
759
|
};
|
|
760
|
-
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "
|
|
760
|
+
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
761
761
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
762
|
-
readonly id: Schema.brand<Schema.String, "
|
|
762
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
763
763
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
764
764
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
765
765
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -773,9 +773,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
773
773
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
774
774
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
775
775
|
};
|
|
776
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
776
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
777
777
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
778
|
-
readonly id: Schema.brand<Schema.String, "
|
|
778
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
779
779
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
780
780
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
781
781
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -789,9 +789,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
789
789
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
790
790
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
791
791
|
};
|
|
792
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
792
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
793
793
|
}>>, never, never>;
|
|
794
|
-
readonly cost: Schema.Finite
|
|
794
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
795
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
796
|
+
};
|
|
795
797
|
readonly tokens: Schema.Struct<{
|
|
796
798
|
readonly input: Schema.Finite;
|
|
797
799
|
readonly output: Schema.Finite;
|
|
@@ -824,20 +826,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
824
826
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
825
827
|
};
|
|
826
828
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
827
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
828
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
829
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
829
830
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
830
|
-
readonly
|
|
831
|
-
readonly
|
|
831
|
+
readonly file: Schema.String;
|
|
832
|
+
readonly patch: Schema.String;
|
|
832
833
|
readonly additions: Schema.Int;
|
|
833
834
|
readonly deletions: Schema.Int;
|
|
834
|
-
readonly
|
|
835
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
835
836
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
836
|
-
readonly
|
|
837
|
-
readonly
|
|
837
|
+
readonly file: Schema.String;
|
|
838
|
+
readonly patch: Schema.String;
|
|
838
839
|
readonly additions: Schema.Int;
|
|
839
840
|
readonly deletions: Schema.Int;
|
|
840
|
-
readonly
|
|
841
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
841
842
|
}>>>, never, never>;
|
|
842
843
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
843
844
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -845,20 +846,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
845
846
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
846
847
|
};
|
|
847
848
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
848
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
849
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
849
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
850
850
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
851
|
-
readonly
|
|
852
|
-
readonly
|
|
851
|
+
readonly file: Schema.String;
|
|
852
|
+
readonly patch: Schema.String;
|
|
853
853
|
readonly additions: Schema.Int;
|
|
854
854
|
readonly deletions: Schema.Int;
|
|
855
|
-
readonly
|
|
855
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
856
856
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
857
|
-
readonly
|
|
858
|
-
readonly
|
|
857
|
+
readonly file: Schema.String;
|
|
858
|
+
readonly patch: Schema.String;
|
|
859
859
|
readonly additions: Schema.Int;
|
|
860
860
|
readonly deletions: Schema.Int;
|
|
861
|
-
readonly
|
|
861
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
862
862
|
}>>>, never, never>;
|
|
863
863
|
}>>, never, never>;
|
|
864
864
|
}>;
|
|
@@ -868,7 +868,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
868
868
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
869
869
|
};
|
|
870
870
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
871
|
-
readonly agent: Schema.brand<Schema.String, "
|
|
871
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
872
872
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.switchModel", "POST", "/api/session/:sessionID/model", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
873
873
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
874
874
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -876,7 +876,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
876
876
|
};
|
|
877
877
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
878
878
|
readonly model: Schema.Struct<{
|
|
879
|
-
readonly id: Schema.brand<Schema.String, "
|
|
879
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
880
880
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
881
881
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
882
882
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -890,7 +890,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
890
890
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
891
891
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
892
892
|
};
|
|
893
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
893
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
894
894
|
}>;
|
|
895
895
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.rename", "POST", "/api/session/:sessionID/rename", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
896
896
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -1183,9 +1183,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1183
1183
|
}>;
|
|
1184
1184
|
readonly command: Schema.String;
|
|
1185
1185
|
readonly arguments: Schema.optional<Schema.String>;
|
|
1186
|
-
readonly agent: Schema.optional<Schema.String
|
|
1186
|
+
readonly agent: Schema.optional<Schema.brand<Schema.String, "Agent.ID">>;
|
|
1187
1187
|
readonly model: Schema.optional<Schema.Struct<{
|
|
1188
|
-
readonly id: Schema.brand<Schema.String, "
|
|
1188
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1189
1189
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1190
1190
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1191
1191
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -1199,7 +1199,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1199
1199
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1200
1200
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1201
1201
|
};
|
|
1202
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
1202
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1203
1203
|
}>>;
|
|
1204
1204
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1205
1205
|
readonly uri: Schema.String;
|
|
@@ -1460,7 +1460,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1460
1460
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1461
1461
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1462
1462
|
}>;
|
|
1463
|
-
readonly skill: Schema.String
|
|
1463
|
+
readonly skill: Schema.brand<Schema.String, "Skill.ID">;
|
|
1464
1464
|
readonly resume: Schema.optional<Schema.Boolean>;
|
|
1465
1465
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof SessionNotFoundError | typeof SkillNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.synthetic", "POST", "/api/session/:sessionID/synthetic", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
1466
1466
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -1494,7 +1494,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1494
1494
|
}>;
|
|
1495
1495
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
1496
1496
|
readonly data: Schema.Struct<{
|
|
1497
|
-
readonly type: Schema.
|
|
1497
|
+
readonly type: Schema.tag<"compaction">;
|
|
1498
1498
|
readonly admittedSeq: Schema.Int;
|
|
1499
1499
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1500
1500
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1530,20 +1530,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1530
1530
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1531
1531
|
};
|
|
1532
1532
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1533
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
1534
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1533
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1535
1534
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1536
|
-
readonly
|
|
1537
|
-
readonly
|
|
1535
|
+
readonly file: Schema.String;
|
|
1536
|
+
readonly patch: Schema.String;
|
|
1538
1537
|
readonly additions: Schema.Int;
|
|
1539
1538
|
readonly deletions: Schema.Int;
|
|
1540
|
-
readonly
|
|
1539
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
1541
1540
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1542
|
-
readonly
|
|
1543
|
-
readonly
|
|
1541
|
+
readonly file: Schema.String;
|
|
1542
|
+
readonly patch: Schema.String;
|
|
1544
1543
|
readonly additions: Schema.Int;
|
|
1545
1544
|
readonly deletions: Schema.Int;
|
|
1546
|
-
readonly
|
|
1545
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
1547
1546
|
}>>>, never, never>;
|
|
1548
1547
|
}>;
|
|
1549
1548
|
}>>, HttpApiEndpoint.Json<typeof SessionBusyError | typeof UnknownError | typeof SessionNotFoundError | typeof MessageNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.revert.clear", "POST", "/api/session/:sessionID/revert/clear", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
@@ -1563,8 +1562,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1563
1562
|
};
|
|
1564
1563
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
1565
1564
|
readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1566
|
-
readonly type: Schema.
|
|
1567
|
-
readonly agent: Schema.String
|
|
1565
|
+
readonly type: Schema.tag<"agent-switched">;
|
|
1566
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
1568
1567
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1569
1568
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1570
1569
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1574,9 +1573,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1574
1573
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1575
1574
|
}>;
|
|
1576
1575
|
}>, Schema.Struct<{
|
|
1577
|
-
readonly type: Schema.
|
|
1576
|
+
readonly type: Schema.tag<"model-switched">;
|
|
1578
1577
|
readonly model: Schema.Struct<{
|
|
1579
|
-
readonly id: Schema.brand<Schema.String, "
|
|
1578
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1580
1579
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1581
1580
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1582
1581
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -1590,10 +1589,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1590
1589
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1591
1590
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1592
1591
|
};
|
|
1593
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
1592
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1594
1593
|
}>;
|
|
1595
1594
|
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1596
|
-
readonly id: Schema.brand<Schema.String, "
|
|
1595
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1597
1596
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1598
1597
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1599
1598
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -1607,9 +1606,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1607
1606
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1608
1607
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1609
1608
|
};
|
|
1610
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
1609
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1611
1610
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1612
|
-
readonly id: Schema.brand<Schema.String, "
|
|
1611
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1613
1612
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1614
1613
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1615
1614
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -1623,7 +1622,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1623
1622
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1624
1623
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1625
1624
|
};
|
|
1626
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
1625
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1627
1626
|
}>>, never, never>;
|
|
1628
1627
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1629
1628
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1735,7 +1734,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1735
1734
|
readonly text: Schema.String;
|
|
1736
1735
|
}>>, never, never>;
|
|
1737
1736
|
}>>>, never, never>;
|
|
1738
|
-
readonly type: Schema.
|
|
1737
|
+
readonly type: Schema.tag<"user">;
|
|
1739
1738
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1740
1739
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1741
1740
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1745,13 +1744,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1745
1744
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1746
1745
|
}>;
|
|
1747
1746
|
}>, Schema.Struct<{
|
|
1748
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1749
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1750
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1751
|
-
};
|
|
1752
1747
|
readonly text: Schema.String;
|
|
1753
1748
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1754
|
-
readonly type: Schema.
|
|
1749
|
+
readonly type: Schema.tag<"synthetic">;
|
|
1755
1750
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1756
1751
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1757
1752
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1761,7 +1756,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1761
1756
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1762
1757
|
}>;
|
|
1763
1758
|
}>, Schema.Struct<{
|
|
1764
|
-
readonly type: Schema.
|
|
1759
|
+
readonly type: Schema.tag<"system">;
|
|
1765
1760
|
readonly text: Schema.String;
|
|
1766
1761
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1767
1762
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1772,8 +1767,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1772
1767
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1773
1768
|
}>;
|
|
1774
1769
|
}>, Schema.Struct<{
|
|
1775
|
-
readonly type: Schema.
|
|
1776
|
-
readonly
|
|
1770
|
+
readonly type: Schema.tag<"skill">;
|
|
1771
|
+
readonly skill: Schema.brand<Schema.String, "Skill.ID">;
|
|
1772
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1777
1773
|
readonly text: Schema.String;
|
|
1778
1774
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1779
1775
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1784,25 +1780,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1784
1780
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1785
1781
|
}>;
|
|
1786
1782
|
}>, Schema.Struct<{
|
|
1787
|
-
readonly type: Schema.
|
|
1788
|
-
readonly
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
readonly cwd: Schema.String;
|
|
1796
|
-
readonly shell: Schema.String;
|
|
1797
|
-
readonly file: Schema.String;
|
|
1798
|
-
readonly pid: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1799
|
-
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
1800
|
-
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1801
|
-
readonly time: Schema.Struct<{
|
|
1802
|
-
readonly started: Schema.Number;
|
|
1803
|
-
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
1804
|
-
}>;
|
|
1805
|
-
}>;
|
|
1783
|
+
readonly type: Schema.tag<"shell">;
|
|
1784
|
+
readonly shellID: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
1785
|
+
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
1786
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
1787
|
+
};
|
|
1788
|
+
readonly command: Schema.String;
|
|
1789
|
+
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
1790
|
+
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
1806
1791
|
readonly output: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1807
1792
|
readonly output: Schema.String;
|
|
1808
1793
|
readonly cursor: Schema.Int;
|
|
@@ -1824,10 +1809,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1824
1809
|
};
|
|
1825
1810
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1826
1811
|
}>, Schema.Struct<{
|
|
1827
|
-
readonly type: Schema.
|
|
1828
|
-
readonly agent: Schema.String
|
|
1812
|
+
readonly type: Schema.tag<"assistant">;
|
|
1813
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
1829
1814
|
readonly model: Schema.Struct<{
|
|
1830
|
-
readonly id: Schema.brand<Schema.String, "
|
|
1815
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1831
1816
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1832
1817
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1833
1818
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -1841,13 +1826,13 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1841
1826
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1842
1827
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1843
1828
|
};
|
|
1844
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
1829
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1845
1830
|
}>;
|
|
1846
1831
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
1847
|
-
readonly type: Schema.
|
|
1832
|
+
readonly type: Schema.tag<"text">;
|
|
1848
1833
|
readonly text: Schema.String;
|
|
1849
1834
|
}>, Schema.Struct<{
|
|
1850
|
-
readonly type: Schema.
|
|
1835
|
+
readonly type: Schema.tag<"reasoning">;
|
|
1851
1836
|
readonly text: Schema.String;
|
|
1852
1837
|
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1853
1838
|
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1858,17 +1843,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1858
1843
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1859
1844
|
}>>, never, never>;
|
|
1860
1845
|
}>, Schema.Struct<{
|
|
1861
|
-
readonly type: Schema.
|
|
1846
|
+
readonly type: Schema.tag<"tool">;
|
|
1862
1847
|
readonly id: Schema.String;
|
|
1863
1848
|
readonly name: Schema.String;
|
|
1864
1849
|
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1865
1850
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1866
1851
|
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1867
1852
|
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
1868
|
-
readonly status: Schema.
|
|
1853
|
+
readonly status: Schema.tag<"streaming">;
|
|
1869
1854
|
readonly input: Schema.String;
|
|
1870
1855
|
}>, Schema.Struct<{
|
|
1871
|
-
readonly status: Schema.
|
|
1856
|
+
readonly status: Schema.tag<"running">;
|
|
1872
1857
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1873
1858
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1874
1859
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1881,85 +1866,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1881
1866
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1882
1867
|
}>]>>;
|
|
1883
1868
|
}>, Schema.Struct<{
|
|
1884
|
-
readonly status: Schema.
|
|
1869
|
+
readonly status: Schema.tag<"completed">;
|
|
1885
1870
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1886
|
-
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1887
|
-
readonly data: Schema.String;
|
|
1888
|
-
readonly mime: Schema.String;
|
|
1889
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1890
|
-
readonly type: Schema.Literal<"inline">;
|
|
1891
|
-
}>, Schema.Struct<{
|
|
1892
|
-
readonly type: Schema.Literal<"uri">;
|
|
1893
|
-
readonly uri: Schema.String;
|
|
1894
|
-
}>]>;
|
|
1895
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1896
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1897
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1898
|
-
readonly start: Schema.Finite;
|
|
1899
|
-
readonly end: Schema.Finite;
|
|
1900
|
-
readonly text: Schema.String;
|
|
1901
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1902
|
-
readonly start: Schema.Finite;
|
|
1903
|
-
readonly end: Schema.Finite;
|
|
1904
|
-
readonly text: Schema.String;
|
|
1905
|
-
}>>, never, never>;
|
|
1906
|
-
}> & {
|
|
1907
|
-
create: (input: SessionEvent.FileAttachment) => {
|
|
1908
|
-
readonly data: string;
|
|
1909
|
-
readonly mime: string;
|
|
1910
|
-
readonly source: {
|
|
1911
|
-
readonly type: "inline";
|
|
1912
|
-
} | {
|
|
1913
|
-
readonly type: "uri";
|
|
1914
|
-
readonly uri: string;
|
|
1915
|
-
};
|
|
1916
|
-
readonly name?: string | undefined;
|
|
1917
|
-
readonly description?: string | undefined;
|
|
1918
|
-
readonly mention?: {
|
|
1919
|
-
readonly start: number;
|
|
1920
|
-
readonly end: number;
|
|
1921
|
-
readonly text: string;
|
|
1922
|
-
} | undefined;
|
|
1923
|
-
};
|
|
1924
|
-
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1925
|
-
readonly data: Schema.String;
|
|
1926
|
-
readonly mime: Schema.String;
|
|
1927
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
1928
|
-
readonly type: Schema.Literal<"inline">;
|
|
1929
|
-
}>, Schema.Struct<{
|
|
1930
|
-
readonly type: Schema.Literal<"uri">;
|
|
1931
|
-
readonly uri: Schema.String;
|
|
1932
|
-
}>]>;
|
|
1933
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1934
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1935
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1936
|
-
readonly start: Schema.Finite;
|
|
1937
|
-
readonly end: Schema.Finite;
|
|
1938
|
-
readonly text: Schema.String;
|
|
1939
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1940
|
-
readonly start: Schema.Finite;
|
|
1941
|
-
readonly end: Schema.Finite;
|
|
1942
|
-
readonly text: Schema.String;
|
|
1943
|
-
}>>, never, never>;
|
|
1944
|
-
}> & {
|
|
1945
|
-
create: (input: SessionEvent.FileAttachment) => {
|
|
1946
|
-
readonly data: string;
|
|
1947
|
-
readonly mime: string;
|
|
1948
|
-
readonly source: {
|
|
1949
|
-
readonly type: "inline";
|
|
1950
|
-
} | {
|
|
1951
|
-
readonly type: "uri";
|
|
1952
|
-
readonly uri: string;
|
|
1953
|
-
};
|
|
1954
|
-
readonly name?: string | undefined;
|
|
1955
|
-
readonly description?: string | undefined;
|
|
1956
|
-
readonly mention?: {
|
|
1957
|
-
readonly start: number;
|
|
1958
|
-
readonly end: number;
|
|
1959
|
-
readonly text: string;
|
|
1960
|
-
} | undefined;
|
|
1961
|
-
};
|
|
1962
|
-
}>>, never, never>;
|
|
1963
1871
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1964
1872
|
readonly type: Schema.Literal<"text">;
|
|
1965
1873
|
readonly text: Schema.String;
|
|
@@ -1969,11 +1877,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1969
1877
|
readonly mime: Schema.String;
|
|
1970
1878
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1971
1879
|
}>]>>;
|
|
1972
|
-
readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
1973
1880
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1974
1881
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
1975
1882
|
}>, Schema.Struct<{
|
|
1976
|
-
readonly status: Schema.
|
|
1883
|
+
readonly status: Schema.tag<"error">;
|
|
1977
1884
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1978
1885
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1979
1886
|
readonly type: Schema.Literal<"text">;
|
|
@@ -1995,20 +1902,23 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1995
1902
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1996
1903
|
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1997
1904
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1998
|
-
readonly pruned: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1999
1905
|
}>;
|
|
2000
1906
|
}>]>>;
|
|
2001
1907
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2002
|
-
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
2003
|
-
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
1908
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1909
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
2004
1910
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
2005
1911
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2006
|
-
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
2007
|
-
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
1912
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1913
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
2008
1914
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
2009
1915
|
}>>, never, never>;
|
|
2010
1916
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
2011
|
-
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
1917
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1918
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1919
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1920
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1921
|
+
}>, never, never>;
|
|
2012
1922
|
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2013
1923
|
readonly input: Schema.Finite;
|
|
2014
1924
|
readonly output: Schema.Finite;
|
|
@@ -2057,7 +1967,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2057
1967
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2058
1968
|
};
|
|
2059
1969
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2060
|
-
}>, Schema.Struct<{
|
|
1970
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
1971
|
+
readonly status: Schema.tag<"running">;
|
|
1972
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1973
|
+
readonly summary: Schema.String;
|
|
1974
|
+
readonly recent: Schema.String;
|
|
2061
1975
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2062
1976
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2063
1977
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -2066,12 +1980,38 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2066
1980
|
readonly time: Schema.Struct<{
|
|
2067
1981
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2068
1982
|
}>;
|
|
2069
|
-
readonly type: Schema.
|
|
2070
|
-
|
|
1983
|
+
readonly type: Schema.tag<"compaction">;
|
|
1984
|
+
}>, Schema.Struct<{
|
|
1985
|
+
readonly status: Schema.tag<"completed">;
|
|
2071
1986
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
2072
1987
|
readonly summary: Schema.String;
|
|
2073
1988
|
readonly recent: Schema.String;
|
|
2074
|
-
|
|
1989
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1990
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1991
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1992
|
+
};
|
|
1993
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1994
|
+
readonly time: Schema.Struct<{
|
|
1995
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1996
|
+
}>;
|
|
1997
|
+
readonly type: Schema.tag<"compaction">;
|
|
1998
|
+
}>, Schema.Struct<{
|
|
1999
|
+
readonly status: Schema.tag<"failed">;
|
|
2000
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
2001
|
+
readonly error: Schema.Struct<{
|
|
2002
|
+
readonly type: Schema.String;
|
|
2003
|
+
readonly message: Schema.String;
|
|
2004
|
+
}>;
|
|
2005
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2006
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2007
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2008
|
+
};
|
|
2009
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2010
|
+
readonly time: Schema.Struct<{
|
|
2011
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2012
|
+
}>;
|
|
2013
|
+
readonly type: Schema.tag<"compaction">;
|
|
2014
|
+
}>]>]>>;
|
|
2075
2015
|
}>>, HttpApiEndpoint.Json<typeof UnknownError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.list", "GET", "/api/session/:sessionID/instructions/entries", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
2076
2016
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2077
2017
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2114,7 +2054,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2114
2054
|
readonly durable: Schema.Struct<{
|
|
2115
2055
|
readonly aggregateID: Schema.String;
|
|
2116
2056
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2117
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2057
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2118
2058
|
}>;
|
|
2119
2059
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2120
2060
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -2136,7 +2076,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2136
2076
|
}>, never, never>;
|
|
2137
2077
|
}>>, never, never>;
|
|
2138
2078
|
readonly data: Schema.Struct<{
|
|
2139
|
-
readonly agent: Schema.String
|
|
2079
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
2140
2080
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2141
2081
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2142
2082
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2150,7 +2090,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2150
2090
|
readonly aggregate: string;
|
|
2151
2091
|
};
|
|
2152
2092
|
data: Schema.Struct<{
|
|
2153
|
-
readonly agent: Schema.String
|
|
2093
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
2154
2094
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2155
2095
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2156
2096
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2166,7 +2106,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2166
2106
|
readonly durable: Schema.Struct<{
|
|
2167
2107
|
readonly aggregateID: Schema.String;
|
|
2168
2108
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2169
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2109
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2170
2110
|
}>;
|
|
2171
2111
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2172
2112
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -2189,7 +2129,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2189
2129
|
}>>, never, never>;
|
|
2190
2130
|
readonly data: Schema.Struct<{
|
|
2191
2131
|
readonly model: Schema.Struct<{
|
|
2192
|
-
readonly id: Schema.brand<Schema.String, "
|
|
2132
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
2193
2133
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
2194
2134
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2195
2135
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -2203,7 +2143,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2203
2143
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2204
2144
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2205
2145
|
};
|
|
2206
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
2146
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
2207
2147
|
}>;
|
|
2208
2148
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2209
2149
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2219,7 +2159,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2219
2159
|
};
|
|
2220
2160
|
data: Schema.Struct<{
|
|
2221
2161
|
readonly model: Schema.Struct<{
|
|
2222
|
-
readonly id: Schema.brand<Schema.String, "
|
|
2162
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
2223
2163
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
2224
2164
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2225
2165
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -2233,7 +2173,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2233
2173
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2234
2174
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
2235
2175
|
};
|
|
2236
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
2176
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
2237
2177
|
}>;
|
|
2238
2178
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2239
2179
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2250,7 +2190,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2250
2190
|
readonly durable: Schema.Struct<{
|
|
2251
2191
|
readonly aggregateID: Schema.String;
|
|
2252
2192
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2253
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2193
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2254
2194
|
}>;
|
|
2255
2195
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2256
2196
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -2322,7 +2262,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2322
2262
|
readonly durable: Schema.Struct<{
|
|
2323
2263
|
readonly aggregateID: Schema.String;
|
|
2324
2264
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2325
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2265
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2326
2266
|
}>;
|
|
2327
2267
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2328
2268
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -2374,7 +2314,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2374
2314
|
readonly durable: Schema.Struct<{
|
|
2375
2315
|
readonly aggregateID: Schema.String;
|
|
2376
2316
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2377
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2317
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2378
2318
|
}>;
|
|
2379
2319
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2380
2320
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -2424,7 +2364,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2424
2364
|
readonly durable: Schema.Struct<{
|
|
2425
2365
|
readonly aggregateID: Schema.String;
|
|
2426
2366
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2427
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2367
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2428
2368
|
}>;
|
|
2429
2369
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2430
2370
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -2496,7 +2436,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2496
2436
|
readonly durable: Schema.Struct<{
|
|
2497
2437
|
readonly aggregateID: Schema.String;
|
|
2498
2438
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2499
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2439
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2500
2440
|
}>;
|
|
2501
2441
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2502
2442
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -2554,7 +2494,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2554
2494
|
readonly durable: Schema.Struct<{
|
|
2555
2495
|
readonly aggregateID: Schema.String;
|
|
2556
2496
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2557
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2497
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2558
2498
|
}>;
|
|
2559
2499
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2560
2500
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -2934,7 +2874,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2934
2874
|
readonly durable: Schema.Struct<{
|
|
2935
2875
|
readonly aggregateID: Schema.String;
|
|
2936
2876
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2937
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2877
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2938
2878
|
}>;
|
|
2939
2879
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2940
2880
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -2984,7 +2924,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2984
2924
|
readonly durable: Schema.Struct<{
|
|
2985
2925
|
readonly aggregateID: Schema.String;
|
|
2986
2926
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2987
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2927
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2988
2928
|
}>;
|
|
2989
2929
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2990
2930
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3034,7 +2974,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3034
2974
|
readonly durable: Schema.Struct<{
|
|
3035
2975
|
readonly aggregateID: Schema.String;
|
|
3036
2976
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3037
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2977
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3038
2978
|
}>;
|
|
3039
2979
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3040
2980
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3092,7 +3032,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3092
3032
|
readonly durable: Schema.Struct<{
|
|
3093
3033
|
readonly aggregateID: Schema.String;
|
|
3094
3034
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3095
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3035
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3096
3036
|
}>;
|
|
3097
3037
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3098
3038
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3144,7 +3084,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3144
3084
|
readonly durable: Schema.Struct<{
|
|
3145
3085
|
readonly aggregateID: Schema.String;
|
|
3146
3086
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3147
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3087
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3148
3088
|
}>;
|
|
3149
3089
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3150
3090
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3196,7 +3136,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3196
3136
|
readonly durable: Schema.Struct<{
|
|
3197
3137
|
readonly aggregateID: Schema.String;
|
|
3198
3138
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3199
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3139
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3200
3140
|
}>;
|
|
3201
3141
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3202
3142
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3252,7 +3192,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3252
3192
|
readonly durable: Schema.Struct<{
|
|
3253
3193
|
readonly aggregateID: Schema.String;
|
|
3254
3194
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3255
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3195
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3256
3196
|
}>;
|
|
3257
3197
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3258
3198
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3274,7 +3214,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3274
3214
|
}>, never, never>;
|
|
3275
3215
|
}>>, never, never>;
|
|
3276
3216
|
readonly data: Schema.Struct<{
|
|
3277
|
-
readonly
|
|
3217
|
+
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
3218
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
3278
3219
|
readonly text: Schema.String;
|
|
3279
3220
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3280
3221
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3289,7 +3230,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3289
3230
|
readonly aggregate: string;
|
|
3290
3231
|
};
|
|
3291
3232
|
data: Schema.Struct<{
|
|
3292
|
-
readonly
|
|
3233
|
+
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
3234
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
3293
3235
|
readonly text: Schema.String;
|
|
3294
3236
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3295
3237
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3306,7 +3248,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3306
3248
|
readonly durable: Schema.Struct<{
|
|
3307
3249
|
readonly aggregateID: Schema.String;
|
|
3308
3250
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3309
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3251
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3310
3252
|
}>;
|
|
3311
3253
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3312
3254
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3329,9 +3271,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3329
3271
|
}>>, never, never>;
|
|
3330
3272
|
readonly data: Schema.Struct<{
|
|
3331
3273
|
readonly shell: Schema.Struct<{
|
|
3332
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3333
|
-
create: () => string & import("effect/Brand").Brand<"
|
|
3334
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"
|
|
3274
|
+
readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
3275
|
+
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
3276
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
3335
3277
|
};
|
|
3336
3278
|
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
3337
3279
|
readonly command: Schema.String;
|
|
@@ -3360,9 +3302,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3360
3302
|
};
|
|
3361
3303
|
data: Schema.Struct<{
|
|
3362
3304
|
readonly shell: Schema.Struct<{
|
|
3363
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3364
|
-
create: () => string & import("effect/Brand").Brand<"
|
|
3365
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"
|
|
3305
|
+
readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
3306
|
+
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
3307
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
3366
3308
|
};
|
|
3367
3309
|
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
3368
3310
|
readonly command: Schema.String;
|
|
@@ -3392,7 +3334,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3392
3334
|
readonly durable: Schema.Struct<{
|
|
3393
3335
|
readonly aggregateID: Schema.String;
|
|
3394
3336
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3395
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3337
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3396
3338
|
}>;
|
|
3397
3339
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3398
3340
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3415,9 +3357,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3415
3357
|
}>>, never, never>;
|
|
3416
3358
|
readonly data: Schema.Struct<{
|
|
3417
3359
|
readonly shell: Schema.Struct<{
|
|
3418
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3419
|
-
create: () => string & import("effect/Brand").Brand<"
|
|
3420
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"
|
|
3360
|
+
readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
3361
|
+
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
3362
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
3421
3363
|
};
|
|
3422
3364
|
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
3423
3365
|
readonly command: Schema.String;
|
|
@@ -3452,9 +3394,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3452
3394
|
};
|
|
3453
3395
|
data: Schema.Struct<{
|
|
3454
3396
|
readonly shell: Schema.Struct<{
|
|
3455
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3456
|
-
create: () => string & import("effect/Brand").Brand<"
|
|
3457
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"
|
|
3397
|
+
readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
3398
|
+
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
3399
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
3458
3400
|
};
|
|
3459
3401
|
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
3460
3402
|
readonly command: Schema.String;
|
|
@@ -3490,7 +3432,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3490
3432
|
readonly durable: Schema.Struct<{
|
|
3491
3433
|
readonly aggregateID: Schema.String;
|
|
3492
3434
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3493
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3435
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3494
3436
|
}>;
|
|
3495
3437
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3496
3438
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3516,9 +3458,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3516
3458
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3517
3459
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3518
3460
|
};
|
|
3519
|
-
readonly agent: Schema.String
|
|
3461
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
3520
3462
|
readonly model: Schema.Struct<{
|
|
3521
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3463
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
3522
3464
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
3523
3465
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3524
3466
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -3532,9 +3474,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3532
3474
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3533
3475
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3534
3476
|
};
|
|
3535
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
3477
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
3536
3478
|
}>;
|
|
3537
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
3479
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
3538
3480
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3539
3481
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3540
3482
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3552,9 +3494,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3552
3494
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3553
3495
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3554
3496
|
};
|
|
3555
|
-
readonly agent: Schema.String
|
|
3497
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
3556
3498
|
readonly model: Schema.Struct<{
|
|
3557
|
-
readonly id: Schema.brand<Schema.String, "
|
|
3499
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
3558
3500
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
3559
3501
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3560
3502
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -3568,9 +3510,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3568
3510
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3569
3511
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
3570
3512
|
};
|
|
3571
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
3513
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
3572
3514
|
}>;
|
|
3573
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
3515
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
3574
3516
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3575
3517
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3576
3518
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3586,7 +3528,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3586
3528
|
readonly durable: Schema.Struct<{
|
|
3587
3529
|
readonly aggregateID: Schema.String;
|
|
3588
3530
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3589
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3531
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3590
3532
|
}>;
|
|
3591
3533
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3592
3534
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3613,7 +3555,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3613
3555
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3614
3556
|
};
|
|
3615
3557
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
3616
|
-
readonly cost: Schema.Finite
|
|
3558
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3559
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3560
|
+
};
|
|
3617
3561
|
readonly tokens: Schema.Struct<{
|
|
3618
3562
|
readonly input: Schema.Finite;
|
|
3619
3563
|
readonly output: Schema.Finite;
|
|
@@ -3623,7 +3567,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3623
3567
|
readonly write: Schema.Finite;
|
|
3624
3568
|
}>;
|
|
3625
3569
|
}>;
|
|
3626
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
3570
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
3627
3571
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
3628
3572
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3629
3573
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3643,7 +3587,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3643
3587
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3644
3588
|
};
|
|
3645
3589
|
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
3646
|
-
readonly cost: Schema.Finite
|
|
3590
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3591
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3592
|
+
};
|
|
3647
3593
|
readonly tokens: Schema.Struct<{
|
|
3648
3594
|
readonly input: Schema.Finite;
|
|
3649
3595
|
readonly output: Schema.Finite;
|
|
@@ -3653,7 +3599,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3653
3599
|
readonly write: Schema.Finite;
|
|
3654
3600
|
}>;
|
|
3655
3601
|
}>;
|
|
3656
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
3602
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
3657
3603
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
3658
3604
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3659
3605
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3670,7 +3616,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3670
3616
|
readonly durable: Schema.Struct<{
|
|
3671
3617
|
readonly aggregateID: Schema.String;
|
|
3672
3618
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3673
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3619
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3674
3620
|
}>;
|
|
3675
3621
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3676
3622
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3700,7 +3646,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3700
3646
|
readonly type: Schema.String;
|
|
3701
3647
|
readonly message: Schema.String;
|
|
3702
3648
|
}>;
|
|
3703
|
-
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
3649
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3650
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3651
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3652
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3653
|
+
}>, never, never>;
|
|
3704
3654
|
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3705
3655
|
readonly input: Schema.Finite;
|
|
3706
3656
|
readonly output: Schema.Finite;
|
|
@@ -3739,7 +3689,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3739
3689
|
readonly type: Schema.String;
|
|
3740
3690
|
readonly message: Schema.String;
|
|
3741
3691
|
}>;
|
|
3742
|
-
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
3692
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3693
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3694
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3695
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3696
|
+
}>, never, never>;
|
|
3743
3697
|
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3744
3698
|
readonly input: Schema.Finite;
|
|
3745
3699
|
readonly output: Schema.Finite;
|
|
@@ -3772,7 +3726,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3772
3726
|
readonly durable: Schema.Struct<{
|
|
3773
3727
|
readonly aggregateID: Schema.String;
|
|
3774
3728
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3775
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3729
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3776
3730
|
}>;
|
|
3777
3731
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3778
3732
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3832,7 +3786,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3832
3786
|
readonly durable: Schema.Struct<{
|
|
3833
3787
|
readonly aggregateID: Schema.String;
|
|
3834
3788
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3835
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3789
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3836
3790
|
}>;
|
|
3837
3791
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3838
3792
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3894,7 +3848,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3894
3848
|
readonly durable: Schema.Struct<{
|
|
3895
3849
|
readonly aggregateID: Schema.String;
|
|
3896
3850
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3897
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3851
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3898
3852
|
}>;
|
|
3899
3853
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3900
3854
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -3956,7 +3910,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3956
3910
|
readonly durable: Schema.Struct<{
|
|
3957
3911
|
readonly aggregateID: Schema.String;
|
|
3958
3912
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3959
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3913
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
3960
3914
|
}>;
|
|
3961
3915
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3962
3916
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4020,7 +3974,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4020
3974
|
readonly durable: Schema.Struct<{
|
|
4021
3975
|
readonly aggregateID: Schema.String;
|
|
4022
3976
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4023
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3977
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4024
3978
|
}>;
|
|
4025
3979
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4026
3980
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4082,7 +4036,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4082
4036
|
readonly durable: Schema.Struct<{
|
|
4083
4037
|
readonly aggregateID: Schema.String;
|
|
4084
4038
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4085
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4039
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4086
4040
|
}>;
|
|
4087
4041
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4088
4042
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4144,7 +4098,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4144
4098
|
readonly durable: Schema.Struct<{
|
|
4145
4099
|
readonly aggregateID: Schema.String;
|
|
4146
4100
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4147
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4101
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4148
4102
|
}>;
|
|
4149
4103
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4150
4104
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4210,7 +4164,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4210
4164
|
readonly durable: Schema.Struct<{
|
|
4211
4165
|
readonly aggregateID: Schema.String;
|
|
4212
4166
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4213
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4167
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4214
4168
|
}>;
|
|
4215
4169
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4216
4170
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4290,7 +4244,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4290
4244
|
readonly durable: Schema.Struct<{
|
|
4291
4245
|
readonly aggregateID: Schema.String;
|
|
4292
4246
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4293
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4247
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4294
4248
|
}>;
|
|
4295
4249
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4296
4250
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4322,7 +4276,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4322
4276
|
readonly mime: Schema.String;
|
|
4323
4277
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4324
4278
|
}>]>>;
|
|
4325
|
-
readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
4326
4279
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
4327
4280
|
readonly executed: Schema.Boolean;
|
|
4328
4281
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
@@ -4354,7 +4307,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4354
4307
|
readonly mime: Schema.String;
|
|
4355
4308
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4356
4309
|
}>]>>;
|
|
4357
|
-
readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
4358
4310
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
4359
4311
|
readonly executed: Schema.Boolean;
|
|
4360
4312
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
@@ -4378,7 +4330,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4378
4330
|
readonly durable: Schema.Struct<{
|
|
4379
4331
|
readonly aggregateID: Schema.String;
|
|
4380
4332
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4381
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4333
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4382
4334
|
}>;
|
|
4383
4335
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4384
4336
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4452,7 +4404,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4452
4404
|
readonly durable: Schema.Struct<{
|
|
4453
4405
|
readonly aggregateID: Schema.String;
|
|
4454
4406
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4455
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4407
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4456
4408
|
}>;
|
|
4457
4409
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4458
4410
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4522,7 +4474,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4522
4474
|
readonly durable: Schema.Struct<{
|
|
4523
4475
|
readonly aggregateID: Schema.String;
|
|
4524
4476
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4525
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4477
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4526
4478
|
}>;
|
|
4527
4479
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4528
4480
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4580,7 +4532,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4580
4532
|
readonly durable: Schema.Struct<{
|
|
4581
4533
|
readonly aggregateID: Schema.String;
|
|
4582
4534
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4583
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4535
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4584
4536
|
}>;
|
|
4585
4537
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4586
4538
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4602,7 +4554,15 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4602
4554
|
}>, never, never>;
|
|
4603
4555
|
}>>, never, never>;
|
|
4604
4556
|
readonly data: Schema.Struct<{
|
|
4605
|
-
readonly reason: Schema.
|
|
4557
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
4558
|
+
readonly recent: Schema.String;
|
|
4559
|
+
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4560
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4561
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4562
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4563
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4564
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4565
|
+
}>, never, never>;
|
|
4606
4566
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4607
4567
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4608
4568
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4616,7 +4576,15 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4616
4576
|
readonly aggregate: string;
|
|
4617
4577
|
};
|
|
4618
4578
|
data: Schema.Struct<{
|
|
4619
|
-
readonly reason: Schema.
|
|
4579
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
4580
|
+
readonly recent: Schema.String;
|
|
4581
|
+
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4582
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4583
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4584
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4585
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4586
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4587
|
+
}>, never, never>;
|
|
4620
4588
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4621
4589
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4622
4590
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4632,7 +4600,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4632
4600
|
readonly durable: Schema.Struct<{
|
|
4633
4601
|
readonly aggregateID: Schema.String;
|
|
4634
4602
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4635
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4603
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4636
4604
|
}>;
|
|
4637
4605
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4638
4606
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4654,7 +4622,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4654
4622
|
}>, never, never>;
|
|
4655
4623
|
}>>, never, never>;
|
|
4656
4624
|
readonly data: Schema.Struct<{
|
|
4657
|
-
readonly reason: Schema.
|
|
4625
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
4658
4626
|
readonly text: Schema.String;
|
|
4659
4627
|
readonly recent: Schema.String;
|
|
4660
4628
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -4670,7 +4638,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4670
4638
|
readonly aggregate: string;
|
|
4671
4639
|
};
|
|
4672
4640
|
data: Schema.Struct<{
|
|
4673
|
-
readonly reason: Schema.
|
|
4641
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
4674
4642
|
readonly text: Schema.String;
|
|
4675
4643
|
readonly recent: Schema.String;
|
|
4676
4644
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -4688,7 +4656,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4688
4656
|
readonly durable: Schema.Struct<{
|
|
4689
4657
|
readonly aggregateID: Schema.String;
|
|
4690
4658
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4691
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4659
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4692
4660
|
}>;
|
|
4693
4661
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4694
4662
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4710,7 +4678,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4710
4678
|
}>, never, never>;
|
|
4711
4679
|
}>>, never, never>;
|
|
4712
4680
|
readonly data: Schema.Struct<{
|
|
4713
|
-
|
|
4681
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
4682
|
+
readonly error: Schema.Struct<{
|
|
4683
|
+
readonly type: Schema.String;
|
|
4684
|
+
readonly message: Schema.String;
|
|
4685
|
+
}>;
|
|
4686
|
+
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4687
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4688
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4689
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4690
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4691
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4692
|
+
}>, never, never>;
|
|
4693
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4714
4694
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4715
4695
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4716
4696
|
};
|
|
@@ -4723,7 +4703,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4723
4703
|
readonly aggregate: string;
|
|
4724
4704
|
};
|
|
4725
4705
|
data: Schema.Struct<{
|
|
4726
|
-
|
|
4706
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
4707
|
+
readonly error: Schema.Struct<{
|
|
4708
|
+
readonly type: Schema.String;
|
|
4709
|
+
readonly message: Schema.String;
|
|
4710
|
+
}>;
|
|
4711
|
+
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4712
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4713
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4714
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4715
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4716
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4717
|
+
}>, never, never>;
|
|
4718
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4727
4719
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4728
4720
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4729
4721
|
};
|
|
@@ -4738,7 +4730,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4738
4730
|
readonly durable: Schema.Struct<{
|
|
4739
4731
|
readonly aggregateID: Schema.String;
|
|
4740
4732
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4741
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4733
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4742
4734
|
}>;
|
|
4743
4735
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4744
4736
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4766,20 +4758,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4766
4758
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4767
4759
|
};
|
|
4768
4760
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4769
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
4770
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4761
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
4771
4762
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
4772
|
-
readonly
|
|
4773
|
-
readonly
|
|
4763
|
+
readonly file: Schema.String;
|
|
4764
|
+
readonly patch: Schema.String;
|
|
4774
4765
|
readonly additions: Schema.Int;
|
|
4775
4766
|
readonly deletions: Schema.Int;
|
|
4776
|
-
readonly
|
|
4767
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
4777
4768
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4778
|
-
readonly
|
|
4779
|
-
readonly
|
|
4769
|
+
readonly file: Schema.String;
|
|
4770
|
+
readonly patch: Schema.String;
|
|
4780
4771
|
readonly additions: Schema.Int;
|
|
4781
4772
|
readonly deletions: Schema.Int;
|
|
4782
|
-
readonly
|
|
4773
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
4783
4774
|
}>>>, never, never>;
|
|
4784
4775
|
}>;
|
|
4785
4776
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -4801,20 +4792,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4801
4792
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4802
4793
|
};
|
|
4803
4794
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4804
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
4805
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4795
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
4806
4796
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
4807
|
-
readonly
|
|
4808
|
-
readonly
|
|
4797
|
+
readonly file: Schema.String;
|
|
4798
|
+
readonly patch: Schema.String;
|
|
4809
4799
|
readonly additions: Schema.Int;
|
|
4810
4800
|
readonly deletions: Schema.Int;
|
|
4811
|
-
readonly
|
|
4801
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
4812
4802
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4813
|
-
readonly
|
|
4814
|
-
readonly
|
|
4803
|
+
readonly file: Schema.String;
|
|
4804
|
+
readonly patch: Schema.String;
|
|
4815
4805
|
readonly additions: Schema.Int;
|
|
4816
4806
|
readonly deletions: Schema.Int;
|
|
4817
|
-
readonly
|
|
4807
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
4818
4808
|
}>>>, never, never>;
|
|
4819
4809
|
}>;
|
|
4820
4810
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -4832,7 +4822,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4832
4822
|
readonly durable: Schema.Struct<{
|
|
4833
4823
|
readonly aggregateID: Schema.String;
|
|
4834
4824
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4835
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4825
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4836
4826
|
}>;
|
|
4837
4827
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4838
4828
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4882,7 +4872,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4882
4872
|
readonly durable: Schema.Struct<{
|
|
4883
4873
|
readonly aggregateID: Schema.String;
|
|
4884
4874
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4885
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
4875
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4886
4876
|
}>;
|
|
4887
4877
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4888
4878
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -4944,7 +4934,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4944
4934
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
4945
4935
|
};
|
|
4946
4936
|
readonly data: {
|
|
4947
|
-
readonly agent: string
|
|
4937
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
4948
4938
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4949
4939
|
};
|
|
4950
4940
|
readonly metadata?: {
|
|
@@ -4965,9 +4955,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4965
4955
|
};
|
|
4966
4956
|
readonly data: {
|
|
4967
4957
|
readonly model: {
|
|
4968
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
4958
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
4969
4959
|
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
4970
|
-
readonly variant?: (string & import("effect/Brand").Brand<"VariantID">) | undefined;
|
|
4960
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
4971
4961
|
};
|
|
4972
4962
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4973
4963
|
};
|
|
@@ -5266,7 +5256,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5266
5256
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
5267
5257
|
};
|
|
5268
5258
|
readonly data: {
|
|
5269
|
-
readonly
|
|
5259
|
+
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
5260
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
5270
5261
|
readonly text: string;
|
|
5271
5262
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5272
5263
|
};
|
|
@@ -5288,7 +5279,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5288
5279
|
};
|
|
5289
5280
|
readonly data: {
|
|
5290
5281
|
readonly shell: {
|
|
5291
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
5282
|
+
readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
5292
5283
|
readonly status: "running" | "exited" | "timeout" | "killed";
|
|
5293
5284
|
readonly command: string;
|
|
5294
5285
|
readonly cwd: string;
|
|
@@ -5324,7 +5315,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5324
5315
|
};
|
|
5325
5316
|
readonly data: {
|
|
5326
5317
|
readonly shell: {
|
|
5327
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
5318
|
+
readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
5328
5319
|
readonly status: "running" | "exited" | "timeout" | "killed";
|
|
5329
5320
|
readonly command: string;
|
|
5330
5321
|
readonly cwd: string;
|
|
@@ -5366,14 +5357,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5366
5357
|
};
|
|
5367
5358
|
readonly data: {
|
|
5368
5359
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5369
|
-
readonly agent: string
|
|
5360
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
5370
5361
|
readonly model: {
|
|
5371
|
-
readonly id: string & import("effect/Brand").Brand<"
|
|
5362
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
5372
5363
|
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5373
|
-
readonly variant?: (string & import("effect/Brand").Brand<"VariantID">) | undefined;
|
|
5364
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
5374
5365
|
};
|
|
5375
5366
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5376
|
-
readonly snapshot?: string | undefined;
|
|
5367
|
+
readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
5377
5368
|
};
|
|
5378
5369
|
readonly metadata?: {
|
|
5379
5370
|
readonly [x: string]: unknown;
|
|
@@ -5394,7 +5385,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5394
5385
|
readonly data: {
|
|
5395
5386
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5396
5387
|
readonly finish: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown";
|
|
5397
|
-
readonly cost: number
|
|
5388
|
+
readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
|
|
5398
5389
|
readonly tokens: {
|
|
5399
5390
|
readonly input: number;
|
|
5400
5391
|
readonly output: number;
|
|
@@ -5405,7 +5396,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5405
5396
|
};
|
|
5406
5397
|
};
|
|
5407
5398
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5408
|
-
readonly snapshot?: string | undefined;
|
|
5399
|
+
readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
5409
5400
|
readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
|
|
5410
5401
|
};
|
|
5411
5402
|
readonly metadata?: {
|
|
@@ -5431,7 +5422,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5431
5422
|
readonly message: string;
|
|
5432
5423
|
};
|
|
5433
5424
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5434
|
-
readonly cost?: number | undefined;
|
|
5425
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
5435
5426
|
readonly tokens?: {
|
|
5436
5427
|
readonly input: number;
|
|
5437
5428
|
readonly output: number;
|
|
@@ -5672,7 +5663,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5672
5663
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5673
5664
|
readonly callID: string;
|
|
5674
5665
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5675
|
-
readonly outputPaths?: readonly string[] | undefined;
|
|
5676
5666
|
readonly result?: unknown;
|
|
5677
5667
|
readonly resultState?: {
|
|
5678
5668
|
readonly [x: string]: unknown;
|
|
@@ -5772,7 +5762,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5772
5762
|
};
|
|
5773
5763
|
readonly data: {
|
|
5774
5764
|
readonly reason: "auto" | "manual";
|
|
5765
|
+
readonly recent: string;
|
|
5775
5766
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5767
|
+
readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
|
|
5776
5768
|
};
|
|
5777
5769
|
readonly metadata?: {
|
|
5778
5770
|
readonly [x: string]: unknown;
|
|
@@ -5813,7 +5805,13 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5813
5805
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
5814
5806
|
};
|
|
5815
5807
|
readonly data: {
|
|
5808
|
+
readonly reason: "auto" | "manual";
|
|
5809
|
+
readonly error: {
|
|
5810
|
+
readonly type: string;
|
|
5811
|
+
readonly message: string;
|
|
5812
|
+
};
|
|
5816
5813
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5814
|
+
readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
|
|
5817
5815
|
};
|
|
5818
5816
|
readonly metadata?: {
|
|
5819
5817
|
readonly [x: string]: unknown;
|
|
@@ -5835,14 +5833,13 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5835
5833
|
readonly revert: {
|
|
5836
5834
|
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5837
5835
|
readonly partID?: string | undefined;
|
|
5838
|
-
readonly snapshot?: string | undefined;
|
|
5839
|
-
readonly diff?: string | undefined;
|
|
5836
|
+
readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
5840
5837
|
readonly files?: readonly {
|
|
5841
|
-
readonly
|
|
5842
|
-
readonly
|
|
5838
|
+
readonly file: string;
|
|
5839
|
+
readonly patch: string;
|
|
5843
5840
|
readonly additions: number;
|
|
5844
5841
|
readonly deletions: number;
|
|
5845
|
-
readonly
|
|
5842
|
+
readonly status: "added" | "deleted" | "modified";
|
|
5846
5843
|
}[] | undefined;
|
|
5847
5844
|
};
|
|
5848
5845
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -5918,8 +5915,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5918
5915
|
};
|
|
5919
5916
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
5920
5917
|
readonly data: Schema.Union<readonly [Schema.Struct<{
|
|
5921
|
-
readonly type: Schema.
|
|
5922
|
-
readonly agent: Schema.String
|
|
5918
|
+
readonly type: Schema.tag<"agent-switched">;
|
|
5919
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
5923
5920
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
5924
5921
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5925
5922
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -5929,9 +5926,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5929
5926
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
5930
5927
|
}>;
|
|
5931
5928
|
}>, Schema.Struct<{
|
|
5932
|
-
readonly type: Schema.
|
|
5929
|
+
readonly type: Schema.tag<"model-switched">;
|
|
5933
5930
|
readonly model: Schema.Struct<{
|
|
5934
|
-
readonly id: Schema.brand<Schema.String, "
|
|
5931
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
5935
5932
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
5936
5933
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5937
5934
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -5945,10 +5942,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5945
5942
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5946
5943
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5947
5944
|
};
|
|
5948
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
5945
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
5949
5946
|
}>;
|
|
5950
5947
|
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5951
|
-
readonly id: Schema.brand<Schema.String, "
|
|
5948
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
5952
5949
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
5953
5950
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5954
5951
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -5962,9 +5959,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5962
5959
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5963
5960
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5964
5961
|
};
|
|
5965
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
5962
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
5966
5963
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
5967
|
-
readonly id: Schema.brand<Schema.String, "
|
|
5964
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
5968
5965
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
5969
5966
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5970
5967
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -5978,7 +5975,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5978
5975
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5979
5976
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
5980
5977
|
};
|
|
5981
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
5978
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
5982
5979
|
}>>, never, never>;
|
|
5983
5980
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
5984
5981
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -6090,7 +6087,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6090
6087
|
readonly text: Schema.String;
|
|
6091
6088
|
}>>, never, never>;
|
|
6092
6089
|
}>>>, never, never>;
|
|
6093
|
-
readonly type: Schema.
|
|
6090
|
+
readonly type: Schema.tag<"user">;
|
|
6094
6091
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6095
6092
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6096
6093
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -6100,13 +6097,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6100
6097
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
6101
6098
|
}>;
|
|
6102
6099
|
}>, Schema.Struct<{
|
|
6103
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6104
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
6105
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
6106
|
-
};
|
|
6107
6100
|
readonly text: Schema.String;
|
|
6108
6101
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6109
|
-
readonly type: Schema.
|
|
6102
|
+
readonly type: Schema.tag<"synthetic">;
|
|
6110
6103
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6111
6104
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6112
6105
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -6116,7 +6109,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6116
6109
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
6117
6110
|
}>;
|
|
6118
6111
|
}>, Schema.Struct<{
|
|
6119
|
-
readonly type: Schema.
|
|
6112
|
+
readonly type: Schema.tag<"system">;
|
|
6120
6113
|
readonly text: Schema.String;
|
|
6121
6114
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6122
6115
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -6127,8 +6120,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6127
6120
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
6128
6121
|
}>;
|
|
6129
6122
|
}>, Schema.Struct<{
|
|
6130
|
-
readonly type: Schema.
|
|
6131
|
-
readonly
|
|
6123
|
+
readonly type: Schema.tag<"skill">;
|
|
6124
|
+
readonly skill: Schema.brand<Schema.String, "Skill.ID">;
|
|
6125
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
6132
6126
|
readonly text: Schema.String;
|
|
6133
6127
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6134
6128
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -6139,25 +6133,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6139
6133
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
6140
6134
|
}>;
|
|
6141
6135
|
}>, Schema.Struct<{
|
|
6142
|
-
readonly type: Schema.
|
|
6143
|
-
readonly
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
readonly cwd: Schema.String;
|
|
6151
|
-
readonly shell: Schema.String;
|
|
6152
|
-
readonly file: Schema.String;
|
|
6153
|
-
readonly pid: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
6154
|
-
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
6155
|
-
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
6156
|
-
readonly time: Schema.Struct<{
|
|
6157
|
-
readonly started: Schema.Number;
|
|
6158
|
-
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
6159
|
-
}>;
|
|
6160
|
-
}>;
|
|
6136
|
+
readonly type: Schema.tag<"shell">;
|
|
6137
|
+
readonly shellID: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
6138
|
+
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
6139
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
6140
|
+
};
|
|
6141
|
+
readonly command: Schema.String;
|
|
6142
|
+
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
6143
|
+
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
6161
6144
|
readonly output: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6162
6145
|
readonly output: Schema.String;
|
|
6163
6146
|
readonly cursor: Schema.Int;
|
|
@@ -6179,10 +6162,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6179
6162
|
};
|
|
6180
6163
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
6181
6164
|
}>, Schema.Struct<{
|
|
6182
|
-
readonly type: Schema.
|
|
6183
|
-
readonly agent: Schema.String
|
|
6165
|
+
readonly type: Schema.tag<"assistant">;
|
|
6166
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
6184
6167
|
readonly model: Schema.Struct<{
|
|
6185
|
-
readonly id: Schema.brand<Schema.String, "
|
|
6168
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
6186
6169
|
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
6187
6170
|
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6188
6171
|
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
@@ -6196,13 +6179,13 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6196
6179
|
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6197
6180
|
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
6198
6181
|
};
|
|
6199
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
6182
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
6200
6183
|
}>;
|
|
6201
6184
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
6202
|
-
readonly type: Schema.
|
|
6185
|
+
readonly type: Schema.tag<"text">;
|
|
6203
6186
|
readonly text: Schema.String;
|
|
6204
6187
|
}>, Schema.Struct<{
|
|
6205
|
-
readonly type: Schema.
|
|
6188
|
+
readonly type: Schema.tag<"reasoning">;
|
|
6206
6189
|
readonly text: Schema.String;
|
|
6207
6190
|
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
6208
6191
|
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -6213,17 +6196,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6213
6196
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
6214
6197
|
}>>, never, never>;
|
|
6215
6198
|
}>, Schema.Struct<{
|
|
6216
|
-
readonly type: Schema.
|
|
6199
|
+
readonly type: Schema.tag<"tool">;
|
|
6217
6200
|
readonly id: Schema.String;
|
|
6218
6201
|
readonly name: Schema.String;
|
|
6219
6202
|
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
6220
6203
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
6221
6204
|
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
6222
6205
|
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
6223
|
-
readonly status: Schema.
|
|
6206
|
+
readonly status: Schema.tag<"streaming">;
|
|
6224
6207
|
readonly input: Schema.String;
|
|
6225
6208
|
}>, Schema.Struct<{
|
|
6226
|
-
readonly status: Schema.
|
|
6209
|
+
readonly status: Schema.tag<"running">;
|
|
6227
6210
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
6228
6211
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
6229
6212
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -6236,85 +6219,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6236
6219
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6237
6220
|
}>]>>;
|
|
6238
6221
|
}>, Schema.Struct<{
|
|
6239
|
-
readonly status: Schema.
|
|
6222
|
+
readonly status: Schema.tag<"completed">;
|
|
6240
6223
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
6241
|
-
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
6242
|
-
readonly data: Schema.String;
|
|
6243
|
-
readonly mime: Schema.String;
|
|
6244
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
6245
|
-
readonly type: Schema.Literal<"inline">;
|
|
6246
|
-
}>, Schema.Struct<{
|
|
6247
|
-
readonly type: Schema.Literal<"uri">;
|
|
6248
|
-
readonly uri: Schema.String;
|
|
6249
|
-
}>]>;
|
|
6250
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6251
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6252
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6253
|
-
readonly start: Schema.Finite;
|
|
6254
|
-
readonly end: Schema.Finite;
|
|
6255
|
-
readonly text: Schema.String;
|
|
6256
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6257
|
-
readonly start: Schema.Finite;
|
|
6258
|
-
readonly end: Schema.Finite;
|
|
6259
|
-
readonly text: Schema.String;
|
|
6260
|
-
}>>, never, never>;
|
|
6261
|
-
}> & {
|
|
6262
|
-
create: (input: SessionEvent.FileAttachment) => {
|
|
6263
|
-
readonly data: string;
|
|
6264
|
-
readonly mime: string;
|
|
6265
|
-
readonly source: {
|
|
6266
|
-
readonly type: "inline";
|
|
6267
|
-
} | {
|
|
6268
|
-
readonly type: "uri";
|
|
6269
|
-
readonly uri: string;
|
|
6270
|
-
};
|
|
6271
|
-
readonly name?: string | undefined;
|
|
6272
|
-
readonly description?: string | undefined;
|
|
6273
|
-
readonly mention?: {
|
|
6274
|
-
readonly start: number;
|
|
6275
|
-
readonly end: number;
|
|
6276
|
-
readonly text: string;
|
|
6277
|
-
} | undefined;
|
|
6278
|
-
};
|
|
6279
|
-
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6280
|
-
readonly data: Schema.String;
|
|
6281
|
-
readonly mime: Schema.String;
|
|
6282
|
-
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
6283
|
-
readonly type: Schema.Literal<"inline">;
|
|
6284
|
-
}>, Schema.Struct<{
|
|
6285
|
-
readonly type: Schema.Literal<"uri">;
|
|
6286
|
-
readonly uri: Schema.String;
|
|
6287
|
-
}>]>;
|
|
6288
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6289
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6290
|
-
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6291
|
-
readonly start: Schema.Finite;
|
|
6292
|
-
readonly end: Schema.Finite;
|
|
6293
|
-
readonly text: Schema.String;
|
|
6294
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6295
|
-
readonly start: Schema.Finite;
|
|
6296
|
-
readonly end: Schema.Finite;
|
|
6297
|
-
readonly text: Schema.String;
|
|
6298
|
-
}>>, never, never>;
|
|
6299
|
-
}> & {
|
|
6300
|
-
create: (input: SessionEvent.FileAttachment) => {
|
|
6301
|
-
readonly data: string;
|
|
6302
|
-
readonly mime: string;
|
|
6303
|
-
readonly source: {
|
|
6304
|
-
readonly type: "inline";
|
|
6305
|
-
} | {
|
|
6306
|
-
readonly type: "uri";
|
|
6307
|
-
readonly uri: string;
|
|
6308
|
-
};
|
|
6309
|
-
readonly name?: string | undefined;
|
|
6310
|
-
readonly description?: string | undefined;
|
|
6311
|
-
readonly mention?: {
|
|
6312
|
-
readonly start: number;
|
|
6313
|
-
readonly end: number;
|
|
6314
|
-
readonly text: string;
|
|
6315
|
-
} | undefined;
|
|
6316
|
-
};
|
|
6317
|
-
}>>, never, never>;
|
|
6318
6224
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
6319
6225
|
readonly type: Schema.Literal<"text">;
|
|
6320
6226
|
readonly text: Schema.String;
|
|
@@ -6324,11 +6230,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6324
6230
|
readonly mime: Schema.String;
|
|
6325
6231
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6326
6232
|
}>]>>;
|
|
6327
|
-
readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
6328
6233
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
6329
6234
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
6330
6235
|
}>, Schema.Struct<{
|
|
6331
|
-
readonly status: Schema.
|
|
6236
|
+
readonly status: Schema.tag<"error">;
|
|
6332
6237
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
6333
6238
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
6334
6239
|
readonly type: Schema.Literal<"text">;
|
|
@@ -6350,20 +6255,23 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6350
6255
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
6351
6256
|
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
6352
6257
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
6353
|
-
readonly pruned: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
6354
6258
|
}>;
|
|
6355
6259
|
}>]>>;
|
|
6356
6260
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6357
|
-
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
6358
|
-
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
6261
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
6262
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
6359
6263
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
6360
6264
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6361
|
-
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
6362
|
-
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
6265
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
6266
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
6363
6267
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
6364
6268
|
}>>, never, never>;
|
|
6365
6269
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
6366
|
-
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
6270
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
6271
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
6272
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
6273
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
6274
|
+
}>, never, never>;
|
|
6367
6275
|
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6368
6276
|
readonly input: Schema.Finite;
|
|
6369
6277
|
readonly output: Schema.Finite;
|
|
@@ -6412,7 +6320,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6412
6320
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6413
6321
|
};
|
|
6414
6322
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
6415
|
-
}>, Schema.Struct<{
|
|
6323
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
6324
|
+
readonly status: Schema.tag<"running">;
|
|
6325
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
6326
|
+
readonly summary: Schema.String;
|
|
6327
|
+
readonly recent: Schema.String;
|
|
6416
6328
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6417
6329
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6418
6330
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -6421,11 +6333,37 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6421
6333
|
readonly time: Schema.Struct<{
|
|
6422
6334
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
6423
6335
|
}>;
|
|
6424
|
-
readonly type: Schema.
|
|
6425
|
-
|
|
6336
|
+
readonly type: Schema.tag<"compaction">;
|
|
6337
|
+
}>, Schema.Struct<{
|
|
6338
|
+
readonly status: Schema.tag<"completed">;
|
|
6426
6339
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
6427
6340
|
readonly summary: Schema.String;
|
|
6428
6341
|
readonly recent: Schema.String;
|
|
6429
|
-
|
|
6342
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6343
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6344
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6345
|
+
};
|
|
6346
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
6347
|
+
readonly time: Schema.Struct<{
|
|
6348
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
6349
|
+
}>;
|
|
6350
|
+
readonly type: Schema.tag<"compaction">;
|
|
6351
|
+
}>, Schema.Struct<{
|
|
6352
|
+
readonly status: Schema.tag<"failed">;
|
|
6353
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
6354
|
+
readonly error: Schema.Struct<{
|
|
6355
|
+
readonly type: Schema.String;
|
|
6356
|
+
readonly message: Schema.String;
|
|
6357
|
+
}>;
|
|
6358
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6359
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6360
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6361
|
+
};
|
|
6362
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
6363
|
+
readonly time: Schema.Struct<{
|
|
6364
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
6365
|
+
}>;
|
|
6366
|
+
readonly type: Schema.tag<"compaction">;
|
|
6367
|
+
}>]>]>;
|
|
6430
6368
|
}>>, HttpApiEndpoint.Json<typeof SessionNotFoundError | typeof MessageNotFoundError>, I, HttpApiMiddleware.Requires<I>>, false>;
|
|
6431
6369
|
export {};
|