opik 1.8.6 → 1.8.7

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.
@@ -617,7 +617,6 @@ interface ProjectWrite {
617
617
  name: string;
618
618
  visibility?: ProjectWriteVisibility;
619
619
  description?: string;
620
- configuration?: ConfigurationWrite;
621
620
  }
622
621
 
623
622
  /**
@@ -1600,6 +1599,7 @@ declare namespace AutomationRuleEvaluatorWrite {
1600
1599
  projectId: string;
1601
1600
  name: string;
1602
1601
  samplingRate?: number;
1602
+ enabled?: boolean;
1603
1603
  action: "evaluator";
1604
1604
  }
1605
1605
  }
@@ -1728,6 +1728,7 @@ declare namespace AutomationRuleEvaluatorObjectPublic {
1728
1728
  projectName?: string;
1729
1729
  name: string;
1730
1730
  samplingRate?: number;
1731
+ enabled?: boolean;
1731
1732
  createdAt?: Date;
1732
1733
  createdBy?: string;
1733
1734
  lastUpdatedAt?: Date;
@@ -1880,6 +1881,7 @@ declare namespace AutomationRuleEvaluatorPublic {
1880
1881
  projectName?: string;
1881
1882
  name: string;
1882
1883
  samplingRate?: number;
1884
+ enabled?: boolean;
1883
1885
  createdAt?: Date;
1884
1886
  createdBy?: string;
1885
1887
  lastUpdatedAt?: Date;
@@ -1944,6 +1946,7 @@ declare namespace AutomationRuleEvaluatorUpdate {
1944
1946
  interface _Base {
1945
1947
  name: string;
1946
1948
  samplingRate?: number;
1949
+ enabled?: boolean;
1947
1950
  projectId: string;
1948
1951
  action: "evaluator";
1949
1952
  }
@@ -3278,53 +3281,6 @@ interface OptimizationPublic {
3278
3281
  lastUpdatedBy?: string;
3279
3282
  }
3280
3283
 
3281
- /**
3282
- * This file was auto-generated by Fern from our API Definition.
3283
- */
3284
- interface ConfigurationTimeoutToMarkThreadAsInactiveUnitsItemDuration {
3285
- seconds?: number;
3286
- zero?: boolean;
3287
- nano?: number;
3288
- negative?: boolean;
3289
- positive?: boolean;
3290
- }
3291
-
3292
- /**
3293
- * This file was auto-generated by Fern from our API Definition.
3294
- */
3295
-
3296
- interface ConfigurationTimeoutToMarkThreadAsInactiveUnitsItem {
3297
- durationEstimated?: boolean;
3298
- duration?: ConfigurationTimeoutToMarkThreadAsInactiveUnitsItemDuration;
3299
- timeBased?: boolean;
3300
- dateBased?: boolean;
3301
- }
3302
-
3303
- /**
3304
- * This file was auto-generated by Fern from our API Definition.
3305
- */
3306
-
3307
- /**
3308
- * minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
3309
- */
3310
- interface ConfigurationTimeoutToMarkThreadAsInactive {
3311
- seconds?: number;
3312
- zero?: boolean;
3313
- nano?: number;
3314
- negative?: boolean;
3315
- positive?: boolean;
3316
- units?: ConfigurationTimeoutToMarkThreadAsInactiveUnitsItem[];
3317
- }
3318
-
3319
- /**
3320
- * This file was auto-generated by Fern from our API Definition.
3321
- */
3322
-
3323
- interface Configuration {
3324
- /** minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
3325
- timeoutToMarkThreadAsInactive?: ConfigurationTimeoutToMarkThreadAsInactive;
3326
- }
3327
-
3328
3284
  /**
3329
3285
  * This file was auto-generated by Fern from our API Definition.
3330
3286
  */
@@ -3334,100 +3290,6 @@ interface ErrorCountWithDeviation {
3334
3290
  deviationPercentage?: number;
3335
3291
  }
3336
3292
 
3337
- /**
3338
- * This file was auto-generated by Fern from our API Definition.
3339
- */
3340
- interface ConfigurationWriteTimeoutToMarkThreadAsInactiveUnitsItemDuration {
3341
- seconds?: number;
3342
- zero?: boolean;
3343
- nano?: number;
3344
- negative?: boolean;
3345
- positive?: boolean;
3346
- }
3347
-
3348
- /**
3349
- * This file was auto-generated by Fern from our API Definition.
3350
- */
3351
-
3352
- interface ConfigurationWriteTimeoutToMarkThreadAsInactiveUnitsItem {
3353
- durationEstimated?: boolean;
3354
- duration?: ConfigurationWriteTimeoutToMarkThreadAsInactiveUnitsItemDuration;
3355
- timeBased?: boolean;
3356
- dateBased?: boolean;
3357
- }
3358
-
3359
- /**
3360
- * This file was auto-generated by Fern from our API Definition.
3361
- */
3362
-
3363
- /**
3364
- * minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
3365
- */
3366
- interface ConfigurationWriteTimeoutToMarkThreadAsInactive {
3367
- seconds?: number;
3368
- zero?: boolean;
3369
- nano?: number;
3370
- negative?: boolean;
3371
- positive?: boolean;
3372
- units?: ConfigurationWriteTimeoutToMarkThreadAsInactiveUnitsItem[];
3373
- }
3374
-
3375
- /**
3376
- * This file was auto-generated by Fern from our API Definition.
3377
- */
3378
-
3379
- interface ConfigurationWrite {
3380
- /** minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
3381
- timeoutToMarkThreadAsInactive?: ConfigurationWriteTimeoutToMarkThreadAsInactive;
3382
- }
3383
-
3384
- /**
3385
- * This file was auto-generated by Fern from our API Definition.
3386
- */
3387
- interface ConfigurationPublicTimeoutToMarkThreadAsInactiveUnitsItemDuration {
3388
- seconds?: number;
3389
- zero?: boolean;
3390
- nano?: number;
3391
- negative?: boolean;
3392
- positive?: boolean;
3393
- }
3394
-
3395
- /**
3396
- * This file was auto-generated by Fern from our API Definition.
3397
- */
3398
-
3399
- interface ConfigurationPublicTimeoutToMarkThreadAsInactiveUnitsItem {
3400
- durationEstimated?: boolean;
3401
- duration?: ConfigurationPublicTimeoutToMarkThreadAsInactiveUnitsItemDuration;
3402
- timeBased?: boolean;
3403
- dateBased?: boolean;
3404
- }
3405
-
3406
- /**
3407
- * This file was auto-generated by Fern from our API Definition.
3408
- */
3409
-
3410
- /**
3411
- * minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
3412
- */
3413
- interface ConfigurationPublicTimeoutToMarkThreadAsInactive {
3414
- seconds?: number;
3415
- zero?: boolean;
3416
- nano?: number;
3417
- negative?: boolean;
3418
- positive?: boolean;
3419
- units?: ConfigurationPublicTimeoutToMarkThreadAsInactiveUnitsItem[];
3420
- }
3421
-
3422
- /**
3423
- * This file was auto-generated by Fern from our API Definition.
3424
- */
3425
-
3426
- interface ConfigurationPublic {
3427
- /** minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
3428
- timeoutToMarkThreadAsInactive?: ConfigurationPublicTimeoutToMarkThreadAsInactive;
3429
- }
3430
-
3431
3293
  /**
3432
3294
  * This file was auto-generated by Fern from our API Definition.
3433
3295
  */
@@ -3463,7 +3325,6 @@ interface ProjectPublic {
3463
3325
  lastUpdatedAt?: Date;
3464
3326
  lastUpdatedBy?: string;
3465
3327
  lastUpdatedTraceAt?: Date;
3466
- configuration?: ConfigurationPublic;
3467
3328
  }
3468
3329
 
3469
3330
  /**
@@ -3559,53 +3420,6 @@ interface ProjectStatsSummaryItem {
3559
3420
  errorCount?: ErrorCountWithDeviation;
3560
3421
  }
3561
3422
 
3562
- /**
3563
- * This file was auto-generated by Fern from our API Definition.
3564
- */
3565
- interface ConfigurationDetailedTimeoutToMarkThreadAsInactiveUnitsItemDuration {
3566
- seconds?: number;
3567
- zero?: boolean;
3568
- nano?: number;
3569
- negative?: boolean;
3570
- positive?: boolean;
3571
- }
3572
-
3573
- /**
3574
- * This file was auto-generated by Fern from our API Definition.
3575
- */
3576
-
3577
- interface ConfigurationDetailedTimeoutToMarkThreadAsInactiveUnitsItem {
3578
- durationEstimated?: boolean;
3579
- duration?: ConfigurationDetailedTimeoutToMarkThreadAsInactiveUnitsItemDuration;
3580
- timeBased?: boolean;
3581
- dateBased?: boolean;
3582
- }
3583
-
3584
- /**
3585
- * This file was auto-generated by Fern from our API Definition.
3586
- */
3587
-
3588
- /**
3589
- * minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
3590
- */
3591
- interface ConfigurationDetailedTimeoutToMarkThreadAsInactive {
3592
- seconds?: number;
3593
- zero?: boolean;
3594
- nano?: number;
3595
- negative?: boolean;
3596
- positive?: boolean;
3597
- units?: ConfigurationDetailedTimeoutToMarkThreadAsInactiveUnitsItem[];
3598
- }
3599
-
3600
- /**
3601
- * This file was auto-generated by Fern from our API Definition.
3602
- */
3603
-
3604
- interface ConfigurationDetailed {
3605
- /** minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
3606
- timeoutToMarkThreadAsInactive?: ConfigurationDetailedTimeoutToMarkThreadAsInactive;
3607
- }
3608
-
3609
3423
  /**
3610
3424
  * This file was auto-generated by Fern from our API Definition.
3611
3425
  */
@@ -3663,7 +3477,6 @@ interface ProjectDetailed {
3663
3477
  traceCount?: number;
3664
3478
  guardrailsFailedCount?: number;
3665
3479
  errorCount?: ErrorCountWithDeviationDetailed;
3666
- configuration?: ConfigurationDetailed;
3667
3480
  }
3668
3481
 
3669
3482
  /**
@@ -4337,6 +4150,14 @@ interface WorkspaceMetricResponse {
4337
4150
  results?: Result[];
4338
4151
  }
4339
4152
 
4153
+ /**
4154
+ * This file was auto-generated by Fern from our API Definition.
4155
+ */
4156
+ interface WorkspaceConfiguration {
4157
+ /** Duration in ISO-8601 format (e.g., PT30M for 30 minutes, PT2H for 2 hours, P1D for 1 day). Minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
4158
+ timeoutToMarkThreadAsInactive?: string;
4159
+ }
4160
+
4340
4161
  /**
4341
4162
  * This file was auto-generated by Fern from our API Definition.
4342
4163
  */
@@ -5948,22 +5769,6 @@ declare class Projects {
5948
5769
  */
5949
5770
  retrieveProject(request: ProjectRetrieveDetailed, requestOptions?: Projects.RequestOptions): HttpResponsePromise<ProjectDetailed>;
5950
5771
  private __retrieveProject;
5951
- /**
5952
- * Upsert project configurations
5953
- *
5954
- * @param {string} id
5955
- * @param {OpikApi.Configuration} request
5956
- * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
5957
- *
5958
- * @throws {@link OpikApi.BadRequestError}
5959
- * @throws {@link OpikApi.NotFoundError}
5960
- * @throws {@link OpikApi.UnprocessableEntityError}
5961
- *
5962
- * @example
5963
- * await client.projects.upsertProjectConfigurations("id", {})
5964
- */
5965
- upsertProjectConfigurations(id: string, request: Configuration, requestOptions?: Projects.RequestOptions): HttpResponsePromise<void>;
5966
- private __upsertProjectConfigurations;
5967
5772
  protected _getCustomAuthorizationHeaders(): Promise<{
5968
5773
  Authorization: string | undefined;
5969
5774
  }>;
@@ -6964,6 +6769,44 @@ declare class Workspaces {
6964
6769
  */
6965
6770
  costsSummary(request: WorkspaceMetricsSummaryRequest, requestOptions?: Workspaces.RequestOptions): HttpResponsePromise<Result>;
6966
6771
  private __costsSummary;
6772
+ /**
6773
+ * Get workspace configuration
6774
+ *
6775
+ * @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
6776
+ *
6777
+ * @throws {@link OpikApi.NotFoundError}
6778
+ *
6779
+ * @example
6780
+ * await client.workspaces.getWorkspaceConfiguration()
6781
+ */
6782
+ getWorkspaceConfiguration(requestOptions?: Workspaces.RequestOptions): HttpResponsePromise<WorkspaceConfiguration>;
6783
+ private __getWorkspaceConfiguration;
6784
+ /**
6785
+ * Upsert workspace configuration
6786
+ *
6787
+ * @param {OpikApi.WorkspaceConfiguration} request
6788
+ * @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
6789
+ *
6790
+ * @throws {@link OpikApi.BadRequestError}
6791
+ * @throws {@link OpikApi.UnprocessableEntityError}
6792
+ *
6793
+ * @example
6794
+ * await client.workspaces.upsertWorkspaceConfiguration({})
6795
+ */
6796
+ upsertWorkspaceConfiguration(request: WorkspaceConfiguration, requestOptions?: Workspaces.RequestOptions): HttpResponsePromise<WorkspaceConfiguration>;
6797
+ private __upsertWorkspaceConfiguration;
6798
+ /**
6799
+ * Delete workspace configuration
6800
+ *
6801
+ * @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
6802
+ *
6803
+ * @throws {@link OpikApi.NotFoundError}
6804
+ *
6805
+ * @example
6806
+ * await client.workspaces.deleteWorkspaceConfiguration()
6807
+ */
6808
+ deleteWorkspaceConfiguration(requestOptions?: Workspaces.RequestOptions): HttpResponsePromise<void>;
6809
+ private __deleteWorkspaceConfiguration;
6967
6810
  /**
6968
6811
  * Get cost daily data
6969
6812
  *
@@ -617,7 +617,6 @@ interface ProjectWrite {
617
617
  name: string;
618
618
  visibility?: ProjectWriteVisibility;
619
619
  description?: string;
620
- configuration?: ConfigurationWrite;
621
620
  }
622
621
 
623
622
  /**
@@ -1600,6 +1599,7 @@ declare namespace AutomationRuleEvaluatorWrite {
1600
1599
  projectId: string;
1601
1600
  name: string;
1602
1601
  samplingRate?: number;
1602
+ enabled?: boolean;
1603
1603
  action: "evaluator";
1604
1604
  }
1605
1605
  }
@@ -1728,6 +1728,7 @@ declare namespace AutomationRuleEvaluatorObjectPublic {
1728
1728
  projectName?: string;
1729
1729
  name: string;
1730
1730
  samplingRate?: number;
1731
+ enabled?: boolean;
1731
1732
  createdAt?: Date;
1732
1733
  createdBy?: string;
1733
1734
  lastUpdatedAt?: Date;
@@ -1880,6 +1881,7 @@ declare namespace AutomationRuleEvaluatorPublic {
1880
1881
  projectName?: string;
1881
1882
  name: string;
1882
1883
  samplingRate?: number;
1884
+ enabled?: boolean;
1883
1885
  createdAt?: Date;
1884
1886
  createdBy?: string;
1885
1887
  lastUpdatedAt?: Date;
@@ -1944,6 +1946,7 @@ declare namespace AutomationRuleEvaluatorUpdate {
1944
1946
  interface _Base {
1945
1947
  name: string;
1946
1948
  samplingRate?: number;
1949
+ enabled?: boolean;
1947
1950
  projectId: string;
1948
1951
  action: "evaluator";
1949
1952
  }
@@ -3278,53 +3281,6 @@ interface OptimizationPublic {
3278
3281
  lastUpdatedBy?: string;
3279
3282
  }
3280
3283
 
3281
- /**
3282
- * This file was auto-generated by Fern from our API Definition.
3283
- */
3284
- interface ConfigurationTimeoutToMarkThreadAsInactiveUnitsItemDuration {
3285
- seconds?: number;
3286
- zero?: boolean;
3287
- nano?: number;
3288
- negative?: boolean;
3289
- positive?: boolean;
3290
- }
3291
-
3292
- /**
3293
- * This file was auto-generated by Fern from our API Definition.
3294
- */
3295
-
3296
- interface ConfigurationTimeoutToMarkThreadAsInactiveUnitsItem {
3297
- durationEstimated?: boolean;
3298
- duration?: ConfigurationTimeoutToMarkThreadAsInactiveUnitsItemDuration;
3299
- timeBased?: boolean;
3300
- dateBased?: boolean;
3301
- }
3302
-
3303
- /**
3304
- * This file was auto-generated by Fern from our API Definition.
3305
- */
3306
-
3307
- /**
3308
- * minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
3309
- */
3310
- interface ConfigurationTimeoutToMarkThreadAsInactive {
3311
- seconds?: number;
3312
- zero?: boolean;
3313
- nano?: number;
3314
- negative?: boolean;
3315
- positive?: boolean;
3316
- units?: ConfigurationTimeoutToMarkThreadAsInactiveUnitsItem[];
3317
- }
3318
-
3319
- /**
3320
- * This file was auto-generated by Fern from our API Definition.
3321
- */
3322
-
3323
- interface Configuration {
3324
- /** minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
3325
- timeoutToMarkThreadAsInactive?: ConfigurationTimeoutToMarkThreadAsInactive;
3326
- }
3327
-
3328
3284
  /**
3329
3285
  * This file was auto-generated by Fern from our API Definition.
3330
3286
  */
@@ -3334,100 +3290,6 @@ interface ErrorCountWithDeviation {
3334
3290
  deviationPercentage?: number;
3335
3291
  }
3336
3292
 
3337
- /**
3338
- * This file was auto-generated by Fern from our API Definition.
3339
- */
3340
- interface ConfigurationWriteTimeoutToMarkThreadAsInactiveUnitsItemDuration {
3341
- seconds?: number;
3342
- zero?: boolean;
3343
- nano?: number;
3344
- negative?: boolean;
3345
- positive?: boolean;
3346
- }
3347
-
3348
- /**
3349
- * This file was auto-generated by Fern from our API Definition.
3350
- */
3351
-
3352
- interface ConfigurationWriteTimeoutToMarkThreadAsInactiveUnitsItem {
3353
- durationEstimated?: boolean;
3354
- duration?: ConfigurationWriteTimeoutToMarkThreadAsInactiveUnitsItemDuration;
3355
- timeBased?: boolean;
3356
- dateBased?: boolean;
3357
- }
3358
-
3359
- /**
3360
- * This file was auto-generated by Fern from our API Definition.
3361
- */
3362
-
3363
- /**
3364
- * minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
3365
- */
3366
- interface ConfigurationWriteTimeoutToMarkThreadAsInactive {
3367
- seconds?: number;
3368
- zero?: boolean;
3369
- nano?: number;
3370
- negative?: boolean;
3371
- positive?: boolean;
3372
- units?: ConfigurationWriteTimeoutToMarkThreadAsInactiveUnitsItem[];
3373
- }
3374
-
3375
- /**
3376
- * This file was auto-generated by Fern from our API Definition.
3377
- */
3378
-
3379
- interface ConfigurationWrite {
3380
- /** minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
3381
- timeoutToMarkThreadAsInactive?: ConfigurationWriteTimeoutToMarkThreadAsInactive;
3382
- }
3383
-
3384
- /**
3385
- * This file was auto-generated by Fern from our API Definition.
3386
- */
3387
- interface ConfigurationPublicTimeoutToMarkThreadAsInactiveUnitsItemDuration {
3388
- seconds?: number;
3389
- zero?: boolean;
3390
- nano?: number;
3391
- negative?: boolean;
3392
- positive?: boolean;
3393
- }
3394
-
3395
- /**
3396
- * This file was auto-generated by Fern from our API Definition.
3397
- */
3398
-
3399
- interface ConfigurationPublicTimeoutToMarkThreadAsInactiveUnitsItem {
3400
- durationEstimated?: boolean;
3401
- duration?: ConfigurationPublicTimeoutToMarkThreadAsInactiveUnitsItemDuration;
3402
- timeBased?: boolean;
3403
- dateBased?: boolean;
3404
- }
3405
-
3406
- /**
3407
- * This file was auto-generated by Fern from our API Definition.
3408
- */
3409
-
3410
- /**
3411
- * minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
3412
- */
3413
- interface ConfigurationPublicTimeoutToMarkThreadAsInactive {
3414
- seconds?: number;
3415
- zero?: boolean;
3416
- nano?: number;
3417
- negative?: boolean;
3418
- positive?: boolean;
3419
- units?: ConfigurationPublicTimeoutToMarkThreadAsInactiveUnitsItem[];
3420
- }
3421
-
3422
- /**
3423
- * This file was auto-generated by Fern from our API Definition.
3424
- */
3425
-
3426
- interface ConfigurationPublic {
3427
- /** minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
3428
- timeoutToMarkThreadAsInactive?: ConfigurationPublicTimeoutToMarkThreadAsInactive;
3429
- }
3430
-
3431
3293
  /**
3432
3294
  * This file was auto-generated by Fern from our API Definition.
3433
3295
  */
@@ -3463,7 +3325,6 @@ interface ProjectPublic {
3463
3325
  lastUpdatedAt?: Date;
3464
3326
  lastUpdatedBy?: string;
3465
3327
  lastUpdatedTraceAt?: Date;
3466
- configuration?: ConfigurationPublic;
3467
3328
  }
3468
3329
 
3469
3330
  /**
@@ -3559,53 +3420,6 @@ interface ProjectStatsSummaryItem {
3559
3420
  errorCount?: ErrorCountWithDeviation;
3560
3421
  }
3561
3422
 
3562
- /**
3563
- * This file was auto-generated by Fern from our API Definition.
3564
- */
3565
- interface ConfigurationDetailedTimeoutToMarkThreadAsInactiveUnitsItemDuration {
3566
- seconds?: number;
3567
- zero?: boolean;
3568
- nano?: number;
3569
- negative?: boolean;
3570
- positive?: boolean;
3571
- }
3572
-
3573
- /**
3574
- * This file was auto-generated by Fern from our API Definition.
3575
- */
3576
-
3577
- interface ConfigurationDetailedTimeoutToMarkThreadAsInactiveUnitsItem {
3578
- durationEstimated?: boolean;
3579
- duration?: ConfigurationDetailedTimeoutToMarkThreadAsInactiveUnitsItemDuration;
3580
- timeBased?: boolean;
3581
- dateBased?: boolean;
3582
- }
3583
-
3584
- /**
3585
- * This file was auto-generated by Fern from our API Definition.
3586
- */
3587
-
3588
- /**
3589
- * minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
3590
- */
3591
- interface ConfigurationDetailedTimeoutToMarkThreadAsInactive {
3592
- seconds?: number;
3593
- zero?: boolean;
3594
- nano?: number;
3595
- negative?: boolean;
3596
- positive?: boolean;
3597
- units?: ConfigurationDetailedTimeoutToMarkThreadAsInactiveUnitsItem[];
3598
- }
3599
-
3600
- /**
3601
- * This file was auto-generated by Fern from our API Definition.
3602
- */
3603
-
3604
- interface ConfigurationDetailed {
3605
- /** minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
3606
- timeoutToMarkThreadAsInactive?: ConfigurationDetailedTimeoutToMarkThreadAsInactive;
3607
- }
3608
-
3609
3423
  /**
3610
3424
  * This file was auto-generated by Fern from our API Definition.
3611
3425
  */
@@ -3663,7 +3477,6 @@ interface ProjectDetailed {
3663
3477
  traceCount?: number;
3664
3478
  guardrailsFailedCount?: number;
3665
3479
  errorCount?: ErrorCountWithDeviationDetailed;
3666
- configuration?: ConfigurationDetailed;
3667
3480
  }
3668
3481
 
3669
3482
  /**
@@ -4337,6 +4150,14 @@ interface WorkspaceMetricResponse {
4337
4150
  results?: Result[];
4338
4151
  }
4339
4152
 
4153
+ /**
4154
+ * This file was auto-generated by Fern from our API Definition.
4155
+ */
4156
+ interface WorkspaceConfiguration {
4157
+ /** Duration in ISO-8601 format (e.g., PT30M for 30 minutes, PT2H for 2 hours, P1D for 1 day). Minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days. */
4158
+ timeoutToMarkThreadAsInactive?: string;
4159
+ }
4160
+
4340
4161
  /**
4341
4162
  * This file was auto-generated by Fern from our API Definition.
4342
4163
  */
@@ -5948,22 +5769,6 @@ declare class Projects {
5948
5769
  */
5949
5770
  retrieveProject(request: ProjectRetrieveDetailed, requestOptions?: Projects.RequestOptions): HttpResponsePromise<ProjectDetailed>;
5950
5771
  private __retrieveProject;
5951
- /**
5952
- * Upsert project configurations
5953
- *
5954
- * @param {string} id
5955
- * @param {OpikApi.Configuration} request
5956
- * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
5957
- *
5958
- * @throws {@link OpikApi.BadRequestError}
5959
- * @throws {@link OpikApi.NotFoundError}
5960
- * @throws {@link OpikApi.UnprocessableEntityError}
5961
- *
5962
- * @example
5963
- * await client.projects.upsertProjectConfigurations("id", {})
5964
- */
5965
- upsertProjectConfigurations(id: string, request: Configuration, requestOptions?: Projects.RequestOptions): HttpResponsePromise<void>;
5966
- private __upsertProjectConfigurations;
5967
5772
  protected _getCustomAuthorizationHeaders(): Promise<{
5968
5773
  Authorization: string | undefined;
5969
5774
  }>;
@@ -6964,6 +6769,44 @@ declare class Workspaces {
6964
6769
  */
6965
6770
  costsSummary(request: WorkspaceMetricsSummaryRequest, requestOptions?: Workspaces.RequestOptions): HttpResponsePromise<Result>;
6966
6771
  private __costsSummary;
6772
+ /**
6773
+ * Get workspace configuration
6774
+ *
6775
+ * @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
6776
+ *
6777
+ * @throws {@link OpikApi.NotFoundError}
6778
+ *
6779
+ * @example
6780
+ * await client.workspaces.getWorkspaceConfiguration()
6781
+ */
6782
+ getWorkspaceConfiguration(requestOptions?: Workspaces.RequestOptions): HttpResponsePromise<WorkspaceConfiguration>;
6783
+ private __getWorkspaceConfiguration;
6784
+ /**
6785
+ * Upsert workspace configuration
6786
+ *
6787
+ * @param {OpikApi.WorkspaceConfiguration} request
6788
+ * @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
6789
+ *
6790
+ * @throws {@link OpikApi.BadRequestError}
6791
+ * @throws {@link OpikApi.UnprocessableEntityError}
6792
+ *
6793
+ * @example
6794
+ * await client.workspaces.upsertWorkspaceConfiguration({})
6795
+ */
6796
+ upsertWorkspaceConfiguration(request: WorkspaceConfiguration, requestOptions?: Workspaces.RequestOptions): HttpResponsePromise<WorkspaceConfiguration>;
6797
+ private __upsertWorkspaceConfiguration;
6798
+ /**
6799
+ * Delete workspace configuration
6800
+ *
6801
+ * @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
6802
+ *
6803
+ * @throws {@link OpikApi.NotFoundError}
6804
+ *
6805
+ * @example
6806
+ * await client.workspaces.deleteWorkspaceConfiguration()
6807
+ */
6808
+ deleteWorkspaceConfiguration(requestOptions?: Workspaces.RequestOptions): HttpResponsePromise<void>;
6809
+ private __deleteWorkspaceConfiguration;
6967
6810
  /**
6968
6811
  * Get cost daily data
6969
6812
  *