@opencode/protocol 2.0.32 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/errors.d.ts +6 -0
- package/dist/errors.js +5 -0
- package/dist/groups/agent.d.ts +9 -9
- package/dist/groups/credential.d.ts +35 -38
- package/dist/groups/event.d.ts +2414 -2386
- package/dist/groups/form.d.ts +24 -24
- package/dist/groups/fs.d.ts +12 -12
- package/dist/groups/integration.d.ts +278 -278
- package/dist/groups/mcp.d.ts +22 -22
- package/dist/groups/message.d.ts +82 -182
- package/dist/groups/message.js +15 -12
- package/dist/groups/model.d.ts +112 -108
- package/dist/groups/permission.d.ts +36 -14
- package/dist/groups/permission.js +14 -1
- package/dist/groups/persistent-pty.d.ts +122 -122
- package/dist/groups/plugin.d.ts +7 -7
- package/dist/groups/provider.d.ts +24 -20
- package/dist/groups/pty.d.ts +45 -45
- package/dist/groups/reference.d.ts +5 -5
- package/dist/groups/server.d.ts +6 -6
- package/dist/groups/session.d.ts +5772 -5819
- package/dist/groups/session.js +27 -70
- package/dist/groups/shell.d.ts +20 -20
- package/dist/groups/vcs.d.ts +30 -30
- package/dist/groups/worktree.d.ts +11 -11
- package/dist/simulation.d.ts +237 -237
- package/package.json +5 -5
package/dist/groups/message.d.ts
CHANGED
|
@@ -5,12 +5,21 @@ export declare const SessionMessagesQuery: Schema.Struct<{
|
|
|
5
5
|
readonly limit: Schema.optional<Schema.NumberFromString>;
|
|
6
6
|
readonly order: Schema.optional<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>;
|
|
7
7
|
readonly cursor: Schema.optional<Schema.String>;
|
|
8
|
-
readonly type: Schema.optional<Schema.Literals<("
|
|
8
|
+
readonly type: Schema.optional<Schema.Literals<readonly ("agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user")[]>>;
|
|
9
9
|
}>;
|
|
10
10
|
export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<{
|
|
11
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
12
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
13
|
+
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14
|
+
};
|
|
15
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16
|
+
readonly time: Schema.Struct<{
|
|
17
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
18
|
+
}>;
|
|
11
19
|
readonly type: Schema.tag<"agent-switched">;
|
|
12
20
|
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
13
21
|
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
22
|
+
}>, Schema.Struct<{
|
|
14
23
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
15
24
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
16
25
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -19,7 +28,6 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
19
28
|
readonly time: Schema.Struct<{
|
|
20
29
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
21
30
|
}>;
|
|
22
|
-
}>, Schema.Struct<{
|
|
23
31
|
readonly type: Schema.tag<"model-switched">;
|
|
24
32
|
readonly model: Schema.Struct<{
|
|
25
33
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
@@ -89,6 +97,7 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
89
97
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
90
98
|
};
|
|
91
99
|
}>, never, never>;
|
|
100
|
+
}>, Schema.Struct<{
|
|
92
101
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
93
102
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
94
103
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -97,7 +106,13 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
97
106
|
readonly time: Schema.Struct<{
|
|
98
107
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
99
108
|
}>;
|
|
100
|
-
|
|
109
|
+
readonly type: Schema.tag<"location-switched">;
|
|
110
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
111
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
112
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
113
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
114
|
+
}>, never, never>;
|
|
115
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
101
116
|
readonly location: Schema.Struct<{
|
|
102
117
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
103
118
|
}>;
|
|
@@ -112,22 +127,15 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
112
127
|
}>, never, never>;
|
|
113
128
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
114
129
|
}>>;
|
|
130
|
+
}>, Schema.Struct<{
|
|
115
131
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
116
132
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
117
133
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
118
134
|
};
|
|
119
|
-
readonly type: Schema.tag<"location-switched">;
|
|
120
135
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
121
|
-
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
122
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
123
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
124
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
125
|
-
}>, never, never>;
|
|
126
136
|
readonly time: Schema.Struct<{
|
|
127
137
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
128
138
|
}>;
|
|
129
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
130
|
-
}>, Schema.Struct<{
|
|
131
139
|
readonly text: Schema.String;
|
|
132
140
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
133
141
|
readonly data: Schema.String;
|
|
@@ -152,15 +160,15 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
152
160
|
}> & {
|
|
153
161
|
create: (input: import("@opencode/schema/prompt").FileAttachment) => {
|
|
154
162
|
readonly data: string;
|
|
163
|
+
readonly mime: string;
|
|
155
164
|
readonly source: {
|
|
156
165
|
readonly type: "inline";
|
|
157
166
|
} | {
|
|
158
167
|
readonly type: "uri";
|
|
159
168
|
readonly uri: string;
|
|
160
169
|
};
|
|
161
|
-
readonly mime: string;
|
|
162
|
-
readonly description?: string | undefined;
|
|
163
170
|
readonly name?: string | undefined;
|
|
171
|
+
readonly description?: string | undefined;
|
|
164
172
|
readonly mention?: {
|
|
165
173
|
readonly start: number;
|
|
166
174
|
readonly end: number;
|
|
@@ -190,15 +198,15 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
190
198
|
}> & {
|
|
191
199
|
create: (input: import("@opencode/schema/prompt").FileAttachment) => {
|
|
192
200
|
readonly data: string;
|
|
201
|
+
readonly mime: string;
|
|
193
202
|
readonly source: {
|
|
194
203
|
readonly type: "inline";
|
|
195
204
|
} | {
|
|
196
205
|
readonly type: "uri";
|
|
197
206
|
readonly uri: string;
|
|
198
207
|
};
|
|
199
|
-
readonly mime: string;
|
|
200
|
-
readonly description?: string | undefined;
|
|
201
208
|
readonly name?: string | undefined;
|
|
209
|
+
readonly description?: string | undefined;
|
|
202
210
|
readonly mention?: {
|
|
203
211
|
readonly start: number;
|
|
204
212
|
readonly end: number;
|
|
@@ -257,6 +265,7 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
257
265
|
}>>, never, never>;
|
|
258
266
|
}>>>, never, never>;
|
|
259
267
|
readonly type: Schema.tag<"user">;
|
|
268
|
+
}>, Schema.Struct<{
|
|
260
269
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
261
270
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
262
271
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -265,10 +274,10 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
265
274
|
readonly time: Schema.Struct<{
|
|
266
275
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
267
276
|
}>;
|
|
268
|
-
}>, Schema.Struct<{
|
|
269
277
|
readonly text: Schema.String;
|
|
270
278
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
271
279
|
readonly type: Schema.tag<"synthetic">;
|
|
280
|
+
}>, Schema.Struct<{
|
|
272
281
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
273
282
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
274
283
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -277,10 +286,10 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
277
286
|
readonly time: Schema.Struct<{
|
|
278
287
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
279
288
|
}>;
|
|
280
|
-
}>, Schema.Struct<{
|
|
281
289
|
readonly type: Schema.tag<"system">;
|
|
282
290
|
readonly text: Schema.String;
|
|
283
291
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
292
|
+
}>, Schema.Struct<{
|
|
284
293
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
285
294
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
286
295
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -289,20 +298,16 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
289
298
|
readonly time: Schema.Struct<{
|
|
290
299
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
291
300
|
}>;
|
|
292
|
-
}>, Schema.Struct<{
|
|
293
301
|
readonly type: Schema.tag<"skill">;
|
|
294
302
|
readonly skill: Schema.brand<Schema.String, "Skill.ID">;
|
|
295
303
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
296
304
|
readonly text: Schema.String;
|
|
305
|
+
}>, Schema.Struct<{
|
|
297
306
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
298
307
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
299
308
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
300
309
|
};
|
|
301
310
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
302
|
-
readonly time: Schema.Struct<{
|
|
303
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
304
|
-
}>;
|
|
305
|
-
}>, Schema.Struct<{
|
|
306
311
|
readonly type: Schema.tag<"shell">;
|
|
307
312
|
readonly shellID: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
308
313
|
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
@@ -326,12 +331,12 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
326
331
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
327
332
|
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>;
|
|
328
333
|
}>;
|
|
334
|
+
}>, Schema.Struct<{
|
|
329
335
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
330
336
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
331
337
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
332
338
|
};
|
|
333
339
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
334
|
-
}>, Schema.Struct<{
|
|
335
340
|
readonly type: Schema.tag<"assistant">;
|
|
336
341
|
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
337
342
|
readonly model: Schema.Struct<{
|
|
@@ -360,11 +365,11 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
360
365
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
361
366
|
readonly type: Schema.tag<"text">;
|
|
362
367
|
readonly text: Schema.String;
|
|
363
|
-
readonly
|
|
368
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
364
369
|
}>, Schema.Struct<{
|
|
365
370
|
readonly type: Schema.tag<"reasoning">;
|
|
366
371
|
readonly text: Schema.String;
|
|
367
|
-
readonly
|
|
372
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
368
373
|
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
369
374
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
370
375
|
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>;
|
|
@@ -377,8 +382,7 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
377
382
|
readonly id: Schema.String;
|
|
378
383
|
readonly name: Schema.String;
|
|
379
384
|
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
380
|
-
readonly
|
|
381
|
-
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
385
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
382
386
|
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
383
387
|
readonly status: Schema.tag<"streaming">;
|
|
384
388
|
readonly input: Schema.String;
|
|
@@ -448,7 +452,7 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
448
452
|
}>>, never, never>;
|
|
449
453
|
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>;
|
|
450
454
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
451
|
-
readonly
|
|
455
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
452
456
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
453
457
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
454
458
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -522,16 +526,20 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
522
526
|
readonly streamed: 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>;
|
|
523
527
|
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>;
|
|
524
528
|
}>;
|
|
529
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
525
530
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
526
531
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
527
532
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
528
533
|
};
|
|
529
534
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
530
|
-
|
|
535
|
+
readonly time: Schema.Struct<{
|
|
536
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
537
|
+
}>;
|
|
538
|
+
readonly type: Schema.tag<"compaction">;
|
|
531
539
|
readonly status: Schema.tag<"running">;
|
|
532
540
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
533
541
|
readonly summary: Schema.String;
|
|
534
|
-
|
|
542
|
+
}>, Schema.Struct<{
|
|
535
543
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
536
544
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
537
545
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -541,7 +549,6 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
541
549
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
542
550
|
}>;
|
|
543
551
|
readonly type: Schema.tag<"compaction">;
|
|
544
|
-
}>, Schema.Struct<{
|
|
545
552
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
546
553
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
547
554
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -611,56 +618,9 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
611
618
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
612
619
|
};
|
|
613
620
|
}>, never, never>;
|
|
614
|
-
readonly
|
|
621
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
615
622
|
readonly summary: Schema.String;
|
|
616
|
-
|
|
617
|
-
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
618
|
-
readonly version: Schema.Literal<1>;
|
|
619
|
-
readonly provenance: Schema.Struct<{
|
|
620
|
-
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
621
|
-
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
622
|
-
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
623
|
-
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
624
|
-
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
625
|
-
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
626
|
-
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
627
|
-
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
628
|
-
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
629
|
-
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
630
|
-
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
631
|
-
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
632
|
-
};
|
|
633
|
-
readonly provider: Schema.String;
|
|
634
|
-
readonly modelID: Schema.String;
|
|
635
|
-
readonly route: Schema.String;
|
|
636
|
-
readonly protocol: Schema.String;
|
|
637
|
-
readonly endpoint: Schema.String;
|
|
638
|
-
}>;
|
|
639
|
-
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
640
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
641
|
-
readonly version: Schema.Literal<1>;
|
|
642
|
-
readonly provenance: Schema.Struct<{
|
|
643
|
-
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
644
|
-
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
645
|
-
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
646
|
-
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
647
|
-
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
648
|
-
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
649
|
-
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
650
|
-
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
651
|
-
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
652
|
-
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
653
|
-
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
654
|
-
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
655
|
-
};
|
|
656
|
-
readonly provider: Schema.String;
|
|
657
|
-
readonly modelID: Schema.String;
|
|
658
|
-
readonly route: Schema.String;
|
|
659
|
-
readonly protocol: Schema.String;
|
|
660
|
-
readonly endpoint: Schema.String;
|
|
661
|
-
}>;
|
|
662
|
-
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
663
|
-
}>>, never, never>;
|
|
623
|
+
}>, Schema.Struct<{
|
|
664
624
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
665
625
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
666
626
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -670,7 +630,6 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
670
630
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
671
631
|
}>;
|
|
672
632
|
readonly type: Schema.tag<"compaction">;
|
|
673
|
-
}>, Schema.Struct<{
|
|
674
633
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
675
634
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
676
635
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -705,6 +664,7 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
705
664
|
readonly body: Schema.String;
|
|
706
665
|
}>>, never, never>;
|
|
707
666
|
}>;
|
|
667
|
+
}>]>, Schema.Struct<{
|
|
708
668
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
709
669
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
710
670
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -713,8 +673,6 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
713
673
|
readonly time: Schema.Struct<{
|
|
714
674
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
715
675
|
}>;
|
|
716
|
-
readonly type: Schema.tag<"compaction">;
|
|
717
|
-
}>]>, Schema.Struct<{
|
|
718
676
|
readonly type: Schema.tag<"idle">;
|
|
719
677
|
readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
|
|
720
678
|
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -736,14 +694,6 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
736
694
|
readonly body: Schema.String;
|
|
737
695
|
}>>, never, never>;
|
|
738
696
|
}>>, never, never>;
|
|
739
|
-
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
740
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
741
|
-
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
742
|
-
};
|
|
743
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
744
|
-
readonly time: Schema.Struct<{
|
|
745
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
746
|
-
}>;
|
|
747
697
|
}>]>;
|
|
748
698
|
export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", HttpApiEndpoint.HttpApiEndpoint<"session.messages", "GET", "/api/session/:sessionID/message", Schema.toCodecStringTree<Schema.Struct<{
|
|
749
699
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -754,12 +704,21 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
754
704
|
readonly limit: Schema.optional<Schema.NumberFromString>;
|
|
755
705
|
readonly order: Schema.optional<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>;
|
|
756
706
|
readonly cursor: Schema.optional<Schema.String>;
|
|
757
|
-
readonly type: Schema.optional<Schema.Literals<("
|
|
707
|
+
readonly type: Schema.optional<Schema.Literals<readonly ("agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user")[]>>;
|
|
758
708
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
759
709
|
readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
710
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
711
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
712
|
+
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
713
|
+
};
|
|
714
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
715
|
+
readonly time: Schema.Struct<{
|
|
716
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
717
|
+
}>;
|
|
760
718
|
readonly type: Schema.tag<"agent-switched">;
|
|
761
719
|
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
762
720
|
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
721
|
+
}>, Schema.Struct<{
|
|
763
722
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
764
723
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
765
724
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -768,7 +727,6 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
768
727
|
readonly time: Schema.Struct<{
|
|
769
728
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
770
729
|
}>;
|
|
771
|
-
}>, Schema.Struct<{
|
|
772
730
|
readonly type: Schema.tag<"model-switched">;
|
|
773
731
|
readonly model: Schema.Struct<{
|
|
774
732
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
@@ -838,6 +796,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
838
796
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
839
797
|
};
|
|
840
798
|
}>, never, never>;
|
|
799
|
+
}>, Schema.Struct<{
|
|
841
800
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
842
801
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
843
802
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -846,7 +805,13 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
846
805
|
readonly time: Schema.Struct<{
|
|
847
806
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
848
807
|
}>;
|
|
849
|
-
|
|
808
|
+
readonly type: Schema.tag<"location-switched">;
|
|
809
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
810
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
811
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
812
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
813
|
+
}>, never, never>;
|
|
814
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
850
815
|
readonly location: Schema.Struct<{
|
|
851
816
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
852
817
|
}>;
|
|
@@ -861,22 +826,15 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
861
826
|
}>, never, never>;
|
|
862
827
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
863
828
|
}>>;
|
|
829
|
+
}>, Schema.Struct<{
|
|
864
830
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
865
831
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
866
832
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
867
833
|
};
|
|
868
|
-
readonly type: Schema.tag<"location-switched">;
|
|
869
834
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
870
|
-
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
871
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
872
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
873
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
874
|
-
}>, never, never>;
|
|
875
835
|
readonly time: Schema.Struct<{
|
|
876
836
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
877
837
|
}>;
|
|
878
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
879
|
-
}>, Schema.Struct<{
|
|
880
838
|
readonly text: Schema.String;
|
|
881
839
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
882
840
|
readonly data: Schema.String;
|
|
@@ -901,15 +859,15 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
901
859
|
}> & {
|
|
902
860
|
create: (input: import("@opencode/schema/prompt").FileAttachment) => {
|
|
903
861
|
readonly data: string;
|
|
862
|
+
readonly mime: string;
|
|
904
863
|
readonly source: {
|
|
905
864
|
readonly type: "inline";
|
|
906
865
|
} | {
|
|
907
866
|
readonly type: "uri";
|
|
908
867
|
readonly uri: string;
|
|
909
868
|
};
|
|
910
|
-
readonly mime: string;
|
|
911
|
-
readonly description?: string | undefined;
|
|
912
869
|
readonly name?: string | undefined;
|
|
870
|
+
readonly description?: string | undefined;
|
|
913
871
|
readonly mention?: {
|
|
914
872
|
readonly start: number;
|
|
915
873
|
readonly end: number;
|
|
@@ -939,15 +897,15 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
939
897
|
}> & {
|
|
940
898
|
create: (input: import("@opencode/schema/prompt").FileAttachment) => {
|
|
941
899
|
readonly data: string;
|
|
900
|
+
readonly mime: string;
|
|
942
901
|
readonly source: {
|
|
943
902
|
readonly type: "inline";
|
|
944
903
|
} | {
|
|
945
904
|
readonly type: "uri";
|
|
946
905
|
readonly uri: string;
|
|
947
906
|
};
|
|
948
|
-
readonly mime: string;
|
|
949
|
-
readonly description?: string | undefined;
|
|
950
907
|
readonly name?: string | undefined;
|
|
908
|
+
readonly description?: string | undefined;
|
|
951
909
|
readonly mention?: {
|
|
952
910
|
readonly start: number;
|
|
953
911
|
readonly end: number;
|
|
@@ -1006,6 +964,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1006
964
|
}>>, never, never>;
|
|
1007
965
|
}>>>, never, never>;
|
|
1008
966
|
readonly type: Schema.tag<"user">;
|
|
967
|
+
}>, Schema.Struct<{
|
|
1009
968
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1010
969
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1011
970
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1014,10 +973,10 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1014
973
|
readonly time: Schema.Struct<{
|
|
1015
974
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1016
975
|
}>;
|
|
1017
|
-
}>, Schema.Struct<{
|
|
1018
976
|
readonly text: Schema.String;
|
|
1019
977
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1020
978
|
readonly type: Schema.tag<"synthetic">;
|
|
979
|
+
}>, Schema.Struct<{
|
|
1021
980
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1022
981
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1023
982
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1026,10 +985,10 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1026
985
|
readonly time: Schema.Struct<{
|
|
1027
986
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1028
987
|
}>;
|
|
1029
|
-
}>, Schema.Struct<{
|
|
1030
988
|
readonly type: Schema.tag<"system">;
|
|
1031
989
|
readonly text: Schema.String;
|
|
1032
990
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
991
|
+
}>, Schema.Struct<{
|
|
1033
992
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1034
993
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1035
994
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1038,20 +997,16 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1038
997
|
readonly time: Schema.Struct<{
|
|
1039
998
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1040
999
|
}>;
|
|
1041
|
-
}>, Schema.Struct<{
|
|
1042
1000
|
readonly type: Schema.tag<"skill">;
|
|
1043
1001
|
readonly skill: Schema.brand<Schema.String, "Skill.ID">;
|
|
1044
1002
|
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1045
1003
|
readonly text: Schema.String;
|
|
1004
|
+
}>, Schema.Struct<{
|
|
1046
1005
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1047
1006
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1048
1007
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1049
1008
|
};
|
|
1050
1009
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1051
|
-
readonly time: Schema.Struct<{
|
|
1052
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1053
|
-
}>;
|
|
1054
|
-
}>, Schema.Struct<{
|
|
1055
1010
|
readonly type: Schema.tag<"shell">;
|
|
1056
1011
|
readonly shellID: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
1057
1012
|
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
@@ -1075,12 +1030,12 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1075
1030
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1076
1031
|
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>;
|
|
1077
1032
|
}>;
|
|
1033
|
+
}>, Schema.Struct<{
|
|
1078
1034
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1079
1035
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1080
1036
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1081
1037
|
};
|
|
1082
1038
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1083
|
-
}>, Schema.Struct<{
|
|
1084
1039
|
readonly type: Schema.tag<"assistant">;
|
|
1085
1040
|
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
1086
1041
|
readonly model: Schema.Struct<{
|
|
@@ -1109,11 +1064,11 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1109
1064
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
1110
1065
|
readonly type: Schema.tag<"text">;
|
|
1111
1066
|
readonly text: Schema.String;
|
|
1112
|
-
readonly
|
|
1067
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1113
1068
|
}>, Schema.Struct<{
|
|
1114
1069
|
readonly type: Schema.tag<"reasoning">;
|
|
1115
1070
|
readonly text: Schema.String;
|
|
1116
|
-
readonly
|
|
1071
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1117
1072
|
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1118
1073
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1119
1074
|
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>;
|
|
@@ -1126,8 +1081,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1126
1081
|
readonly id: Schema.String;
|
|
1127
1082
|
readonly name: Schema.String;
|
|
1128
1083
|
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1129
|
-
readonly
|
|
1130
|
-
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1084
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1131
1085
|
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
1132
1086
|
readonly status: Schema.tag<"streaming">;
|
|
1133
1087
|
readonly input: Schema.String;
|
|
@@ -1197,7 +1151,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1197
1151
|
}>>, never, never>;
|
|
1198
1152
|
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>;
|
|
1199
1153
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1200
|
-
readonly
|
|
1154
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1201
1155
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1202
1156
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1203
1157
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -1271,16 +1225,20 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1271
1225
|
readonly streamed: 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>;
|
|
1272
1226
|
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>;
|
|
1273
1227
|
}>;
|
|
1228
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
1274
1229
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1275
1230
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1276
1231
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1277
1232
|
};
|
|
1278
1233
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1279
|
-
|
|
1234
|
+
readonly time: Schema.Struct<{
|
|
1235
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1236
|
+
}>;
|
|
1237
|
+
readonly type: Schema.tag<"compaction">;
|
|
1280
1238
|
readonly status: Schema.tag<"running">;
|
|
1281
1239
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1282
1240
|
readonly summary: Schema.String;
|
|
1283
|
-
|
|
1241
|
+
}>, Schema.Struct<{
|
|
1284
1242
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1285
1243
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1286
1244
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1290,7 +1248,6 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1290
1248
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1291
1249
|
}>;
|
|
1292
1250
|
readonly type: Schema.tag<"compaction">;
|
|
1293
|
-
}>, Schema.Struct<{
|
|
1294
1251
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1295
1252
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1296
1253
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -1360,56 +1317,9 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1360
1317
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1361
1318
|
};
|
|
1362
1319
|
}>, never, never>;
|
|
1363
|
-
readonly
|
|
1320
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1364
1321
|
readonly summary: Schema.String;
|
|
1365
|
-
|
|
1366
|
-
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1367
|
-
readonly version: Schema.Literal<1>;
|
|
1368
|
-
readonly provenance: Schema.Struct<{
|
|
1369
|
-
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
1370
|
-
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1371
|
-
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1372
|
-
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1373
|
-
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1374
|
-
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1375
|
-
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1376
|
-
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1377
|
-
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1378
|
-
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1379
|
-
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1380
|
-
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1381
|
-
};
|
|
1382
|
-
readonly provider: Schema.String;
|
|
1383
|
-
readonly modelID: Schema.String;
|
|
1384
|
-
readonly route: Schema.String;
|
|
1385
|
-
readonly protocol: Schema.String;
|
|
1386
|
-
readonly endpoint: Schema.String;
|
|
1387
|
-
}>;
|
|
1388
|
-
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1389
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1390
|
-
readonly version: Schema.Literal<1>;
|
|
1391
|
-
readonly provenance: Schema.Struct<{
|
|
1392
|
-
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
1393
|
-
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1394
|
-
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1395
|
-
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1396
|
-
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1397
|
-
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1398
|
-
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1399
|
-
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1400
|
-
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1401
|
-
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1402
|
-
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1403
|
-
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1404
|
-
};
|
|
1405
|
-
readonly provider: Schema.String;
|
|
1406
|
-
readonly modelID: Schema.String;
|
|
1407
|
-
readonly route: Schema.String;
|
|
1408
|
-
readonly protocol: Schema.String;
|
|
1409
|
-
readonly endpoint: Schema.String;
|
|
1410
|
-
}>;
|
|
1411
|
-
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1412
|
-
}>>, never, never>;
|
|
1322
|
+
}>, Schema.Struct<{
|
|
1413
1323
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1414
1324
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1415
1325
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1419,7 +1329,6 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1419
1329
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1420
1330
|
}>;
|
|
1421
1331
|
readonly type: Schema.tag<"compaction">;
|
|
1422
|
-
}>, Schema.Struct<{
|
|
1423
1332
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1424
1333
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1425
1334
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -1454,6 +1363,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1454
1363
|
readonly body: Schema.String;
|
|
1455
1364
|
}>>, never, never>;
|
|
1456
1365
|
}>;
|
|
1366
|
+
}>]>, Schema.Struct<{
|
|
1457
1367
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1458
1368
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1459
1369
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1462,8 +1372,6 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1462
1372
|
readonly time: Schema.Struct<{
|
|
1463
1373
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1464
1374
|
}>;
|
|
1465
|
-
readonly type: Schema.tag<"compaction">;
|
|
1466
|
-
}>]>, Schema.Struct<{
|
|
1467
1375
|
readonly type: Schema.tag<"idle">;
|
|
1468
1376
|
readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
|
|
1469
1377
|
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1485,14 +1393,6 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1485
1393
|
readonly body: Schema.String;
|
|
1486
1394
|
}>>, never, never>;
|
|
1487
1395
|
}>>, never, never>;
|
|
1488
|
-
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1489
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1490
|
-
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1491
|
-
};
|
|
1492
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1493
|
-
readonly time: Schema.Struct<{
|
|
1494
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1495
|
-
}>;
|
|
1496
1396
|
}>]>>;
|
|
1497
1397
|
readonly cursor: Schema.Struct<{
|
|
1498
1398
|
readonly previous: Schema.optional<Schema.String>;
|