@@ -47,6 +47,17 @@ export class Datasets extends APIResource {
4747 return this . _client . delete ( path `/datasets/${ datasetID } ` , options ) ;
4848 }
4949
50+ /**
51+ * Create a download URL for a dataset.
52+ *
53+ * Creates a secure, time-limited download URL that allows downloading the dataset
54+ * data. The URL can be used to access the dataset file without requiring
55+ * authentication.
56+ */
57+ createDownloadURL ( datasetID : string , options ?: RequestOptions ) : APIPromise < string > {
58+ return this . _client . get ( path `/datasets/${ datasetID } /create-download-url` , options ) ;
59+ }
60+
5061 /**
5162 * Generate a dataset using AI.
5263 *
@@ -128,6 +139,8 @@ export type DatasetListResponse = Array<Dataset>;
128139
129140export type DatasetDeleteResponse = boolean ;
130141
142+ export type DatasetCreateDownloadURLResponse = string ;
143+
131144export type DatasetGenerateDatasetResponse = boolean ;
132145
133146/**
@@ -212,6 +225,7 @@ export declare namespace Datasets {
212225 type Dataset as Dataset ,
213226 type DatasetListResponse as DatasetListResponse ,
214227 type DatasetDeleteResponse as DatasetDeleteResponse ,
228+ type DatasetCreateDownloadURLResponse as DatasetCreateDownloadURLResponse ,
215229 type DatasetGenerateDatasetResponse as DatasetGenerateDatasetResponse ,
216230 type DatasetGenerateSchemaResponse as DatasetGenerateSchemaResponse ,
217231 type DatasetGenerateValidatorsResponse as DatasetGenerateValidatorsResponse ,
0 commit comments