@opencode-ai/schema
Advanced tools
@@ -59,3 +59,9 @@ export * as ConfigProvider from "./provider.js"; | ||
| readonly responsesWebsockets: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>; | ||
| }>>>, Schema.optionalKey<Schema.Struct<{ | ||
| }> & { | ||
| default: () => { | ||
| tools: true; | ||
| input: string[]; | ||
| output: string[]; | ||
| }; | ||
| }>>, Schema.optionalKey<Schema.Struct<{ | ||
| readonly tools: Schema.Boolean; | ||
@@ -65,3 +71,9 @@ readonly input: Schema.$Array<Schema.String>; | ||
| readonly responsesWebsockets: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>; | ||
| }>>, never, never>; | ||
| }> & { | ||
| default: () => { | ||
| tools: true; | ||
| input: string[]; | ||
| output: string[]; | ||
| }; | ||
| }>, never, never>; | ||
| readonly variants: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{ | ||
@@ -68,0 +80,0 @@ readonly settings: 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>; |
+14
-2
@@ -56,3 +56,9 @@ export * as Model from "./model.js"; | ||
| readonly responsesWebsockets: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>; | ||
| }>; | ||
| }> & { | ||
| default: () => { | ||
| tools: true; | ||
| input: string[]; | ||
| output: string[]; | ||
| }; | ||
| }; | ||
| export interface Cost extends Schema.Schema.Type<typeof Cost> { | ||
@@ -99,3 +105,9 @@ } | ||
| readonly responsesWebsockets: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>; | ||
| }>; | ||
| }> & { | ||
| default: () => { | ||
| tools: true; | ||
| input: string[]; | ||
| output: string[]; | ||
| }; | ||
| }; | ||
| readonly variants: Schema.$Array<Schema.Struct<{ | ||
@@ -102,0 +114,0 @@ readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>; |
+6
-2
@@ -53,3 +53,7 @@ export * as Model from "./model.js"; | ||
| responsesWebsockets: Schema.Boolean.pipe(optional), | ||
| }).annotate({ identifier: "Model.Capabilities" }); | ||
| }) | ||
| .annotate({ identifier: "Model.Capabilities" }) | ||
| .pipe(statics(() => ({ | ||
| default: () => ({ tools: true, input: ["text", "image"], output: ["text"] }), | ||
| }))); | ||
| export const Cost = Schema.Struct({ | ||
@@ -101,3 +105,3 @@ tier: Schema.Struct({ | ||
| name: id, | ||
| capabilities: { tools: true, input: ["text", "image"], output: ["text"] }, | ||
| capabilities: Capabilities.default(), | ||
| variants: [], | ||
@@ -104,0 +108,0 @@ time: { released: 0 }, |
+1
-1
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/schema", | ||
| "version": "0.0.0-dev-18480", | ||
| "version": "0.0.0-dev-18483", | ||
| "type": "module", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
3735421
0.02%59061
0.05%