opik 1.8.62 → 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.
- package/dist/{Client-C4lSOKUJ.d.cts → Client-B4LKbWwh.d.cts} +157 -44
- package/dist/{Client-C4lSOKUJ.d.ts → Client-B4LKbWwh.d.ts} +157 -44
- package/dist/chunk-7I3BK42W.js +9 -0
- package/dist/index.cjs +7 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/vercel/index.cjs +7 -7
- package/dist/vercel/index.d.cts +1 -1
- package/dist/vercel/index.d.ts +1 -1
- package/dist/vercel/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-EDSXLHP7.js +0 -9
|
@@ -1067,23 +1067,15 @@ interface SpanSearchStreamRequestPublic {
|
|
|
1067
1067
|
/**
|
|
1068
1068
|
* This file was auto-generated by Fern from our API Definition.
|
|
1069
1069
|
*/
|
|
1070
|
-
|
|
1071
1070
|
/**
|
|
1072
1071
|
* @example
|
|
1073
|
-
* {
|
|
1074
|
-
* name: "name",
|
|
1075
|
-
* webhook: {
|
|
1076
|
-
* url: "url",
|
|
1077
|
-
* secretToken: "secret_token"
|
|
1078
|
-
* }
|
|
1079
|
-
* }
|
|
1072
|
+
* {}
|
|
1080
1073
|
*/
|
|
1081
|
-
interface
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
triggers?: AlertTriggerWrite[];
|
|
1074
|
+
interface FindAlertsRequest {
|
|
1075
|
+
page?: number;
|
|
1076
|
+
size?: number;
|
|
1077
|
+
sorting?: string;
|
|
1078
|
+
filters?: string;
|
|
1087
1079
|
}
|
|
1088
1080
|
|
|
1089
1081
|
/**
|
|
@@ -1629,6 +1621,18 @@ interface AlertTriggerWrite {
|
|
|
1629
1621
|
triggerConfigs?: AlertTriggerConfigWrite[];
|
|
1630
1622
|
}
|
|
1631
1623
|
|
|
1624
|
+
/**
|
|
1625
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1626
|
+
*/
|
|
1627
|
+
|
|
1628
|
+
interface AlertWrite {
|
|
1629
|
+
id?: string;
|
|
1630
|
+
name: string;
|
|
1631
|
+
enabled?: boolean;
|
|
1632
|
+
webhook: WebhookWrite;
|
|
1633
|
+
triggers?: AlertTriggerWrite[];
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1632
1636
|
/**
|
|
1633
1637
|
* This file was auto-generated by Fern from our API Definition.
|
|
1634
1638
|
*/
|
|
@@ -1647,6 +1651,18 @@ interface BatchDelete {
|
|
|
1647
1651
|
ids: string[];
|
|
1648
1652
|
}
|
|
1649
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
|
+
|
|
1650
1666
|
/**
|
|
1651
1667
|
* This file was auto-generated by Fern from our API Definition.
|
|
1652
1668
|
*/
|
|
@@ -1968,6 +1984,36 @@ interface LlmAsJudgeOutputSchema {
|
|
|
1968
1984
|
description: string;
|
|
1969
1985
|
}
|
|
1970
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
|
+
|
|
1971
2017
|
/**
|
|
1972
2018
|
* This file was auto-generated by Fern from our API Definition.
|
|
1973
2019
|
*/
|
|
@@ -2048,6 +2094,7 @@ declare namespace AutomationRuleEvaluatorWrite {
|
|
|
2048
2094
|
name: string;
|
|
2049
2095
|
samplingRate?: number;
|
|
2050
2096
|
enabled?: boolean;
|
|
2097
|
+
filters?: TraceFilterWrite[];
|
|
2051
2098
|
action: "evaluator";
|
|
2052
2099
|
}
|
|
2053
2100
|
}
|
|
@@ -2113,6 +2160,36 @@ interface LlmAsJudgeOutputSchemaWrite {
|
|
|
2113
2160
|
description: string;
|
|
2114
2161
|
}
|
|
2115
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
|
+
|
|
2116
2193
|
/**
|
|
2117
2194
|
* This file was auto-generated by Fern from our API Definition.
|
|
2118
2195
|
*/
|
|
@@ -2171,6 +2248,7 @@ declare namespace AutomationRuleEvaluatorObjectPublic {
|
|
|
2171
2248
|
name: string;
|
|
2172
2249
|
samplingRate?: number;
|
|
2173
2250
|
enabled?: boolean;
|
|
2251
|
+
filters?: TraceFilterPublic[];
|
|
2174
2252
|
createdAt?: Date;
|
|
2175
2253
|
createdBy?: string;
|
|
2176
2254
|
lastUpdatedAt?: Date;
|
|
@@ -2275,6 +2353,36 @@ interface LlmAsJudgeOutputSchemaPublic {
|
|
|
2275
2353
|
description: string;
|
|
2276
2354
|
}
|
|
2277
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
|
+
|
|
2278
2386
|
/**
|
|
2279
2387
|
* This file was auto-generated by Fern from our API Definition.
|
|
2280
2388
|
*/
|
|
@@ -2325,6 +2433,7 @@ declare namespace AutomationRuleEvaluatorPublic {
|
|
|
2325
2433
|
name: string;
|
|
2326
2434
|
samplingRate?: number;
|
|
2327
2435
|
enabled?: boolean;
|
|
2436
|
+
filters?: TraceFilterPublic[];
|
|
2328
2437
|
createdAt?: Date;
|
|
2329
2438
|
createdBy?: string;
|
|
2330
2439
|
lastUpdatedAt?: Date;
|
|
@@ -2390,6 +2499,7 @@ declare namespace AutomationRuleEvaluatorUpdate {
|
|
|
2390
2499
|
name: string;
|
|
2391
2500
|
samplingRate?: number;
|
|
2392
2501
|
enabled?: boolean;
|
|
2502
|
+
filters?: TraceFilter[];
|
|
2393
2503
|
projectId: string;
|
|
2394
2504
|
action: "evaluator";
|
|
2395
2505
|
}
|
|
@@ -4001,36 +4111,6 @@ interface ResultsNumberPublic {
|
|
|
4001
4111
|
data?: DataPointNumberPublic[];
|
|
4002
4112
|
}
|
|
4003
4113
|
|
|
4004
|
-
/**
|
|
4005
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4006
|
-
*/
|
|
4007
|
-
type TraceFilterPublicOperator = "contains" | "not_contains" | "starts_with" | "ends_with" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "is_empty" | "is_not_empty";
|
|
4008
|
-
declare const TraceFilterPublicOperator: {
|
|
4009
|
-
readonly Contains: "contains";
|
|
4010
|
-
readonly NotContains: "not_contains";
|
|
4011
|
-
readonly StartsWith: "starts_with";
|
|
4012
|
-
readonly EndsWith: "ends_with";
|
|
4013
|
-
readonly EqualTo: "=";
|
|
4014
|
-
readonly NotEquals: "!=";
|
|
4015
|
-
readonly GreaterThan: ">";
|
|
4016
|
-
readonly GreaterThanOrEqualTo: ">=";
|
|
4017
|
-
readonly LessThan: "<";
|
|
4018
|
-
readonly LessThanOrEqualTo: "<=";
|
|
4019
|
-
readonly IsEmpty: "is_empty";
|
|
4020
|
-
readonly IsNotEmpty: "is_not_empty";
|
|
4021
|
-
};
|
|
4022
|
-
|
|
4023
|
-
/**
|
|
4024
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4025
|
-
*/
|
|
4026
|
-
|
|
4027
|
-
interface TraceFilterPublic {
|
|
4028
|
-
field?: string;
|
|
4029
|
-
operator?: TraceFilterPublicOperator;
|
|
4030
|
-
key?: string;
|
|
4031
|
-
value?: string;
|
|
4032
|
-
}
|
|
4033
|
-
|
|
4034
4114
|
/**
|
|
4035
4115
|
* This file was auto-generated by Fern from our API Definition.
|
|
4036
4116
|
*/
|
|
@@ -5043,6 +5123,17 @@ declare namespace Alerts {
|
|
|
5043
5123
|
declare class Alerts {
|
|
5044
5124
|
protected readonly _options: Alerts.Options;
|
|
5045
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;
|
|
5046
5137
|
/**
|
|
5047
5138
|
* Create alert
|
|
5048
5139
|
*
|
|
@@ -5092,6 +5183,28 @@ declare class Alerts {
|
|
|
5092
5183
|
*/
|
|
5093
5184
|
getAlertById(id: string, requestOptions?: Alerts.RequestOptions): HttpResponsePromise<AlertPublic>;
|
|
5094
5185
|
private __getAlertById;
|
|
5186
|
+
/**
|
|
5187
|
+
* Update alert
|
|
5188
|
+
*
|
|
5189
|
+
* @param {string} id
|
|
5190
|
+
* @param {OpikApi.AlertWrite} request
|
|
5191
|
+
* @param {Alerts.RequestOptions} requestOptions - Request-specific configuration.
|
|
5192
|
+
*
|
|
5193
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
5194
|
+
* @throws {@link OpikApi.ConflictError}
|
|
5195
|
+
* @throws {@link OpikApi.UnprocessableEntityError}
|
|
5196
|
+
*
|
|
5197
|
+
* @example
|
|
5198
|
+
* await client.alerts.updateAlert("id", {
|
|
5199
|
+
* name: "name",
|
|
5200
|
+
* webhook: {
|
|
5201
|
+
* url: "url",
|
|
5202
|
+
* secretToken: "secret_token"
|
|
5203
|
+
* }
|
|
5204
|
+
* })
|
|
5205
|
+
*/
|
|
5206
|
+
updateAlert(id: string, request: AlertWrite, requestOptions?: Alerts.RequestOptions): HttpResponsePromise<void>;
|
|
5207
|
+
private __updateAlert;
|
|
5095
5208
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
5096
5209
|
Authorization: string | undefined;
|
|
5097
5210
|
}>;
|
|
@@ -1067,23 +1067,15 @@ interface SpanSearchStreamRequestPublic {
|
|
|
1067
1067
|
/**
|
|
1068
1068
|
* This file was auto-generated by Fern from our API Definition.
|
|
1069
1069
|
*/
|
|
1070
|
-
|
|
1071
1070
|
/**
|
|
1072
1071
|
* @example
|
|
1073
|
-
* {
|
|
1074
|
-
* name: "name",
|
|
1075
|
-
* webhook: {
|
|
1076
|
-
* url: "url",
|
|
1077
|
-
* secretToken: "secret_token"
|
|
1078
|
-
* }
|
|
1079
|
-
* }
|
|
1072
|
+
* {}
|
|
1080
1073
|
*/
|
|
1081
|
-
interface
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
triggers?: AlertTriggerWrite[];
|
|
1074
|
+
interface FindAlertsRequest {
|
|
1075
|
+
page?: number;
|
|
1076
|
+
size?: number;
|
|
1077
|
+
sorting?: string;
|
|
1078
|
+
filters?: string;
|
|
1087
1079
|
}
|
|
1088
1080
|
|
|
1089
1081
|
/**
|
|
@@ -1629,6 +1621,18 @@ interface AlertTriggerWrite {
|
|
|
1629
1621
|
triggerConfigs?: AlertTriggerConfigWrite[];
|
|
1630
1622
|
}
|
|
1631
1623
|
|
|
1624
|
+
/**
|
|
1625
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1626
|
+
*/
|
|
1627
|
+
|
|
1628
|
+
interface AlertWrite {
|
|
1629
|
+
id?: string;
|
|
1630
|
+
name: string;
|
|
1631
|
+
enabled?: boolean;
|
|
1632
|
+
webhook: WebhookWrite;
|
|
1633
|
+
triggers?: AlertTriggerWrite[];
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1632
1636
|
/**
|
|
1633
1637
|
* This file was auto-generated by Fern from our API Definition.
|
|
1634
1638
|
*/
|
|
@@ -1647,6 +1651,18 @@ interface BatchDelete {
|
|
|
1647
1651
|
ids: string[];
|
|
1648
1652
|
}
|
|
1649
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
|
+
|
|
1650
1666
|
/**
|
|
1651
1667
|
* This file was auto-generated by Fern from our API Definition.
|
|
1652
1668
|
*/
|
|
@@ -1968,6 +1984,36 @@ interface LlmAsJudgeOutputSchema {
|
|
|
1968
1984
|
description: string;
|
|
1969
1985
|
}
|
|
1970
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
|
+
|
|
1971
2017
|
/**
|
|
1972
2018
|
* This file was auto-generated by Fern from our API Definition.
|
|
1973
2019
|
*/
|
|
@@ -2048,6 +2094,7 @@ declare namespace AutomationRuleEvaluatorWrite {
|
|
|
2048
2094
|
name: string;
|
|
2049
2095
|
samplingRate?: number;
|
|
2050
2096
|
enabled?: boolean;
|
|
2097
|
+
filters?: TraceFilterWrite[];
|
|
2051
2098
|
action: "evaluator";
|
|
2052
2099
|
}
|
|
2053
2100
|
}
|
|
@@ -2113,6 +2160,36 @@ interface LlmAsJudgeOutputSchemaWrite {
|
|
|
2113
2160
|
description: string;
|
|
2114
2161
|
}
|
|
2115
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
|
+
|
|
2116
2193
|
/**
|
|
2117
2194
|
* This file was auto-generated by Fern from our API Definition.
|
|
2118
2195
|
*/
|
|
@@ -2171,6 +2248,7 @@ declare namespace AutomationRuleEvaluatorObjectPublic {
|
|
|
2171
2248
|
name: string;
|
|
2172
2249
|
samplingRate?: number;
|
|
2173
2250
|
enabled?: boolean;
|
|
2251
|
+
filters?: TraceFilterPublic[];
|
|
2174
2252
|
createdAt?: Date;
|
|
2175
2253
|
createdBy?: string;
|
|
2176
2254
|
lastUpdatedAt?: Date;
|
|
@@ -2275,6 +2353,36 @@ interface LlmAsJudgeOutputSchemaPublic {
|
|
|
2275
2353
|
description: string;
|
|
2276
2354
|
}
|
|
2277
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
|
+
|
|
2278
2386
|
/**
|
|
2279
2387
|
* This file was auto-generated by Fern from our API Definition.
|
|
2280
2388
|
*/
|
|
@@ -2325,6 +2433,7 @@ declare namespace AutomationRuleEvaluatorPublic {
|
|
|
2325
2433
|
name: string;
|
|
2326
2434
|
samplingRate?: number;
|
|
2327
2435
|
enabled?: boolean;
|
|
2436
|
+
filters?: TraceFilterPublic[];
|
|
2328
2437
|
createdAt?: Date;
|
|
2329
2438
|
createdBy?: string;
|
|
2330
2439
|
lastUpdatedAt?: Date;
|
|
@@ -2390,6 +2499,7 @@ declare namespace AutomationRuleEvaluatorUpdate {
|
|
|
2390
2499
|
name: string;
|
|
2391
2500
|
samplingRate?: number;
|
|
2392
2501
|
enabled?: boolean;
|
|
2502
|
+
filters?: TraceFilter[];
|
|
2393
2503
|
projectId: string;
|
|
2394
2504
|
action: "evaluator";
|
|
2395
2505
|
}
|
|
@@ -4001,36 +4111,6 @@ interface ResultsNumberPublic {
|
|
|
4001
4111
|
data?: DataPointNumberPublic[];
|
|
4002
4112
|
}
|
|
4003
4113
|
|
|
4004
|
-
/**
|
|
4005
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4006
|
-
*/
|
|
4007
|
-
type TraceFilterPublicOperator = "contains" | "not_contains" | "starts_with" | "ends_with" | "=" | "!=" | ">" | ">=" | "<" | "<=" | "is_empty" | "is_not_empty";
|
|
4008
|
-
declare const TraceFilterPublicOperator: {
|
|
4009
|
-
readonly Contains: "contains";
|
|
4010
|
-
readonly NotContains: "not_contains";
|
|
4011
|
-
readonly StartsWith: "starts_with";
|
|
4012
|
-
readonly EndsWith: "ends_with";
|
|
4013
|
-
readonly EqualTo: "=";
|
|
4014
|
-
readonly NotEquals: "!=";
|
|
4015
|
-
readonly GreaterThan: ">";
|
|
4016
|
-
readonly GreaterThanOrEqualTo: ">=";
|
|
4017
|
-
readonly LessThan: "<";
|
|
4018
|
-
readonly LessThanOrEqualTo: "<=";
|
|
4019
|
-
readonly IsEmpty: "is_empty";
|
|
4020
|
-
readonly IsNotEmpty: "is_not_empty";
|
|
4021
|
-
};
|
|
4022
|
-
|
|
4023
|
-
/**
|
|
4024
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4025
|
-
*/
|
|
4026
|
-
|
|
4027
|
-
interface TraceFilterPublic {
|
|
4028
|
-
field?: string;
|
|
4029
|
-
operator?: TraceFilterPublicOperator;
|
|
4030
|
-
key?: string;
|
|
4031
|
-
value?: string;
|
|
4032
|
-
}
|
|
4033
|
-
|
|
4034
4114
|
/**
|
|
4035
4115
|
* This file was auto-generated by Fern from our API Definition.
|
|
4036
4116
|
*/
|
|
@@ -5043,6 +5123,17 @@ declare namespace Alerts {
|
|
|
5043
5123
|
declare class Alerts {
|
|
5044
5124
|
protected readonly _options: Alerts.Options;
|
|
5045
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;
|
|
5046
5137
|
/**
|
|
5047
5138
|
* Create alert
|
|
5048
5139
|
*
|
|
@@ -5092,6 +5183,28 @@ declare class Alerts {
|
|
|
5092
5183
|
*/
|
|
5093
5184
|
getAlertById(id: string, requestOptions?: Alerts.RequestOptions): HttpResponsePromise<AlertPublic>;
|
|
5094
5185
|
private __getAlertById;
|
|
5186
|
+
/**
|
|
5187
|
+
* Update alert
|
|
5188
|
+
*
|
|
5189
|
+
* @param {string} id
|
|
5190
|
+
* @param {OpikApi.AlertWrite} request
|
|
5191
|
+
* @param {Alerts.RequestOptions} requestOptions - Request-specific configuration.
|
|
5192
|
+
*
|
|
5193
|
+
* @throws {@link OpikApi.BadRequestError}
|
|
5194
|
+
* @throws {@link OpikApi.ConflictError}
|
|
5195
|
+
* @throws {@link OpikApi.UnprocessableEntityError}
|
|
5196
|
+
*
|
|
5197
|
+
* @example
|
|
5198
|
+
* await client.alerts.updateAlert("id", {
|
|
5199
|
+
* name: "name",
|
|
5200
|
+
* webhook: {
|
|
5201
|
+
* url: "url",
|
|
5202
|
+
* secretToken: "secret_token"
|
|
5203
|
+
* }
|
|
5204
|
+
* })
|
|
5205
|
+
*/
|
|
5206
|
+
updateAlert(id: string, request: AlertWrite, requestOptions?: Alerts.RequestOptions): HttpResponsePromise<void>;
|
|
5207
|
+
private __updateAlert;
|
|
5095
5208
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
5096
5209
|
Authorization: string | undefined;
|
|
5097
5210
|
}>;
|