UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

26 lines • 922 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../core/resource.mjs"; import { SinglePage } from "../../core/pagination.mjs"; export var BaseTenants = /* @__PURE__ */ (() => { class BaseTenants extends APIResource { /** * Retrieves list of tenants the authenticated user / method has access to. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const organization of client.user.tenants.list()) { * // ... * } * ``` */ list(options) { return this._client.getAPIList('/user/tenants', (SinglePage), options); } } BaseTenants._key = Object.freeze(['user', 'tenants']); return BaseTenants; })(); export class Tenants extends BaseTenants { } //# sourceMappingURL=tenants.mjs.map