UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

28 lines • 1.22 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { V4PagePaginationArray, } from "../../../core/pagination.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseHosts = /* @__PURE__ */ (() => { class BaseHosts extends APIResource { /** * Lists all unique hosts found in uploaded OpenAPI schemas for the zone. Useful * for understanding which domains have schema coverage. Deprecated; use * `/zones/{zone_id}/schema_validation/schemas/hosts` instead. * * @deprecated Use [Schema Validation API](https://developers.cloudflare.com/api/resources/schema_validation/) instead. */ list(params, options) { const { zone_id, ...query } = params; return this._client.getAPIList(path `/zones/${zone_id}/api_gateway/user_schemas/hosts`, (V4PagePaginationArray), { query, ...options }); } } BaseHosts._key = Object.freeze([ 'apiGateway', 'userSchemas', 'hosts', ]); return BaseHosts; })(); export class Hosts extends BaseHosts { } //# sourceMappingURL=hosts.mjs.map