UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

30 lines • 1.04 kB
// 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 BaseOAuthScopes = /* @__PURE__ */ (() => { class BaseOAuthScopes extends APIResource { /** * List all available OAuth scopes. This endpoint requires authentication but has * no authorization role requirements. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const oauthScopeListResponse of client.iam.oauthScopes.list()) { * // ... * } * ``` */ list(options) { return this._client.getAPIList('/oauth/scopes', (SinglePage), options); } } BaseOAuthScopes._key = Object.freeze([ 'iam', 'oauthScopes', ]); return BaseOAuthScopes; })(); export class OAuthScopes extends BaseOAuthScopes { } //# sourceMappingURL=oauth-scopes.mjs.map