cloudflare
Version:
The official TypeScript library for the Cloudflare API
35 lines • 1.26 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OAuthScopes = exports.BaseOAuthScopes = 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");
var BaseOAuthScopes = /* @__PURE__ */ (() => {
class BaseOAuthScopes extends resource_1.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', (pagination_1.SinglePage), options);
}
}
BaseOAuthScopes._key = Object.freeze([
'iam',
'oauthScopes',
]);
return BaseOAuthScopes;
})();
exports.BaseOAuthScopes = BaseOAuthScopes;
class OAuthScopes extends BaseOAuthScopes {
}
exports.OAuthScopes = OAuthScopes;
//# sourceMappingURL=oauth-scopes.js.map