@opencode-ai/schema 0.0.0-next-14855 → 0.0.0-next-14870
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/session-message.d.ts +66 -0
- package/dist/session-message.js +1 -0
- package/package.json +1 -1
|
@@ -48,6 +48,39 @@ export declare const ModelSelected: Schema.Struct<{
|
|
|
48
48
|
};
|
|
49
49
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
50
50
|
}>;
|
|
51
|
+
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
52
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
53
|
+
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
54
|
+
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
55
|
+
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
56
|
+
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
57
|
+
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
58
|
+
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
59
|
+
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
60
|
+
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
61
|
+
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
62
|
+
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
63
|
+
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
64
|
+
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
65
|
+
};
|
|
66
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
67
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
68
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
69
|
+
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
70
|
+
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
71
|
+
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
72
|
+
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
73
|
+
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
74
|
+
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
75
|
+
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
76
|
+
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
77
|
+
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
78
|
+
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
79
|
+
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
80
|
+
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
81
|
+
};
|
|
82
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
83
|
+
}>>, never, never>;
|
|
51
84
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
52
85
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
53
86
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -995,6 +1028,39 @@ export declare const Message: Schema.Union<readonly [Schema.Struct<{
|
|
|
995
1028
|
};
|
|
996
1029
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
997
1030
|
}>;
|
|
1031
|
+
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1032
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
1033
|
+
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1034
|
+
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1035
|
+
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1036
|
+
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1037
|
+
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1038
|
+
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1039
|
+
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1040
|
+
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1041
|
+
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1042
|
+
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1043
|
+
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1044
|
+
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1045
|
+
};
|
|
1046
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
1047
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1048
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
1049
|
+
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
1050
|
+
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1051
|
+
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1052
|
+
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1053
|
+
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1054
|
+
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1055
|
+
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1056
|
+
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1057
|
+
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1058
|
+
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1059
|
+
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1060
|
+
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
1061
|
+
};
|
|
1062
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
1063
|
+
}>>, never, never>;
|
|
998
1064
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
999
1065
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1000
1066
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
package/dist/session-message.js
CHANGED
|
@@ -31,6 +31,7 @@ export const ModelSelected = Schema.Struct({
|
|
|
31
31
|
...Base,
|
|
32
32
|
type: Schema.Literal("model-switched"),
|
|
33
33
|
model: Model.Ref,
|
|
34
|
+
previous: Model.Ref.pipe(optional),
|
|
34
35
|
}).annotate({ identifier: "Session.Message.ModelSelected" });
|
|
35
36
|
export const User = Schema.Struct({
|
|
36
37
|
...Base,
|