UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

38 lines • 1.36 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseWARPChangeEvents = /* @__PURE__ */ (() => { class BaseWARPChangeEvents extends APIResource { /** * List WARP configuration and enablement toggle change events by device. * * @example * ```ts * const warpChangeEvents = * await client.zeroTrust.dex.warpChangeEvents.get({ * account_id: '01a7362d577a6c3019a474fd6f485823', * from: '2023-09-20T17:00:00Z', * page: 1, * per_page: 10, * to: '2023-09-20T17:00:00Z', * }); * ``` */ get(params, options) { const { account_id, ...query } = params; return this._client.get(path `/accounts/${account_id}/dex/warp-change-events`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } BaseWARPChangeEvents._key = Object.freeze([ 'zeroTrust', 'dex', 'warpChangeEvents', ]); return BaseWARPChangeEvents; })(); export class WARPChangeEvents extends BaseWARPChangeEvents { } //# sourceMappingURL=warp-change-events.mjs.map