@opencode-ai/protocol 0.0.0-next-15016 → 0.0.0-next-15017
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/groups/event.d.ts +541 -222
- package/dist/groups/message.d.ts +23 -16
- package/dist/groups/session.d.ts +413 -143
- package/package.json +2 -2
package/dist/groups/message.d.ts
CHANGED
|
@@ -299,13 +299,11 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
299
299
|
}>;
|
|
300
300
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
301
301
|
readonly type: Schema.Literal<"text">;
|
|
302
|
-
readonly id: Schema.String;
|
|
303
302
|
readonly text: Schema.String;
|
|
304
303
|
}>, Schema.Struct<{
|
|
305
304
|
readonly type: Schema.Literal<"reasoning">;
|
|
306
|
-
readonly id: Schema.String;
|
|
307
305
|
readonly text: Schema.String;
|
|
308
|
-
readonly
|
|
306
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
309
307
|
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
310
308
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
311
309
|
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>;
|
|
@@ -317,15 +315,9 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
317
315
|
readonly type: Schema.Literal<"tool">;
|
|
318
316
|
readonly id: Schema.String;
|
|
319
317
|
readonly name: Schema.String;
|
|
320
|
-
readonly
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
readonly resultMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
324
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
325
|
-
readonly executed: Schema.Boolean;
|
|
326
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
327
|
-
readonly resultMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
328
|
-
}>>, never, never>;
|
|
318
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
319
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
320
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
329
321
|
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
330
322
|
readonly status: Schema.Literal<"pending">;
|
|
331
323
|
readonly input: Schema.String;
|
|
@@ -448,7 +440,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
448
440
|
}>]>>;
|
|
449
441
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
450
442
|
readonly error: Schema.Struct<{
|
|
451
|
-
readonly type: Schema.
|
|
443
|
+
readonly type: Schema.String;
|
|
452
444
|
readonly message: Schema.String;
|
|
453
445
|
}>;
|
|
454
446
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
@@ -469,7 +461,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
469
461
|
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
470
462
|
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>;
|
|
471
463
|
}>>, never, never>;
|
|
472
|
-
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
464
|
+
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>;
|
|
473
465
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
474
466
|
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
475
467
|
readonly input: Schema.Finite;
|
|
@@ -489,12 +481,27 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
489
481
|
}>;
|
|
490
482
|
}>>, never, never>;
|
|
491
483
|
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
492
|
-
readonly type: Schema.
|
|
484
|
+
readonly type: Schema.String;
|
|
493
485
|
readonly message: Schema.String;
|
|
494
486
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
495
|
-
readonly type: Schema.
|
|
487
|
+
readonly type: Schema.String;
|
|
496
488
|
readonly message: Schema.String;
|
|
497
489
|
}>>, never, never>;
|
|
490
|
+
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
491
|
+
readonly attempt: Schema.Int;
|
|
492
|
+
readonly at: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
493
|
+
readonly error: Schema.Struct<{
|
|
494
|
+
readonly type: Schema.String;
|
|
495
|
+
readonly message: Schema.String;
|
|
496
|
+
}>;
|
|
497
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
498
|
+
readonly attempt: Schema.Int;
|
|
499
|
+
readonly at: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
500
|
+
readonly error: Schema.Struct<{
|
|
501
|
+
readonly type: Schema.String;
|
|
502
|
+
readonly message: Schema.String;
|
|
503
|
+
}>;
|
|
504
|
+
}>>, never, never>;
|
|
498
505
|
readonly time: Schema.Struct<{
|
|
499
506
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
500
507
|
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>;
|