@opencode/schema 0.0.0-dev-20858 → 0.0.0-dev-20861
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/agent.d.ts +1 -0
- package/dist/config/provider.d.ts +12 -0
- package/dist/config/provider.js +2 -0
- package/dist/model.d.ts +9 -0
- package/dist/model.js +1 -0
- package/dist/provider.d.ts +9 -0
- package/dist/provider.js +3 -0
- package/package.json +1 -1
package/dist/agent.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ export declare const Info: Schema.Struct<{
|
|
|
71
71
|
readonly type: Schema.Literal<"native">;
|
|
72
72
|
}>]>>, never, never>;
|
|
73
73
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
74
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
74
75
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>;
|
|
75
76
|
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
76
77
|
readonly body: Schema.$Record<Schema.String, Schema.Any>;
|
|
@@ -14,6 +14,7 @@ export declare const Settings: Schema.StructWithRest<Schema.Struct<{
|
|
|
14
14
|
readonly type: Schema.Literal<"native">;
|
|
15
15
|
}>]>>, never, never>;
|
|
16
16
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
17
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
17
18
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>;
|
|
18
19
|
export type Settings = typeof Settings.Type;
|
|
19
20
|
export declare const ModelSettings: Schema.StructWithRest<Schema.Struct<{
|
|
@@ -26,6 +27,7 @@ export declare const ModelSettings: Schema.StructWithRest<Schema.Struct<{
|
|
|
26
27
|
}>, Schema.Struct<{
|
|
27
28
|
readonly type: Schema.Literal<"native">;
|
|
28
29
|
}>]>>, never, never>;
|
|
30
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
29
31
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>;
|
|
30
32
|
export type ModelSettings = typeof ModelSettings.Type;
|
|
31
33
|
export declare const Overlays: {
|
|
@@ -43,6 +45,7 @@ export declare const Overlays: {
|
|
|
43
45
|
readonly type: Schema.Literal<"native">;
|
|
44
46
|
}>]>>, never, never>;
|
|
45
47
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
48
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
46
49
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
47
50
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
48
51
|
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
@@ -57,6 +60,7 @@ export declare const Overlays: {
|
|
|
57
60
|
readonly type: Schema.Literal<"native">;
|
|
58
61
|
}>]>>, never, never>;
|
|
59
62
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
63
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
60
64
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>, never, never>;
|
|
61
65
|
headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
62
66
|
body: 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>;
|
|
@@ -127,6 +131,7 @@ declare const Model_base: Schema.Class<Model, Schema.Struct<{
|
|
|
127
131
|
}>, Schema.Struct<{
|
|
128
132
|
readonly type: Schema.Literal<"native">;
|
|
129
133
|
}>]>>, never, never>;
|
|
134
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
130
135
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
131
136
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
132
137
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -137,6 +142,7 @@ declare const Model_base: Schema.Class<Model, Schema.Struct<{
|
|
|
137
142
|
}>, Schema.Struct<{
|
|
138
143
|
readonly type: Schema.Literal<"native">;
|
|
139
144
|
}>]>>, never, never>;
|
|
145
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
140
146
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>, never, never>;
|
|
141
147
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
142
148
|
readonly body: 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>;
|
|
@@ -152,6 +158,7 @@ declare const Model_base: Schema.Class<Model, Schema.Struct<{
|
|
|
152
158
|
}>, Schema.Struct<{
|
|
153
159
|
readonly type: Schema.Literal<"native">;
|
|
154
160
|
}>]>>, never, never>;
|
|
161
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
155
162
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
156
163
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
157
164
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -162,6 +169,7 @@ declare const Model_base: Schema.Class<Model, Schema.Struct<{
|
|
|
162
169
|
}>, Schema.Struct<{
|
|
163
170
|
readonly type: Schema.Literal<"native">;
|
|
164
171
|
}>]>>, never, never>;
|
|
172
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
165
173
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>, never, never>;
|
|
166
174
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
167
175
|
readonly body: 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>;
|
|
@@ -180,6 +188,7 @@ declare const Model_base: Schema.Class<Model, Schema.Struct<{
|
|
|
180
188
|
}>, Schema.Struct<{
|
|
181
189
|
readonly type: Schema.Literal<"native">;
|
|
182
190
|
}>]>>, never, never>;
|
|
191
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
183
192
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
184
193
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
185
194
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -190,6 +199,7 @@ declare const Model_base: Schema.Class<Model, Schema.Struct<{
|
|
|
190
199
|
}>, Schema.Struct<{
|
|
191
200
|
readonly type: Schema.Literal<"native">;
|
|
192
201
|
}>]>>, never, never>;
|
|
202
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
193
203
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>, never, never>;
|
|
194
204
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
195
205
|
readonly body: 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>;
|
|
@@ -235,6 +245,7 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
235
245
|
readonly type: Schema.Literal<"native">;
|
|
236
246
|
}>]>>, never, never>;
|
|
237
247
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
248
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
238
249
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
239
250
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
240
251
|
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
@@ -249,6 +260,7 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
249
260
|
readonly type: Schema.Literal<"native">;
|
|
250
261
|
}>]>>, never, never>;
|
|
251
262
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
263
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
252
264
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>, never, never>;
|
|
253
265
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
254
266
|
readonly body: 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>;
|
package/dist/config/provider.js
CHANGED
|
@@ -11,9 +11,11 @@ export const Settings = Schema.StructWithRest(Schema.Struct({
|
|
|
11
11
|
chunkTimeout: Schema.Union([Schema.Finite, Schema.Literal(false)]).pipe(optional),
|
|
12
12
|
compaction: Provider.Compaction.pipe(optional),
|
|
13
13
|
transport: Provider.Transport.pipe(optional),
|
|
14
|
+
encoding: Provider.Encoding.pipe(optional),
|
|
14
15
|
}), [Schema.Record(Schema.String, Schema.UndefinedOr(Schema.Json))]).annotate({ identifier: "Config.Provider.Settings" });
|
|
15
16
|
export const ModelSettings = Schema.StructWithRest(Schema.Struct({
|
|
16
17
|
compaction: Provider.Compaction.pipe(optional),
|
|
18
|
+
encoding: Provider.Encoding.pipe(optional),
|
|
17
19
|
}), [Schema.Record(Schema.String, Schema.UndefinedOr(Schema.Json))]).annotate({ identifier: "Config.Model.Settings" });
|
|
18
20
|
const JsonRecord = Schema.Record(Schema.String, Schema.Json);
|
|
19
21
|
export const Overlays = {
|
package/dist/model.d.ts
CHANGED
|
@@ -112,6 +112,7 @@ export declare const Settings: Schema.StructWithRest<Schema.Struct<{
|
|
|
112
112
|
}>, Schema.Struct<{
|
|
113
113
|
readonly type: Schema.Literal<"native">;
|
|
114
114
|
}>]>>, never, never>;
|
|
115
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
115
116
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>;
|
|
116
117
|
export type Settings = typeof Settings.Type;
|
|
117
118
|
export declare const Overlays: {
|
|
@@ -125,6 +126,7 @@ export declare const Overlays: {
|
|
|
125
126
|
}>, Schema.Struct<{
|
|
126
127
|
readonly type: Schema.Literal<"native">;
|
|
127
128
|
}>]>>, never, never>;
|
|
129
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
128
130
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
129
131
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
130
132
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -135,6 +137,7 @@ export declare const Overlays: {
|
|
|
135
137
|
}>, Schema.Struct<{
|
|
136
138
|
readonly type: Schema.Literal<"native">;
|
|
137
139
|
}>]>>, never, never>;
|
|
140
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
138
141
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
139
142
|
headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
140
143
|
body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
@@ -190,6 +193,7 @@ export declare const Variant: Schema.Struct<{
|
|
|
190
193
|
}>, Schema.Struct<{
|
|
191
194
|
readonly type: Schema.Literal<"native">;
|
|
192
195
|
}>]>>, never, never>;
|
|
196
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
193
197
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
194
198
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
195
199
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -200,6 +204,7 @@ export declare const Variant: Schema.Struct<{
|
|
|
200
204
|
}>, Schema.Struct<{
|
|
201
205
|
readonly type: Schema.Literal<"native">;
|
|
202
206
|
}>]>>, never, never>;
|
|
207
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
203
208
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
204
209
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
205
210
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
@@ -230,6 +235,7 @@ export declare const Info: Schema.Struct<{
|
|
|
230
235
|
}>, Schema.Struct<{
|
|
231
236
|
readonly type: Schema.Literal<"native">;
|
|
232
237
|
}>]>>, never, never>;
|
|
238
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
233
239
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
234
240
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
235
241
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -240,6 +246,7 @@ export declare const Info: Schema.Struct<{
|
|
|
240
246
|
}>, Schema.Struct<{
|
|
241
247
|
readonly type: Schema.Literal<"native">;
|
|
242
248
|
}>]>>, never, never>;
|
|
249
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
243
250
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
244
251
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
245
252
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
@@ -288,6 +295,7 @@ export declare const Info: Schema.Struct<{
|
|
|
288
295
|
}>, Schema.Struct<{
|
|
289
296
|
readonly type: Schema.Literal<"native">;
|
|
290
297
|
}>]>>, never, never>;
|
|
298
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
291
299
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
292
300
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
293
301
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -298,6 +306,7 @@ export declare const Info: Schema.Struct<{
|
|
|
298
306
|
}>, Schema.Struct<{
|
|
299
307
|
readonly type: Schema.Literal<"native">;
|
|
300
308
|
}>]>>, never, never>;
|
|
309
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
301
310
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
302
311
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
303
312
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
package/dist/model.js
CHANGED
|
@@ -37,6 +37,7 @@ export { Compatibility, MaxTokensField, ReasoningField };
|
|
|
37
37
|
export const Family = Schema.String.pipe(Schema.brand("Model.Family"));
|
|
38
38
|
export const Settings = Schema.StructWithRest(Schema.Struct({
|
|
39
39
|
compaction: Provider.Compaction.pipe(optional),
|
|
40
|
+
encoding: Provider.Encoding.pipe(optional),
|
|
40
41
|
}),
|
|
41
42
|
// Provider packages may define arbitrary model-level options beyond OpenCode's shared compaction policy.
|
|
42
43
|
[Schema.Record(Schema.String, Schema.Any)]).annotate({ identifier: "Model.Settings" });
|
package/dist/provider.d.ts
CHANGED
|
@@ -95,6 +95,9 @@ export type Compaction = typeof Compaction.Type;
|
|
|
95
95
|
/** "websocket" on a route without a WebSocket channel warns and falls back to HTTP. */
|
|
96
96
|
export declare const Transport: Schema.Literals<readonly ["http", "websocket"]>;
|
|
97
97
|
export type Transport = typeof Transport.Type;
|
|
98
|
+
/** HTTP request body compression; only endpoints known to decode it should enable it. */
|
|
99
|
+
export declare const Encoding: Schema.Literals<readonly ["zstd", "gzip", "none"]>;
|
|
100
|
+
export type Encoding = typeof Encoding.Type;
|
|
98
101
|
export declare const Settings: Schema.StructWithRest<Schema.Struct<{
|
|
99
102
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
100
103
|
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
@@ -109,6 +112,7 @@ export declare const Settings: Schema.StructWithRest<Schema.Struct<{
|
|
|
109
112
|
readonly type: Schema.Literal<"native">;
|
|
110
113
|
}>]>>, never, never>;
|
|
111
114
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
115
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
112
116
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>;
|
|
113
117
|
export type Settings = typeof Settings.Type;
|
|
114
118
|
export declare const Overlays: {
|
|
@@ -126,6 +130,7 @@ export declare const Overlays: {
|
|
|
126
130
|
readonly type: Schema.Literal<"native">;
|
|
127
131
|
}>]>>, never, never>;
|
|
128
132
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
133
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
129
134
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
130
135
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
131
136
|
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
@@ -140,6 +145,7 @@ export declare const Overlays: {
|
|
|
140
145
|
readonly type: Schema.Literal<"native">;
|
|
141
146
|
}>]>>, never, never>;
|
|
142
147
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
148
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
143
149
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
144
150
|
headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
145
151
|
body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
@@ -161,6 +167,7 @@ export declare const Request: Schema.Struct<{
|
|
|
161
167
|
readonly type: Schema.Literal<"native">;
|
|
162
168
|
}>]>>, never, never>;
|
|
163
169
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
170
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
164
171
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>;
|
|
165
172
|
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
166
173
|
readonly body: Schema.$Record<Schema.String, Schema.Any>;
|
|
@@ -182,6 +189,7 @@ export declare const Info: Schema.Struct<{
|
|
|
182
189
|
readonly type: Schema.Literal<"native">;
|
|
183
190
|
}>]>>, never, never>;
|
|
184
191
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
192
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
185
193
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
186
194
|
readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
187
195
|
readonly headerTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
|
|
@@ -196,6 +204,7 @@ export declare const Info: Schema.Struct<{
|
|
|
196
204
|
readonly type: Schema.Literal<"native">;
|
|
197
205
|
}>]>>, never, never>;
|
|
198
206
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
207
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
199
208
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
200
209
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
201
210
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
package/dist/provider.js
CHANGED
|
@@ -29,12 +29,15 @@ export const Compaction = Schema.Union([
|
|
|
29
29
|
.annotate({ identifier: "Provider.Compaction" });
|
|
30
30
|
/** "websocket" on a route without a WebSocket channel warns and falls back to HTTP. */
|
|
31
31
|
export const Transport = Schema.Literals(["http", "websocket"]).annotate({ identifier: "Provider.Transport" });
|
|
32
|
+
/** HTTP request body compression; only endpoints known to decode it should enable it. */
|
|
33
|
+
export const Encoding = Schema.Literals(["zstd", "gzip", "none"]).annotate({ identifier: "Provider.Encoding" });
|
|
32
34
|
export const Settings = Schema.StructWithRest(Schema.Struct({
|
|
33
35
|
timeout: Schema.Union([Schema.Finite, Schema.Literal(false)]).pipe(optional),
|
|
34
36
|
headerTimeout: Schema.Union([Schema.Finite, Schema.Literal(false)]).pipe(optional),
|
|
35
37
|
chunkTimeout: Schema.Union([Schema.Finite, Schema.Literal(false)]).pipe(optional),
|
|
36
38
|
compaction: Compaction.pipe(optional),
|
|
37
39
|
transport: Transport.pipe(optional),
|
|
40
|
+
encoding: Encoding.pipe(optional),
|
|
38
41
|
}), [Schema.Record(Schema.String, Schema.Any)]).annotate({ identifier: "Provider.Settings" });
|
|
39
42
|
export const Overlays = {
|
|
40
43
|
settings: Settings.pipe(optional),
|