@opencode-ai/protocol 0.0.0-next-16664 → 0.0.0-next-16667
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 +25 -0
- package/dist/groups/message.d.ts +6 -0
- package/dist/groups/session.d.ts +27 -0
- package/package.json +2 -2
package/dist/groups/event.d.ts
CHANGED
|
@@ -1476,6 +1476,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1476
1476
|
readonly error: Schema.Struct<{
|
|
1477
1477
|
readonly type: Schema.String;
|
|
1478
1478
|
readonly message: Schema.String;
|
|
1479
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1479
1480
|
}>;
|
|
1480
1481
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1481
1482
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1493,6 +1494,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1493
1494
|
readonly error: Schema.Struct<{
|
|
1494
1495
|
readonly type: Schema.String;
|
|
1495
1496
|
readonly message: Schema.String;
|
|
1497
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1496
1498
|
}>;
|
|
1497
1499
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1498
1500
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2134,6 +2136,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2134
2136
|
readonly error: Schema.Struct<{
|
|
2135
2137
|
readonly type: Schema.String;
|
|
2136
2138
|
readonly message: Schema.String;
|
|
2139
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2137
2140
|
}>;
|
|
2138
2141
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2139
2142
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
@@ -2179,6 +2182,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2179
2182
|
readonly error: Schema.Struct<{
|
|
2180
2183
|
readonly type: Schema.String;
|
|
2181
2184
|
readonly message: Schema.String;
|
|
2185
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2182
2186
|
}>;
|
|
2183
2187
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2184
2188
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
@@ -2984,6 +2988,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2984
2988
|
readonly error: Schema.Struct<{
|
|
2985
2989
|
readonly type: Schema.String;
|
|
2986
2990
|
readonly message: Schema.String;
|
|
2991
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2987
2992
|
}>;
|
|
2988
2993
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
2989
2994
|
readonly type: Schema.Literal<"text">;
|
|
@@ -3026,6 +3031,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3026
3031
|
readonly error: Schema.Struct<{
|
|
3027
3032
|
readonly type: Schema.String;
|
|
3028
3033
|
readonly message: Schema.String;
|
|
3034
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3029
3035
|
}>;
|
|
3030
3036
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3031
3037
|
readonly type: Schema.Literal<"text">;
|
|
@@ -3098,6 +3104,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3098
3104
|
readonly error: Schema.Struct<{
|
|
3099
3105
|
readonly type: Schema.String;
|
|
3100
3106
|
readonly message: Schema.String;
|
|
3107
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3101
3108
|
}>;
|
|
3102
3109
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3103
3110
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3121,6 +3128,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3121
3128
|
readonly error: Schema.Struct<{
|
|
3122
3129
|
readonly type: Schema.String;
|
|
3123
3130
|
readonly message: Schema.String;
|
|
3131
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3124
3132
|
}>;
|
|
3125
3133
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3126
3134
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3389,6 +3397,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3389
3397
|
readonly error: Schema.Struct<{
|
|
3390
3398
|
readonly type: Schema.String;
|
|
3391
3399
|
readonly message: Schema.String;
|
|
3400
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3392
3401
|
}>;
|
|
3393
3402
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3394
3403
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -3414,6 +3423,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3414
3423
|
readonly error: Schema.Struct<{
|
|
3415
3424
|
readonly type: Schema.String;
|
|
3416
3425
|
readonly message: Schema.String;
|
|
3426
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3417
3427
|
}>;
|
|
3418
3428
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3419
3429
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -8037,6 +8047,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8037
8047
|
readonly error: {
|
|
8038
8048
|
readonly type: string;
|
|
8039
8049
|
readonly message: string;
|
|
8050
|
+
readonly status?: number | undefined;
|
|
8040
8051
|
};
|
|
8041
8052
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8042
8053
|
};
|
|
@@ -8287,6 +8298,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8287
8298
|
readonly error: {
|
|
8288
8299
|
readonly type: string;
|
|
8289
8300
|
readonly message: string;
|
|
8301
|
+
readonly status?: number | undefined;
|
|
8290
8302
|
};
|
|
8291
8303
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8292
8304
|
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
@@ -8605,6 +8617,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8605
8617
|
readonly error: {
|
|
8606
8618
|
readonly type: string;
|
|
8607
8619
|
readonly message: string;
|
|
8620
|
+
readonly status?: number | undefined;
|
|
8608
8621
|
};
|
|
8609
8622
|
readonly callID: string;
|
|
8610
8623
|
readonly executed: boolean;
|
|
@@ -8656,6 +8669,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8656
8669
|
readonly error: {
|
|
8657
8670
|
readonly type: string;
|
|
8658
8671
|
readonly message: string;
|
|
8672
|
+
readonly status?: number | undefined;
|
|
8659
8673
|
};
|
|
8660
8674
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8661
8675
|
};
|
|
@@ -8759,6 +8773,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8759
8773
|
readonly error: {
|
|
8760
8774
|
readonly type: string;
|
|
8761
8775
|
readonly message: string;
|
|
8776
|
+
readonly status?: number | undefined;
|
|
8762
8777
|
};
|
|
8763
8778
|
readonly reason: "auto" | "manual";
|
|
8764
8779
|
readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
|
|
@@ -11749,6 +11764,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11749
11764
|
readonly error: Schema.Struct<{
|
|
11750
11765
|
readonly type: Schema.String;
|
|
11751
11766
|
readonly message: Schema.String;
|
|
11767
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11752
11768
|
}>;
|
|
11753
11769
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11754
11770
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -11766,6 +11782,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11766
11782
|
readonly error: Schema.Struct<{
|
|
11767
11783
|
readonly type: Schema.String;
|
|
11768
11784
|
readonly message: Schema.String;
|
|
11785
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11769
11786
|
}>;
|
|
11770
11787
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11771
11788
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -12407,6 +12424,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12407
12424
|
readonly error: Schema.Struct<{
|
|
12408
12425
|
readonly type: Schema.String;
|
|
12409
12426
|
readonly message: Schema.String;
|
|
12427
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
12410
12428
|
}>;
|
|
12411
12429
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
12412
12430
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
@@ -12452,6 +12470,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12452
12470
|
readonly error: Schema.Struct<{
|
|
12453
12471
|
readonly type: Schema.String;
|
|
12454
12472
|
readonly message: Schema.String;
|
|
12473
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
12455
12474
|
}>;
|
|
12456
12475
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
12457
12476
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
@@ -13257,6 +13276,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
13257
13276
|
readonly error: Schema.Struct<{
|
|
13258
13277
|
readonly type: Schema.String;
|
|
13259
13278
|
readonly message: Schema.String;
|
|
13279
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
13260
13280
|
}>;
|
|
13261
13281
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
13262
13282
|
readonly type: Schema.Literal<"text">;
|
|
@@ -13299,6 +13319,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
13299
13319
|
readonly error: Schema.Struct<{
|
|
13300
13320
|
readonly type: Schema.String;
|
|
13301
13321
|
readonly message: Schema.String;
|
|
13322
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
13302
13323
|
}>;
|
|
13303
13324
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
13304
13325
|
readonly type: Schema.Literal<"text">;
|
|
@@ -13371,6 +13392,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
13371
13392
|
readonly error: Schema.Struct<{
|
|
13372
13393
|
readonly type: Schema.String;
|
|
13373
13394
|
readonly message: Schema.String;
|
|
13395
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
13374
13396
|
}>;
|
|
13375
13397
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
13376
13398
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -13394,6 +13416,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
13394
13416
|
readonly error: Schema.Struct<{
|
|
13395
13417
|
readonly type: Schema.String;
|
|
13396
13418
|
readonly message: Schema.String;
|
|
13419
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
13397
13420
|
}>;
|
|
13398
13421
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
13399
13422
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -13662,6 +13685,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
13662
13685
|
readonly error: Schema.Struct<{
|
|
13663
13686
|
readonly type: Schema.String;
|
|
13664
13687
|
readonly message: Schema.String;
|
|
13688
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
13665
13689
|
}>;
|
|
13666
13690
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
13667
13691
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -13687,6 +13711,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
13687
13711
|
readonly error: Schema.Struct<{
|
|
13688
13712
|
readonly type: Schema.String;
|
|
13689
13713
|
readonly message: Schema.String;
|
|
13714
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
13690
13715
|
}>;
|
|
13691
13716
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
13692
13717
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
package/dist/groups/message.d.ts
CHANGED
|
@@ -355,6 +355,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
355
355
|
readonly error: Schema.Struct<{
|
|
356
356
|
readonly type: Schema.String;
|
|
357
357
|
readonly message: Schema.String;
|
|
358
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
358
359
|
}>;
|
|
359
360
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
360
361
|
readonly type: Schema.Literal<"text">;
|
|
@@ -416,9 +417,11 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
416
417
|
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
417
418
|
readonly type: Schema.String;
|
|
418
419
|
readonly message: Schema.String;
|
|
420
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
419
421
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
420
422
|
readonly type: Schema.String;
|
|
421
423
|
readonly message: Schema.String;
|
|
424
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
422
425
|
}>>, never, never>;
|
|
423
426
|
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
424
427
|
readonly attempt: Schema.Int;
|
|
@@ -426,6 +429,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
426
429
|
readonly error: Schema.Struct<{
|
|
427
430
|
readonly type: Schema.String;
|
|
428
431
|
readonly message: Schema.String;
|
|
432
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
429
433
|
}>;
|
|
430
434
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
431
435
|
readonly attempt: Schema.Int;
|
|
@@ -433,6 +437,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
433
437
|
readonly error: Schema.Struct<{
|
|
434
438
|
readonly type: Schema.String;
|
|
435
439
|
readonly message: Schema.String;
|
|
440
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
436
441
|
}>;
|
|
437
442
|
}>>, never, never>;
|
|
438
443
|
readonly time: Schema.Struct<{
|
|
@@ -478,6 +483,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
478
483
|
readonly error: Schema.Struct<{
|
|
479
484
|
readonly type: Schema.String;
|
|
480
485
|
readonly message: Schema.String;
|
|
486
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
481
487
|
}>;
|
|
482
488
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
483
489
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -1932,6 +1932,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1932
1932
|
readonly error: Schema.Struct<{
|
|
1933
1933
|
readonly type: Schema.String;
|
|
1934
1934
|
readonly message: Schema.String;
|
|
1935
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1935
1936
|
}>;
|
|
1936
1937
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1937
1938
|
readonly type: Schema.Literal<"text">;
|
|
@@ -1993,9 +1994,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1993
1994
|
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1994
1995
|
readonly type: Schema.String;
|
|
1995
1996
|
readonly message: Schema.String;
|
|
1997
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1996
1998
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1997
1999
|
readonly type: Schema.String;
|
|
1998
2000
|
readonly message: Schema.String;
|
|
2001
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1999
2002
|
}>>, never, never>;
|
|
2000
2003
|
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2001
2004
|
readonly attempt: Schema.Int;
|
|
@@ -2003,6 +2006,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2003
2006
|
readonly error: Schema.Struct<{
|
|
2004
2007
|
readonly type: Schema.String;
|
|
2005
2008
|
readonly message: Schema.String;
|
|
2009
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2006
2010
|
}>;
|
|
2007
2011
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2008
2012
|
readonly attempt: Schema.Int;
|
|
@@ -2010,6 +2014,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2010
2014
|
readonly error: Schema.Struct<{
|
|
2011
2015
|
readonly type: Schema.String;
|
|
2012
2016
|
readonly message: Schema.String;
|
|
2017
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2013
2018
|
}>;
|
|
2014
2019
|
}>>, never, never>;
|
|
2015
2020
|
readonly time: Schema.Struct<{
|
|
@@ -2055,6 +2060,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2055
2060
|
readonly error: Schema.Struct<{
|
|
2056
2061
|
readonly type: Schema.String;
|
|
2057
2062
|
readonly message: Schema.String;
|
|
2063
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2058
2064
|
}>;
|
|
2059
2065
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2060
2066
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -3161,6 +3167,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3161
3167
|
readonly error: Schema.Struct<{
|
|
3162
3168
|
readonly type: Schema.String;
|
|
3163
3169
|
readonly message: Schema.String;
|
|
3170
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3164
3171
|
}>;
|
|
3165
3172
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3166
3173
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3178,6 +3185,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3178
3185
|
readonly error: Schema.Struct<{
|
|
3179
3186
|
readonly type: Schema.String;
|
|
3180
3187
|
readonly message: Schema.String;
|
|
3188
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3181
3189
|
}>;
|
|
3182
3190
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3183
3191
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3819,6 +3827,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3819
3827
|
readonly error: Schema.Struct<{
|
|
3820
3828
|
readonly type: Schema.String;
|
|
3821
3829
|
readonly message: Schema.String;
|
|
3830
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3822
3831
|
}>;
|
|
3823
3832
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3824
3833
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
@@ -3864,6 +3873,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3864
3873
|
readonly error: Schema.Struct<{
|
|
3865
3874
|
readonly type: Schema.String;
|
|
3866
3875
|
readonly message: Schema.String;
|
|
3876
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3867
3877
|
}>;
|
|
3868
3878
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3869
3879
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
@@ -4453,6 +4463,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4453
4463
|
readonly error: Schema.Struct<{
|
|
4454
4464
|
readonly type: Schema.String;
|
|
4455
4465
|
readonly message: Schema.String;
|
|
4466
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4456
4467
|
}>;
|
|
4457
4468
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4458
4469
|
readonly type: Schema.Literal<"text">;
|
|
@@ -4495,6 +4506,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4495
4506
|
readonly error: Schema.Struct<{
|
|
4496
4507
|
readonly type: Schema.String;
|
|
4497
4508
|
readonly message: Schema.String;
|
|
4509
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4498
4510
|
}>;
|
|
4499
4511
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4500
4512
|
readonly type: Schema.Literal<"text">;
|
|
@@ -4567,6 +4579,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4567
4579
|
readonly error: Schema.Struct<{
|
|
4568
4580
|
readonly type: Schema.String;
|
|
4569
4581
|
readonly message: Schema.String;
|
|
4582
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4570
4583
|
}>;
|
|
4571
4584
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4572
4585
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4590,6 +4603,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4590
4603
|
readonly error: Schema.Struct<{
|
|
4591
4604
|
readonly type: Schema.String;
|
|
4592
4605
|
readonly message: Schema.String;
|
|
4606
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4593
4607
|
}>;
|
|
4594
4608
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4595
4609
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4814,6 +4828,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4814
4828
|
readonly error: Schema.Struct<{
|
|
4815
4829
|
readonly type: Schema.String;
|
|
4816
4830
|
readonly message: Schema.String;
|
|
4831
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4817
4832
|
}>;
|
|
4818
4833
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4819
4834
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -4839,6 +4854,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4839
4854
|
readonly error: Schema.Struct<{
|
|
4840
4855
|
readonly type: Schema.String;
|
|
4841
4856
|
readonly message: Schema.String;
|
|
4857
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4842
4858
|
}>;
|
|
4843
4859
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4844
4860
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -5429,6 +5445,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5429
5445
|
readonly error: {
|
|
5430
5446
|
readonly type: string;
|
|
5431
5447
|
readonly message: string;
|
|
5448
|
+
readonly status?: number | undefined;
|
|
5432
5449
|
};
|
|
5433
5450
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5434
5451
|
};
|
|
@@ -5679,6 +5696,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5679
5696
|
readonly error: {
|
|
5680
5697
|
readonly type: string;
|
|
5681
5698
|
readonly message: string;
|
|
5699
|
+
readonly status?: number | undefined;
|
|
5682
5700
|
};
|
|
5683
5701
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5684
5702
|
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
@@ -5927,6 +5945,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5927
5945
|
readonly error: {
|
|
5928
5946
|
readonly type: string;
|
|
5929
5947
|
readonly message: string;
|
|
5948
|
+
readonly status?: number | undefined;
|
|
5930
5949
|
};
|
|
5931
5950
|
readonly callID: string;
|
|
5932
5951
|
readonly executed: boolean;
|
|
@@ -5978,6 +5997,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5978
5997
|
readonly error: {
|
|
5979
5998
|
readonly type: string;
|
|
5980
5999
|
readonly message: string;
|
|
6000
|
+
readonly status?: number | undefined;
|
|
5981
6001
|
};
|
|
5982
6002
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5983
6003
|
};
|
|
@@ -6066,6 +6086,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6066
6086
|
readonly error: {
|
|
6067
6087
|
readonly type: string;
|
|
6068
6088
|
readonly message: string;
|
|
6089
|
+
readonly status?: number | undefined;
|
|
6069
6090
|
};
|
|
6070
6091
|
readonly reason: "auto" | "manual";
|
|
6071
6092
|
readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
|
|
@@ -6517,6 +6538,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6517
6538
|
readonly error: Schema.Struct<{
|
|
6518
6539
|
readonly type: Schema.String;
|
|
6519
6540
|
readonly message: Schema.String;
|
|
6541
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
6520
6542
|
}>;
|
|
6521
6543
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
6522
6544
|
readonly type: Schema.Literal<"text">;
|
|
@@ -6578,9 +6600,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6578
6600
|
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6579
6601
|
readonly type: Schema.String;
|
|
6580
6602
|
readonly message: Schema.String;
|
|
6603
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
6581
6604
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6582
6605
|
readonly type: Schema.String;
|
|
6583
6606
|
readonly message: Schema.String;
|
|
6607
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
6584
6608
|
}>>, never, never>;
|
|
6585
6609
|
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6586
6610
|
readonly attempt: Schema.Int;
|
|
@@ -6588,6 +6612,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6588
6612
|
readonly error: Schema.Struct<{
|
|
6589
6613
|
readonly type: Schema.String;
|
|
6590
6614
|
readonly message: Schema.String;
|
|
6615
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
6591
6616
|
}>;
|
|
6592
6617
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6593
6618
|
readonly attempt: Schema.Int;
|
|
@@ -6595,6 +6620,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6595
6620
|
readonly error: Schema.Struct<{
|
|
6596
6621
|
readonly type: Schema.String;
|
|
6597
6622
|
readonly message: Schema.String;
|
|
6623
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
6598
6624
|
}>;
|
|
6599
6625
|
}>>, never, never>;
|
|
6600
6626
|
readonly time: Schema.Struct<{
|
|
@@ -6640,6 +6666,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6640
6666
|
readonly error: Schema.Struct<{
|
|
6641
6667
|
readonly type: Schema.String;
|
|
6642
6668
|
readonly message: Schema.String;
|
|
6669
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
6643
6670
|
}>;
|
|
6644
6671
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6645
6672
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/protocol",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-16667",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"typecheck": "tsgo --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
31
|
+
"@opencode-ai/schema": "0.0.0-next-16667",
|
|
32
32
|
"effect": "4.0.0-beta.101"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|