opik 1.9.31 → 1.9.32

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.d.cts CHANGED
@@ -458,6 +458,47 @@ interface DatasetItemStreamRequest {
458
458
  steamLimit?: number;
459
459
  }
460
460
 
461
+ /**
462
+ * This file was auto-generated by Fern from our API Definition.
463
+ */
464
+ /**
465
+ * @example
466
+ * {
467
+ * tag: "tag"
468
+ * }
469
+ */
470
+ interface DatasetVersionTag {
471
+ tag: string;
472
+ }
473
+
474
+ /**
475
+ * This file was auto-generated by Fern from our API Definition.
476
+ */
477
+ /**
478
+ * @example
479
+ * {}
480
+ */
481
+ interface ListDatasetVersionsRequest {
482
+ page?: number;
483
+ size?: number;
484
+ }
485
+
486
+ /**
487
+ * This file was auto-generated by Fern from our API Definition.
488
+ */
489
+ /**
490
+ * @example
491
+ * {}
492
+ */
493
+ interface DatasetVersionCreatePublic {
494
+ /** Optional tag for this version */
495
+ tag?: string;
496
+ /** Optional description of changes in this version */
497
+ changeDescription?: string;
498
+ /** Optional user-defined metadata */
499
+ metadata?: Record<string, string>;
500
+ }
501
+
461
502
  /**
462
503
  * This file was auto-generated by Fern from our API Definition.
463
504
  */
@@ -3557,6 +3598,17 @@ declare const DatasetPublicVisibility: {
3557
3598
  readonly Public: "public";
3558
3599
  };
3559
3600
 
3601
+ /**
3602
+ * This file was auto-generated by Fern from our API Definition.
3603
+ */
3604
+ type DatasetPublicStatus = "unknown" | "processing" | "completed" | "failed";
3605
+ declare const DatasetPublicStatus: {
3606
+ readonly Unknown: "unknown";
3607
+ readonly Processing: "processing";
3608
+ readonly Completed: "completed";
3609
+ readonly Failed: "failed";
3610
+ };
3611
+
3560
3612
  /**
3561
3613
  * This file was auto-generated by Fern from our API Definition.
3562
3614
  */
@@ -3578,6 +3630,7 @@ interface DatasetPublic {
3578
3630
  lastCreatedExperimentAt?: Date;
3579
3631
  mostRecentOptimizationAt?: Date;
3580
3632
  lastCreatedOptimizationAt?: Date;
3633
+ status?: DatasetPublicStatus;
3581
3634
  }
3582
3635
 
3583
3636
  /**
@@ -3765,6 +3818,41 @@ interface PageColumns {
3765
3818
  columns?: Column[];
3766
3819
  }
3767
3820
 
3821
+ /**
3822
+ * This file was auto-generated by Fern from our API Definition.
3823
+ */
3824
+
3825
+ interface DatasetVersionPagePublic {
3826
+ content?: DatasetVersionPublic[];
3827
+ page?: number;
3828
+ size?: number;
3829
+ total?: number;
3830
+ }
3831
+
3832
+ /**
3833
+ * This file was auto-generated by Fern from our API Definition.
3834
+ */
3835
+ interface DatasetVersionPublic {
3836
+ id?: string;
3837
+ datasetId?: string;
3838
+ versionHash?: string;
3839
+ tags?: string[];
3840
+ /** Total number of items in this version */
3841
+ itemsTotal?: number;
3842
+ /** Number of items added since last version */
3843
+ itemsAdded?: number;
3844
+ /** Number of items modified since last version */
3845
+ itemsModified?: number;
3846
+ /** Number of items deleted since last version */
3847
+ itemsDeleted?: number;
3848
+ changeDescription?: string;
3849
+ metadata?: Record<string, string>;
3850
+ createdAt?: Date;
3851
+ createdBy?: string;
3852
+ lastUpdatedAt?: Date;
3853
+ lastUpdatedBy?: string;
3854
+ }
3855
+
3768
3856
  /**
3769
3857
  * This file was auto-generated by Fern from our API Definition.
3770
3858
  */
