cloudflare
Version:
The official TypeScript library for the Cloudflare API
25 lines • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Authors = exports.BaseAuthors = 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 BaseAuthors = /* @__PURE__ */ (() => {
class BaseAuthors extends resource_1.APIResource {
/**
* Searches Workers AI models by author or organization name.
*/
list(params, options) {
const { account_id } = params;
return this._client.getAPIList((0, path_1.path) `/accounts/${account_id}/ai/authors/search`, (pagination_1.SinglePage), options);
}
}
BaseAuthors._key = Object.freeze(['ai', 'authors']);
return BaseAuthors;
})();
exports.BaseAuthors = BaseAuthors;
class Authors extends BaseAuthors {
}
exports.Authors = Authors;
//# sourceMappingURL=authors.js.map