UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

30 lines • 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Schema = exports.BaseSchema = void 0; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. const resource_1 = require("../../../core/resource.js"); const path_1 = require("../../../internal/utils/path.js"); var BaseSchema = /* @__PURE__ */ (() => { class BaseSchema extends resource_1.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((0, path_1.path) `/accounts/${account_id}/ai/models/schema`, { query, ...options })._thenUnwrap((obj) => obj.result); } } BaseSchema._key = Object.freeze([ 'ai', 'models', 'schema', ]); return BaseSchema; })(); exports.BaseSchema = BaseSchema; class Schema extends BaseSchema { } exports.Schema = Schema; //# sourceMappingURL=schema.js.map