@opencode-ai/protocol 0.0.0-next-16087 → 0.0.0-next-16091
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 +31 -78
- package/dist/groups/message.d.ts +15 -18
- package/dist/groups/session.d.ts +50 -54
- package/package.json +2 -2
package/dist/groups/event.d.ts
CHANGED
|
@@ -2824,16 +2824,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2824
2824
|
}>, never, never>;
|
|
2825
2825
|
}>>, never, never>;
|
|
2826
2826
|
readonly data: Schema.Struct<{
|
|
2827
|
-
readonly
|
|
2828
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2829
|
-
readonly type: Schema.Literal<"text">;
|
|
2830
|
-
readonly text: Schema.String;
|
|
2831
|
-
}>, Schema.Struct<{
|
|
2832
|
-
readonly type: Schema.Literal<"file">;
|
|
2833
|
-
readonly uri: Schema.String;
|
|
2834
|
-
readonly mime: Schema.String;
|
|
2835
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2836
|
-
}>]>>;
|
|
2827
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2837
2828
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2838
2829
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2839
2830
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -2849,16 +2840,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2849
2840
|
durability: "ephemeral";
|
|
2850
2841
|
durable: undefined;
|
|
2851
2842
|
data: Schema.Struct<{
|
|
2852
|
-
readonly
|
|
2853
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2854
|
-
readonly type: Schema.Literal<"text">;
|
|
2855
|
-
readonly text: Schema.String;
|
|
2856
|
-
}>, Schema.Struct<{
|
|
2857
|
-
readonly type: Schema.Literal<"file">;
|
|
2858
|
-
readonly uri: Schema.String;
|
|
2859
|
-
readonly mime: Schema.String;
|
|
2860
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2861
|
-
}>]>>;
|
|
2843
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
2862
2844
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2863
2845
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2864
2846
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -2901,8 +2883,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2901
2883
|
}>, never, never>;
|
|
2902
2884
|
}>>, never, never>;
|
|
2903
2885
|
readonly data: Schema.Struct<{
|
|
2904
|
-
readonly
|
|
2905
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2886
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
2906
2887
|
readonly type: Schema.Literal<"text">;
|
|
2907
2888
|
readonly text: Schema.String;
|
|
2908
2889
|
}>, Schema.Struct<{
|
|
@@ -2911,7 +2892,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2911
2892
|
readonly mime: Schema.String;
|
|
2912
2893
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2913
2894
|
}>]>>;
|
|
2914
|
-
readonly
|
|
2895
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2915
2896
|
readonly executed: Schema.Boolean;
|
|
2916
2897
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2917
2898
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -2932,8 +2913,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2932
2913
|
readonly aggregate: string;
|
|
2933
2914
|
};
|
|
2934
2915
|
data: Schema.Struct<{
|
|
2935
|
-
readonly
|
|
2936
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2916
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
2937
2917
|
readonly type: Schema.Literal<"text">;
|
|
2938
2918
|
readonly text: Schema.String;
|
|
2939
2919
|
}>, Schema.Struct<{
|
|
@@ -2942,7 +2922,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2942
2922
|
readonly mime: Schema.String;
|
|
2943
2923
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2944
2924
|
}>]>>;
|
|
2945
|
-
readonly
|
|
2925
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2946
2926
|
readonly executed: Schema.Boolean;
|
|
2947
2927
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2948
2928
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -3008,8 +2988,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3008
2988
|
readonly mime: Schema.String;
|
|
3009
2989
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3010
2990
|
}>]>>>, never, never>;
|
|
3011
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
3012
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
2991
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
3013
2992
|
readonly executed: Schema.Boolean;
|
|
3014
2993
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3015
2994
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -3051,8 +3030,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3051
3030
|
readonly mime: Schema.String;
|
|
3052
3031
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3053
3032
|
}>]>>>, never, never>;
|
|
3054
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
3055
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
3033
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
3056
3034
|
readonly executed: Schema.Boolean;
|
|
3057
3035
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3058
3036
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -8987,16 +8965,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8987
8965
|
} | {
|
|
8988
8966
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
8989
8967
|
readonly data: Schema.Struct.ReadonlySide<{
|
|
8990
|
-
readonly
|
|
8991
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
8992
|
-
readonly type: Schema.Literal<"text">;
|
|
8993
|
-
readonly text: Schema.String;
|
|
8994
|
-
}>, Schema.Struct<{
|
|
8995
|
-
readonly type: Schema.Literal<"file">;
|
|
8996
|
-
readonly uri: Schema.String;
|
|
8997
|
-
readonly mime: Schema.String;
|
|
8998
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
8999
|
-
}>]>>;
|
|
8968
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
9000
8969
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
9001
8970
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9002
8971
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -9019,7 +8988,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
9019
8988
|
} | {
|
|
9020
8989
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
9021
8990
|
readonly data: {
|
|
9022
|
-
readonly content: readonly
|
|
8991
|
+
readonly content: readonly [Schema.Struct.ReadonlySide<{
|
|
9023
8992
|
readonly type: Schema.Literal<"text">;
|
|
9024
8993
|
readonly text: Schema.String;
|
|
9025
8994
|
}, "Type"> | {
|
|
@@ -9027,15 +8996,22 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
9027
8996
|
readonly uri: string;
|
|
9028
8997
|
readonly mime: string;
|
|
9029
8998
|
readonly name?: string | undefined;
|
|
9030
|
-
}
|
|
8999
|
+
}, ...(Schema.Struct.ReadonlySide<{
|
|
9000
|
+
readonly type: Schema.Literal<"text">;
|
|
9001
|
+
readonly text: Schema.String;
|
|
9002
|
+
}, "Type"> | {
|
|
9003
|
+
readonly type: "file";
|
|
9004
|
+
readonly uri: string;
|
|
9005
|
+
readonly mime: string;
|
|
9006
|
+
readonly name?: string | undefined;
|
|
9007
|
+
})[]];
|
|
9031
9008
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
9032
9009
|
readonly callID: string;
|
|
9033
|
-
readonly structured: {
|
|
9034
|
-
readonly [x: string]: unknown;
|
|
9035
|
-
};
|
|
9036
9010
|
readonly executed: boolean;
|
|
9037
9011
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9038
|
-
readonly
|
|
9012
|
+
readonly metadata?: {
|
|
9013
|
+
readonly [x: string]: Schema.Json;
|
|
9014
|
+
} | undefined;
|
|
9039
9015
|
readonly resultState?: {
|
|
9040
9016
|
readonly [x: string]: unknown;
|
|
9041
9017
|
} | undefined;
|
|
@@ -9066,7 +9042,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
9066
9042
|
readonly executed: boolean;
|
|
9067
9043
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9068
9044
|
readonly metadata?: {
|
|
9069
|
-
readonly [x: string]:
|
|
9045
|
+
readonly [x: string]: Schema.Json;
|
|
9070
9046
|
} | undefined;
|
|
9071
9047
|
readonly content?: readonly [Schema.Struct.ReadonlySide<{
|
|
9072
9048
|
readonly type: Schema.Literal<"text">;
|
|
@@ -9085,7 +9061,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
9085
9061
|
readonly mime: string;
|
|
9086
9062
|
readonly name?: string | undefined;
|
|
9087
9063
|
})[]] | undefined;
|
|
9088
|
-
readonly result?: unknown;
|
|
9089
9064
|
readonly resultState?: {
|
|
9090
9065
|
readonly [x: string]: unknown;
|
|
9091
9066
|
} | undefined;
|
|
@@ -14100,16 +14075,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
14100
14075
|
}>, never, never>;
|
|
14101
14076
|
}>>, never, never>;
|
|
14102
14077
|
readonly data: Schema.Struct<{
|
|
14103
|
-
readonly
|
|
14104
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
14105
|
-
readonly type: Schema.Literal<"text">;
|
|
14106
|
-
readonly text: Schema.String;
|
|
14107
|
-
}>, Schema.Struct<{
|
|
14108
|
-
readonly type: Schema.Literal<"file">;
|
|
14109
|
-
readonly uri: Schema.String;
|
|
14110
|
-
readonly mime: Schema.String;
|
|
14111
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14112
|
-
}>]>>;
|
|
14078
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
14113
14079
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
14114
14080
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14115
14081
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -14125,16 +14091,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
14125
14091
|
durability: "ephemeral";
|
|
14126
14092
|
durable: undefined;
|
|
14127
14093
|
data: Schema.Struct<{
|
|
14128
|
-
readonly
|
|
14129
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
14130
|
-
readonly type: Schema.Literal<"text">;
|
|
14131
|
-
readonly text: Schema.String;
|
|
14132
|
-
}>, Schema.Struct<{
|
|
14133
|
-
readonly type: Schema.Literal<"file">;
|
|
14134
|
-
readonly uri: Schema.String;
|
|
14135
|
-
readonly mime: Schema.String;
|
|
14136
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14137
|
-
}>]>>;
|
|
14094
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
14138
14095
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
14139
14096
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14140
14097
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -14177,8 +14134,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
14177
14134
|
}>, never, never>;
|
|
14178
14135
|
}>>, never, never>;
|
|
14179
14136
|
readonly data: Schema.Struct<{
|
|
14180
|
-
readonly
|
|
14181
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
14137
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
14182
14138
|
readonly type: Schema.Literal<"text">;
|
|
14183
14139
|
readonly text: Schema.String;
|
|
14184
14140
|
}>, Schema.Struct<{
|
|
@@ -14187,7 +14143,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
14187
14143
|
readonly mime: Schema.String;
|
|
14188
14144
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14189
14145
|
}>]>>;
|
|
14190
|
-
readonly
|
|
14146
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
14191
14147
|
readonly executed: Schema.Boolean;
|
|
14192
14148
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14193
14149
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -14208,8 +14164,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
14208
14164
|
readonly aggregate: string;
|
|
14209
14165
|
};
|
|
14210
14166
|
data: Schema.Struct<{
|
|
14211
|
-
readonly
|
|
14212
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
14167
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
14213
14168
|
readonly type: Schema.Literal<"text">;
|
|
14214
14169
|
readonly text: Schema.String;
|
|
14215
14170
|
}>, Schema.Struct<{
|
|
@@ -14218,7 +14173,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
14218
14173
|
readonly mime: Schema.String;
|
|
14219
14174
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14220
14175
|
}>]>>;
|
|
14221
|
-
readonly
|
|
14176
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
14222
14177
|
readonly executed: Schema.Boolean;
|
|
14223
14178
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14224
14179
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -14284,8 +14239,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
14284
14239
|
readonly mime: Schema.String;
|
|
14285
14240
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14286
14241
|
}>]>>>, never, never>;
|
|
14287
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
14288
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
14242
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
14289
14243
|
readonly executed: Schema.Boolean;
|
|
14290
14244
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14291
14245
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -14327,8 +14281,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
14327
14281
|
readonly mime: Schema.String;
|
|
14328
14282
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14329
14283
|
}>]>>>, never, never>;
|
|
14330
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
14331
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
14284
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
14332
14285
|
readonly executed: Schema.Boolean;
|
|
14333
14286
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14334
14287
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
package/dist/groups/message.d.ts
CHANGED
|
@@ -334,8 +334,11 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
334
334
|
}>, Schema.Struct<{
|
|
335
335
|
readonly status: Schema.tag<"running">;
|
|
336
336
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
337
|
-
readonly
|
|
338
|
-
|
|
337
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
338
|
+
}>, Schema.Struct<{
|
|
339
|
+
readonly status: Schema.tag<"completed">;
|
|
340
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
341
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
339
342
|
readonly type: Schema.Literal<"text">;
|
|
340
343
|
readonly text: Schema.String;
|
|
341
344
|
}>, Schema.Struct<{
|
|
@@ -344,10 +347,15 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
344
347
|
readonly mime: Schema.String;
|
|
345
348
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
346
349
|
}>]>>;
|
|
350
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
347
351
|
}>, Schema.Struct<{
|
|
348
|
-
readonly status: Schema.tag<"
|
|
352
|
+
readonly status: Schema.tag<"error">;
|
|
349
353
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
350
|
-
readonly
|
|
354
|
+
readonly error: Schema.Struct<{
|
|
355
|
+
readonly type: Schema.String;
|
|
356
|
+
readonly message: Schema.String;
|
|
357
|
+
}>;
|
|
358
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
351
359
|
readonly type: Schema.Literal<"text">;
|
|
352
360
|
readonly text: Schema.String;
|
|
353
361
|
}>, Schema.Struct<{
|
|
@@ -355,13 +363,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
355
363
|
readonly uri: Schema.String;
|
|
356
364
|
readonly mime: Schema.String;
|
|
357
365
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
358
|
-
}>]
|
|
359
|
-
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
360
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
361
|
-
}>, Schema.Struct<{
|
|
362
|
-
readonly status: Schema.tag<"error">;
|
|
363
|
-
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
364
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
366
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
365
367
|
readonly type: Schema.Literal<"text">;
|
|
366
368
|
readonly text: Schema.String;
|
|
367
369
|
}>, Schema.Struct<{
|
|
@@ -369,13 +371,8 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
369
371
|
readonly uri: Schema.String;
|
|
370
372
|
readonly mime: Schema.String;
|
|
371
373
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
372
|
-
}>]
|
|
373
|
-
readonly
|
|
374
|
-
readonly error: Schema.Struct<{
|
|
375
|
-
readonly type: Schema.String;
|
|
376
|
-
readonly message: Schema.String;
|
|
377
|
-
}>;
|
|
378
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
374
|
+
}>]>>>, never, never>;
|
|
375
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
379
376
|
}>]>;
|
|
380
377
|
readonly time: Schema.Struct<{
|
|
381
378
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -1888,8 +1888,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1888
1888
|
}>, Schema.Struct<{
|
|
1889
1889
|
readonly status: Schema.tag<"running">;
|
|
1890
1890
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1891
|
-
readonly
|
|
1892
|
-
|
|
1891
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1892
|
+
}>, Schema.Struct<{
|
|
1893
|
+
readonly status: Schema.tag<"completed">;
|
|
1894
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1895
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1893
1896
|
readonly type: Schema.Literal<"text">;
|
|
1894
1897
|
readonly text: Schema.String;
|
|
1895
1898
|
}>, Schema.Struct<{
|
|
@@ -1898,10 +1901,15 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1898
1901
|
readonly mime: Schema.String;
|
|
1899
1902
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1900
1903
|
}>]>>;
|
|
1904
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1901
1905
|
}>, Schema.Struct<{
|
|
1902
|
-
readonly status: Schema.tag<"
|
|
1906
|
+
readonly status: Schema.tag<"error">;
|
|
1903
1907
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1904
|
-
readonly
|
|
1908
|
+
readonly error: Schema.Struct<{
|
|
1909
|
+
readonly type: Schema.String;
|
|
1910
|
+
readonly message: Schema.String;
|
|
1911
|
+
}>;
|
|
1912
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1905
1913
|
readonly type: Schema.Literal<"text">;
|
|
1906
1914
|
readonly text: Schema.String;
|
|
1907
1915
|
}>, Schema.Struct<{
|
|
@@ -1909,13 +1917,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1909
1917
|
readonly uri: Schema.String;
|
|
1910
1918
|
readonly mime: Schema.String;
|
|
1911
1919
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1912
|
-
}>]
|
|
1913
|
-
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1914
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
1915
|
-
}>, Schema.Struct<{
|
|
1916
|
-
readonly status: Schema.tag<"error">;
|
|
1917
|
-
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1918
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1920
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1919
1921
|
readonly type: Schema.Literal<"text">;
|
|
1920
1922
|
readonly text: Schema.String;
|
|
1921
1923
|
}>, Schema.Struct<{
|
|
@@ -1923,13 +1925,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1923
1925
|
readonly uri: Schema.String;
|
|
1924
1926
|
readonly mime: Schema.String;
|
|
1925
1927
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1926
|
-
}>]
|
|
1927
|
-
readonly
|
|
1928
|
-
readonly error: Schema.Struct<{
|
|
1929
|
-
readonly type: Schema.String;
|
|
1930
|
-
readonly message: Schema.String;
|
|
1931
|
-
}>;
|
|
1932
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
1928
|
+
}>]>>>, never, never>;
|
|
1929
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1933
1930
|
}>]>;
|
|
1934
1931
|
readonly time: Schema.Struct<{
|
|
1935
1932
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
@@ -4334,8 +4331,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4334
4331
|
}>, never, never>;
|
|
4335
4332
|
}>>, never, never>;
|
|
4336
4333
|
readonly data: Schema.Struct<{
|
|
4337
|
-
readonly
|
|
4338
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4334
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4339
4335
|
readonly type: Schema.Literal<"text">;
|
|
4340
4336
|
readonly text: Schema.String;
|
|
4341
4337
|
}>, Schema.Struct<{
|
|
@@ -4344,7 +4340,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4344
4340
|
readonly mime: Schema.String;
|
|
4345
4341
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4346
4342
|
}>]>>;
|
|
4347
|
-
readonly
|
|
4343
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
4348
4344
|
readonly executed: Schema.Boolean;
|
|
4349
4345
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4350
4346
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -4365,8 +4361,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4365
4361
|
readonly aggregate: string;
|
|
4366
4362
|
};
|
|
4367
4363
|
data: Schema.Struct<{
|
|
4368
|
-
readonly
|
|
4369
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4364
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4370
4365
|
readonly type: Schema.Literal<"text">;
|
|
4371
4366
|
readonly text: Schema.String;
|
|
4372
4367
|
}>, Schema.Struct<{
|
|
@@ -4375,7 +4370,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4375
4370
|
readonly mime: Schema.String;
|
|
4376
4371
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4377
4372
|
}>]>>;
|
|
4378
|
-
readonly
|
|
4373
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
4379
4374
|
readonly executed: Schema.Boolean;
|
|
4380
4375
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4381
4376
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -4441,8 +4436,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4441
4436
|
readonly mime: Schema.String;
|
|
4442
4437
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4443
4438
|
}>]>>>, never, never>;
|
|
4444
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
4445
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
4439
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
4446
4440
|
readonly executed: Schema.Boolean;
|
|
4447
4441
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4448
4442
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -4484,8 +4478,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4484
4478
|
readonly mime: Schema.String;
|
|
4485
4479
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4486
4480
|
}>]>>>, never, never>;
|
|
4487
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.
|
|
4488
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
4481
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
4489
4482
|
readonly executed: Schema.Boolean;
|
|
4490
4483
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4491
4484
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
@@ -6005,7 +5998,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6005
5998
|
} | {
|
|
6006
5999
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
6007
6000
|
readonly data: {
|
|
6008
|
-
readonly content: readonly
|
|
6001
|
+
readonly content: readonly [Schema.Struct.ReadonlySide<{
|
|
6009
6002
|
readonly type: Schema.Literal<"text">;
|
|
6010
6003
|
readonly text: Schema.String;
|
|
6011
6004
|
}, "Type"> | {
|
|
@@ -6013,15 +6006,22 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6013
6006
|
readonly uri: string;
|
|
6014
6007
|
readonly mime: string;
|
|
6015
6008
|
readonly name?: string | undefined;
|
|
6016
|
-
}
|
|
6009
|
+
}, ...(Schema.Struct.ReadonlySide<{
|
|
6010
|
+
readonly type: Schema.Literal<"text">;
|
|
6011
|
+
readonly text: Schema.String;
|
|
6012
|
+
}, "Type"> | {
|
|
6013
|
+
readonly type: "file";
|
|
6014
|
+
readonly uri: string;
|
|
6015
|
+
readonly mime: string;
|
|
6016
|
+
readonly name?: string | undefined;
|
|
6017
|
+
})[]];
|
|
6017
6018
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
6018
6019
|
readonly callID: string;
|
|
6019
|
-
readonly structured: {
|
|
6020
|
-
readonly [x: string]: unknown;
|
|
6021
|
-
};
|
|
6022
6020
|
readonly executed: boolean;
|
|
6023
6021
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6024
|
-
readonly
|
|
6022
|
+
readonly metadata?: {
|
|
6023
|
+
readonly [x: string]: Schema.Json;
|
|
6024
|
+
} | undefined;
|
|
6025
6025
|
readonly resultState?: {
|
|
6026
6026
|
readonly [x: string]: unknown;
|
|
6027
6027
|
} | undefined;
|
|
@@ -6052,7 +6052,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6052
6052
|
readonly executed: boolean;
|
|
6053
6053
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6054
6054
|
readonly metadata?: {
|
|
6055
|
-
readonly [x: string]:
|
|
6055
|
+
readonly [x: string]: Schema.Json;
|
|
6056
6056
|
} | undefined;
|
|
6057
6057
|
readonly content?: readonly [Schema.Struct.ReadonlySide<{
|
|
6058
6058
|
readonly type: Schema.Literal<"text">;
|
|
@@ -6071,7 +6071,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6071
6071
|
readonly mime: string;
|
|
6072
6072
|
readonly name?: string | undefined;
|
|
6073
6073
|
})[]] | undefined;
|
|
6074
|
-
readonly result?: unknown;
|
|
6075
6074
|
readonly resultState?: {
|
|
6076
6075
|
readonly [x: string]: unknown;
|
|
6077
6076
|
} | undefined;
|
|
@@ -6653,8 +6652,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6653
6652
|
}>, Schema.Struct<{
|
|
6654
6653
|
readonly status: Schema.tag<"running">;
|
|
6655
6654
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
6656
|
-
readonly
|
|
6657
|
-
|
|
6655
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
6656
|
+
}>, Schema.Struct<{
|
|
6657
|
+
readonly status: Schema.tag<"completed">;
|
|
6658
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
6659
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
6658
6660
|
readonly type: Schema.Literal<"text">;
|
|
6659
6661
|
readonly text: Schema.String;
|
|
6660
6662
|
}>, Schema.Struct<{
|
|
@@ -6663,10 +6665,15 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6663
6665
|
readonly mime: Schema.String;
|
|
6664
6666
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6665
6667
|
}>]>>;
|
|
6668
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
6666
6669
|
}>, Schema.Struct<{
|
|
6667
|
-
readonly status: Schema.tag<"
|
|
6670
|
+
readonly status: Schema.tag<"error">;
|
|
6668
6671
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
6669
|
-
readonly
|
|
6672
|
+
readonly error: Schema.Struct<{
|
|
6673
|
+
readonly type: Schema.String;
|
|
6674
|
+
readonly message: Schema.String;
|
|
6675
|
+
}>;
|
|
6676
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
6670
6677
|
readonly type: Schema.Literal<"text">;
|
|
6671
6678
|
readonly text: Schema.String;
|
|
6672
6679
|
}>, Schema.Struct<{
|
|
@@ -6674,13 +6681,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6674
6681
|
readonly uri: Schema.String;
|
|
6675
6682
|
readonly mime: Schema.String;
|
|
6676
6683
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6677
|
-
}>]
|
|
6678
|
-
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
6679
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
6680
|
-
}>, Schema.Struct<{
|
|
6681
|
-
readonly status: Schema.tag<"error">;
|
|
6682
|
-
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
6683
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
6684
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
6684
6685
|
readonly type: Schema.Literal<"text">;
|
|
6685
6686
|
readonly text: Schema.String;
|
|
6686
6687
|
}>, Schema.Struct<{
|
|
@@ -6688,13 +6689,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6688
6689
|
readonly uri: Schema.String;
|
|
6689
6690
|
readonly mime: Schema.String;
|
|
6690
6691
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6691
|
-
}>]
|
|
6692
|
-
readonly
|
|
6693
|
-
readonly error: Schema.Struct<{
|
|
6694
|
-
readonly type: Schema.String;
|
|
6695
|
-
readonly message: Schema.String;
|
|
6696
|
-
}>;
|
|
6697
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
6692
|
+
}>]>>>, never, never>;
|
|
6693
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
6698
6694
|
}>]>;
|
|
6699
6695
|
readonly time: Schema.Struct<{
|
|
6700
6696
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
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-16091",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"typecheck": "tsgo --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
29
|
+
"@opencode-ai/schema": "0.0.0-next-16091",
|
|
30
30
|
"effect": "4.0.0-beta.98"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|