opik 1.6.14 → 1.7.0

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.
@@ -193,6 +193,24 @@ interface ProviderApiKeyUpdate {
193
193
  name?: string;
194
194
  }
195
195
 
196
+ /**
197
+ * This file was auto-generated by Fern from our API Definition.
198
+ */
199
+ type ProjectWriteVisibility = "private" | "public";
200
+ declare const ProjectWriteVisibility: {
201
+ readonly Private: "private";
202
+ readonly Public: "public";
203
+ };
204
+
205
+ /**
206
+ * This file was auto-generated by Fern from our API Definition.
207
+ */
208
+ type ProjectUpdateVisibility = "private" | "public";
209
+ declare const ProjectUpdateVisibility: {
210
+ readonly Private: "private";
211
+ readonly Public: "public";
212
+ };
213
+
196
214
  /**
197
215
  * This file was auto-generated by Fern from our API Definition.
198
216
  */
@@ -232,6 +250,7 @@ interface FindProjectsRequest {
232
250
  /**
233
251
  * This file was auto-generated by Fern from our API Definition.
234
252
  */
253
+
235
254
  /**
236
255
  * @example
237
256
  * {
@@ -240,12 +259,14 @@ interface FindProjectsRequest {
240
259
  */
241
260
  interface ProjectWrite {
242
261
  name: string;
262
+ visibility?: ProjectWriteVisibility;
243
263
  description?: string;
244
264
  }
245
265
 
246
266
  /**
247
267
  * This file was auto-generated by Fern from our API Definition.
248
268
  */
269
+
249
270
  /**
250
271
  * @example
251
272
  * {}
@@ -253,6 +274,7 @@ interface ProjectWrite {
253
274
  interface ProjectUpdate {
254
275
  name?: string;
255
276
  description?: string;
277
+ visibility?: ProjectUpdateVisibility;
256
278
  }
257
279
 
258
280
  /**
@@ -411,41 +433,45 @@ interface PromptVersionRetrieveDetail {
411
433
  /**
412
434
  * This file was auto-generated by Fern from our API Definition.
413
435
  */
414
- type GetSpansByProjectRequestType = "general" | "tool" | "llm";
436
+ type GetSpansByProjectRequestType = "general" | "tool" | "llm" | "guardrail";
415
437
  declare const GetSpansByProjectRequestType: {
416
438
  readonly General: "general";
417
439
  readonly Tool: "tool";
418
440
  readonly Llm: "llm";
441
+ readonly Guardrail: "guardrail";
419
442
  };
420
443
 
421
444
  /**
422
445
  * This file was auto-generated by Fern from our API Definition.
423
446
  */
424
- type FindFeedbackScoreNames1RequestType = "general" | "tool" | "llm";
447
+ type FindFeedbackScoreNames1RequestType = "general" | "tool" | "llm" | "guardrail";
425
448
  declare const FindFeedbackScoreNames1RequestType: {
426
449
  readonly General: "general";
427
450
  readonly Tool: "tool";
428
451
  readonly Llm: "llm";
452
+ readonly Guardrail: "guardrail";
429
453
  };
430
454
 
431
455
  /**
432
456
  * This file was auto-generated by Fern from our API Definition.
433
457
  */
434
- type GetSpanStatsRequestType = "general" | "tool" | "llm";
458
+ type GetSpanStatsRequestType = "general" | "tool" | "llm" | "guardrail";
435
459
  declare const GetSpanStatsRequestType: {
436
460
  readonly General: "general";
437
461
  readonly Tool: "tool";
438
462
  readonly Llm: "llm";
463
+ readonly Guardrail: "guardrail";
439
464
  };
440
465
 
441
466
  /**
442
467
  * This file was auto-generated by Fern from our API Definition.
443
468
  */
444
- type SpanSearchStreamRequestPublicType = "general" | "tool" | "llm";
469
+ type SpanSearchStreamRequestPublicType = "general" | "tool" | "llm" | "guardrail";
445
470
  declare const SpanSearchStreamRequestPublicType: {
446
471
  readonly General: "general";
447
472
  readonly Tool: "tool";
448
473
  readonly Llm: "llm";
474
+ readonly Guardrail: "guardrail";
449
475
  };
450
476
 
451
477
  /**
@@ -2509,9 +2535,20 @@ interface ProjectPagePublic {
2509
2535
  /**
2510
2536
  * This file was auto-generated by Fern from our API Definition.
2511
2537
  */
2538
+ type ProjectPublicVisibility = "private" | "public";
2539
+ declare const ProjectPublicVisibility: {
2540
+ readonly Private: "private";
2541
+ readonly Public: "public";
2542
+ };
2543
+
2544
+ /**
2545
+ * This file was auto-generated by Fern from our API Definition.
2546
+ */
2547
+
2512
2548
  interface ProjectPublic {
2513
2549
  id?: string;
2514
2550
  name: string;
2551
+ visibility?: ProjectPublicVisibility;
2515
2552
  description?: string;
2516
2553
  createdAt?: Date;
2517
2554
  createdBy?: string;
@@ -2623,6 +2660,15 @@ interface PercentageValuesDetailed {
2623
2660
  p99?: number;
2624
2661
  }
2625
2662
 
2663
+ /**
2664
+ * This file was auto-generated by Fern from our API Definition.
2665
+ */
2666
+ type ProjectDetailedVisibility = "private" | "public";
2667
+ declare const ProjectDetailedVisibility: {
2668
+ readonly Private: "private";
2669
+ readonly Public: "public";
2670
+ };
2671
+
2626
2672
  /**
2627
2673
  * This file was auto-generated by Fern from our API Definition.
2628
2674
  */
@@ -2630,6 +2676,7 @@ interface PercentageValuesDetailed {
2630
2676
  interface ProjectDetailed {
2631
2677
  id?: string;
2632
2678
  name: string;
2679
+ visibility?: ProjectDetailedVisibility;
2633
2680
  description?: string;
2634
2681
  createdAt?: Date;
2635
2682
  createdBy?: string;
@@ -2774,11 +2821,12 @@ interface ErrorInfo {
2774
2821
  /**
2775
2822
  * This file was auto-generated by Fern from our API Definition.
2776
2823
  */
2777
- type SpanType = "general" | "tool" | "llm";
2824
+ type SpanType = "general" | "tool" | "llm" | "guardrail";
2778
2825
  declare const SpanType: {
2779
2826
  readonly General: "general";
2780
2827
  readonly Tool: "tool";
2781
2828
  readonly Llm: "llm";
2829
+ readonly Guardrail: "guardrail";
2782
2830
  };
2783
2831
 
2784
2832
  /**
@@ -2828,11 +2876,12 @@ interface ErrorInfoWrite {
2828
2876
  /**
2829
2877
  * This file was auto-generated by Fern from our API Definition.
2830
2878
  */
2831
- type SpanWriteType = "general" | "tool" | "llm";
2879
+ type SpanWriteType = "general" | "tool" | "llm" | "guardrail";
2832
2880
  declare const SpanWriteType: {
2833
2881
  readonly General: "general";
2834
2882
  readonly Tool: "tool";
2835
2883
  readonly Llm: "llm";
2884
+ readonly Guardrail: "guardrail";
2836
2885
  };
2837
2886
 
2838
2887
  /**
@@ -2906,11 +2955,12 @@ interface FeedbackScorePublic {
2906
2955
  /**
2907
2956
  * This file was auto-generated by Fern from our API Definition.
2908
2957
  */
2909
- type SpanPublicType = "general" | "tool" | "llm";
2958
+ type SpanPublicType = "general" | "tool" | "llm" | "guardrail";
2910
2959
  declare const SpanPublicType: {
2911
2960
  readonly General: "general";
2912
2961
  readonly Tool: "tool";
2913
2962
  readonly Llm: "llm";
2963
+ readonly Guardrail: "guardrail";
2914
2964
  };
2915
2965
 
2916
2966
  /**
@@ -3384,7 +3434,7 @@ declare class Attachments {
3384
3434
  */
3385
3435
  attachmentList(request: AttachmentListRequest, requestOptions?: Attachments.RequestOptions): Promise<AttachmentPage>;
3386
3436
  /**
3387
- * Start multipart attachment upload
3437
+ * Complete multipart attachment upload
3388
3438
  *
3389
3439
  * @param {OpikApi.CompleteMultipartUploadRequest} request
3390
3440
  * @param {Attachments.RequestOptions} requestOptions - Request-specific configuration.
@@ -3393,7 +3443,7 @@ declare class Attachments {
3393
3443
  * @throws {@link OpikApi.ForbiddenError}
3394
3444
  *
3395
3445
  * @example
3396
- * await client.attachments.startMultiPartUpload({
3446
+ * await client.attachments.completeMultiPartUpload({
3397
3447
  * fileName: "file_name",
3398
3448
  * entityType: "trace",
3399
3449
  * entityId: "entity_id",
@@ -3405,7 +3455,7 @@ declare class Attachments {
3405
3455
  * }]
3406
3456
  * })
3407
3457
  */
3408
- startMultiPartUpload(request: CompleteMultipartUploadRequest, requestOptions?: Attachments.RequestOptions): Promise<void>;
3458
+ completeMultiPartUpload(request: CompleteMultipartUploadRequest, requestOptions?: Attachments.RequestOptions): Promise<void>;
3409
3459
  /**
3410
3460
  * Delete attachments
3411
3461
  *
@@ -3445,7 +3495,7 @@ declare class Attachments {
3445
3495
  * @throws {@link OpikApi.ForbiddenError}
3446
3496
  *
3447
3497
  * @example
3448
- * await client.attachments.startMultiPartUpload1({
3498
+ * await client.attachments.startMultiPartUpload({
3449
3499
  * fileName: "file_name",
3450
3500
  * numOfFileParts: 1,
3451
3501
  * entityType: "trace",
@@ -3453,7 +3503,7 @@ declare class Attachments {
3453
3503
  * path: "path"
3454
3504
  * })
3455
3505
  */
3456
- startMultiPartUpload1(request: StartMultipartUploadRequest, requestOptions?: Attachments.RequestOptions): Promise<StartMultipartUploadResponse>;
3506
+ startMultiPartUpload(request: StartMultipartUploadRequest, requestOptions?: Attachments.RequestOptions): Promise<StartMultipartUploadResponse>;
3457
3507
  /**
3458
3508
  * Upload attachment to MinIO
3459
3509
  *
@@ -193,6 +193,24 @@ interface ProviderApiKeyUpdate {
193
193
  name?: string;
194
194
  }
195
195
 
196
+ /**
197
+ * This file was auto-generated by Fern from our API Definition.
198
+ */
199
+ type ProjectWriteVisibility = "private" | "public";
200
+ declare const ProjectWriteVisibility: {
201
+ readonly Private: "private";
202
+ readonly Public: "public";
203
+ };
204
+
205
+ /**
206
+ * This file was auto-generated by Fern from our API Definition.
207
+ */
208
+ type ProjectUpdateVisibility = "private" | "public";
209
+ declare const ProjectUpdateVisibility: {
210
+ readonly Private: "private";
211
+ readonly Public: "public";
212
+ };
213
+
196
214
  /**
197
215
  * This file was auto-generated by Fern from our API Definition.
198
216
  */
@@ -232,6 +250,7 @@ interface FindProjectsRequest {
232
250
  /**
233
251
  * This file was auto-generated by Fern from our API Definition.
234
252
  */
253
+
235
254
  /**
236
255
  * @example
237
256
  * {
@@ -240,12 +259,14 @@ interface FindProjectsRequest {
240
259
  */
241
260
  interface ProjectWrite {
242
261
  name: string;
262
+ visibility?: ProjectWriteVisibility;
243
263
  description?: string;
244
264
  }
245
265
 
246
266
  /**
247
267
  * This file was auto-generated by Fern from our API Definition.
248
268
  */
269
+
249
270
  /**
250
271
  * @example
251
272
  * {}
@@ -253,6 +274,7 @@ interface ProjectWrite {
253
274
  interface ProjectUpdate {
254
275
  name?: string;
255
276
  description?: string;
277
+ visibility?: ProjectUpdateVisibility;
256
278
  }
257
279
 
258
280
  /**
@@ -411,41 +433,45 @@ interface PromptVersionRetrieveDetail {
411
433
  /**
412
434
  * This file was auto-generated by Fern from our API Definition.
413
435
  */
414
- type GetSpansByProjectRequestType = "general" | "tool" | "llm";
436
+ type GetSpansByProjectRequestType = "general" | "tool" | "llm" | "guardrail";
415
437
  declare const GetSpansByProjectRequestType: {
416
438
  readonly General: "general";
417
439
  readonly Tool: "tool";
418
440
  readonly Llm: "llm";
441
+ readonly Guardrail: "guardrail";
419
442
  };
420
443
 
421
444
  /**
422
445
  * This file was auto-generated by Fern from our API Definition.
423
446
  */
424
- type FindFeedbackScoreNames1RequestType = "general" | "tool" | "llm";
447
+ type FindFeedbackScoreNames1RequestType = "general" | "tool" | "llm" | "guardrail";
425
448
  declare const FindFeedbackScoreNames1RequestType: {
426
449
  readonly General: "general";
427
450
  readonly Tool: "tool";
428
451
  readonly Llm: "llm";
452
+ readonly Guardrail: "guardrail";
429
453
  };
430
454
 
431
455
  /**
432
456
  * This file was auto-generated by Fern from our API Definition.
433
457
  */
434
- type GetSpanStatsRequestType = "general" | "tool" | "llm";
458
+ type GetSpanStatsRequestType = "general" | "tool" | "llm" | "guardrail";
435
459
  declare const GetSpanStatsRequestType: {
436
460
  readonly General: "general";
437
461
  readonly Tool: "tool";
438
462
  readonly Llm: "llm";
463
+ readonly Guardrail: "guardrail";
439
464
  };
440
465
 
441
466
  /**
442
467
  * This file was auto-generated by Fern from our API Definition.
443
468
  */
444
- type SpanSearchStreamRequestPublicType = "general" | "tool" | "llm";
469
+ type SpanSearchStreamRequestPublicType = "general" | "tool" | "llm" | "guardrail";
445
470
  declare const SpanSearchStreamRequestPublicType: {
446
471
  readonly General: "general";
447
472
  readonly Tool: "tool";
448
473
  readonly Llm: "llm";
474
+ readonly Guardrail: "guardrail";
449
475
  };
450
476
 
451
477
  /**
@@ -2509,9 +2535,20 @@ interface ProjectPagePublic {
2509
2535
  /**
2510
2536
  * This file was auto-generated by Fern from our API Definition.
2511
2537
  */
2538
+ type ProjectPublicVisibility = "private" | "public";
2539
+ declare const ProjectPublicVisibility: {
2540
+ readonly Private: "private";
2541
+ readonly Public: "public";
2542
+ };
2543
+
2544
+ /**
2545
+ * This file was auto-generated by Fern from our API Definition.
2546
+ */
2547
+
2512
2548
  interface ProjectPublic {
2513
2549
  id?: string;
2514
2550
  name: string;
2551
+ visibility?: ProjectPublicVisibility;
2515
2552
  description?: string;
2516
2553
  createdAt?: Date;
2517
2554
  createdBy?: string;
@@ -2623,6 +2660,15 @@ interface PercentageValuesDetailed {
2623
2660
  p99?: number;
2624
2661
  }
2625
2662
 
2663
+ /**
2664
+ * This file was auto-generated by Fern from our API Definition.
2665
+ */
2666
+ type ProjectDetailedVisibility = "private" | "public";
2667
+ declare const ProjectDetailedVisibility: {
2668
+ readonly Private: "private";
2669
+ readonly Public: "public";
2670
+ };
2671
+
2626
2672
  /**
2627
2673
  * This file was auto-generated by Fern from our API Definition.
2628
2674
  */
@@ -2630,6 +2676,7 @@ interface PercentageValuesDetailed {
2630
2676
  interface ProjectDetailed {
2631
2677
  id?: string;
2632
2678
  name: string;
2679
+ visibility?: ProjectDetailedVisibility;
2633
2680
  description?: string;
2634
2681
  createdAt?: Date;
2635
2682
  createdBy?: string;
@@ -2774,11 +2821,12 @@ interface ErrorInfo {
2774
2821
  /**
2775
2822
  * This file was auto-generated by Fern from our API Definition.
2776
2823
  */
2777
- type SpanType = "general" | "tool" | "llm";
2824
+ type SpanType = "general" | "tool" | "llm" | "guardrail";
2778
2825
  declare const SpanType: {
2779
2826
  readonly General: "general";
2780
2827
  readonly Tool: "tool";
2781
2828
  readonly Llm: "llm";
2829
+ readonly Guardrail: "guardrail";
2782
2830
  };
2783
2831
 
2784
2832
  /**
@@ -2828,11 +2876,12 @@ interface ErrorInfoWrite {
2828
2876
  /**
2829
2877
  * This file was auto-generated by Fern from our API Definition.
2830
2878
  */
2831
- type SpanWriteType = "general" | "tool" | "llm";
2879
+ type SpanWriteType = "general" | "tool" | "llm" | "guardrail";
2832
2880
  declare const SpanWriteType: {
2833
2881
  readonly General: "general";
2834
2882
  readonly Tool: "tool";
2835
2883
  readonly Llm: "llm";
2884
+ readonly Guardrail: "guardrail";
2836
2885
  };
2837
2886
 
2838
2887
  /**
@@ -2906,11 +2955,12 @@ interface FeedbackScorePublic {
2906
2955
  /**
2907
2956
  * This file was auto-generated by Fern from our API Definition.
2908
2957
  */
2909
- type SpanPublicType = "general" | "tool" | "llm";
2958
+ type SpanPublicType = "general" | "tool" | "llm" | "guardrail";
2910
2959
  declare const SpanPublicType: {
2911
2960
  readonly General: "general";
2912
2961
  readonly Tool: "tool";
2913
2962
  readonly Llm: "llm";
2963
+ readonly Guardrail: "guardrail";
2914
2964
  };
2915
2965
 
2916
2966
  /**
@@ -3384,7 +3434,7 @@ declare class Attachments {
3384
3434
  */
3385
3435
  attachmentList(request: AttachmentListRequest, requestOptions?: Attachments.RequestOptions): Promise<AttachmentPage>;
3386
3436
  /**
3387
- * Start multipart attachment upload
3437
+ * Complete multipart attachment upload
3388
3438
  *
3389
3439
  * @param {OpikApi.CompleteMultipartUploadRequest} request
3390
3440
  * @param {Attachments.RequestOptions} requestOptions - Request-specific configuration.
@@ -3393,7 +3443,7 @@ declare class Attachments {
3393
3443
  * @throws {@link OpikApi.ForbiddenError}
3394
3444
  *
3395
3445
  * @example
3396
- * await client.attachments.startMultiPartUpload({
3446
+ * await client.attachments.completeMultiPartUpload({
3397
3447
  * fileName: "file_name",
3398
3448
  * entityType: "trace",
3399
3449
  * entityId: "entity_id",
@@ -3405,7 +3455,7 @@ declare class Attachments {
3405
3455
  * }]
3406
3456
  * })
3407
3457
  */
3408
- startMultiPartUpload(request: CompleteMultipartUploadRequest, requestOptions?: Attachments.RequestOptions): Promise<void>;
3458
+ completeMultiPartUpload(request: CompleteMultipartUploadRequest, requestOptions?: Attachments.RequestOptions): Promise<void>;
3409
3459
  /**
3410
3460
  * Delete attachments
3411
3461
  *
@@ -3445,7 +3495,7 @@ declare class Attachments {
3445
3495
  * @throws {@link OpikApi.ForbiddenError}
3446
3496
  *
3447
3497
  * @example
3448
- * await client.attachments.startMultiPartUpload1({
3498
+ * await client.attachments.startMultiPartUpload({
3449
3499
  * fileName: "file_name",
3450
3500
  * numOfFileParts: 1,
3451
3501
  * entityType: "trace",
@@ -3453,7 +3503,7 @@ declare class Attachments {
3453
3503
  * path: "path"
3454
3504
  * })
3455
3505
  */
3456
- startMultiPartUpload1(request: StartMultipartUploadRequest, requestOptions?: Attachments.RequestOptions): Promise<StartMultipartUploadResponse>;
3506
+ startMultiPartUpload(request: StartMultipartUploadRequest, requestOptions?: Attachments.RequestOptions): Promise<StartMultipartUploadResponse>;
3457
3507
  /**
3458
3508
  * Upload attachment to MinIO
3459
3509
  *