cloudflare
Version:
The official TypeScript library for the Cloudflare API
44 lines • 1.64 kB
JavaScript
// 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 BaseUpdates = /* @__PURE__ */ (() => {
class BaseUpdates extends APIResource {
/**
* Lists Access SCIM update logs that maintain a record of updates made to User and
* Group resources synced to Cloudflare via the System for Cross-domain Identity
* Management (SCIM).
*
* @example
* ```ts
* // Automatically fetches more pages as needed.
* for await (const updateListResponse of client.zeroTrust.access.logs.scim.updates.list(
* {
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* idp_id: [
* 'df7e2w5f-02b7-4d9d-af26-8d1988fca630',
* '0194ae2c-efcf-7cfb-8884-055f1a161fa5',
* ],
* },
* )) {
* // ...
* }
* ```
*/
list(params, options) {
const { account_id, ...query } = params;
return this._client.getAPIList(path `/accounts/${account_id}/access/logs/scim/updates`, (V4PagePaginationArray), { query, ...options });
}
}
BaseUpdates._key = Object.freeze([
'zeroTrust',
'access',
'logs',
'scim',
'updates',
]);
return BaseUpdates;
})();
export class Updates extends BaseUpdates {
}
//# sourceMappingURL=updates.mjs.map