UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

36 lines 1.43 kB
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.DeviceListResponsesV4PagePagination = exports.Devices = void 0; const resource_1 = require("../../../../resource.js"); const pagination_1 = require("../../../../pagination.js"); class Devices extends resource_1.APIResource { /** * List devices with WARP client support for remote captures which have been * connected in the last 1 hour. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const deviceListResponse of client.zeroTrust.dex.commands.devices.list( * { * account_id: '01a7362d577a6c3019a474fd6f485823', * page: 1, * per_page: 1, * }, * )) { * // ... * } * ``` */ list(params, options) { const { account_id, ...query } = params; return this._client.getAPIList(`/accounts/${account_id}/dex/commands/devices`, DeviceListResponsesV4PagePagination, { query, ...options }); } } exports.Devices = Devices; class DeviceListResponsesV4PagePagination extends pagination_1.V4PagePagination { } exports.DeviceListResponsesV4PagePagination = DeviceListResponsesV4PagePagination; Devices.DeviceListResponsesV4PagePagination = DeviceListResponsesV4PagePagination; //# sourceMappingURL=devices.js.map