@runflow-ai/sdk 1.1.12 → 1.1.13

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.
@@ -1114,6 +1114,455 @@ export declare const DashboardCardInputSchema: z.ZodDiscriminatedUnion<"cardType
1114
1114
  h: number;
1115
1115
  } | undefined;
1116
1116
  }>]>;
1117
+ export declare const MetricsCardInputSchema: z.ZodDiscriminatedUnion<"cardType", [z.ZodObject<{
1118
+ cardType: z.ZodLiteral<"number">;
1119
+ title: z.ZodString;
1120
+ config: z.ZodTypeAny;
1121
+ tabId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1122
+ gridLayout: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1123
+ x: z.ZodNumber;
1124
+ y: z.ZodNumber;
1125
+ w: z.ZodNumber;
1126
+ h: z.ZodNumber;
1127
+ }, "strict", z.ZodTypeAny, {
1128
+ x: number;
1129
+ y: number;
1130
+ w: number;
1131
+ h: number;
1132
+ }, {
1133
+ x: number;
1134
+ y: number;
1135
+ w: number;
1136
+ h: number;
1137
+ }>, {
1138
+ x: number;
1139
+ y: number;
1140
+ w: number;
1141
+ h: number;
1142
+ }, {
1143
+ x: number;
1144
+ y: number;
1145
+ w: number;
1146
+ h: number;
1147
+ }>>;
1148
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1149
+ }, "strict", z.ZodTypeAny, {
1150
+ cardType: "number";
1151
+ title: string;
1152
+ sortOrder?: number | undefined;
1153
+ config?: any;
1154
+ tabId?: string | null | undefined;
1155
+ gridLayout?: {
1156
+ x: number;
1157
+ y: number;
1158
+ w: number;
1159
+ h: number;
1160
+ } | undefined;
1161
+ }, {
1162
+ cardType: "number";
1163
+ title: string;
1164
+ sortOrder?: number | undefined;
1165
+ config?: any;
1166
+ tabId?: string | null | undefined;
1167
+ gridLayout?: {
1168
+ x: number;
1169
+ y: number;
1170
+ w: number;
1171
+ h: number;
1172
+ } | undefined;
1173
+ }>, z.ZodObject<{
1174
+ cardType: z.ZodLiteral<"rate">;
1175
+ title: z.ZodString;
1176
+ config: z.ZodTypeAny;
1177
+ tabId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1178
+ gridLayout: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1179
+ x: z.ZodNumber;
1180
+ y: z.ZodNumber;
1181
+ w: z.ZodNumber;
1182
+ h: z.ZodNumber;
1183
+ }, "strict", z.ZodTypeAny, {
1184
+ x: number;
1185
+ y: number;
1186
+ w: number;
1187
+ h: number;
1188
+ }, {
1189
+ x: number;
1190
+ y: number;
1191
+ w: number;
1192
+ h: number;
1193
+ }>, {
1194
+ x: number;
1195
+ y: number;
1196
+ w: number;
1197
+ h: number;
1198
+ }, {
1199
+ x: number;
1200
+ y: number;
1201
+ w: number;
1202
+ h: number;
1203
+ }>>;
1204
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1205
+ }, "strict", z.ZodTypeAny, {
1206
+ cardType: "rate";
1207
+ title: string;
1208
+ sortOrder?: number | undefined;
1209
+ config?: any;
1210
+ tabId?: string | null | undefined;
1211
+ gridLayout?: {
1212
+ x: number;
1213
+ y: number;
1214
+ w: number;
1215
+ h: number;
1216
+ } | undefined;
1217
+ }, {
1218
+ cardType: "rate";
1219
+ title: string;
1220
+ sortOrder?: number | undefined;
1221
+ config?: any;
1222
+ tabId?: string | null | undefined;
1223
+ gridLayout?: {
1224
+ x: number;
1225
+ y: number;
1226
+ w: number;
1227
+ h: number;
1228
+ } | undefined;
1229
+ }>, z.ZodObject<{
1230
+ cardType: z.ZodLiteral<"line">;
1231
+ title: z.ZodString;
1232
+ config: z.ZodTypeAny;
1233
+ tabId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1234
+ gridLayout: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1235
+ x: z.ZodNumber;
1236
+ y: z.ZodNumber;
1237
+ w: z.ZodNumber;
1238
+ h: z.ZodNumber;
1239
+ }, "strict", z.ZodTypeAny, {
1240
+ x: number;
1241
+ y: number;
1242
+ w: number;
1243
+ h: number;
1244
+ }, {
1245
+ x: number;
1246
+ y: number;
1247
+ w: number;
1248
+ h: number;
1249
+ }>, {
1250
+ x: number;
1251
+ y: number;
1252
+ w: number;
1253
+ h: number;
1254
+ }, {
1255
+ x: number;
1256
+ y: number;
1257
+ w: number;
1258
+ h: number;
1259
+ }>>;
1260
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1261
+ }, "strict", z.ZodTypeAny, {
1262
+ cardType: "line";
1263
+ title: string;
1264
+ sortOrder?: number | undefined;
1265
+ config?: any;
1266
+ tabId?: string | null | undefined;
1267
+ gridLayout?: {
1268
+ x: number;
1269
+ y: number;
1270
+ w: number;
1271
+ h: number;
1272
+ } | undefined;
1273
+ }, {
1274
+ cardType: "line";
1275
+ title: string;
1276
+ sortOrder?: number | undefined;
1277
+ config?: any;
1278
+ tabId?: string | null | undefined;
1279
+ gridLayout?: {
1280
+ x: number;
1281
+ y: number;
1282
+ w: number;
1283
+ h: number;
1284
+ } | undefined;
1285
+ }>, z.ZodObject<{
1286
+ cardType: z.ZodLiteral<"bar">;
1287
+ title: z.ZodString;
1288
+ config: z.ZodTypeAny;
1289
+ tabId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1290
+ gridLayout: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1291
+ x: z.ZodNumber;
1292
+ y: z.ZodNumber;
1293
+ w: z.ZodNumber;
1294
+ h: z.ZodNumber;
1295
+ }, "strict", z.ZodTypeAny, {
1296
+ x: number;
1297
+ y: number;
1298
+ w: number;
1299
+ h: number;
1300
+ }, {
1301
+ x: number;
1302
+ y: number;
1303
+ w: number;
1304
+ h: number;
1305
+ }>, {
1306
+ x: number;
1307
+ y: number;
1308
+ w: number;
1309
+ h: number;
1310
+ }, {
1311
+ x: number;
1312
+ y: number;
1313
+ w: number;
1314
+ h: number;
1315
+ }>>;
1316
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1317
+ }, "strict", z.ZodTypeAny, {
1318
+ cardType: "bar";
1319
+ title: string;
1320
+ sortOrder?: number | undefined;
1321
+ config?: any;
1322
+ tabId?: string | null | undefined;
1323
+ gridLayout?: {
1324
+ x: number;
1325
+ y: number;
1326
+ w: number;
1327
+ h: number;
1328
+ } | undefined;
1329
+ }, {
1330
+ cardType: "bar";
1331
+ title: string;
1332
+ sortOrder?: number | undefined;
1333
+ config?: any;
1334
+ tabId?: string | null | undefined;
1335
+ gridLayout?: {
1336
+ x: number;
1337
+ y: number;
1338
+ w: number;
1339
+ h: number;
1340
+ } | undefined;
1341
+ }>, z.ZodObject<{
1342
+ cardType: z.ZodLiteral<"pie">;
1343
+ title: z.ZodString;
1344
+ config: z.ZodTypeAny;
1345
+ tabId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1346
+ gridLayout: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1347
+ x: z.ZodNumber;
1348
+ y: z.ZodNumber;
1349
+ w: z.ZodNumber;
1350
+ h: z.ZodNumber;
1351
+ }, "strict", z.ZodTypeAny, {
1352
+ x: number;
1353
+ y: number;
1354
+ w: number;
1355
+ h: number;
1356
+ }, {
1357
+ x: number;
1358
+ y: number;
1359
+ w: number;
1360
+ h: number;
1361
+ }>, {
1362
+ x: number;
1363
+ y: number;
1364
+ w: number;
1365
+ h: number;
1366
+ }, {
1367
+ x: number;
1368
+ y: number;
1369
+ w: number;
1370
+ h: number;
1371
+ }>>;
1372
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1373
+ }, "strict", z.ZodTypeAny, {
1374
+ cardType: "pie";
1375
+ title: string;
1376
+ sortOrder?: number | undefined;
1377
+ config?: any;
1378
+ tabId?: string | null | undefined;
1379
+ gridLayout?: {
1380
+ x: number;
1381
+ y: number;
1382
+ w: number;
1383
+ h: number;
1384
+ } | undefined;
1385
+ }, {
1386
+ cardType: "pie";
1387
+ title: string;
1388
+ sortOrder?: number | undefined;
1389
+ config?: any;
1390
+ tabId?: string | null | undefined;
1391
+ gridLayout?: {
1392
+ x: number;
1393
+ y: number;
1394
+ w: number;
1395
+ h: number;
1396
+ } | undefined;
1397
+ }>, z.ZodObject<{
1398
+ cardType: z.ZodLiteral<"table">;
1399
+ title: z.ZodString;
1400
+ config: z.ZodTypeAny;
1401
+ tabId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1402
+ gridLayout: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1403
+ x: z.ZodNumber;
1404
+ y: z.ZodNumber;
1405
+ w: z.ZodNumber;
1406
+ h: z.ZodNumber;
1407
+ }, "strict", z.ZodTypeAny, {
1408
+ x: number;
1409
+ y: number;
1410
+ w: number;
1411
+ h: number;
1412
+ }, {
1413
+ x: number;
1414
+ y: number;
1415
+ w: number;
1416
+ h: number;
1417
+ }>, {
1418
+ x: number;
1419
+ y: number;
1420
+ w: number;
1421
+ h: number;
1422
+ }, {
1423
+ x: number;
1424
+ y: number;
1425
+ w: number;
1426
+ h: number;
1427
+ }>>;
1428
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1429
+ }, "strict", z.ZodTypeAny, {
1430
+ cardType: "table";
1431
+ title: string;
1432
+ sortOrder?: number | undefined;
1433
+ config?: any;
1434
+ tabId?: string | null | undefined;
1435
+ gridLayout?: {
1436
+ x: number;
1437
+ y: number;
1438
+ w: number;
1439
+ h: number;
1440
+ } | undefined;
1441
+ }, {
1442
+ cardType: "table";
1443
+ title: string;
1444
+ sortOrder?: number | undefined;
1445
+ config?: any;
1446
+ tabId?: string | null | undefined;
1447
+ gridLayout?: {
1448
+ x: number;
1449
+ y: number;
1450
+ w: number;
1451
+ h: number;
1452
+ } | undefined;
1453
+ }>, z.ZodObject<{
1454
+ cardType: z.ZodLiteral<"funnel">;
1455
+ title: z.ZodString;
1456
+ config: z.ZodTypeAny;
1457
+ tabId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1458
+ gridLayout: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1459
+ x: z.ZodNumber;
1460
+ y: z.ZodNumber;
1461
+ w: z.ZodNumber;
1462
+ h: z.ZodNumber;
1463
+ }, "strict", z.ZodTypeAny, {
1464
+ x: number;
1465
+ y: number;
1466
+ w: number;
1467
+ h: number;
1468
+ }, {
1469
+ x: number;
1470
+ y: number;
1471
+ w: number;
1472
+ h: number;
1473
+ }>, {
1474
+ x: number;
1475
+ y: number;
1476
+ w: number;
1477
+ h: number;
1478
+ }, {
1479
+ x: number;
1480
+ y: number;
1481
+ w: number;
1482
+ h: number;
1483
+ }>>;
1484
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1485
+ }, "strict", z.ZodTypeAny, {
1486
+ cardType: "funnel";
1487
+ title: string;
1488
+ sortOrder?: number | undefined;
1489
+ config?: any;
1490
+ tabId?: string | null | undefined;
1491
+ gridLayout?: {
1492
+ x: number;
1493
+ y: number;
1494
+ w: number;
1495
+ h: number;
1496
+ } | undefined;
1497
+ }, {
1498
+ cardType: "funnel";
1499
+ title: string;
1500
+ sortOrder?: number | undefined;
1501
+ config?: any;
1502
+ tabId?: string | null | undefined;
1503
+ gridLayout?: {
1504
+ x: number;
1505
+ y: number;
1506
+ w: number;
1507
+ h: number;
1508
+ } | undefined;
1509
+ }>, z.ZodObject<{
1510
+ cardType: z.ZodLiteral<"gauge">;
1511
+ title: z.ZodString;
1512
+ config: z.ZodTypeAny;
1513
+ tabId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1514
+ gridLayout: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1515
+ x: z.ZodNumber;
1516
+ y: z.ZodNumber;
1517
+ w: z.ZodNumber;
1518
+ h: z.ZodNumber;
1519
+ }, "strict", z.ZodTypeAny, {
1520
+ x: number;
1521
+ y: number;
1522
+ w: number;
1523
+ h: number;
1524
+ }, {
1525
+ x: number;
1526
+ y: number;
1527
+ w: number;
1528
+ h: number;
1529
+ }>, {
1530
+ x: number;
1531
+ y: number;
1532
+ w: number;
1533
+ h: number;
1534
+ }, {
1535
+ x: number;
1536
+ y: number;
1537
+ w: number;
1538
+ h: number;
1539
+ }>>;
1540
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1541
+ }, "strict", z.ZodTypeAny, {
1542
+ cardType: "gauge";
1543
+ title: string;
1544
+ sortOrder?: number | undefined;
1545
+ config?: any;
1546
+ tabId?: string | null | undefined;
1547
+ gridLayout?: {
1548
+ x: number;
1549
+ y: number;
1550
+ w: number;
1551
+ h: number;
1552
+ } | undefined;
1553
+ }, {
1554
+ cardType: "gauge";
1555
+ title: string;
1556
+ sortOrder?: number | undefined;
1557
+ config?: any;
1558
+ tabId?: string | null | undefined;
1559
+ gridLayout?: {
1560
+ x: number;
1561
+ y: number;
1562
+ w: number;
1563
+ h: number;
1564
+ } | undefined;
1565
+ }>]>;
1117
1566
  export type DashboardCardInput = z.infer<typeof DashboardCardInputSchema>;
