cloudflare
Version:
The official TypeScript library for the Cloudflare API
51 lines • 1.75 kB
TypeScript
import { APIResource } from "../../../../../core/resource.js";
import { APIPromise } from "../../../../../core/api-promise.js";
import { RequestOptions } from "../../../../../internal/request-options.js";
export declare class BaseEntries extends APIResource {
static readonly _key: readonly ['zeroTrust', 'dlp', 'datasets', 'versions', 'entries'];
/**
* This is used for multi-column EDMv2 datasets. The EDMv2 format can only be
* created in the Cloudflare dashboard.
*
* @example
* ```ts
* const entry =
* await client.zeroTrust.dlp.datasets.versions.entries.create(
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
* fs.createReadStream('path/to/file'),
* {
* account_id: 'account_id',
* dataset_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
* version: 0,
* },
* );
* ```
*/
create(entryID: string, datasetVersionEntry: string | ArrayBuffer | ArrayBufferView | Blob | DataView, params: EntryCreateParams, options?: RequestOptions): APIPromise<EntryCreateResponse>;
}
export declare class Entries extends BaseEntries {
}
export interface EntryCreateResponse {
entry_id: string;
header_name: string;
num_cells: number;
upload_status: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
}
export interface EntryCreateParams {
/**
* Path param
*/
account_id: string;
/**
* Path param
*/
dataset_id: string;
/**
* Path param
*/
version: number;
}
export declare namespace Entries {
export { type EntryCreateResponse as EntryCreateResponse, type EntryCreateParams as EntryCreateParams };
}
//# sourceMappingURL=entries.d.ts.map