@fabricorg/experiments-api-client 0.1.7 → 0.1.9
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/index.cjs +45 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +473 -3
- package/dist/index.d.ts +473 -3
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -6,6 +6,8 @@ interface ApiClientOptions {
|
|
|
6
6
|
apiKey?: string;
|
|
7
7
|
/** Upstream OAuth bearer (for example, a Databricks Apps gateway token). */
|
|
8
8
|
bearerToken?: string;
|
|
9
|
+
/** Additional request headers, primarily for server-side session forwarding. */
|
|
10
|
+
headers?: Record<string, string>;
|
|
9
11
|
/** Override fetch (for tests / SSR). Defaults to globalThis.fetch. */
|
|
10
12
|
fetchImpl?: typeof fetch;
|
|
11
13
|
/** Default org id used when an endpoint's path includes :orgId and no override is supplied. */
|
|
@@ -944,6 +946,465 @@ declare class ApiClient {
|
|
|
944
946
|
certificate: string | null;
|
|
945
947
|
}>;
|
|
946
948
|
};
|
|
949
|
+
datasets: {
|
|
950
|
+
list: (orgId?: string) => Promise<{
|
|
951
|
+
datasets: {
|
|
952
|
+
id: string;
|
|
953
|
+
name: string;
|
|
954
|
+
latestVersion: number;
|
|
955
|
+
exampleCount: number;
|
|
956
|
+
createdAtIso: string;
|
|
957
|
+
updatedAtIso: string;
|
|
958
|
+
description?: string | undefined;
|
|
959
|
+
}[];
|
|
960
|
+
}>;
|
|
961
|
+
create: (params: EndpointParams<"datasets.create">, orgId?: string) => Promise<{
|
|
962
|
+
id: string;
|
|
963
|
+
name: string;
|
|
964
|
+
latestVersion: number;
|
|
965
|
+
exampleCount: number;
|
|
966
|
+
createdAtIso: string;
|
|
967
|
+
updatedAtIso: string;
|
|
968
|
+
description?: string | undefined;
|
|
969
|
+
}>;
|
|
970
|
+
get: (datasetId: string, orgId?: string) => Promise<{
|
|
971
|
+
id: string;
|
|
972
|
+
name: string;
|
|
973
|
+
latestVersion: number;
|
|
974
|
+
exampleCount: number;
|
|
975
|
+
createdAtIso: string;
|
|
976
|
+
updatedAtIso: string;
|
|
977
|
+
description?: string | undefined;
|
|
978
|
+
}>;
|
|
979
|
+
addExamples: (datasetId: string, params: EndpointParams<"datasets.addExamples">, orgId?: string) => Promise<{
|
|
980
|
+
added: number;
|
|
981
|
+
}>;
|
|
982
|
+
listExamples: (datasetId: string, params: EndpointParams<"datasets.listExamples">, orgId?: string) => Promise<{
|
|
983
|
+
total: number;
|
|
984
|
+
examples: {
|
|
985
|
+
exampleId: string;
|
|
986
|
+
metadata: Record<string, unknown>;
|
|
987
|
+
split: "validation" | "train" | "test";
|
|
988
|
+
input?: unknown;
|
|
989
|
+
expectedOutput?: unknown;
|
|
990
|
+
}[];
|
|
991
|
+
}>;
|
|
992
|
+
createVersion: (datasetId: string, params: EndpointParams<"datasets.createVersion">, orgId?: string) => Promise<{
|
|
993
|
+
contentHash: string;
|
|
994
|
+
exampleCount: number;
|
|
995
|
+
createdAtIso: string;
|
|
996
|
+
version: number;
|
|
997
|
+
datasetId: string;
|
|
998
|
+
note?: string | undefined;
|
|
999
|
+
}>;
|
|
1000
|
+
listVersions: (datasetId: string, orgId?: string) => Promise<{
|
|
1001
|
+
versions: {
|
|
1002
|
+
contentHash: string;
|
|
1003
|
+
exampleCount: number;
|
|
1004
|
+
createdAtIso: string;
|
|
1005
|
+
version: number;
|
|
1006
|
+
datasetId: string;
|
|
1007
|
+
note?: string | undefined;
|
|
1008
|
+
}[];
|
|
1009
|
+
}>;
|
|
1010
|
+
};
|
|
1011
|
+
evals: {
|
|
1012
|
+
createRun: (params: EndpointParams<"evals.createRun">, orgId?: string) => Promise<{
|
|
1013
|
+
status: "running" | "failed" | "pending" | "succeeded" | "cancelled";
|
|
1014
|
+
runId: string;
|
|
1015
|
+
createdAtIso: string;
|
|
1016
|
+
target: {
|
|
1017
|
+
kind: "dataset";
|
|
1018
|
+
version: number;
|
|
1019
|
+
datasetId: string;
|
|
1020
|
+
} | {
|
|
1021
|
+
experimentId: string;
|
|
1022
|
+
kind: "experiment";
|
|
1023
|
+
metricEventName?: string | undefined;
|
|
1024
|
+
};
|
|
1025
|
+
evaluatorNames: string[];
|
|
1026
|
+
passThreshold: number;
|
|
1027
|
+
scoredExamples: number;
|
|
1028
|
+
totalExamples: number;
|
|
1029
|
+
tokensSpent: number;
|
|
1030
|
+
costUsd: number | null;
|
|
1031
|
+
error?: string | undefined;
|
|
1032
|
+
generation?: {
|
|
1033
|
+
datasetId: string;
|
|
1034
|
+
promptId: string;
|
|
1035
|
+
promptVersion: number;
|
|
1036
|
+
datasetVersion: number;
|
|
1037
|
+
maxExamples: number;
|
|
1038
|
+
} | undefined;
|
|
1039
|
+
startedAtIso?: string | undefined;
|
|
1040
|
+
finishedAtIso?: string | undefined;
|
|
1041
|
+
}>;
|
|
1042
|
+
listRuns: (params: EndpointParams<"evals.listRuns">, orgId?: string) => Promise<{
|
|
1043
|
+
runs: {
|
|
1044
|
+
status: "running" | "failed" | "pending" | "succeeded" | "cancelled";
|
|
1045
|
+
runId: string;
|
|
1046
|
+
createdAtIso: string;
|
|
1047
|
+
target: {
|
|
1048
|
+
kind: "dataset";
|
|
1049
|
+
version: number;
|
|
1050
|
+
datasetId: string;
|
|
1051
|
+
} | {
|
|
1052
|
+
experimentId: string;
|
|
1053
|
+
kind: "experiment";
|
|
1054
|
+
metricEventName?: string | undefined;
|
|
1055
|
+
};
|
|
1056
|
+
evaluatorNames: string[];
|
|
1057
|
+
passThreshold: number;
|
|
1058
|
+
scoredExamples: number;
|
|
1059
|
+
totalExamples: number;
|
|
1060
|
+
tokensSpent: number;
|
|
1061
|
+
costUsd: number | null;
|
|
1062
|
+
error?: string | undefined;
|
|
1063
|
+
generation?: {
|
|
1064
|
+
datasetId: string;
|
|
1065
|
+
promptId: string;
|
|
1066
|
+
promptVersion: number;
|
|
1067
|
+
datasetVersion: number;
|
|
1068
|
+
maxExamples: number;
|
|
1069
|
+
} | undefined;
|
|
1070
|
+
startedAtIso?: string | undefined;
|
|
1071
|
+
finishedAtIso?: string | undefined;
|
|
1072
|
+
}[];
|
|
1073
|
+
}>;
|
|
1074
|
+
getRun: (runId: string, orgId?: string) => Promise<{
|
|
1075
|
+
run: {
|
|
1076
|
+
status: "running" | "failed" | "pending" | "succeeded" | "cancelled";
|
|
1077
|
+
runId: string;
|
|
1078
|
+
createdAtIso: string;
|
|
1079
|
+
target: {
|
|
1080
|
+
kind: "dataset";
|
|
1081
|
+
version: number;
|
|
1082
|
+
datasetId: string;
|
|
1083
|
+
} | {
|
|
1084
|
+
experimentId: string;
|
|
1085
|
+
kind: "experiment";
|
|
1086
|
+
metricEventName?: string | undefined;
|
|
1087
|
+
};
|
|
1088
|
+
evaluatorNames: string[];
|
|
1089
|
+
passThreshold: number;
|
|
1090
|
+
scoredExamples: number;
|
|
1091
|
+
totalExamples: number;
|
|
1092
|
+
tokensSpent: number;
|
|
1093
|
+
costUsd: number | null;
|
|
1094
|
+
error?: string | undefined;
|
|
1095
|
+
generation?: {
|
|
1096
|
+
datasetId: string;
|
|
1097
|
+
promptId: string;
|
|
1098
|
+
promptVersion: number;
|
|
1099
|
+
datasetVersion: number;
|
|
1100
|
+
maxExamples: number;
|
|
1101
|
+
} | undefined;
|
|
1102
|
+
startedAtIso?: string | undefined;
|
|
1103
|
+
finishedAtIso?: string | undefined;
|
|
1104
|
+
};
|
|
1105
|
+
aggregates: {
|
|
1106
|
+
evaluatorName: string;
|
|
1107
|
+
evaluatorVersion: string;
|
|
1108
|
+
scored: number;
|
|
1109
|
+
unscored: number;
|
|
1110
|
+
meanScore: number | null;
|
|
1111
|
+
passRate: {
|
|
1112
|
+
rate: number;
|
|
1113
|
+
low: number;
|
|
1114
|
+
high: number;
|
|
1115
|
+
} | null;
|
|
1116
|
+
labelCounts: Record<string, number>;
|
|
1117
|
+
totalTokens: number;
|
|
1118
|
+
meanLatencyMs: number | null;
|
|
1119
|
+
}[];
|
|
1120
|
+
}>;
|
|
1121
|
+
listScores: (runId: string, params: EndpointParams<"evals.listScores">, orgId?: string) => Promise<{
|
|
1122
|
+
total: number;
|
|
1123
|
+
scores: {
|
|
1124
|
+
evaluatorName: string;
|
|
1125
|
+
evaluatorVersion: string;
|
|
1126
|
+
itemId: string;
|
|
1127
|
+
label: string | null;
|
|
1128
|
+
score: number | null;
|
|
1129
|
+
explanation: string | null;
|
|
1130
|
+
latencyMs: number;
|
|
1131
|
+
}[];
|
|
1132
|
+
}>;
|
|
1133
|
+
cancelRun: (runId: string, orgId?: string) => Promise<{
|
|
1134
|
+
status: "running" | "failed" | "pending" | "succeeded" | "cancelled";
|
|
1135
|
+
runId: string;
|
|
1136
|
+
createdAtIso: string;
|
|
1137
|
+
target: {
|
|
1138
|
+
kind: "dataset";
|
|
1139
|
+
version: number;
|
|
1140
|
+
datasetId: string;
|
|
1141
|
+
} | {
|
|
1142
|
+
experimentId: string;
|
|
1143
|
+
kind: "experiment";
|
|
1144
|
+
metricEventName?: string | undefined;
|
|
1145
|
+
};
|
|
1146
|
+
evaluatorNames: string[];
|
|
1147
|
+
passThreshold: number;
|
|
1148
|
+
scoredExamples: number;
|
|
1149
|
+
totalExamples: number;
|
|
1150
|
+
tokensSpent: number;
|
|
1151
|
+
costUsd: number | null;
|
|
1152
|
+
error?: string | undefined;
|
|
1153
|
+
generation?: {
|
|
1154
|
+
datasetId: string;
|
|
1155
|
+
promptId: string;
|
|
1156
|
+
promptVersion: number;
|
|
1157
|
+
datasetVersion: number;
|
|
1158
|
+
maxExamples: number;
|
|
1159
|
+
} | undefined;
|
|
1160
|
+
startedAtIso?: string | undefined;
|
|
1161
|
+
finishedAtIso?: string | undefined;
|
|
1162
|
+
}>;
|
|
1163
|
+
byVariant: (experimentId: string, orgId?: string) => Promise<{
|
|
1164
|
+
variants: {
|
|
1165
|
+
variantKey: string;
|
|
1166
|
+
evaluatorName: string;
|
|
1167
|
+
evaluatorVersion: string;
|
|
1168
|
+
scored: number;
|
|
1169
|
+
unscored: number;
|
|
1170
|
+
meanScore: number | null;
|
|
1171
|
+
passCount: number;
|
|
1172
|
+
binary: boolean;
|
|
1173
|
+
}[];
|
|
1174
|
+
}>;
|
|
1175
|
+
};
|
|
1176
|
+
traces: {
|
|
1177
|
+
list: (params: EndpointParams<"traces.list">, orgId?: string) => Promise<{
|
|
1178
|
+
total: number;
|
|
1179
|
+
traces: {
|
|
1180
|
+
experimentId: string | null;
|
|
1181
|
+
variantKey: string | null;
|
|
1182
|
+
durationMs: number;
|
|
1183
|
+
startedAtIso: string;
|
|
1184
|
+
traceId: string;
|
|
1185
|
+
rootSpanName: string;
|
|
1186
|
+
rootSpanKind: "LLM" | "CHAIN" | "RETRIEVER" | "EMBEDDING" | "TOOL" | "AGENT" | "RERANKER" | "GUARDRAIL" | "EVALUATOR" | "UNKNOWN";
|
|
1187
|
+
sessionId: string | null;
|
|
1188
|
+
spanCount: number;
|
|
1189
|
+
errorCount: number;
|
|
1190
|
+
totalInputTokens: number;
|
|
1191
|
+
totalOutputTokens: number;
|
|
1192
|
+
}[];
|
|
1193
|
+
}>;
|
|
1194
|
+
get: (traceId: string, orgId?: string) => Promise<{
|
|
1195
|
+
traceId: string;
|
|
1196
|
+
spans: {
|
|
1197
|
+
status: "UNSET" | "OK" | "ERROR";
|
|
1198
|
+
name: string;
|
|
1199
|
+
experimentId: string | null;
|
|
1200
|
+
variantKey: string | null;
|
|
1201
|
+
durationMs: number;
|
|
1202
|
+
kind: "LLM" | "CHAIN" | "RETRIEVER" | "EMBEDDING" | "TOOL" | "AGENT" | "RERANKER" | "GUARDRAIL" | "EVALUATOR" | "UNKNOWN";
|
|
1203
|
+
costUsd: number | null;
|
|
1204
|
+
startedAtIso: string;
|
|
1205
|
+
inputTokens: number | null;
|
|
1206
|
+
outputTokens: number | null;
|
|
1207
|
+
traceId: string;
|
|
1208
|
+
sessionId: string | null;
|
|
1209
|
+
spanId: string;
|
|
1210
|
+
parentSpanId: string | null;
|
|
1211
|
+
statusMessage: string | null;
|
|
1212
|
+
inputValue: string | null;
|
|
1213
|
+
outputValue: string | null;
|
|
1214
|
+
modelName: string | null;
|
|
1215
|
+
attributes: Record<string, unknown>;
|
|
1216
|
+
}[];
|
|
1217
|
+
annotations: {
|
|
1218
|
+
createdAtIso: string;
|
|
1219
|
+
label: string | null;
|
|
1220
|
+
score: number | null;
|
|
1221
|
+
explanation: string | null;
|
|
1222
|
+
spanId: string;
|
|
1223
|
+
annotator: "human" | "llm";
|
|
1224
|
+
annotatorId: string;
|
|
1225
|
+
}[];
|
|
1226
|
+
}>;
|
|
1227
|
+
annotate: (traceId: string, params: EndpointParams<"traces.annotate">, orgId?: string) => Promise<{
|
|
1228
|
+
createdAtIso: string;
|
|
1229
|
+
label: string | null;
|
|
1230
|
+
score: number | null;
|
|
1231
|
+
explanation: string | null;
|
|
1232
|
+
spanId: string;
|
|
1233
|
+
annotator: "human" | "llm";
|
|
1234
|
+
annotatorId: string;
|
|
1235
|
+
}>;
|
|
1236
|
+
analytics: (params: EndpointParams<"traces.analytics">, orgId?: string) => Promise<{
|
|
1237
|
+
groups: {
|
|
1238
|
+
spanCount: number;
|
|
1239
|
+
errorCount: number;
|
|
1240
|
+
totalInputTokens: number;
|
|
1241
|
+
totalOutputTokens: number;
|
|
1242
|
+
groupKey: string;
|
|
1243
|
+
meanDurationMs: number | null;
|
|
1244
|
+
p95DurationMs: number | null;
|
|
1245
|
+
totalCostUsd: number;
|
|
1246
|
+
}[];
|
|
1247
|
+
totalCostUsd: number;
|
|
1248
|
+
traceCount: number;
|
|
1249
|
+
}>;
|
|
1250
|
+
session: (sessionId: string, orgId?: string) => Promise<{
|
|
1251
|
+
sessionId: string;
|
|
1252
|
+
traces: {
|
|
1253
|
+
experimentId: string | null;
|
|
1254
|
+
variantKey: string | null;
|
|
1255
|
+
durationMs: number;
|
|
1256
|
+
startedAtIso: string;
|
|
1257
|
+
traceId: string;
|
|
1258
|
+
rootSpanName: string;
|
|
1259
|
+
rootSpanKind: "LLM" | "CHAIN" | "RETRIEVER" | "EMBEDDING" | "TOOL" | "AGENT" | "RERANKER" | "GUARDRAIL" | "EVALUATOR" | "UNKNOWN";
|
|
1260
|
+
sessionId: string | null;
|
|
1261
|
+
spanCount: number;
|
|
1262
|
+
errorCount: number;
|
|
1263
|
+
totalInputTokens: number;
|
|
1264
|
+
totalOutputTokens: number;
|
|
1265
|
+
rootInputValue: string | null;
|
|
1266
|
+
rootOutputValue: string | null;
|
|
1267
|
+
}[];
|
|
1268
|
+
}>;
|
|
1269
|
+
};
|
|
1270
|
+
ingestTokens: {
|
|
1271
|
+
list: (orgId?: string) => Promise<{
|
|
1272
|
+
tokens: {
|
|
1273
|
+
createdAtIso: string;
|
|
1274
|
+
label: string;
|
|
1275
|
+
tokenId: string;
|
|
1276
|
+
revokedAtIso: string | null;
|
|
1277
|
+
}[];
|
|
1278
|
+
}>;
|
|
1279
|
+
create: (params: EndpointParams<"ingestTokens.create">, orgId?: string) => Promise<{
|
|
1280
|
+
token: string;
|
|
1281
|
+
createdAtIso: string;
|
|
1282
|
+
label: string;
|
|
1283
|
+
tokenId: string;
|
|
1284
|
+
revokedAtIso: string | null;
|
|
1285
|
+
}>;
|
|
1286
|
+
revoke: (tokenId: string, orgId?: string) => Promise<{
|
|
1287
|
+
createdAtIso: string;
|
|
1288
|
+
label: string;
|
|
1289
|
+
tokenId: string;
|
|
1290
|
+
revokedAtIso: string | null;
|
|
1291
|
+
}>;
|
|
1292
|
+
};
|
|
1293
|
+
prompts: {
|
|
1294
|
+
list: (orgId?: string) => Promise<{
|
|
1295
|
+
prompts: {
|
|
1296
|
+
id: string;
|
|
1297
|
+
name: string;
|
|
1298
|
+
latestVersion: number;
|
|
1299
|
+
createdAtIso: string;
|
|
1300
|
+
updatedAtIso: string;
|
|
1301
|
+
description?: string | undefined;
|
|
1302
|
+
}[];
|
|
1303
|
+
}>;
|
|
1304
|
+
create: (params: EndpointParams<"prompts.create">, orgId?: string) => Promise<{
|
|
1305
|
+
id: string;
|
|
1306
|
+
name: string;
|
|
1307
|
+
latestVersion: number;
|
|
1308
|
+
createdAtIso: string;
|
|
1309
|
+
updatedAtIso: string;
|
|
1310
|
+
description?: string | undefined;
|
|
1311
|
+
}>;
|
|
1312
|
+
get: (promptId: string, orgId?: string) => Promise<{
|
|
1313
|
+
id: string;
|
|
1314
|
+
name: string;
|
|
1315
|
+
latestVersion: number;
|
|
1316
|
+
createdAtIso: string;
|
|
1317
|
+
updatedAtIso: string;
|
|
1318
|
+
description?: string | undefined;
|
|
1319
|
+
}>;
|
|
1320
|
+
createVersion: (promptId: string, params: EndpointParams<"prompts.createVersion">, orgId?: string) => Promise<{
|
|
1321
|
+
contentHash: string;
|
|
1322
|
+
createdAtIso: string;
|
|
1323
|
+
version: number;
|
|
1324
|
+
promptId: string;
|
|
1325
|
+
template: {
|
|
1326
|
+
params: {
|
|
1327
|
+
model?: string | undefined;
|
|
1328
|
+
temperature?: number | undefined;
|
|
1329
|
+
maxTokens?: number | undefined;
|
|
1330
|
+
topP?: number | undefined;
|
|
1331
|
+
};
|
|
1332
|
+
messages: {
|
|
1333
|
+
role: "user" | "system" | "assistant";
|
|
1334
|
+
content: string;
|
|
1335
|
+
}[];
|
|
1336
|
+
};
|
|
1337
|
+
variables: string[];
|
|
1338
|
+
note?: string | undefined;
|
|
1339
|
+
}>;
|
|
1340
|
+
listVersions: (promptId: string, orgId?: string) => Promise<{
|
|
1341
|
+
versions: {
|
|
1342
|
+
contentHash: string;
|
|
1343
|
+
createdAtIso: string;
|
|
1344
|
+
version: number;
|
|
1345
|
+
promptId: string;
|
|
1346
|
+
template: {
|
|
1347
|
+
params: {
|
|
1348
|
+
model?: string | undefined;
|
|
1349
|
+
temperature?: number | undefined;
|
|
1350
|
+
maxTokens?: number | undefined;
|
|
1351
|
+
topP?: number | undefined;
|
|
1352
|
+
};
|
|
1353
|
+
messages: {
|
|
1354
|
+
role: "user" | "system" | "assistant";
|
|
1355
|
+
content: string;
|
|
1356
|
+
}[];
|
|
1357
|
+
};
|
|
1358
|
+
variables: string[];
|
|
1359
|
+
note?: string | undefined;
|
|
1360
|
+
}[];
|
|
1361
|
+
}>;
|
|
1362
|
+
};
|
|
1363
|
+
playground: {
|
|
1364
|
+
invoke: (params: EndpointParams<"playground.invoke">, orgId?: string) => Promise<{
|
|
1365
|
+
costUsd: number | null;
|
|
1366
|
+
latencyMs: number;
|
|
1367
|
+
messages: {
|
|
1368
|
+
role: "user" | "system" | "assistant";
|
|
1369
|
+
content: string;
|
|
1370
|
+
}[];
|
|
1371
|
+
missingVariables: string[];
|
|
1372
|
+
text: string;
|
|
1373
|
+
inputTokens: number;
|
|
1374
|
+
outputTokens: number;
|
|
1375
|
+
modelEndpoint: string;
|
|
1376
|
+
}>;
|
|
1377
|
+
replay: (params: EndpointParams<"playground.replay">, orgId?: string) => Promise<{
|
|
1378
|
+
status: "running" | "failed" | "pending" | "succeeded" | "cancelled";
|
|
1379
|
+
runId: string;
|
|
1380
|
+
createdAtIso: string;
|
|
1381
|
+
target: {
|
|
1382
|
+
kind: "dataset";
|
|
1383
|
+
version: number;
|
|
1384
|
+
datasetId: string;
|
|
1385
|
+
} | {
|
|
1386
|
+
experimentId: string;
|
|
1387
|
+
kind: "experiment";
|
|
1388
|
+
metricEventName?: string | undefined;
|
|
1389
|
+
};
|
|
1390
|
+
evaluatorNames: string[];
|
|
1391
|
+
passThreshold: number;
|
|
1392
|
+
scoredExamples: number;
|
|
1393
|
+
totalExamples: number;
|
|
1394
|
+
tokensSpent: number;
|
|
1395
|
+
costUsd: number | null;
|
|
1396
|
+
error?: string | undefined;
|
|
1397
|
+
generation?: {
|
|
1398
|
+
datasetId: string;
|
|
1399
|
+
promptId: string;
|
|
1400
|
+
promptVersion: number;
|
|
1401
|
+
datasetVersion: number;
|
|
1402
|
+
maxExamples: number;
|
|
1403
|
+
} | undefined;
|
|
1404
|
+
startedAtIso?: string | undefined;
|
|
1405
|
+
finishedAtIso?: string | undefined;
|
|
1406
|
+
}>;
|
|
1407
|
+
};
|
|
947
1408
|
testRuns: {
|
|
948
1409
|
list: (params?: EndpointParams<"testRuns.list">, orgId?: string) => Promise<{
|
|
949
1410
|
runs: {
|
|
@@ -953,7 +1414,7 @@ declare class ApiClient {
|
|
|
953
1414
|
updatedAt: string;
|
|
954
1415
|
suite: string;
|
|
955
1416
|
durationMs: number;
|
|
956
|
-
source: "bdd" | "live-suite" | "junit" | "cli" | "other";
|
|
1417
|
+
source: "bdd" | "live-suite" | "junit" | "cli" | "other" | "eval-run";
|
|
957
1418
|
summary: {
|
|
958
1419
|
passed: number;
|
|
959
1420
|
failed: number;
|
|
@@ -982,7 +1443,7 @@ declare class ApiClient {
|
|
|
982
1443
|
updatedAt: string;
|
|
983
1444
|
suite: string;
|
|
984
1445
|
durationMs: number;
|
|
985
|
-
source: "bdd" | "live-suite" | "junit" | "cli" | "other";
|
|
1446
|
+
source: "bdd" | "live-suite" | "junit" | "cli" | "other" | "eval-run";
|
|
986
1447
|
summary: {
|
|
987
1448
|
passed: number;
|
|
988
1449
|
failed: number;
|
|
@@ -1022,7 +1483,7 @@ declare class ApiClient {
|
|
|
1022
1483
|
updatedAt: string;
|
|
1023
1484
|
suite: string;
|
|
1024
1485
|
durationMs: number;
|
|
1025
|
-
source: "bdd" | "live-suite" | "junit" | "cli" | "other";
|
|
1486
|
+
source: "bdd" | "live-suite" | "junit" | "cli" | "other" | "eval-run";
|
|
1026
1487
|
summary: {
|
|
1027
1488
|
passed: number;
|
|
1028
1489
|
failed: number;
|
|
@@ -1056,6 +1517,15 @@ declare class ApiClient {
|
|
|
1056
1517
|
startedAt?: string | null | undefined;
|
|
1057
1518
|
}>;
|
|
1058
1519
|
};
|
|
1520
|
+
harness: {
|
|
1521
|
+
definitions: (orgId?: string) => Promise<{
|
|
1522
|
+
name: "quality-status" | "srm-watcher" | "analyst";
|
|
1523
|
+
kind: "job";
|
|
1524
|
+
description: string;
|
|
1525
|
+
mutates: boolean;
|
|
1526
|
+
}[]>;
|
|
1527
|
+
invokeJob: (jobName: string, params?: EndpointParams<"harness.invokeJob">, orgId?: string) => Promise<Record<string, unknown>>;
|
|
1528
|
+
};
|
|
1059
1529
|
}
|
|
1060
1530
|
|
|
1061
1531
|
export { ApiClient, type ApiClientOptions, ApiError, type CallPathParams };
|