UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

22 lines • 824 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 BaseEntitlements = /* @__PURE__ */ (() => { class BaseEntitlements extends APIResource { /** * Retrieves the innate and custom entitlement allocations available to this * tenant. */ get(tenantID, options) { return this._client.get(path `/tenants/${tenantID}/entitlements`, options)._thenUnwrap((obj) => obj.result); } } BaseEntitlements._key = Object.freeze([ 'tenants', 'entitlements', ]); return BaseEntitlements; })(); export class Entitlements extends BaseEntitlements { } //# sourceMappingURL=entitlements.mjs.map