@@ -6928,6 +7016,67 @@ declare class Datasets {
6928
7016
  */
6929
7017
  streamDatasetItems(request: DatasetItemStreamRequest, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<stream.Readable>;
6930
7018
  private __streamDatasetItems;
7019
+ /**
7020
+ * Add a tag to a specific dataset version for easy reference (e.g., 'baseline', 'v1.0', 'production')
7021
+ *
7022
+ * @param {string} versionHash
7023
+ * @param {string} id
7024
+ * @param {OpikApi.DatasetVersionTag} request
7025
+ * @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
7026
+ *
7027
+ * @throws {@link OpikApi.BadRequestError}
7028
+ * @throws {@link OpikApi.NotFoundError}
7029
+ * @throws {@link OpikApi.ConflictError}
7030
+ *
7031
+ * @example
7032
+ * await client.datasets.createVersionTag("versionHash", "id", {
7033
+ * tag: "tag"
7034
+ * })
7035
+ */
7036
+ createVersionTag(versionHash: string, id: string, request: DatasetVersionTag, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
7037
+ private __createVersionTag;
7038
+ /**
7039
+ * Get paginated list of versions for a dataset, ordered by creation time (newest first)
7040
+ *
7041
+ * @param {string} id
7042
+ * @param {OpikApi.ListDatasetVersionsRequest} request
7043
+ * @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
7044
+ *
7045
+ * @throws {@link OpikApi.BadRequestError}
7046
+ *
7047
+ * @example
7048
+ * await client.datasets.listDatasetVersions("id")
7049
+ */
7050
+ listDatasetVersions(id: string, request?: ListDatasetVersionsRequest, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<DatasetVersionPagePublic>;
7051
+ private __listDatasetVersions;
7052
+ /**
7053
+ * Create a new immutable version of the dataset by snapshotting the current state
7054
+ *
7055
+ * @param {string} id
7056
+ * @param {OpikApi.DatasetVersionCreatePublic} request
7057
+ * @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
7058
+ *
7059
+ * @throws {@link OpikApi.BadRequestError}
7060
+ * @throws {@link OpikApi.ConflictError}
7061
+ *
7062
+ * @example
7063
+ * await client.datasets.createDatasetVersion("id")
7064
+ */
7065
+ createDatasetVersion(id: string, request?: DatasetVersionCreatePublic, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
7066
+ private __createDatasetVersion;
7067
+ /**
7068
+ * Remove a tag from a dataset version. The version itself is not deleted, only the tag reference.
7069
+ *
7070
+ * @param {string} versionHash
7071
+ * @param {string} tag
7072
+ * @param {string} id
7073
+ * @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
7074
+ *
7075
+ * @example
7076
+ * await client.datasets.deleteVersionTag("versionHash", "tag", "id")
7077
+ */
7078
+ deleteVersionTag(versionHash: string, tag: string, id: string, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
7079
+ private __deleteVersionTag;
6931
7080
  protected _getCustomAuthorizationHeaders(): Promise<{
6932
7081
  Authorization: string | undefined;
6933
7082
  }>;
package/dist/index.d.ts CHANGED
@@ -458,6 +458,47 @@ interface DatasetItemStreamRequest {
458
458
  steamLimit?: number;
459
459
  }
460
460
 
461
+ /**
462
+ * This file was auto-generated by Fern from our API Definition.
463
+ */
464
+ /**
465
+ * @example
466
+ * {
467
+ * tag: "tag"
468
+ * }
469
+ */
470
+ interface DatasetVersionTag {
471
+ tag: string;
472
+ }
473
+
474
+ /**
475
+ * This file was auto-generated by Fern from our API Definition.
476
+ */
477
+ /**
478
+ * @example
479
+ * {}
480
+ */
481
+ interface ListDatasetVersionsRequest {
482
+ page?: number;
483
+ size?: number;
484
+ }
485
+
486
+ /**
487
+ * This file was auto-generated by Fern from our API Definition.
488
+ */
489
+ /**
490
+ * @example
491
+ * {}
492
+ */
493
+ interface DatasetVersionCreatePublic {
494
+ /** Optional tag for this version */
495
+ tag?: string;
496
+ /** Optional description of changes in this version */
497
+ changeDescription?: string;
498
+ /** Optional user-defined metadata */
499
+ metadata?: Record<string, string>;
500
+ }
501
+
461
502
  /**
462
503
  * This file was auto-generated by Fern from our API Definition.
463
504
  */
@@ -3557,6 +3598,17 @@ declare const DatasetPublicVisibility: {
3557
3598
  readonly Public: "public";
3558
3599
  };
3559
3600
 
3601
+ /**
3602
+ * This file was auto-generated by Fern from our API Definition.
3603
+ */
3604
+ type DatasetPublicStatus = "unknown" | "processing" | "completed" | "failed";
3605
+ declare const DatasetPublicStatus: {
3606
+ readonly Unknown: "unknown";
3607
+ readonly Processing: "processing";
3608
+ readonly Completed: "completed";
3609
+ readonly Failed: "failed";
3610
+ };
3611
+
3560
3612
  /**
3561
3613
  * This file was auto-generated by Fern from our API Definition.
3562
3614
  */
@@ -3578,6 +3630,7 @@ interface DatasetPublic {
3578
3630
  lastCreatedExperimentAt?: Date;
3579
3631
  mostRecentOptimizationAt?: Date;
3580
3632
  lastCreatedOptimizationAt?: Date;
3633
+ status?: DatasetPublicStatus;
3581
3634
  }
3582
3635
 
3583
3636
  /**
@@ -3765,6 +3818,41 @@ interface PageColumns {
3765
3818
  columns?: Column[];
3766
3819
  }
3767
3820
 
3821
+ /**
3822
+ * This file was auto-generated by Fern from our API Definition.
3823
+ */
3824
+
3825
+ interface DatasetVersionPagePublic {
3826
+ content?: DatasetVersionPublic[];
3827
+ page?: number;
3828
+ size?: number;
3829
+ total?: number;
3830
+ }
3831
+
3832
+ /**
3833
+ * This file was auto-generated by Fern from our API Definition.
3834
+ */
3835
+ interface DatasetVersionPublic {
3836
+ id?: string;
3837
+ datasetId?: string;
3838
+ versionHash?: string;
3839
+ tags?: string[];
3840
+ /** Total number of items in this version */
3841
+ itemsTotal?: number;
3842
+ /** Number of items added since last version */
3843
+ itemsAdded?: number;
3844
+ /** Number of items modified since last version */
3845
+ itemsModified?: number;
3846
+ /** Number of items deleted since last version */
3847
+ itemsDeleted?: number;
3848
+ changeDescription?: string;
3849
+ metadata?: Record<string, string>;
3850
+ createdAt?: Date;
3851
+ createdBy?: string;
3852
+ lastUpdatedAt?: Date;
3853
+ lastUpdatedBy?: string;
3854
+ }
3855
+
3768
3856
  /**
3769
3857
  * This file was auto-generated by Fern from our API Definition.
3770
3858
  */
@@ -6928,6 +7016,67 @@ declare class Datasets {
6928
7016
  */
6929
7017
  streamDatasetItems(request: DatasetItemStreamRequest, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<stream.Readable>;
6930
7018
  private __streamDatasetItems;
7019
+ /**
7020
+ * Add a tag to a specific dataset version for easy reference (e.g., 'baseline', 'v1.0', 'production')
7021
+ *
7022
+ * @param {string} versionHash
7023
+ * @param {string} id
7024
+ * @param {OpikApi.DatasetVersionTag} request
7025
+ * @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
7026
+ *
7027
+ * @throws {@link OpikApi.BadRequestError}
7028
+ * @throws {@link OpikApi.NotFoundError}
7029
+ * @throws {@link OpikApi.ConflictError}
7030
+ *
7031
+ * @example
7032
+ * await client.datasets.createVersionTag("versionHash", "id", {
7033
+ * tag: "tag"
7034
+ * })
7035
+ */
7036
+ createVersionTag(versionHash: string, id: string, request: DatasetVersionTag, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
7037
+ private __createVersionTag;
7038
+ /**
7039
+ * Get paginated list of versions for a dataset, ordered by creation time (newest first)
7040
+ *
7041
+ * @param {string} id
7042
+ * @param {OpikApi.ListDatasetVersionsRequest} request
7043
+ * @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
7044
+ *
7045
+ * @throws {@link OpikApi.BadRequestError}
7046
+ *
7047
+ * @example
7048
+ * await client.datasets.listDatasetVersions("id")
7049
+ */
7050
+ listDatasetVersions(id: string, request?: ListDatasetVersionsRequest, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<DatasetVersionPagePublic>;
7051
+ private __listDatasetVersions;
7052
+ /**
7053
+ * Create a new immutable version of the dataset by snapshotting the current state
7054
+ *
7055
+ * @param {string} id
7056
+ * @param {OpikApi.DatasetVersionCreatePublic} request
7057
+ * @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
7058
+ *
7059
+ * @throws {@link OpikApi.BadRequestError}
7060
+ * @throws {@link OpikApi.ConflictError}
7061
+ *
7062
+ * @example
7063
+ * await client.datasets.createDatasetVersion("id")
7064
+ */
7065
+ createDatasetVersion(id: string, request?: DatasetVersionCreatePublic, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
7066
+ private __createDatasetVersion;
7067
+ /**
7068
+ * Remove a tag from a dataset version. The version itself is not deleted, only the tag reference.
7069
+ *
7070
+ * @param {string} versionHash
7071
+ * @param {string} tag
7072
+ * @param {string} id
7073
+ * @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
7074
+ *
7075
+ * @example
7076
+ * await client.datasets.deleteVersionTag("versionHash", "tag", "id")
7077
+ */
7078
+ deleteVersionTag(versionHash: string, tag: string, id: string, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
7079
+ private __deleteVersionTag;
6931
7080
  protected _getCustomAuthorizationHeaders(): Promise<{
6932
7081
  Authorization: string | undefined;
6933
7082
  }>;