(schema: Schema.Decoder<A, I>)
| 26 | import type { Tool } from "./tool"; |
| 27 | |
| 28 | const schemaToStandard = <A, I>(schema: Schema.Decoder<A, I>): StaticToolSchema<A, I> => |
| 29 | Schema.toStandardSchemaV1(Schema.toStandardJSONSchemaV1(schema) as never) as StaticToolSchema< |
| 30 | A, |
| 31 | I |
| 32 | >; |
| 33 | |
| 34 | const OwnerSchema = Schema.Literals(["org", "user"]); |
| 35 | const OAuthGrantSchema = Schema.Literals(["authorization_code", "client_credentials"]); |