UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

31 lines 1.08 kB
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.WARPChangeEvents = void 0; const resource_1 = require("../../../resource.js"); class WARPChangeEvents extends resource_1.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: 1, * to: '2023-09-20T17:00:00Z', * }); * ``` */ get(params, options) { const { account_id, ...query } = params; return this._client.get(`/accounts/${account_id}/dex/warp-change-events`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } exports.WARPChangeEvents = WARPChangeEvents; //# sourceMappingURL=warp-change-events.js.map