cloudflare
Version:
The official TypeScript library for the Cloudflare API
36 lines • 1.41 kB
TypeScript
import { APIResource } from "../../../../core/resource.js";
import * as ListsAPI from "./lists.js";
import { GatewayItemsV4PagePaginationArray } from "./lists.js";
import { PagePromise, type V4PagePaginationArrayParams } from "../../../../core/pagination.js";
import { RequestOptions } from "../../../../internal/request-options.js";
export declare class BaseItems extends APIResource {
static readonly _key: readonly ['zeroTrust', 'gateway', 'lists', 'items'];
/**
* Fetch all items in a single Zero Trust list.
*
* @example
* ```ts
* // Automatically fetches more pages as needed.
* for await (const gatewayItem of client.zeroTrust.gateway.lists.items.list(
* 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415',
* { account_id: '699d98642c564d2e855e9661899b7252' },
* )) {
* // ...
* }
* ```
*/
list(listID: string, params: ItemListParams, options?: RequestOptions): PagePromise<GatewayItemsV4PagePaginationArray, ListsAPI.GatewayItem>;
}
export declare class Items extends BaseItems {
}
export interface ItemListParams extends V4PagePaginationArrayParams {
/**
* Path param: Specify the Cloudflare account identifier.
*/
account_id: string;
}
export declare namespace Items {
export { type ItemListParams as ItemListParams };
}
export { type GatewayItemsV4PagePaginationArray };
//# sourceMappingURL=items.d.ts.map