UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

25 lines • 958 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseSchema = /* @__PURE__ */ (() => { class BaseSchema extends APIResource { /** * Retrieves the input and output JSON Schema definitions for an AI model. Use * these definitions to determine the model-specific request fields and response * format. */ get(params, options) { const { account_id, ...query } = params; return this._client.get(path `/accounts/${account_id}/ai/models/schema`, { query, ...options })._thenUnwrap((obj) => obj.result); } } BaseSchema._key = Object.freeze([ 'ai', 'models', 'schema', ]); return BaseSchema; })(); export class Schema extends BaseSchema { } //# sourceMappingURL=schema.mjs.map