cloudflare
Version:
The official TypeScript library for the Cloudflare API
41 lines • 1.33 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 BaseDownloads extends APIResource {
static readonly _key: readonly ['zeroTrust', 'dex', 'commands', 'downloads'];
/**
* Downloads artifacts for an executed command. Bulk downloads are not supported
*
* @example
* ```ts
* const download =
* await client.zeroTrust.dex.commands.downloads.get(
* 'filename',
* {
* account_id: '01a7362d577a6c3019a474fd6f485823',
* command_id: '5758fefe-ae7e-4538-a39b-1fef6abcb909',
* },
* );
*
* const content = await download.blob();
* console.log(content);
* ```
*/
get(filename: string, params: DownloadGetParams, options?: RequestOptions): APIPromise<Response>;
}
export declare class Downloads extends BaseDownloads {
}
export interface DownloadGetParams {
/**
* Unique Cloudflare account ID.
*/
account_id: string;
/**
* Unique identifier for command.
*/
command_id: string;
}
export declare namespace Downloads {
export { type DownloadGetParams as DownloadGetParams };
}
//# sourceMappingURL=downloads.d.mts.map