opik 1.9.39 → 1.9.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +27 -27
- package/dist/index.d.cts +54 -2
- package/dist/index.d.ts +54 -2
- package/dist/index.js +25 -25
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -492,8 +492,8 @@ interface ListDatasetVersionsRequest {
|
|
|
492
492
|
* {}
|
|
493
493
|
*/
|
|
494
494
|
interface DatasetVersionCreatePublic {
|
|
495
|
-
/** Optional
|
|
496
|
-
|
|
495
|
+
/** Optional list of tags for this version */
|
|
496
|
+
tags?: string[];
|
|
497
497
|
/** Optional description of changes in this version */
|
|
498
498
|
changeDescription?: string;
|
|
499
499
|
/** Optional user-defined metadata */
|
|
@@ -514,6 +514,20 @@ interface DatasetVersionRestorePublic {
|
|
|
514
514
|
versionRef: string;
|
|
515
515
|
}
|
|
516
516
|
|
|
517
|
+
/**
|
|
518
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
519
|
+
*/
|
|
520
|
+
/**
|
|
521
|
+
* @example
|
|
522
|
+
* {}
|
|
523
|
+
*/
|
|
524
|
+
interface DatasetVersionUpdatePublic {
|
|
525
|
+
/** Optional description of changes in this version */
|
|
526
|
+
changeDescription?: string;
|
|
527
|
+
/** Optional list of tags to add to this version */
|
|
528
|
+
tagsToAdd?: string[];
|
|
529
|
+
}
|
|
530
|
+
|
|
517
531
|
/**
|
|
518
532
|
* This file was auto-generated by Fern from our API Definition.
|
|
519
533
|
*/
|
|
@@ -3922,6 +3936,23 @@ interface DatasetPagePublic {
|
|
|
3922
3936
|
sortableBy?: string[];
|
|
3923
3937
|
}
|
|
3924
3938
|
|
|
3939
|
+
/**
|
|
3940
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3941
|
+
*/
|
|
3942
|
+
/**
|
|
3943
|
+
* Summary of the latest dataset version
|
|
3944
|
+
*/
|
|
3945
|
+
interface DatasetVersionSummaryPublic {
|
|
3946
|
+
/** Unique identifier of the version */
|
|
3947
|
+
id?: string;
|
|
3948
|
+
/** Hash of the version content */
|
|
3949
|
+
versionHash?: string;
|
|
3950
|
+
/** Description of changes in this version */
|
|
3951
|
+
changeDescription?: string;
|
|
3952
|
+
/** Tags associated with this version */
|
|
3953
|
+
tags?: string[];
|
|
3954
|
+
}
|
|
3955
|
+
|
|
3925
3956
|
/**
|
|
3926
3957
|
* This file was auto-generated by Fern from our API Definition.
|
|
3927
3958
|
*/
|
|
@@ -3964,6 +3995,7 @@ interface DatasetPublic {
|
|
|
3964
3995
|
mostRecentOptimizationAt?: Date;
|
|
3965
3996
|
lastCreatedOptimizationAt?: Date;
|
|
3966
3997
|
status?: DatasetPublicStatus;
|
|
3998
|
+
latestVersion?: DatasetVersionSummaryPublic;
|
|
3967
3999
|
}
|
|
3968
4000
|
|
|
3969
4001
|
/**
|
|
@@ -4192,6 +4224,8 @@ interface DatasetVersionPublic {
|
|
|
4192
4224
|
datasetId?: string;
|
|
4193
4225
|
versionHash?: string;
|
|
4194
4226
|
tags?: string[];
|
|
4227
|
+
/** Indicates whether this is the latest version of the dataset */
|
|
4228
|
+
isLatest?: boolean;
|
|
4195
4229
|
/** Total number of items in this version */
|
|
4196
4230
|
itemsTotal?: number;
|
|
4197
4231
|
/** Number of items added since last version */
|
|
@@ -4690,6 +4724,7 @@ interface ExperimentGroupAggregationsResponse {
|
|
|
4690
4724
|
*/
|
|
4691
4725
|
|
|
4692
4726
|
interface GroupContentWithAggregations {
|
|
4727
|
+
label?: string;
|
|
4693
4728
|
aggregations?: AggregationData;
|
|
4694
4729
|
}
|
|
4695
4730
|
|
|
@@ -7616,6 +7651,23 @@ declare class Datasets {
|
|
|
7616
7651
|
*/
|
|
7617
7652
|
restoreDatasetVersion(id: string, request: DatasetVersionRestorePublic, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<DatasetVersionPublic>;
|
|
7618
7653
|
private __restoreDatasetVersion;
|
|
7654
|
+
/**
|
|
7655
|
+
* Update a dataset version's change_description and/or add new tags
|
|
7656
|
+
*
|
|
7657
|
+
* @param {string} versionHash
|
|
7658
|
+
* @param {string} id
|
|
7659
|
+
* @param {OpikApi.DatasetVersionUpdatePublic} request
|
|
7660
|
+
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
7661
|
+
*
|
|
7662
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
7663
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
7664
|
+
* @throws {@link OpikApi.ConflictError}
|
|
7665
|
+
*
|
|
7666
|
+
* @example
|
|
7667
|
+
* await client.datasets.updateDatasetVersion("versionHash", "id")
|
|
7668
|
+
*/
|
|
7669
|
+
updateDatasetVersion(versionHash: string, id: string, request?: DatasetVersionUpdatePublic, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<DatasetVersionPublic>;
|
|
7670
|
+
private __updateDatasetVersion;
|
|
7619
7671
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
7620
7672
|
Authorization: string | undefined;
|
|
7621
7673
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -492,8 +492,8 @@ interface ListDatasetVersionsRequest {
|
|
|
492
492
|
* {}
|
|
493
493
|
*/
|
|
494
494
|
interface DatasetVersionCreatePublic {
|
|
495
|
-
/** Optional
|
|
496
|
-
|
|
495
|
+
/** Optional list of tags for this version */
|
|
496
|
+
tags?: string[];
|
|
497
497
|
/** Optional description of changes in this version */
|
|
498
498
|
changeDescription?: string;
|
|
499
499
|
/** Optional user-defined metadata */
|
|
@@ -514,6 +514,20 @@ interface DatasetVersionRestorePublic {
|
|
|
514
514
|
versionRef: string;
|
|
515
515
|
}
|
|
516
516
|
|
|
517
|
+
/**
|
|
518
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
519
|
+
*/
|
|
520
|
+
/**
|
|
521
|
+
* @example
|
|
522
|
+
* {}
|
|
523
|
+
*/
|
|
524
|
+
interface DatasetVersionUpdatePublic {
|
|
525
|
+
/** Optional description of changes in this version */
|
|
526
|
+
changeDescription?: string;
|
|
527
|
+
/** Optional list of tags to add to this version */
|
|
528
|
+
tagsToAdd?: string[];
|
|
529
|
+
}
|
|
530
|
+
|
|
517
531
|
/**
|
|
518
532
|
* This file was auto-generated by Fern from our API Definition.
|
|
519
533
|
*/
|
|
@@ -3922,6 +3936,23 @@ interface DatasetPagePublic {
|
|
|
3922
3936
|
sortableBy?: string[];
|
|
3923
3937
|
}
|
|
3924
3938
|
|
|
3939
|
+
/**
|
|
3940
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3941
|
+
*/
|
|
3942
|
+
/**
|
|
3943
|
+
* Summary of the latest dataset version
|
|
3944
|
+
*/
|
|
3945
|
+
interface DatasetVersionSummaryPublic {
|
|
3946
|
+
/** Unique identifier of the version */
|
|
3947
|
+
id?: string;
|
|
3948
|
+
/** Hash of the version content */
|
|
3949
|
+
versionHash?: string;
|
|
3950
|
+
/** Description of changes in this version */
|
|
3951
|
+
changeDescription?: string;
|
|
3952
|
+
/** Tags associated with this version */
|
|
3953
|
+
tags?: string[];
|
|
3954
|
+
}
|
|
3955
|
+
|
|
3925
3956
|
/**
|
|
3926
3957
|
* This file was auto-generated by Fern from our API Definition.
|
|
3927
3958
|
*/
|
|
@@ -3964,6 +3995,7 @@ interface DatasetPublic {
|
|
|
3964
3995
|
mostRecentOptimizationAt?: Date;
|
|
3965
3996
|
lastCreatedOptimizationAt?: Date;
|
|
3966
3997
|
status?: DatasetPublicStatus;
|
|
3998
|
+
latestVersion?: DatasetVersionSummaryPublic;
|
|
3967
3999
|
}
|
|
3968
4000
|
|
|
3969
4001
|
/**
|
|
@@ -4192,6 +4224,8 @@ interface DatasetVersionPublic {
|
|
|
4192
4224
|
datasetId?: string;
|
|
4193
4225
|
versionHash?: string;
|
|
4194
4226
|
tags?: string[];
|
|
4227
|
+
/** Indicates whether this is the latest version of the dataset */
|
|
4228
|
+
isLatest?: boolean;
|
|
4195
4229
|
/** Total number of items in this version */
|
|
4196
4230
|
itemsTotal?: number;
|
|
4197
4231
|
/** Number of items added since last version */
|
|
@@ -4690,6 +4724,7 @@ interface ExperimentGroupAggregationsResponse {
|
|
|
4690
4724
|
*/
|
|
4691
4725
|
|
|
4692
4726
|
interface GroupContentWithAggregations {
|
|
4727
|
+
label?: string;
|
|
4693
4728
|
aggregations?: AggregationData;
|
|
4694
4729
|
}
|
|
4695
4730
|
|
|
@@ -7616,6 +7651,23 @@ declare class Datasets {
|
|
|
7616
7651
|
*/
|
|
7617
7652
|
restoreDatasetVersion(id: string, request: DatasetVersionRestorePublic, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<DatasetVersionPublic>;
|
|
7618
7653
|
private __restoreDatasetVersion;
|
|
7654
|
+
/**
|
|
7655
|
+
* Update a dataset version's change_description and/or add new tags
|
|
7656
|
+
*
|
|
7657
|
+
* @param {string} versionHash
|
|
7658
|
+
* @param {string} id
|
|
7659
|
+
* @param {OpikApi.DatasetVersionUpdatePublic} request
|
|
7660
|
+
* @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
|
|
7661
|
+
*
|
|
7662
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
7663
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
7664
|
+
* @throws {@link OpikApi.ConflictError}
|
|
7665
|
+
*
|
|
7666
|
+
* @example
|
|
7667
|
+
* await client.datasets.updateDatasetVersion("versionHash", "id")
|
|
7668
|
+
*/
|
|
7669
|
+
updateDatasetVersion(versionHash: string, id: string, request?: DatasetVersionUpdatePublic, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<DatasetVersionPublic>;
|
|
7670
|
+
private __updateDatasetVersion;
|
|
7619
7671
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
7620
7672
|
Authorization: string | undefined;
|
|
7621
7673
|
}>;
|