opik 1.8.63 → 1.8.64

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.
@@ -1064,6 +1064,20 @@ interface SpanSearchStreamRequestPublic {
1064
1064
  truncate?: boolean;
1065
1065
  }
1066
1066
 
1067
+ /**
1068
+ * This file was auto-generated by Fern from our API Definition.
1069
+ */
1070
+ /**
1071
+ * @example
1072
+ * {}
1073
+ */
1074
+ interface FindAlertsRequest {
1075
+ page?: number;
1076
+ size?: number;
1077
+ sorting?: string;
1078
+ filters?: string;
1079
+ }
1080
+
1067
1081
  /**
1068
1082
  * This file was auto-generated by Fern from our API Definition.
1069
1083
  */
@@ -1637,6 +1651,18 @@ interface BatchDelete {
1637
1651
  ids: string[];
1638
1652
  }
1639
1653
 
1654
+ /**
1655
+ * This file was auto-generated by Fern from our API Definition.
1656
+ */
1657
+
1658
+ interface AlertPagePublic {
1659
+ page?: number;
1660
+ size?: number;
1661
+ total?: number;
1662
+ content?: AlertPublic[];
1663
+ sortableBy?: string[];
1664
+ }
1665
+
1640
1666
  /**
1641
1667
  * This file was auto-generated by Fern from our API Definition.
1642
1668
  */
@@ -1958,6 +1984,36 @@ interface LlmAsJudgeOutputSchema {
1958
1984
  description: string;
1959
1985
  }
1960
1986
 
1987
+ /**
1988
+ * This file was auto-generated by Fern from our API Definition.
1989
+ */
1990
+ type TraceFilterOperator = "contains" | "not_contains" | "starts_with" | "ends_with" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "is_empty" | "is_not_empty";
1991
+ declare const TraceFilterOperator: {
1992
+ readonly Contains: "contains";
1993
+ readonly NotContains: "not_contains";
1994
+ readonly StartsWith: "starts_with";
1995
+ readonly EndsWith: "ends_with";
1996
+ readonly EqualTo: "=";
1997
+ readonly NotEquals: "!=";
1998
+ readonly GreaterThan: ">";
1999
+ readonly GreaterThanOrEqualTo: ">=";
2000
+ readonly LessThan: "<";
2001
+ readonly LessThanOrEqualTo: "<=";
2002
+ readonly IsEmpty: "is_empty";
2003
+ readonly IsNotEmpty: "is_not_empty";
2004
+ };
2005
+
2006
+ /**
2007
+ * This file was auto-generated by Fern from our API Definition.
2008
+ */
2009
+
2010
+ interface TraceFilter {
2011
+ field?: string;
2012
+ operator?: TraceFilterOperator;
2013
+ key?: string;
2014
+ value?: string;
2015
+ }
2016
+
1961
2017
  /**
1962
2018
  * This file was auto-generated by Fern from our API Definition.
1963
2019
  */
@@ -2038,6 +2094,7 @@ declare namespace AutomationRuleEvaluatorWrite {
2038
2094
  name: string;
2039
2095
  samplingRate?: number;
2040
2096
  enabled?: boolean;
2097
+ filters?: TraceFilterWrite[];
2041
2098
  action: "evaluator";
2042
2099
  }
2043
2100
  }
@@ -2103,6 +2160,36 @@ interface LlmAsJudgeOutputSchemaWrite {
2103
2160
  description: string;
2104
2161
  }
2105
2162
 
