UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

32 lines • 1.4 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 BaseUsers = /* @__PURE__ */ (() => { class BaseUsers extends APIResource { /** * Lists SCIM User resources synced to Cloudflare via the System for Cross-domain * Identity Management (SCIM). * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const accessUser of client.zeroTrust.identityProviders.scim.users.list( * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * )) { * // ... * } * ``` */ list(identityProviderID, params, options) { const { account_id, ...query } = params; return this._client.getAPIList(path `/accounts/${account_id}/access/identity_providers/${identityProviderID}/scim/users`, (V4PagePaginationArray), { query, ...options }); } } BaseUsers._key = Object.freeze(['zeroTrust', 'identityProviders', 'scim', 'users']); return BaseUsers; })(); export class Users extends BaseUsers { } //# sourceMappingURL=users.mjs.map