@opencode-ai/schema
Advanced tools
+12
-0
@@ -35,2 +35,9 @@ export * as Model from "./model.js"; | ||
| export type Family = typeof Family.Type; | ||
| export type ReasoningField = "reasoning" | "reasoning_content" | "reasoning_text" | (string & {}); | ||
| export declare const ReasoningField: Schema.Codec<ReasoningField>; | ||
| export interface Compatibility extends Schema.Schema.Type<typeof Compatibility> { | ||
| } | ||
| export declare const Compatibility: Schema.Struct<{ | ||
| readonly reasoningField: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Codec<ReasoningField, ReasoningField, never, never>>>, Schema.optionalKey<Schema.Codec<ReasoningField, ReasoningField, never, never>>, never, never>; | ||
| }>; | ||
| export interface Capabilities extends Schema.Schema.Type<typeof Capabilities> { | ||
@@ -143,2 +150,7 @@ } | ||
| readonly name: Schema.String; | ||
| readonly compatibility: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{ | ||
| readonly reasoningField: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Codec<ReasoningField, ReasoningField, never, never>>>, Schema.optionalKey<Schema.Codec<ReasoningField, ReasoningField, never, never>>, never, never>; | ||
| }>>>, Schema.optionalKey<Schema.Struct<{ | ||
| readonly reasoningField: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Codec<ReasoningField, ReasoningField, never, never>>>, Schema.optionalKey<Schema.Codec<ReasoningField, ReasoningField, never, never>>, never, never>; | ||
| }>>, never, never>; | ||
| readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
@@ -145,0 +157,0 @@ }> & { |
+8
-0
@@ -33,2 +33,9 @@ export * as Model from "./model.js"; | ||
| export const Family = Schema.String.pipe(Schema.brand("Model.Family")); | ||
| export const ReasoningField = Schema.Union([ | ||
| Schema.Literals(["reasoning", "reasoning_content", "reasoning_text"]), | ||
| Schema.String, | ||
| ]).annotate({ identifier: "Model.ReasoningField" }); | ||
| export const Compatibility = Schema.Struct({ | ||
| reasoningField: ReasoningField.pipe(optional), | ||
| }).annotate({ identifier: "Model.Compatibility" }); | ||
| export const Capabilities = Schema.Struct({ | ||
@@ -61,2 +68,3 @@ tools: Schema.Boolean, | ||
| name: Schema.String, | ||
| compatibility: Compatibility.pipe(optional), | ||
| package: Provider.Package.pipe(optional), | ||
@@ -63,0 +71,0 @@ ...Provider.Overlays, |
+1
-1
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/schema", | ||
| "version": "0.0.0-next-16006", | ||
| "version": "0.0.0-next-16009", | ||
| "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.
3654351
0.04%57174
0.03%