opik 1.9.52 → 1.9.54

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
@@ -346,14 +346,18 @@ interface DatasetIdentifier {
346
346
  /**
347
347
  * This file was auto-generated by Fern from our API Definition.
348
348
  */
349
+
349
350
  /**
350
351
  * @example
351
- * {
352
- * itemIds: ["item_ids"]
353
- * }
352
+ * {}
354
353
  */
355
354
  interface DatasetItemsDelete {
356
- itemIds: string[];
355
+ /** List of dataset item IDs to delete (max 1000). Use this to delete specific items by their IDs. Mutually exclusive with 'dataset_id' and 'filters'. */
356
+ itemIds?: string[];
357
+ /** Dataset ID to scope the deletion. Required when using 'filters'. Mutually exclusive with 'item_ids'. */
358
+ datasetId?: string;
359
+ /** Filters to select dataset items to delete within the specified dataset. Must be used with 'dataset_id'. Mutually exclusive with 'item_ids'. Empty array means 'delete all items in the dataset'. */
360
+ filters?: DatasetItemFilter[];
357
361
  }
358
362
 
359
363
  /**
@@ -771,7 +775,7 @@ interface FindFeedbackDefinitionsRequest {
771
775
  /**
772
776
  * This file was auto-generated by Fern from our API Definition.
773
777
  */
774
- type ProviderApiKeyWriteProvider = "openai" | "anthropic" | "gemini" | "openrouter" | "vertex-ai" | "custom-llm" | "opik-builtin";
778
+ type ProviderApiKeyWriteProvider = "openai" | "anthropic" | "gemini" | "openrouter" | "vertex-ai" | "custom-llm" | "opik-free";
775
779
  declare const ProviderApiKeyWriteProvider: {
776
780
  readonly Openai: "openai";
777
781
  readonly Anthropic: "anthropic";
@@ -779,7 +783,7 @@ declare const ProviderApiKeyWriteProvider: {
779
783
  readonly Openrouter: "openrouter";
780
784
  readonly VertexAi: "vertex-ai";
781
785
  readonly CustomLlm: "custom-llm";
782
- readonly OpikBuiltin: "opik-builtin";
786
+ readonly OpikFree: "opik-free";
783
787
  };
784
788
 
785
789
  /**
@@ -3662,6 +3666,9 @@ declare const DatasetItemFilterOperator: {
3662
3666
  * This file was auto-generated by Fern from our API Definition.
3663
3667
  */
3664
3668
 
3669
+ /**
3670
+ * Filters to select dataset items to delete within the specified dataset. Must be used with 'dataset_id'. Mutually exclusive with 'item_ids'. Empty array means 'delete all items in the dataset'.
3671
+ */
3665
3672
  interface DatasetItemFilter {
3666
3673
  field?: string;
3667
3674
  operator?: DatasetItemFilterOperator;
@@ -5178,7 +5185,7 @@ interface ProviderApiKeyPagePublic {
5178
5185
  /**
5179
5186
  * This file was auto-generated by Fern from our API Definition.
5180
5187
  */
5181
- type ProviderApiKeyPublicProvider = "openai" | "anthropic" | "gemini" | "openrouter" | "vertex-ai" | "custom-llm" | "opik-builtin";
5188
+ type ProviderApiKeyPublicProvider = "openai" | "anthropic" | "gemini" | "openrouter" | "vertex-ai" | "custom-llm" | "opik-free";
5182
5189
  declare const ProviderApiKeyPublicProvider: {
5183
5190
  readonly Openai: "openai";
5184
5191
  readonly Anthropic: "anthropic";
@@ -5186,7 +5193,7 @@ declare const ProviderApiKeyPublicProvider: {
5186
5193
  readonly Openrouter: "openrouter";
5187
5194
  readonly VertexAi: "vertex-ai";
5188
5195
  readonly CustomLlm: "custom-llm";
5189
- readonly OpikBuiltin: "opik-builtin";
5196
+ readonly OpikFree: "opik-free";
5190
5197
  };
5191
5198
 
5192
5199
  /**
@@ -5592,6 +5599,7 @@ interface ProjectStatsSummaryItem {
5592
5599
  totalEstimatedCostSum?: number;
5593
5600
  usage?: Record<string, number>;
5594
5601
  traceCount?: number;
5602
+ threadCount?: number;
5595
5603
  guardrailsFailedCount?: number;
5596
5604
  errorCount?: ErrorCountWithDeviation;
5597
5605
  }
@@ -5651,6 +5659,7 @@ interface ProjectDetailed {
5651
5659
  totalEstimatedCostSum?: number;
5652
5660
  usage?: Record<string, number>;
5653
5661
  traceCount?: number;
5662
+ threadCount?: number;
5654
5663
  guardrailsFailedCount?: number;
5655
5664
  errorCount?: ErrorCountWithDeviationDetailed;
5656
5665
  }
@@ -5865,7 +5874,6 @@ interface ServiceTogglesConfig {
5865
5874
  openrouterProviderEnabled: boolean;
5866
5875
  vertexaiProviderEnabled: boolean;
5867
5876
  customllmProviderEnabled: boolean;
5868
- opikbuiltinProviderEnabled: boolean;
5869
5877
  collaboratorsTabEnabled: boolean;
5870
5878
  }
5871
5879
 
@@ -7590,17 +7598,21 @@ declare class Datasets {
7590
7598
  deleteDatasetByName(request: DatasetIdentifier, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
7591
7599
  private __deleteDatasetByName;
7592
7600
  /**
7593
- * Delete dataset items
7601
+ * Delete dataset items using one of two modes:
7602
+ * 1. **Delete by IDs**: Provide 'item_ids' to delete specific items by their IDs
7603
+ * 2. **Delete by filters**: Provide 'dataset_id' with optional 'filters' to delete items matching criteria
7604
+ *
7605
+ * When using filters, an empty 'filters' array will delete all items in the specified dataset.
7594
7606
  *
7595
7607
  * @param {OpikApi.DatasetItemsDelete} request
7596
7608
  * @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
7597
7609
  *
7610
+ * @throws {@link OpikApi.BadRequestError}
7611
+ *
7598
7612
  * @example
7599
- * await client.datasets.deleteDatasetItems({
7600
- * itemIds: ["item_ids"]
7601
- * })
7613
+ * await client.datasets.deleteDatasetItems()
7602
7614
  */
7603
- deleteDatasetItems(request: DatasetItemsDelete, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
7615
+ deleteDatasetItems(request?: DatasetItemsDelete, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
7604
7616
  private __deleteDatasetItems;
7605
7617
  /**
7606
7618
  * Delete datasets batch
package/dist/index.d.ts CHANGED
@@ -346,14 +346,18 @@ interface DatasetIdentifier {
346
346
  /**
347
347
  * This file was auto-generated by Fern from our API Definition.
348
348
  */
349
+
349
350
  /**
350
351
  * @example
351
- * {
352
- * itemIds: ["item_ids"]
353
- * }
352
+ * {}
354
353
  */
355
354
  interface DatasetItemsDelete {
356
- itemIds: string[];
355
+ /** List of dataset item IDs to delete (max 1000). Use this to delete specific items by their IDs. Mutually exclusive with 'dataset_id' and 'filters'. */
356
+ itemIds?: string[];
357
+ /** Dataset ID to scope the deletion. Required when using 'filters'. Mutually exclusive with 'item_ids'. */
358
+ datasetId?: string;
359
+ /** Filters to select dataset items to delete within the specified dataset. Must be used with 'dataset_id'. Mutually exclusive with 'item_ids'. Empty array means 'delete all items in the dataset'. */
360
+ filters?: DatasetItemFilter[];
357
361
  }
358
362
 
359
363
  /**
@@ -771,7 +775,7 @@ interface FindFeedbackDefinitionsRequest {
771
775
  /**
772
776
  * This file was auto-generated by Fern from our API Definition.
773
777
  */
774
- type ProviderApiKeyWriteProvider = "openai" | "anthropic" | "gemini" | "openrouter" | "vertex-ai" | "custom-llm" | "opik-builtin";
778
+ type ProviderApiKeyWriteProvider = "openai" | "anthropic" | "gemini" | "openrouter" | "vertex-ai" | "custom-llm" | "opik-free";
775
779
  declare const ProviderApiKeyWriteProvider: {
776
780
  readonly Openai: "openai";
777
781
  readonly Anthropic: "anthropic";
@@ -779,7 +783,7 @@ declare const ProviderApiKeyWriteProvider: {
779
783
  readonly Openrouter: "openrouter";
780
784
  readonly VertexAi: "vertex-ai";
781
785
  readonly CustomLlm: "custom-llm";
782
- readonly OpikBuiltin: "opik-builtin";
786
+ readonly OpikFree: "opik-free";
783
787
  };
784
788
 
785
789
  /**
@@ -3662,6 +3666,9 @@ declare const DatasetItemFilterOperator: {
3662
3666
  * This file was auto-generated by Fern from our API Definition.
3663
3667
  */
3664
3668
 
3669
+ /**
3670
+ * Filters to select dataset items to delete within the specified dataset. Must be used with 'dataset_id'. Mutually exclusive with 'item_ids'. Empty array means 'delete all items in the dataset'.
3671
+ */
3665
3672
  interface DatasetItemFilter {
3666
3673
  field?: string;
3667
3674
  operator?: DatasetItemFilterOperator;
@@ -5178,7 +5185,7 @@ interface ProviderApiKeyPagePublic {
5178
5185
  /**
5179
5186
  * This file was auto-generated by Fern from our API Definition.
5180
5187
  */
5181
- type ProviderApiKeyPublicProvider = "openai" | "anthropic" | "gemini" | "openrouter" | "vertex-ai" | "custom-llm" | "opik-builtin";
5188
+ type ProviderApiKeyPublicProvider = "openai" | "anthropic" | "gemini" | "openrouter" | "vertex-ai" | "custom-llm" | "opik-free";
5182
5189
  declare const ProviderApiKeyPublicProvider: {
5183
5190
  readonly Openai: "openai";
5184
5191
  readonly Anthropic: "anthropic";
@@ -5186,7 +5193,7 @@ declare const ProviderApiKeyPublicProvider: {
5186
5193
  readonly Openrouter: "openrouter";
5187
5194
  readonly VertexAi: "vertex-ai";
5188
5195
  readonly CustomLlm: "custom-llm";
5189
- readonly OpikBuiltin: "opik-builtin";
5196
+ readonly OpikFree: "opik-free";
5190
5197
  };
5191
5198
 
5192
5199
  /**
@@ -5592,6 +5599,7 @@ interface ProjectStatsSummaryItem {
5592
5599
  totalEstimatedCostSum?: number;
5593
5600
  usage?: Record<string, number>;
5594
5601
  traceCount?: number;
5602
+ threadCount?: number;
5595
5603
  guardrailsFailedCount?: number;
5596
5604
  errorCount?: ErrorCountWithDeviation;
5597
5605
  }
@@ -5651,6 +5659,7 @@ interface ProjectDetailed {
5651
5659
  totalEstimatedCostSum?: number;
5652
5660
  usage?: Record<string, number>;
5653
5661
  traceCount?: number;
5662
+ threadCount?: number;
5654
5663
  guardrailsFailedCount?: number;
5655
5664
  errorCount?: ErrorCountWithDeviationDetailed;
5656
5665
  }
@@ -5865,7 +5874,6 @@ interface ServiceTogglesConfig {
5865
5874
  openrouterProviderEnabled: boolean;
5866
5875
  vertexaiProviderEnabled: boolean;
5867
5876
  customllmProviderEnabled: boolean;
5868
- opikbuiltinProviderEnabled: boolean;
5869
5877
  collaboratorsTabEnabled: boolean;
5870
5878
  }
5871
5879
 
@@ -7590,17 +7598,21 @@ declare class Datasets {
7590
7598
  deleteDatasetByName(request: DatasetIdentifier, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
7591
7599
  private __deleteDatasetByName;
7592
7600
  /**
7593
- * Delete dataset items
7601
+ * Delete dataset items using one of two modes:
7602
+ * 1. **Delete by IDs**: Provide 'item_ids' to delete specific items by their IDs
7603
+ * 2. **Delete by filters**: Provide 'dataset_id' with optional 'filters' to delete items matching criteria
7604
+ *
7605
+ * When using filters, an empty 'filters' array will delete all items in the specified dataset.
7594
7606
  *
7595
7607
  * @param {OpikApi.DatasetItemsDelete} request
7596
7608
  * @param {Datasets.RequestOptions} requestOptions - Request-specific configuration.
7597
7609
  *
7610
+ * @throws {@link OpikApi.BadRequestError}
7611
+ *
7598
7612
  * @example
7599
- * await client.datasets.deleteDatasetItems({
7600
- * itemIds: ["item_ids"]
7601
- * })
7613
+ * await client.datasets.deleteDatasetItems()
7602
7614
  */
7603
- deleteDatasetItems(request: DatasetItemsDelete, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
7615
+ deleteDatasetItems(request?: DatasetItemsDelete, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<void>;
7604
7616
  private __deleteDatasetItems;
7605
7617
  /**
7606
7618
  * Delete datasets batch