opik 1.8.55 → 1.8.57

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.
@@ -302,6 +302,7 @@ interface DatasetIdentifierPublic {
302
302
  interface GetDatasetItemsRequest {
303
303
  page?: number;
304
304
  size?: number;
305
+ filters?: string;
305
306
  truncate?: boolean;
306
307
  }
307
308
 
@@ -1176,6 +1177,20 @@ interface GuardrailBatchWrite {
1176
1177
  guardrails: GuardrailWrite[];
1177
1178
  }
1178
1179
 
1180
+ /**
1181
+ * This file was auto-generated by Fern from our API Definition.
1182
+ */
1183
+ /**
1184
+ * @example
1185
+ * {}
1186
+ */
1187
+ interface TraceThreadBatchIdentifier {
1188
+ projectName?: string;
1189
+ projectId?: string;
1190
+ threadId?: string;
1191
+ threadIds?: string[];
1192
+ }
1193
+
1179
1194
  /**
1180
1195
  * This file was auto-generated by Fern from our API Definition.
1181
1196
  */
@@ -4323,15 +4338,6 @@ interface SpanFilterPublic {
4323
4338
  value?: string;
4324
4339
  }
4325
4340
 
4326
- /**
4327
- * This file was auto-generated by Fern from our API Definition.
4328
- */
4329
- interface TraceThreadIdentifier {
4330
- projectName?: string;
4331
- projectId?: string;
4332
- threadId: string;
4333
- }
4334
-
4335
4341
  /**
4336
4342
  * This file was auto-generated by Fern from our API Definition.
4337
4343
  */
@@ -4464,6 +4470,15 @@ interface TraceThread {
4464
4470
  createdAt?: Date;
4465
4471
  }
4466
4472
 
4473
+ /**
4474
+ * This file was auto-generated by Fern from our API Definition.
4475
+ */
4476
+ interface TraceThreadIdentifier {
4477
+ projectName?: string;
4478
+ projectId?: string;
4479
+ threadId: string;
4480
+ }
4481
+
4467
4482
  /**
4468
4483
  * This file was auto-generated by Fern from our API Definition.
4469
4484
  */
@@ -6564,6 +6579,21 @@ declare class Prompts {
6564
6579
  */
6565
6580
  getPromptVersions(id: string, request?: GetPromptVersionsRequest, requestOptions?: Prompts.RequestOptions): HttpResponsePromise<PromptVersionPagePublic>;
6566
6581
  private __getPromptVersions;
6582
+ /**
6583
+ * Restore a prompt version by creating a new version with the content from the specified version
6584
+ *
6585
+ * @param {string} promptId
6586
+ * @param {string} versionId
6587
+ * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
6588
+ *
6589
+ * @throws {@link OpikApi.BadRequestError}
6590
+ * @throws {@link OpikApi.NotFoundError}
6591
+ *
6592
+ * @example
6593
+ * await client.prompts.restorePromptVersion("promptId", "versionId")
6594
+ */
6595
+ restorePromptVersion(promptId: string, versionId: string, requestOptions?: Prompts.RequestOptions): HttpResponsePromise<PromptVersionDetail>;
6596
+ private __restorePromptVersion;
6567
6597
  /**
6568
6598
  * Retrieve prompt version
6569
6599
  *
@@ -6972,19 +7002,17 @@ declare class Traces {
6972
7002
  addTraceFeedbackScore(id: string, request: FeedbackScore, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
6973
7003
  private __addTraceFeedbackScore;
6974
7004
  /**
6975
- * Close trace thread
7005
+ * Close one or multiple trace threads. Supports both single thread_id and multiple thread_ids for batch operations.
6976
7006
  *
6977
- * @param {OpikApi.TraceThreadIdentifier} request
7007
+ * @param {OpikApi.TraceThreadBatchIdentifier} request
6978
7008
  * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
6979
7009
  *
6980
7010
  * @throws {@link OpikApi.NotFoundError}
6981
7011
  *
6982
7012
  * @example
6983
- * await client.traces.closeTraceThread({
6984
- * threadId: "thread_id"
6985
- * })
7013
+ * await client.traces.closeTraceThread()
6986
7014
  */
6987
- closeTraceThread(request: TraceThreadIdentifier, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
7015
+ closeTraceThread(request?: TraceThreadBatchIdentifier, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
6988
7016
  private __closeTraceThread;
6989
7017
  /**
6990
7018
  * Get traces by project_name or project_id
@@ -302,6 +302,7 @@ interface DatasetIdentifierPublic {
302
302
  interface GetDatasetItemsRequest {
303
303
  page?: number;
304
304
  size?: number;
305
+ filters?: string;
305
306
  truncate?: boolean;
306
307
  }
307
308
 
@@ -1176,6 +1177,20 @@ interface GuardrailBatchWrite {
1176
1177
  guardrails: GuardrailWrite[];
1177
1178
  }
1178
1179
 
1180
+ /**
1181
+ * This file was auto-generated by Fern from our API Definition.
1182
+ */
1183
+ /**
1184
+ * @example
1185
+ * {}
1186
+ */
1187
+ interface TraceThreadBatchIdentifier {
1188
+ projectName?: string;
1189
+ projectId?: string;
1190
+ threadId?: string;
1191
+ threadIds?: string[];
1192
+ }
1193
+
1179
1194
  /**
1180
1195
  * This file was auto-generated by Fern from our API Definition.
1181
1196
  */
@@ -4323,15 +4338,6 @@ interface SpanFilterPublic {
4323
4338
  value?: string;
4324
4339
  }
4325
4340
 
4326
- /**
4327
- * This file was auto-generated by Fern from our API Definition.
4328
- */
4329
- interface TraceThreadIdentifier {
4330
- projectName?: string;
4331
- projectId?: string;
4332
- threadId: string;
4333
- }
4334
-
4335
4341
  /**
4336
4342
  * This file was auto-generated by Fern from our API Definition.
4337
4343
  */
@@ -4464,6 +4470,15 @@ interface TraceThread {
4464
4470
  createdAt?: Date;
4465
4471
  }
4466
4472
 
4473
+ /**
4474
+ * This file was auto-generated by Fern from our API Definition.
4475
+ */
4476
+ interface TraceThreadIdentifier {
4477
+ projectName?: string;
4478
+ projectId?: string;
4479
+ threadId: string;
4480
+ }
4481
+
4467
4482
  /**
4468
4483
  * This file was auto-generated by Fern from our API Definition.
4469
4484
  */
@@ -6564,6 +6579,21 @@ declare class Prompts {
6564
6579
  */
6565
6580
  getPromptVersions(id: string, request?: GetPromptVersionsRequest, requestOptions?: Prompts.RequestOptions): HttpResponsePromise<PromptVersionPagePublic>;
6566
6581
  private __getPromptVersions;
6582
+ /**
6583
+ * Restore a prompt version by creating a new version with the content from the specified version
6584
+ *
6585
+ * @param {string} promptId
6586
+ * @param {string} versionId
6587
+ * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
6588
+ *
6589
+ * @throws {@link OpikApi.BadRequestError}
6590
+ * @throws {@link OpikApi.NotFoundError}
6591
+ *
6592
+ * @example
6593
+ * await client.prompts.restorePromptVersion("promptId", "versionId")
6594
+ */
6595
+ restorePromptVersion(promptId: string, versionId: string, requestOptions?: Prompts.RequestOptions): HttpResponsePromise<PromptVersionDetail>;
6596
+ private __restorePromptVersion;
6567
6597
  /**
6568
6598
  * Retrieve prompt version
6569
6599
  *
@@ -6972,19 +7002,17 @@ declare class Traces {
6972
7002
  addTraceFeedbackScore(id: string, request: FeedbackScore, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
6973
7003
  private __addTraceFeedbackScore;
6974
7004
  /**
6975
- * Close trace thread
7005
+ * Close one or multiple trace threads. Supports both single thread_id and multiple thread_ids for batch operations.
6976
7006
  *
6977
- * @param {OpikApi.TraceThreadIdentifier} request
7007
+ * @param {OpikApi.TraceThreadBatchIdentifier} request
6978
7008
  * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
6979
7009
  *
6980
7010
  * @throws {@link OpikApi.NotFoundError}
6981
7011
  *
6982
7012
  * @example
6983
- * await client.traces.closeTraceThread({
6984
- * threadId: "thread_id"
6985
- * })
7013
+ * await client.traces.closeTraceThread()
6986
7014
  */
6987
- closeTraceThread(request: TraceThreadIdentifier, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
7015
+ closeTraceThread(request?: TraceThreadBatchIdentifier, requestOptions?: Traces.RequestOptions): HttpResponsePromise<void>;
6988
7016
  private __closeTraceThread;
6989
7017
  /**
6990
7018
  * Get traces by project_name or project_id