2163
+ /**
2164
+ * This file was auto-generated by Fern from our API Definition.
2165
+ */
2166
+ type TraceFilterWriteOperator = "contains" | "not_contains" | "starts_with" | "ends_with" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "is_empty" | "is_not_empty";
2167
+ declare const TraceFilterWriteOperator: {
2168
+ readonly Contains: "contains";
2169
+ readonly NotContains: "not_contains";
2170
+ readonly StartsWith: "starts_with";
2171
+ readonly EndsWith: "ends_with";
2172
+ readonly EqualTo: "=";
2173
+ readonly NotEquals: "!=";
2174
+ readonly GreaterThan: ">";
2175
+ readonly GreaterThanOrEqualTo: ">=";
2176
+ readonly LessThan: "<";
2177
+ readonly LessThanOrEqualTo: "<=";
2178
+ readonly IsEmpty: "is_empty";
2179
+ readonly IsNotEmpty: "is_not_empty";
2180
+ };
2181
+
2182
+ /**
2183
+ * This file was auto-generated by Fern from our API Definition.
2184
+ */
2185
+
2186
+ interface TraceFilterWrite {
2187
+ field?: string;
2188
+ operator?: TraceFilterWriteOperator;
2189
+ key?: string;
2190
+ value?: string;
2191
+ }
2192
+
2106
2193
  /**
2107
2194
  * This file was auto-generated by Fern from our API Definition.
2108
2195
  */
