UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

40 lines • 1.41 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../../core/resource.mjs"; import { V4PagePagination } from "../../../../core/pagination.mjs"; import { path } from "../../../../internal/utils/path.mjs"; export var BaseDevices = /* @__PURE__ */ (() => { class BaseDevices extends 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: 10, * }, * )) { * // ... * } * ``` */ list(params, options) { const { account_id, ...query } = params; return this._client.getAPIList(path `/accounts/${account_id}/dex/commands/devices`, (V4PagePagination), { query, ...options }); } } BaseDevices._key = Object.freeze([ 'zeroTrust', 'dex', 'commands', 'devices', ]); return BaseDevices; })(); export class Devices extends BaseDevices { } //# sourceMappingURL=devices.mjs.map