1118
1567
  export declare const DashboardTabInputSchema: z.ZodObject<{
1119
1568
  name: z.ZodString;
@@ -1226,7 +1675,7 @@ export declare const MetricsFileSchema: z.ZodObject<{
1226
1675
  name: string;
1227
1676
  sortOrder?: number | undefined;
1228
1677
  }>, "many">>;
1229
- cards: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"cardType", [z.ZodObject<{
1678
+ cards: z.ZodArray<z.ZodDiscriminatedUnion<"cardType", [z.ZodObject<{
1230
1679
  cardType: z.ZodLiteral<"number">;
1231
1680
  title: z.ZodString;
1232
1681
  config: z.ZodTypeAny;
@@ -1674,15 +2123,9 @@ export declare const MetricsFileSchema: z.ZodObject<{
1674
2123
  w: number;
1675
2124
  h: number;
1676
2125
  } | undefined;
1677
- }>]>, z.ZodObject<{
1678
- tab: z.ZodOptional<z.ZodString>;
1679
- }, "strict", z.ZodTypeAny, {
1680
- tab?: string | undefined;
1681
- }, {
1682
- tab?: string | undefined;
1683
- }>>, "many">;
2126
+ }>]>, "many">;
1684
2127
  }, "strict", z.ZodTypeAny, {
1685
- cards: (({
2128
+ cards: ({
1686
2129
  cardType: "number";
1687
2130
  title: string;
1688
2131
  sortOrder?: number | undefined;
@@ -1778,15 +2221,13 @@ export declare const MetricsFileSchema: z.ZodObject<{
1778
2221
  w: number;
1779
2222
  h: number;
1780
2223
  } | undefined;
1781
- }) & {
1782
- tab?: string | undefined;
1783
2224
  })[];
1784
2225
  tabs?: {
1785
2226
  name: string;
1786
2227
  sortOrder?: number | undefined;
1787
2228
  }[] | undefined;
1788
2229
  }, {
1789
- cards: (({
2230
+ cards: ({
1790
2231
  cardType: "number";
1791
2232
  title: string;
1792
2233
  sortOrder?: number | undefined;
@@ -1882,8 +2323,6 @@ export declare const MetricsFileSchema: z.ZodObject<{
1882
2323
  w: number;
1883
2324
  h: number;
1884
2325
  } | undefined;
1885
- }) & {
1886
- tab?: string | undefined;
1887
2326
  })[];
1888
2327
  tabs?: {
1889
2328
  name: string;
@@ -13,7 +13,7 @@
13
13
  * source.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GRID_CONSTRAINTS = exports.MetricsFileSchema = exports.ReorderTabsInputSchema = exports.ReorderCardsInputSchema = exports.DashboardTabInputSchema = exports.DashboardCardInputSchema = exports.GridLayoutItemSchema = exports.GaugeCardConfigSchema = exports.GaugeZoneColorsSchema = exports.GaugeThresholdsSchema = exports.FunnelCardConfigSchema = exports.FunnelStepValueSchema = exports.FunnelStepSchema = exports.TableCardConfigSchema = exports.TablePaginationSchema = exports.TableConditionSchema = exports.TableConditionRuleSchema = exports.TableFilterSchema = exports.TableMetricSchema = exports.TableColumnConfigSchema = exports.BaseCardConfigSchema = exports.CardTypeSchema = exports.FilterOperatorSchema = exports.CardFormatSchema = exports.DateGroupingSchema = exports.AggregationSchema = void 0;
16
+ exports.GRID_CONSTRAINTS = exports.MetricsFileSchema = exports.ReorderTabsInputSchema = exports.ReorderCardsInputSchema = exports.DashboardTabInputSchema = exports.MetricsCardInputSchema = exports.DashboardCardInputSchema = exports.GridLayoutItemSchema = exports.GaugeCardConfigSchema = exports.GaugeZoneColorsSchema = exports.GaugeThresholdsSchema = exports.FunnelCardConfigSchema = exports.FunnelStepValueSchema = exports.FunnelStepSchema = exports.TableCardConfigSchema = exports.TablePaginationSchema = exports.TableConditionSchema = exports.TableConditionRuleSchema = exports.TableFilterSchema = exports.TableMetricSchema = exports.TableColumnConfigSchema = exports.BaseCardConfigSchema = exports.CardTypeSchema = exports.FilterOperatorSchema = exports.CardFormatSchema = exports.DateGroupingSchema = exports.AggregationSchema = void 0;
17
17
  exports.gridLayoutForCardType = gridLayoutForCardType;
18
18
  const zod_1 = require("zod");
19
19
  const dashboard_cards_1 = require("./dashboard-cards");
@@ -242,7 +242,7 @@ function gridLayoutForCardType(cardType) {
242
242
  // -----------------------------------------------------------------------------
243
243
  // DashboardCard — discriminated union on cardType
244
244
  // -----------------------------------------------------------------------------
245
- function cardSchema(cardType, configSchema) {
245
+ function cardSchema(cardType, configSchema, extraFields = {}) {
246
246
  return zod_1.z
247
247
  .object({
248
248
  cardType: zod_1.z.literal(cardType),
@@ -251,6 +251,7 @@ function cardSchema(cardType, configSchema) {
251
251
  tabId: zod_1.z.string().nullable().optional(),
252
252
  gridLayout: gridLayoutForCardType(cardType).optional(),
253
253
  sortOrder: zod_1.z.number().int().nonnegative().optional(),
254
+ ...extraFields,
254
255
  })
255
256
  .strict();
256
257
  }
@@ -273,6 +274,29 @@ exports.DashboardCardInputSchema = zod_1.z.discriminatedUnion("cardType", [
273
274
  funnelCard,
274
275
  gaugeCard,
275
276
  ]);
277
+ /**
278
+ * Same as DashboardCardInputSchema but with an additional optional `tab`
279
+ * field that references a tab by name (used by the CLI's metrics.json).
280
+ */
281
+ const tabField = { tab: zod_1.z.string().optional() };
282
+ const metricsCardNumber = cardSchema("number", exports.BaseCardConfigSchema, tabField);
283
+ const metricsCardRate = cardSchema("rate", exports.BaseCardConfigSchema, tabField);
284
+ const metricsCardLine = cardSchema("line", exports.BaseCardConfigSchema, tabField);
285
+ const metricsCardBar = cardSchema("bar", exports.BaseCardConfigSchema, tabField);
286
+ const metricsCardPie = cardSchema("pie", exports.BaseCardConfigSchema, tabField);
287
+ const metricsCardTable = cardSchema("table", exports.TableCardConfigSchema, tabField);
288
+ const metricsCardFunnel = cardSchema("funnel", exports.FunnelCardConfigSchema, tabField);
289
+ const metricsCardGauge = cardSchema("gauge", exports.GaugeCardConfigSchema, tabField);
290
+ exports.MetricsCardInputSchema = zod_1.z.discriminatedUnion("cardType", [
291
+ metricsCardNumber,
292
+ metricsCardRate,
293
+ metricsCardLine,
294
+ metricsCardBar,
295
+ metricsCardPie,
296
+ metricsCardTable,
297
+ metricsCardFunnel,
298
+ metricsCardGauge,
299
+ ]);
276
300
  // -----------------------------------------------------------------------------
277
301
  // Tabs + reorder + CLI metrics.json
278
302
  // -----------------------------------------------------------------------------
@@ -312,10 +336,6 @@ exports.ReorderTabsInputSchema = zod_1.z
312
336
  exports.MetricsFileSchema = zod_1.z
313
337
  .object({
314
338
  tabs: zod_1.z.array(exports.DashboardTabInputSchema).optional(),
315
- cards: zod_1.z.array(exports.DashboardCardInputSchema.and(zod_1.z
316
- .object({
317
- tab: zod_1.z.string().optional(),
318
- })
319
- .strict())),
339
+ cards: zod_1.z.array(exports.MetricsCardInputSchema),
320
340
  })
321
341
  .strict();
@@ -82,6 +82,50 @@ export declare class RunflowAPIClientImpl implements RunflowAPIClient {
82
82
  update: (id: string, config: any) => Promise<any>;
83
83
  cancel: (id: string) => Promise<any>;
84
84
  };
85
+ private _reviewsHeaders;
86
+ private _reviewsRequest;
87
+ private _reviewsQueryString;
88
+ private _reviews;
89
+ get reviews(): {
90
+ create: (args: {
91
+ executionId: string;
92
+ agentId: string;
93
+ rating: "good" | "bad" | "needs_improvement";
94
+ comment: string;
95
+ priority?: "low" | "medium" | "high" | "critical";
96
+ tags?: string[];
97
+ }) => Promise<{
98
+ success: boolean;
99
+ reviewId: string;
100
+ message: string;
101
+ }>;
102
+ checkHasReview: (executionId: string) => Promise<{
103
+ exists: boolean;
104
+ review?: any;
105
+ }>;
106
+ list: (filters?: Record<string, any>) => Promise<{
107
+ reviews: any[];
108
+ total: number;
109
+ breakdown?: any;
110
+ }>;
111
+ get: (reviewId: string) => Promise<any>;
112
+ update: (reviewId: string, args: Record<string, any>) => Promise<{
113
+ success: boolean;
114
+ message: string;
115
+ }>;
116
+ delete: (reviewId: string) => Promise<{
117
+ success: boolean;
118
+ message: string;
119
+ }>;
120
+ stats: (filters: {
121
+ agentId: string;
122
+ }) => Promise<any>;
123
+ exportForTraining: (filters: {
124
+ agentId: string;
125
+ status?: string;
126
+ rating?: string;
127
+ }) => Promise<any>;
128
+ };
85
129
  sendTraces(request: TraceRequest): Promise<TraceResponse>;
86
130
  sendEvents(request: EventsRequest): Promise<EventsResponse>;
87
131
  log(message: string, data?: any): void;
@@ -1 +1 @@
1
- {"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../src/core/api-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,UAAU,EACV,aAAa,EACb,aAAa,EACb,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACf,MAAM,UAAU,CAAC;AAWlB,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,cAAc,CAA+B;IACrD,OAAO,CAAC,WAAW,CAAS;gBAEhB,MAAM,CAAC,EAAE;QACnB,OAAO,CAAC,EAA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;IA4BjE,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI;CAsBvC;AAMD,wBAAgB,sBAAsB,CAAC,MAAM,CAAC,EAAE;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,gBAAgB,CAEnB"}
1
+ {"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../src/core/api-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,UAAU,EACV,aAAa,EACb,aAAa,EACb,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACf,MAAM,UAAU,CAAC;AAWlB,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,cAAc,CAA+B;IACrD,OAAO,CAAC,WAAW,CAAS;gBAEhB,MAAM,CAAC,EAAE;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,eAAe,C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