cloudflare
Version:
The official TypeScript library for the Cloudflare API
34 lines • 1.14 kB
text/typescript
import { APIResource } from "../../../core/resource.mjs";
import { APIPromise } from "../../../core/api-promise.mjs";
import { RequestOptions } from "../../../internal/request-options.mjs";
export declare class BaseDownload extends APIResource {
static readonly _key: readonly ['magicTransit', 'pcaps', 'download'];
/**
* Download PCAP information into a file. Response is a binary PCAP file.
*
* @example
* ```ts
* const download =
* await client.magicTransit.pcaps.download.get(
* '023e105f4ecef8ad9ca31a8372d0c353',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
*
* const content = await download.blob();
* console.log(content);
* ```
*/
get(pcapID: string, params: DownloadGetParams, options?: RequestOptions): APIPromise<Response>;
}
export declare class Download extends BaseDownload {
}
export interface DownloadGetParams {
/**
* Identifier.
*/
account_id: string;
}
export declare namespace Download {
export { type DownloadGetParams as DownloadGetParams };
}
//# sourceMappingURL=download.d.mts.map