@@ -2161,6 +2248,7 @@ declare namespace AutomationRuleEvaluatorObjectPublic {
2161
2248
  name: string;
2162
2249
  samplingRate?: number;
2163
2250
  enabled?: boolean;
2251
+ filters?: TraceFilterPublic[];
2164
2252
  createdAt?: Date;
2165
2253
  createdBy?: string;
2166
2254
  lastUpdatedAt?: Date;
@@ -2265,6 +2353,36 @@ interface LlmAsJudgeOutputSchemaPublic {
2265
2353
  description: string;
2266
2354
  }
2267
2355
 
2356
+ /**
2357
+ * This file was auto-generated by Fern from our API Definition.
2358
+ */
2359
+ type TraceFilterPublicOperator = "contains" | "not_contains" | "starts_with" | "ends_with" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "is_empty" | "is_not_empty";
2360
+ declare const TraceFilterPublicOperator: {
2361
+ readonly Contains: "contains";
2362
+ readonly NotContains: "not_contains";
2363
+ readonly StartsWith: "starts_with";
2364
+ readonly EndsWith: "ends_with";
2365
+ readonly EqualTo: "=";
2366
+ readonly NotEquals: "!=";
2367
+ readonly GreaterThan: ">";
2368
+ readonly GreaterThanOrEqualTo: ">=";
2369
+ readonly LessThan: "<";
2370
+ readonly LessThanOrEqualTo: "<=";
2371
+ readonly IsEmpty: "is_empty";
2372
+ readonly IsNotEmpty: "is_not_empty";
2373
+ };
2374
+
2375
+ /**
2376
+ * This file was auto-generated by Fern from our API Definition.
2377
+ */
2378
+
2379
+ interface TraceFilterPublic {
2380
+ field?: string;
2381
+ operator?: TraceFilterPublicOperator;
2382
+ key?: string;
2383
+ value?: string;
2384
+ }
2385
+
2268
2386
  /**
2269
2387
  * This file was auto-generated by Fern from our API Definition.
2270
2388
  */
@@ -2315,6 +2433,7 @@ declare namespace AutomationRuleEvaluatorPublic {
2315
2433
  name: string;
2316
2434
  samplingRate?: number;
2317
2435
  enabled?: boolean;
2436
+ filters?: TraceFilterPublic[];
2318
2437
  createdAt?: Date;
2319
2438
  createdBy?: string;
2320
2439
  lastUpdatedAt?: Date;
@@ -2380,6 +2499,7 @@ declare namespace AutomationRuleEvaluatorUpdate {
2380
2499
  name: string;
2381
2500
  samplingRate?: number;
2382
2501
  enabled?: boolean;
2502
+ filters?: TraceFilter[];
2383
2503
  projectId: string;
2384
2504
  action: "evaluator";
2385
2505
  }
@@ -3991,36 +4111,6 @@ interface ResultsNumberPublic {
3991
4111
  data?: DataPointNumberPublic[];
3992
4112
  }
3993
4113
 
3994
- /**
3995
- * This file was auto-generated by Fern from our API Definition.
3996
- */
3997
- type TraceFilterPublicOperator = "contains" | "not_contains" | "starts_with" | "ends_with" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "is_empty" | "is_not_empty";
3998
- declare const TraceFilterPublicOperator: {
3999
- readonly Contains: "contains";
4000
- readonly NotContains: "not_contains";
4001
- readonly StartsWith: "starts_with";
4002
- readonly EndsWith: "ends_with";
4003
- readonly EqualTo: "=";
4004
- readonly NotEquals: "!=";
4005
- readonly GreaterThan: ">";
4006
- readonly GreaterThanOrEqualTo: ">=";
4007
- readonly LessThan: "<";
4008
- readonly LessThanOrEqualTo: "<=";
4009
- readonly IsEmpty: "is_empty";
4010
- readonly IsNotEmpty: "is_not_empty";
4011
- };
4012
-
4013
- /**
4014
- * This file was auto-generated by Fern from our API Definition.
4015
- */
4016
-
4017
- interface TraceFilterPublic {
4018
- field?: string;
4019
- operator?: TraceFilterPublicOperator;
4020
- key?: string;
4021
- value?: string;
4022
- }
4023
-
4024
4114
  /**
4025
4115
  * This file was auto-generated by Fern from our API Definition.
4026
4116
  */
@@ -5033,6 +5123,17 @@ declare namespace Alerts {
5033
5123
  declare class Alerts {
5034
5124
  protected readonly _options: Alerts.Options;
5035
5125
  constructor(_options?: Alerts.Options);
5126
+ /**
5127
+ * Find alerts
5128
+ *
5129
+ * @param {OpikApi.FindAlertsRequest} request
5130
+ * @param {Alerts.RequestOptions} requestOptions - Request-specific configuration.
5131
+ *
5132
+ * @example
5133
+ * await client.alerts.findAlerts()
5134
+ */
5135
+ findAlerts(request?: FindAlertsRequest, requestOptions?: Alerts.RequestOptions): HttpResponsePromise<AlertPagePublic>;
5136
+ private __findAlerts;
5036
5137
  /**
5037
5138
  * Create alert
5038
5139
  *
@@ -1064,6 +1064,20 @@ interface SpanSearchStreamRequestPublic {
1064
1064
  truncate?: boolean;
1065
1065
  }
1066
1066
 
1067
+ /**
1068
+ * This file was auto-generated by Fern from our API Definition.
1069
+ */
1070
+ /**
1071
+ * @example
1072
+ * {}
1073
+ */
1074
+ interface FindAlertsRequest {
1075
+ page?: number;
1076
+ size?: number;
1077
+ sorting?: string;
1078
+ filters?: string;
1079
+ }
1080
+
1067
1081
  /**
1068
1082
  * This file was auto-generated by Fern from our API Definition.
1069
1083
  */
@@ -1637,6 +1651,18 @@ interface BatchDelete {
1637
1651
  ids: string[];
1638
1652
  }
1639
1653
 
1654
+ /**
1655
+ * This file was auto-generated by Fern from our API Definition.
1656
+ */
1657
+
1658
+ interface AlertPagePublic {
1659
+ page?: number;
1660
+ size?: number;
1661
+ total?: number;
1662
+ content?: AlertPublic[];
1663
+ sortableBy?: string[];
1664
+ }
1665
+
1640
1666
  /**
1641
1667
  * This file was auto-generated by Fern from our API Definition.
1642
1668
  */
@@ -1958,6 +1984,36 @@ interface LlmAsJudgeOutputSchema {
1958
1984
  description: string;
1959
1985
  }
1960
1986
 
1987
+ /**
1988
+ * This file was auto-generated by Fern from our API Definition.
1989
+ */
1990
+ type TraceFilterOperator = "contains" | "not_contains" | "starts_with" | "ends_with" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "is_empty" | "is_not_empty";
1991
+ declare const TraceFilterOperator: {
1992
+ readonly Contains: "contains";
1993
+ readonly NotContains: "not_contains";
1994
+ readonly StartsWith: "starts_with";
1995
+ readonly EndsWith: "ends_with";
1996
+ readonly EqualTo: "=";
1997
+ readonly NotEquals: "!=";
1998
+ readonly GreaterThan: ">";
1999
+ readonly GreaterThanOrEqualTo: ">=";
2000
+ readonly LessThan: "<";
2001
+ readonly LessThanOrEqualTo: "<=";
2002
+ readonly IsEmpty: "is_empty";
2003
+ readonly IsNotEmpty: "is_not_empty";
2004
+ };
2005
+
2006
+ /**
2007
+ * This file was auto-generated by Fern from our API Definition.
2008
+ */
2009
+
2010
+ interface TraceFilter {
2011
+ field?: string;
2012
+ operator?: TraceFilterOperator;
2013
+ key?: string;
2014
+ value?: string;
2015
+ }
2016
+
1961
2017
  /**
1962
2018
  * This file was auto-generated by Fern from our API Definition.
1963
2019
  */
@@ -2038,6 +2094,7 @@ declare namespace AutomationRuleEvaluatorWrite {
2038
2094
  name: string;
2039
2095
  samplingRate?: number;
2040
2096
  enabled?: boolean;
2097
+ filters?: TraceFilterWrite[];
2041
2098
  action: "evaluator";
2042
2099
  }
2043
2100
  }
@@ -2103,6 +2160,36 @@ interface LlmAsJudgeOutputSchemaWrite {
2103
2160
  description: string;
2104
2161
  }
2105
2162
 
2163
+ /**
2164
+ * This file was auto-generated by Fern from our API Definition.
2165
+ */
2166
+ type TraceFilterWriteOperator = "contains" | "not_contains" | "starts_with" | "ends_with" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "is_empty" | "is_not_empty";
2167
+ declare const TraceFilterWriteOperator: {
2168
+ readonly Contains: "contains";
2169
+ readonly NotContains: "not_contains";
2170
+ readonly StartsWith: "starts_with";
2171
+ readonly EndsWith: "ends_with";
2172
+ readonly EqualTo: "=";
2173
+ readonly NotEquals: "!=";
2174
+ readonly GreaterThan: ">";
2175
+ readonly GreaterThanOrEqualTo: ">=";
2176
+ readonly LessThan: "<";
2177
+ readonly LessThanOrEqualTo: "<=";
2178
+ readonly IsEmpty: "is_empty";
2179
+ readonly IsNotEmpty: "is_not_empty";
2180
+ };
2181
+
2182
+ /**
2183
+ * This file was auto-generated by Fern from our API Definition.
2184
+ */
2185
+
2186
+ interface TraceFilterWrite {
2187
+ field?: string;
2188
+ operator?: TraceFilterWriteOperator;
2189
+ key?: string;
2190
+ value?: string;
2191
+ }
2192
+
2106
2193
  /**
2107
2194
  * This file was auto-generated by Fern from our API Definition.
2108
2195
  */
@@ -2161,6 +2248,7 @@ declare namespace AutomationRuleEvaluatorObjectPublic {
2161
2248
  name: string;
2162
2249
  samplingRate?: number;
2163
2250
  enabled?: boolean;
2251
+ filters?: TraceFilterPublic[];
2164
2252
  createdAt?: Date;
2165
2253
  createdBy?: string;
2166
2254
  lastUpdatedAt?: Date;
@@ -2265,6 +2353,36 @@ interface LlmAsJudgeOutputSchemaPublic {
2265
2353
  description: string;
2266
2354
  }
2267
2355
 
2356
+ /**
2357
+ * This file was auto-generated by Fern from our API Definition.
2358
+ */
2359
+ type TraceFilterPublicOperator = "contains" | "not_contains" | "starts_with" | "ends_with" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "is_empty" | "is_not_empty";
2360
+ declare const TraceFilterPublicOperator: {
2361
+ readonly Contains: "contains";
2362
+ readonly NotContains: "not_contains";
2363
+ readonly StartsWith: "starts_with";
2364
+ readonly EndsWith: "ends_with";
2365
+ readonly EqualTo: "=";
2366
+ readonly NotEquals: "!=";
2367
+ readonly GreaterThan: ">";
2368
+ readonly GreaterThanOrEqualTo: ">=";
2369
+ readonly LessThan: "<";
2370
+ readonly LessThanOrEqualTo: "<=";
2371
+ readonly IsEmpty: "is_empty";
2372
+ readonly IsNotEmpty: "is_not_empty";
2373
+ };
2374
+
2375
+ /**
2376
+ * This file was auto-generated by Fern from our API Definition.
2377
+ */
2378
+
2379
+ interface TraceFilterPublic {
2380
+ field?: string;
2381
+ operator?: TraceFilterPublicOperator;
2382
+ key?: string;
2383
+ value?: string;
2384
+ }
2385
+
2268
2386
  /**
2269
2387
  * This file was auto-generated by Fern from our API Definition.
2270
2388
  */
@@ -2315,6 +2433,7 @@ declare namespace AutomationRuleEvaluatorPublic {
2315
2433
  name: string;
2316
2434
  samplingRate?: number;
2317
2435
  enabled?: boolean;
2436
+ filters?: TraceFilterPublic[];
2318
2437
  createdAt?: Date;
2319
2438
  createdBy?: string;
2320
2439
  lastUpdatedAt?: Date;
@@ -2380,6 +2499,7 @@ declare namespace AutomationRuleEvaluatorUpdate {
2380
2499
  name: string;
2381
2500
  samplingRate?: number;
2382
2501
  enabled?: boolean;
2502
+ filters?: TraceFilter[];
2383
2503
  projectId: string;
2384
2504
  action: "evaluator";
2385
2505
  }
@@ -3991,36 +4111,6 @@ interface ResultsNumberPublic {
3991
4111
  data?: DataPointNumberPublic[];
3992
4112
  }
3993
4113
 
3994
- /**
3995
- * This file was auto-generated by Fern from our API Definition.
3996
- */
3997
- type TraceFilterPublicOperator = "contains" | "not_contains" | "starts_with" | "ends_with" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "is_empty" | "is_not_empty";
3998
- declare const TraceFilterPublicOperator: {
3999
- readonly Contains: "contains";
4000
- readonly NotContains: "not_contains";
4001
- readonly StartsWith: "starts_with";
4002
- readonly EndsWith: "ends_with";
4003
- readonly EqualTo: "=";
4004
- readonly NotEquals: "!=";
4005
- readonly GreaterThan: ">";
4006
- readonly GreaterThanOrEqualTo: ">=";
4007
- readonly LessThan: "<";
4008
- readonly LessThanOrEqualTo: "<=";
4009
- readonly IsEmpty: "is_empty";
4010
- readonly IsNotEmpty: "is_not_empty";
4011
- };
4012
-
4013
- /**
4014
- * This file was auto-generated by Fern from our API Definition.
4015
- */
4016
-
4017
- interface TraceFilterPublic {
4018
- field?: string;
4019
- operator?: TraceFilterPublicOperator;
4020
- key?: string;
4021
- value?: string;
4022
- }
4023
-
4024
4114
  /**
4025
4115
  * This file was auto-generated by Fern from our API Definition.
4026
4116
  */
@@ -5033,6 +5123,17 @@ declare namespace Alerts {
5033
5123
  declare class Alerts {
5034
5124
  protected readonly _options: Alerts.Options;
5035
5125
  constructor(_options?: Alerts.Options);
5126
+ /**
5127
+ * Find alerts
5128
+ *
5129
+ * @param {OpikApi.FindAlertsRequest} request
5130
+ * @param {Alerts.RequestOptions} requestOptions - Request-specific configuration.
5131
+ *
5132
+ * @example
5133
+ * await client.alerts.findAlerts()
5134
+ */
5135
+ findAlerts(request?: FindAlertsRequest, requestOptions?: Alerts.RequestOptions): HttpResponsePromise<AlertPagePublic>;
5136
+ private __findAlerts;
5036
5137
  /**
5037
5138
  * Create alert
5038
5139
  *