UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

25 lines • 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Tasks = exports.BaseTasks = void 0; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. const resource_1 = require("../../core/resource.js"); const pagination_1 = require("../../core/pagination.js"); const path_1 = require("../../internal/utils/path.js"); var BaseTasks = /* @__PURE__ */ (() => { class BaseTasks extends resource_1.APIResource { /** * Searches Workers AI models by task type (e.g., text-generation, embeddings). */ list(params, options) { const { account_id } = params; return this._client.getAPIList((0, path_1.path) `/accounts/${account_id}/ai/tasks/search`, (pagination_1.SinglePage), options); } } BaseTasks._key = Object.freeze(['ai', 'tasks']); return BaseTasks; })(); exports.BaseTasks = BaseTasks; class Tasks extends BaseTasks { } exports.Tasks = Tasks; //# sourceMappingURL=tasks.js.map