@uluops/ops-sdk 0.9.4 → 0.10.0

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.
@@ -1,33 +1,35 @@
1
+ import { z } from 'zod';
1
2
  import { toApiQuery } from '../http/http-client.js';
3
+ import { AgentPerformanceResponseSchema, AgentReliabilityResultResponseSchema, ResolutionRateResponseSchema, FileHotspotResponseSchema, TaxonomyDistributionResponseSchema, FullTaxonomyAnalyticsResponseSchema, BurndownResultResponseSchema, VelocityResultResponseSchema, DiscoveryResultResponseSchema, AgentMatrixResultResponseSchema, TrendSummaryResponseSchema, } from '../types/response-schemas.js';
2
4
  /**
3
5
  * Get agent performance metrics
4
6
  */
5
7
  export async function getAgentPerformance(client, query) {
6
- return client.get('/analytics/agents/performance', toApiQuery(query));
8
+ return client.get('/analytics/agents/performance', toApiQuery(query), { schema: z.array(AgentPerformanceResponseSchema) });
7
9
  }
8
10
  /**
9
11
  * Get agent reliability stats
10
12
  */
11
13
  export async function getAgentReliability(client, query) {
12
- return client.get('/analytics/agents/reliability', toApiQuery(query));
14
+ return client.get('/analytics/agents/reliability', toApiQuery(query), { schema: AgentReliabilityResultResponseSchema });
13
15
  }
14
16
  /**
15
17
  * Get issue resolution rates by project
16
18
  */
17
19
  export async function getResolutionRates(client, query) {
18
- return client.get('/analytics/projects/resolution-rates', toApiQuery(query));
20
+ return client.get('/analytics/projects/resolution-rates', toApiQuery(query), { schema: z.array(ResolutionRateResponseSchema) });
19
21
  }
20
22
  /**
21
23
  * Get files with most issues (hotspots)
22
24
  */
23
25
  export async function getFileHotspots(client, query) {
24
- return client.get('/analytics/files/hotspots', toApiQuery(query));
26
+ return client.get('/analytics/files/hotspots', toApiQuery(query), { schema: z.array(FileHotspotResponseSchema) });
25
27
  }
26
28
  /**
27
29
  * Get basic taxonomy distribution
28
30
  */
29
31
  export async function getTaxonomyDistribution(client, query) {
30
- return client.get('/analytics/taxonomy/distribution', toApiQuery(query));
32
+ return client.get('/analytics/taxonomy/distribution', toApiQuery(query), { schema: z.array(TaxonomyDistributionResponseSchema) });
31
33
  }
32
34
  /**
33
35
  * Get full taxonomy analytics with all aggregations.
@@ -37,50 +39,47 @@ export async function getTaxonomyDistribution(client, query) {
37
39
  * classification totals, and time period metadata.
38
40
  */
39
41
  export async function getFullTaxonomy(client, query) {
40
- return client.get('/analytics/taxonomy/full', toApiQuery(query));
42
+ return client.get('/analytics/taxonomy/full', toApiQuery(query), { schema: FullTaxonomyAnalyticsResponseSchema });
41
43
  }
42
44
  /**
43
45
  * Get taxonomy burndown time series
44
46
  */
45
47
  export async function getBurndown(client, query) {
46
- return client.get('/analytics/taxonomy/burndown', toApiQuery(query));
48
+ return client.get('/analytics/taxonomy/burndown', toApiQuery(query), { schema: BurndownResultResponseSchema });
47
49
  }
48
50
  /**
49
51
  * Get taxonomy velocity (rate of change per failure mode)
50
52
  */
51
53
  export async function getVelocity(client, query) {
52
- return client.get('/analytics/taxonomy/velocity', toApiQuery(query));
54
+ return client.get('/analytics/taxonomy/velocity', toApiQuery(query), { schema: VelocityResultResponseSchema });
53
55
  }
54
56
  /**
55
57
  * Get discovery timeline (new vs recurring issues)
56
58
  */
57
59
  export async function getDiscovery(client, query) {
58
- return client.get('/analytics/taxonomy/discovery', toApiQuery(query));
60
+ return client.get('/analytics/taxonomy/discovery', toApiQuery(query), { schema: DiscoveryResultResponseSchema });
59
61
  }
60
62
  /**
61
63
  * Get agent-taxonomy coverage matrix
62
64
  */
63
65
  export async function getAgentMatrix(client, query) {
64
- return client.get('/analytics/taxonomy/agent-matrix', toApiQuery(query));
66
+ return client.get('/analytics/taxonomy/agent-matrix', toApiQuery(query), { schema: AgentMatrixResultResponseSchema });
65
67
  }
66
68
  /**
67
69
  * Get general trend summary
68
70
  */
69
71
  export async function getTrendSummary(client, query) {
70
- return client.get('/analytics/trends/summary', toApiQuery(query));
72
+ return client.get('/analytics/trends/summary', toApiQuery(query), { schema: z.array(TrendSummaryResponseSchema) });
71
73
  }
72
74
  /**
73
75
  * List agents with summary info (derived from performance data).
74
- *
75
- * Fetches full performance data then maps to a summary. O(n) where n is
76
- * the number of agents — negligible for typical usage (<100 agents).
77
76
  */
78
77
  export async function listAgents(client, query) {
79
78
  const perf = await getAgentPerformance(client, query);
80
79
  return perf.map(v => ({
81
80
  name: v.name,
82
81
  totalRuns: v.totalRuns,
83
- avgScore: v.avgScore,
82
+ avgScore: v.averageScore,
84
83
  passRate: v.passRate,
85
84
  }));
86
85
  }
@@ -105,11 +104,11 @@ export function isValidMetric(metric) {
105
104
  return ANALYTICS_METRICS.includes(metric);
106
105
  }
107
106
  /**
108
- * Get analytics by metric name (generic endpoint)
109
- * @throws Error if metric is not a valid analytics metric
107
+ * Get analytics by metric name (generic endpoint).
108
+ * Note: Response validation is not applied to this generic endpoint.
109
+ * Use the typed methods (getAgentPerformance, getBurndown, etc.) for validated responses.
110
110
  */
111
111
  export async function getByMetric(client, metric, query) {
112
- // Runtime validation for string inputs that bypass type checking
113
112
  if (!isValidMetric(metric)) {
114
113
  throw new Error(`Invalid analytics metric: "${metric}". Valid metrics: ${ANALYTICS_METRICS.join(', ')}`);
115
114
  }
@@ -1 +1 @@
1
- {"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../src/operations/analytics.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA0BpD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,MAAqB,EACrB,KAAsB;IAEtB,OAAO,MAAM,CAAC,GAAG,CACf,+BAA+B,EAC/B,UAAU,CAAC,KAAK,CAAC,CAClB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,MAAqB,EACrB,KAA6B;IAE7B,OAAO,MAAM,CAAC,GAAG,CACf,+BAA+B,EAC/B,UAAU,CAAC,KAAK,CAAC,CAClB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MA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rB,CAAC,CAAC,CAAC;AACN,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,mBAAmB;IACnB,kBAAkB;IAClB,wBAAwB;IACxB,eAAe;IACf,qBAAqB;IACrB,eAAe;IACf,eAAe;IACf,uBAAuB;IACvB,sBAAsB;CACd,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,MAAc;IAC1C,OAAO,iBAAiB,CAAC,QAAQ,CAAC,MAAyB,CAAC,CAAC;AAC/D,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,MAAqB,EACrB,MAAuB,EACvB,KAAsB;IAEtB,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CACb,8BAA8B,MAAM,qBAAqB,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACxF,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,GAAG,CACf,cAAc,MAAM,EAAE,EACtB,UAAU,CAAC,KAAK,CAAC,CAClB,CAAC;AACJ,CAAC;AAED,+BAA+B;AAC/B,kDAAkD;AAClD,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;AAC3D,kDAAkD;AAClD,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;AAC3D,6CAA6C;AAC7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAc,CAAC;AACjD,yCAAyC;AACzC,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC"}
@@ -1140,6 +1140,537 @@ export declare const BulkStatusUpdateResultResponseSchema: z.ZodObject<{
1140
1140
  "false-positive": "false-positive";
1141
1141
  }>>;
1142
1142
  }, z.core.$strip>;
1143
+ export declare const AgentPerformanceResponseSchema: z.ZodObject<{
1144
+ name: z.ZodString;
1145
+ totalRuns: z.ZodNumber;
1146
+ averageScore: z.ZodNumber;
1147
+ passRate: z.ZodNumber;
1148
+ totalIssuesFound: z.ZodNumber;
1149
+ }, z.core.$strip>;
1150
+ export declare const AgentReliabilityResponseSchema: z.ZodObject<{
1151
+ name: z.ZodString;
1152
+ totalIssues: z.ZodNumber;
1153
+ falsePositiveRate: z.ZodNumber;
1154
+ resolutionRate: z.ZodNumber;
1155
+ avgTimeToResolveDays: z.ZodNullable<z.ZodNumber>;
1156
+ reliabilityScore: z.ZodNumber;
1157
+ }, z.core.$strip>;
1158
+ export declare const AgentReliabilityResultResponseSchema: z.ZodObject<{
1159
+ agents: z.ZodArray<z.ZodObject<{
1160
+ name: z.ZodString;
1161
+ totalIssues: z.ZodNumber;
1162
+ falsePositiveRate: z.ZodNumber;
1163
+ resolutionRate: z.ZodNumber;
1164
+ avgTimeToResolveDays: z.ZodNullable<z.ZodNumber>;
1165
+ reliabilityScore: z.ZodNumber;
1166
+ }, z.core.$strip>>;
1167
+ }, z.core.$strip>;
1168
+ export declare const ResolutionRateResponseSchema: z.ZodObject<{
1169
+ project: z.ZodString;
1170
+ totalIssues: z.ZodNumber;
1171
+ resolvedIssues: z.ZodNumber;
1172
+ resolutionRate: z.ZodNumber;
1173
+ averageTimeToResolve: z.ZodNullable<z.ZodNumber>;
1174
+ }, z.core.$strip>;
1175
+ export declare const FileHotspotResponseSchema: z.ZodObject<{
1176
+ filePath: z.ZodString;
1177
+ totalIssues: z.ZodNumber;
1178
+ openIssues: z.ZodNumber;
1179
+ resolvedIssues: z.ZodNumber;
1180
+ topAgents: z.ZodArray<z.ZodString>;
1181
+ }, z.core.$strip>;
1182
+ export declare const TaxonomyDistributionResponseSchema: z.ZodObject<{
1183
+ domain: z.ZodString;
1184
+ count: z.ZodNumber;
1185
+ percentage: z.ZodNumber;
1186
+ }, z.core.$strip>;
1187
+ export declare const OutlierPointResponseSchema: z.ZodObject<{
1188
+ date: z.ZodString;
1189
+ value: z.ZodNumber;
1190
+ direction: z.ZodEnum<{
1191
+ high: "high";
1192
+ low: "low";
1193
+ }>;
1194
+ }, z.core.$strip>;
1195
+ export declare const ResidualDiagnosticsResponseSchema: z.ZodObject<{
1196
+ durbinWatson: z.ZodNumber;
1197
+ autocorrelation: z.ZodEnum<{
1198
+ none: "none";
1199
+ positive: "positive";
1200
+ negative: "negative";
1201
+ inconclusive: "inconclusive";
1202
+ }>;
1203
+ varianceRatio: z.ZodNullable<z.ZodNumber>;
1204
+ heteroscedasticity: z.ZodEnum<{
1205
+ inconclusive: "inconclusive";
1206
+ constant: "constant";
1207
+ increasing: "increasing";
1208
+ decreasing: "decreasing";
1209
+ }>;
1210
+ skewness: z.ZodNumber;
1211
+ runsTestZ: z.ZodNumber;
1212
+ assumptionScore: z.ZodNumber;
1213
+ warnings: z.ZodArray<z.ZodString>;
1214
+ }, z.core.$strip>;
1215
+ export declare const DomainTrendResponseSchema: z.ZodObject<{
1216
+ netChange: z.ZodNumber;
1217
+ trend: z.ZodString;
1218
+ avgDailyChange: z.ZodNumber;
1219
+ confidence: z.ZodEnum<{
1220
+ high: "high";
1221
+ medium: "medium";
1222
+ low: "low";
1223
+ }>;
1224
+ sampleSize: z.ZodNumber;
1225
+ rSquared: z.ZodNumber;
1226
+ standardError: z.ZodNumber;
1227
+ confidenceInterval: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1228
+ outliers: z.ZodArray<z.ZodObject<{
1229
+ date: z.ZodString;
1230
+ value: z.ZodNumber;
1231
+ direction: z.ZodEnum<{
1232
+ high: "high";
1233
+ low: "low";
1234
+ }>;
1235
+ }, z.core.$strip>>;
1236
+ diagnostics: z.ZodNullable<z.ZodObject<{
1237
+ durbinWatson: z.ZodNumber;
1238
+ autocorrelation: z.ZodEnum<{
1239
+ none: "none";
1240
+ positive: "positive";
1241
+ negative: "negative";
1242
+ inconclusive: "inconclusive";
1243
+ }>;
1244
+ varianceRatio: z.ZodNullable<z.ZodNumber>;
1245
+ heteroscedasticity: z.ZodEnum<{
1246
+ inconclusive: "inconclusive";
1247
+ constant: "constant";
1248
+ increasing: "increasing";
1249
+ decreasing: "decreasing";
1250
+ }>;
1251
+ skewness: z.ZodNumber;
1252
+ runsTestZ: z.ZodNumber;
1253
+ assumptionScore: z.ZodNumber;
1254
+ warnings: z.ZodArray<z.ZodString>;
1255
+ }, z.core.$strip>>;
1256
+ ciReliable: z.ZodBoolean;
1257
+ warnings: z.ZodArray<z.ZodString>;
1258
+ weeklyPatternDetected: z.ZodBoolean;
1259
+ }, z.core.$strip>;
1260
+ export declare const BurndownDataPointResponseSchema: z.ZodObject<{
1261
+ date: z.ZodString;
1262
+ STR: z.ZodNumber;
1263
+ SEM: z.ZodNumber;
1264
+ PRA: z.ZodNumber;
1265
+ EPI: z.ZodNumber;
1266
+ total: z.ZodNumber;
1267
+ }, z.core.$strip>;
1268
+ export declare const BurndownResultResponseSchema: z.ZodObject<{
1269
+ timeSeries: z.ZodArray<z.ZodObject<{
1270
+ date: z.ZodString;
1271
+ STR: z.ZodNumber;
1272
+ SEM: z.ZodNumber;
1273
+ PRA: z.ZodNumber;
1274
+ EPI: z.ZodNumber;
1275
+ total: z.ZodNumber;
1276
+ }, z.core.$strip>>;
1277
+ trends: z.ZodObject<{
1278
+ STR: z.ZodObject<{
1279
+ netChange: z.ZodNumber;
1280
+ trend: z.ZodString;
1281
+ avgDailyChange: z.ZodNumber;
1282
+ confidence: z.ZodEnum<{
1283
+ high: "high";
1284
+ medium: "medium";
1285
+ low: "low";
1286
+ }>;
1287
+ sampleSize: z.ZodNumber;
1288
+ rSquared: z.ZodNumber;
1289
+ standardError: z.ZodNumber;
1290
+ confidenceInterval: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1291
+ outliers: z.ZodArray<z.ZodObject<{
1292
+ date: z.ZodString;
1293
+ value: z.ZodNumber;
1294
+ direction: z.ZodEnum<{
1295
+ high: "high";
1296
+ low: "low";
1297
+ }>;
1298
+ }, z.core.$strip>>;
1299
+ diagnostics: z.ZodNullable<z.ZodObject<{
1300
+ durbinWatson: z.ZodNumber;
1301
+ autocorrelation: z.ZodEnum<{
1302
+ none: "none";
1303
+ positive: "positive";
1304
+ negative: "negative";
1305
+ inconclusive: "inconclusive";
1306
+ }>;
1307
+ varianceRatio: z.ZodNullable<z.ZodNumber>;
1308
+ heteroscedasticity: z.ZodEnum<{
1309
+ inconclusive: "inconclusive";
1310
+ constant: "constant";
1311
+ increasing: "increasing";
1312
+ decreasing: "decreasing";
1313
+ }>;
1314
+ skewness: z.ZodNumber;
1315
+ runsTestZ: z.ZodNumber;
1316
+ assumptionScore: z.ZodNumber;
1317
+ warnings: z.ZodArray<z.ZodString>;
1318
+ }, z.core.$strip>>;
1319
+ ciReliable: z.ZodBoolean;
1320
+ warnings: z.ZodArray<z.ZodString>;
1321
+ weeklyPatternDetected: z.ZodBoolean;
1322
+ }, z.core.$strip>;
1323
+ SEM: z.ZodObject<{
1324
+ netChange: z.ZodNumber;
1325
+ trend: z.ZodString;
1326
+ avgDailyChange: z.ZodNumber;
1327
+ confidence: z.ZodEnum<{
1328
+ high: "high";
1329
+ medium: "medium";
1330
+ low: "low";
1331
+ }>;
1332
+ sampleSize: z.ZodNumber;
1333
+ rSquared: z.ZodNumber;
1334
+ standardError: z.ZodNumber;
1335
+ confidenceInterval: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1336
+ outliers: z.ZodArray<z.ZodObject<{
1337
+ date: z.ZodString;
1338
+ value: z.ZodNumber;
1339
+ direction: z.ZodEnum<{
1340
+ high: "high";
1341
+ low: "low";
1342
+ }>;
1343
+ }, z.core.$strip>>;
1344
+ diagnostics: z.ZodNullable<z.ZodObject<{
1345
+ durbinWatson: z.ZodNumber;
1346
+ autocorrelation: z.ZodEnum<{
1347
+ none: "none";
1348
+ positive: "positive";
1349
+ negative: "negative";
1350
+ inconclusive: "inconclusive";
1351
+ }>;
1352
+ varianceRatio: z.ZodNullable<z.ZodNumber>;
1353
+ heteroscedasticity: z.ZodEnum<{
1354
+ inconclusive: "inconclusive";
1355
+ constant: "constant";
1356
+ increasing: "increasing";
1357
+ decreasing: "decreasing";
1358
+ }>;
1359
+ skewness: z.ZodNumber;
1360
+ runsTestZ: z.ZodNumber;
1361
+ assumptionScore: z.ZodNumber;
1362
+ warnings: z.ZodArray<z.ZodString>;
1363
+ }, z.core.$strip>>;
1364
+ ciReliable: z.ZodBoolean;
1365
+ warnings: z.ZodArray<z.ZodString>;
1366
+ weeklyPatternDetected: z.ZodBoolean;
1367
+ }, z.core.$strip>;
1368
+ PRA: z.ZodObject<{
1369
+ netChange: z.ZodNumber;
1370
+ trend: z.ZodString;
1371
+ avgDailyChange: z.ZodNumber;
1372
+ confidence: z.ZodEnum<{
1373
+ high: "high";
1374
+ medium: "medium";
1375
+ low: "low";
1376
+ }>;
1377
+ sampleSize: z.ZodNumber;
1378
+ rSquared: z.ZodNumber;
1379
+ standardError: z.ZodNumber;
1380
+ confidenceInterval: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1381
+ outliers: z.ZodArray<z.ZodObject<{
1382
+ date: z.ZodString;
1383
+ value: z.ZodNumber;
1384
+ direction: z.ZodEnum<{
1385
+ high: "high";
1386
+ low: "low";
1387
+ }>;
1388
+ }, z.core.$strip>>;
1389
+ diagnostics: z.ZodNullable<z.ZodObject<{
1390
+ durbinWatson: z.ZodNumber;
1391
+ autocorrelation: z.ZodEnum<{
1392
+ none: "none";
1393
+ positive: "positive";
1394
+ negative: "negative";
1395
+ inconclusive: "inconclusive";
1396
+ }>;
1397
+ varianceRatio: z.ZodNullable<z.ZodNumber>;
1398
+ heteroscedasticity: z.ZodEnum<{
1399
+ inconclusive: "inconclusive";
1400
+ constant: "constant";
1401
+ increasing: "increasing";
1402
+ decreasing: "decreasing";
1403
+ }>;
1404
+ skewness: z.ZodNumber;
1405
+ runsTestZ: z.ZodNumber;
1406
+ assumptionScore: z.ZodNumber;
1407
+ warnings: z.ZodArray<z.ZodString>;
1408
+ }, z.core.$strip>>;
1409
+ ciReliable: z.ZodBoolean;
1410
+ warnings: z.ZodArray<z.ZodString>;
1411
+ weeklyPatternDetected: z.ZodBoolean;
1412
+ }, z.core.$strip>;
1413
+ EPI: z.ZodObject<{
1414
+ netChange: z.ZodNumber;
1415
+ trend: z.ZodString;
1416
+ avgDailyChange: z.ZodNumber;
1417
+ confidence: z.ZodEnum<{
1418
+ high: "high";
1419
+ medium: "medium";
1420
+ low: "low";
1421
+ }>;
1422
+ sampleSize: z.ZodNumber;
1423
+ rSquared: z.ZodNumber;
1424
+ standardError: z.ZodNumber;
1425
+ confidenceInterval: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1426
+ outliers: z.ZodArray<z.ZodObject<{
1427
+ date: z.ZodString;
1428
+ value: z.ZodNumber;
1429
+ direction: z.ZodEnum<{
1430
+ high: "high";
1431
+ low: "low";
1432
+ }>;
1433
+ }, z.core.$strip>>;
1434
+ diagnostics: z.ZodNullable<z.ZodObject<{
1435
+ durbinWatson: z.ZodNumber;
1436
+ autocorrelation: z.ZodEnum<{
1437
+ none: "none";
1438
+ positive: "positive";
1439
+ negative: "negative";
1440
+ inconclusive: "inconclusive";
1441
+ }>;
1442
+ varianceRatio: z.ZodNullable<z.ZodNumber>;
1443
+ heteroscedasticity: z.ZodEnum<{
1444
+ inconclusive: "inconclusive";
1445
+ constant: "constant";
1446
+ increasing: "increasing";
1447
+ decreasing: "decreasing";
1448
+ }>;
1449
+ skewness: z.ZodNumber;
1450
+ runsTestZ: z.ZodNumber;
1451
+ assumptionScore: z.ZodNumber;
1452
+ warnings: z.ZodArray<z.ZodString>;
1453
+ }, z.core.$strip>>;
1454
+ ciReliable: z.ZodBoolean;
1455
+ warnings: z.ZodArray<z.ZodString>;
1456
+ weeklyPatternDetected: z.ZodBoolean;
1457
+ }, z.core.$strip>;
1458
+ }, z.core.$strip>;
1459
+ }, z.core.$strip>;
1460
+ export declare const VelocityItemResponseSchema: z.ZodObject<{
1461
+ domain: z.ZodString;
1462
+ mode: z.ZodString;
1463
+ failureCode: z.ZodString;
1464
+ currentCount: z.ZodNumber;
1465
+ previousCount: z.ZodNumber;
1466
+ velocityPercent: z.ZodNumber;
1467
+ alert: z.ZodBoolean;
1468
+ sparkline: z.ZodArray<z.ZodNumber>;
1469
+ trendReliability: z.ZodEnum<{
1470
+ high: "high";
1471
+ medium: "medium";
1472
+ low: "low";
1473
+ }>;
1474
+ }, z.core.$strip>;
1475
+ export declare const VelocitySummaryResponseSchema: z.ZodObject<{
1476
+ improving: z.ZodArray<z.ZodString>;
1477
+ stable: z.ZodArray<z.ZodString>;
1478
+ degrading: z.ZodArray<z.ZodString>;
1479
+ mostImproved: z.ZodNullable<z.ZodString>;
1480
+ mostConcerning: z.ZodNullable<z.ZodString>;
1481
+ }, z.core.$strip>;
1482
+ export declare const VelocityResultResponseSchema: z.ZodObject<{
1483
+ items: z.ZodArray<z.ZodObject<{
1484
+ domain: z.ZodString;
1485
+ mode: z.ZodString;
1486
+ failureCode: z.ZodString;
1487
+ currentCount: z.ZodNumber;
1488
+ previousCount: z.ZodNumber;
1489
+ velocityPercent: z.ZodNumber;
1490
+ alert: z.ZodBoolean;
1491
+ sparkline: z.ZodArray<z.ZodNumber>;
1492
+ trendReliability: z.ZodEnum<{
1493
+ high: "high";
1494
+ medium: "medium";
1495
+ low: "low";
1496
+ }>;
1497
+ }, z.core.$strip>>;
1498
+ summary: z.ZodObject<{
1499
+ improving: z.ZodArray<z.ZodString>;
1500
+ stable: z.ZodArray<z.ZodString>;
1501
+ degrading: z.ZodArray<z.ZodString>;
1502
+ mostImproved: z.ZodNullable<z.ZodString>;
1503
+ mostConcerning: z.ZodNullable<z.ZodString>;
1504
+ }, z.core.$strip>;
1505
+ }, z.core.$strip>;
1506
+ export declare const DiscoveryDomainBreakdownSchema: z.ZodObject<{
1507
+ new: z.ZodNumber;
1508
+ recurring: z.ZodNumber;
1509
+ }, z.core.$strip>;
1510
+ export declare const DiscoveryTimelinePointResponseSchema: z.ZodObject<{
1511
+ period: z.ZodString;
1512
+ newIssues: z.ZodNumber;
1513
+ recurringIssues: z.ZodNumber;
1514
+ domains: z.ZodRecord<z.ZodString, z.ZodObject<{
1515
+ new: z.ZodNumber;
1516
+ recurring: z.ZodNumber;
1517
+ }, z.core.$strip>>;
1518
+ }, z.core.$strip>;
1519
+ export declare const DiscoverySummaryResponseSchema: z.ZodObject<{
1520
+ totalNew: z.ZodNumber;
1521
+ totalRecurring: z.ZodNumber;
1522
+ newToRecurringRatio: z.ZodNullable<z.ZodNumber>;
1523
+ peakNewPeriod: z.ZodNullable<z.ZodObject<{
1524
+ period: z.ZodString;
1525
+ count: z.ZodNumber;
1526
+ }, z.core.$strip>>;
1527
+ }, z.core.$strip>;
1528
+ export declare const DiscoveryResultResponseSchema: z.ZodObject<{
1529
+ timeline: z.ZodArray<z.ZodObject<{
1530
+ period: z.ZodString;
1531
+ newIssues: z.ZodNumber;
1532
+ recurringIssues: z.ZodNumber;
1533
+ domains: z.ZodRecord<z.ZodString, z.ZodObject<{
1534
+ new: z.ZodNumber;
1535
+ recurring: z.ZodNumber;
1536
+ }, z.core.$strip>>;
1537
+ }, z.core.$strip>>;
1538
+ summary: z.ZodObject<{
1539
+ totalNew: z.ZodNumber;
1540
+ totalRecurring: z.ZodNumber;
1541
+ newToRecurringRatio: z.ZodNullable<z.ZodNumber>;
1542
+ peakNewPeriod: z.ZodNullable<z.ZodObject<{
1543
+ period: z.ZodString;
1544
+ count: z.ZodNumber;
1545
+ }, z.core.$strip>>;
1546
+ }, z.core.$strip>;
1547
+ }, z.core.$strip>;
1548
+ export declare const AgentMatrixRowResponseSchema: z.ZodObject<{
1549
+ agent: z.ZodString;
1550
+ domains: z.ZodRecord<z.ZodString, z.ZodNumber>;
1551
+ total: z.ZodNumber;
1552
+ coverage: z.ZodNumber;
1553
+ coveragePercent: z.ZodNumber;
1554
+ }, z.core.$strip>;
1555
+ export declare const AgentMatrixResultResponseSchema: z.ZodObject<{
1556
+ matrix: z.ZodArray<z.ZodObject<{
1557
+ agent: z.ZodString;
1558
+ domains: z.ZodRecord<z.ZodString, z.ZodNumber>;
1559
+ total: z.ZodNumber;
1560
+ coverage: z.ZodNumber;
1561
+ coveragePercent: z.ZodNumber;
1562
+ }, z.core.$strip>>;
1563
+ analysis: z.ZodObject<{
1564
+ blindSpots: z.ZodArray<z.ZodObject<{
1565
+ agent: z.ZodString;
1566
+ missingDomains: z.ZodArray<z.ZodString>;
1567
+ }, z.core.$strip>>;
1568
+ singlePoints: z.ZodArray<z.ZodObject<{
1569
+ domain: z.ZodString;
1570
+ mode: z.ZodString;
1571
+ onlyAgent: z.ZodString;
1572
+ }, z.core.$strip>>;
1573
+ highOverlap: z.ZodArray<z.ZodObject<{
1574
+ mode: z.ZodString;
1575
+ agentCount: z.ZodNumber;
1576
+ agents: z.ZodArray<z.ZodString>;
1577
+ }, z.core.$strip>>;
1578
+ }, z.core.$strip>;
1579
+ }, z.core.$strip>;
1580
+ export declare const TrendSummaryResponseSchema: z.ZodObject<{
1581
+ metric: z.ZodString;
1582
+ current: z.ZodNumber;
1583
+ previous: z.ZodNumber;
1584
+ change: z.ZodNumber;
1585
+ changePercent: z.ZodNumber;
1586
+ trend: z.ZodString;
1587
+ }, z.core.$strip>;
1588
+ export declare const CrossProjectPatternResponseSchema: z.ZodObject<{
1589
+ pattern: z.ZodString;
1590
+ projects: z.ZodArray<z.ZodString>;
1591
+ projectCount: z.ZodNumber;
1592
+ totalOccurrences: z.ZodNumber;
1593
+ severity: z.ZodString;
1594
+ }, z.core.$strip>;
1595
+ export declare const RegressionEntryResponseSchema: z.ZodObject<{
1596
+ issueId: z.ZodString;
1597
+ title: z.ZodString;
1598
+ project: z.ZodString;
1599
+ timesRegressed: z.ZodNumber;
1600
+ lastRegression: z.ZodString;
1601
+ agent: z.ZodString;
1602
+ }, z.core.$strip>;
1603
+ export declare const CostEntryResponseSchema: z.ZodObject<{
1604
+ name: z.ZodString;
1605
+ totalRuns: z.ZodNumber;
1606
+ totalInputTokens: z.ZodNumber;
1607
+ totalOutputTokens: z.ZodNumber;
1608
+ totalEffectiveTokens: z.ZodNumber;
1609
+ estimatedCost: z.ZodNumber;
1610
+ }, z.core.$strip>;
1611
+ export declare const CategoryPerformanceResponseSchema: z.ZodObject<{
1612
+ category: z.ZodString;
1613
+ totalIssues: z.ZodNumber;
1614
+ resolvedIssues: z.ZodNumber;
1615
+ resolutionRate: z.ZodNumber;
1616
+ avgTimeToResolveDays: z.ZodNullable<z.ZodNumber>;
1617
+ }, z.core.$strip>;
1618
+ export declare const PeriodResponseSchema: z.ZodObject<{
1619
+ start: z.ZodString;
1620
+ end: z.ZodString;
1621
+ days: z.ZodNumber;
1622
+ }, z.core.$strip>;
1623
+ export declare const FullTaxonomyAnalyticsResponseSchema: z.ZodObject<{
1624
+ byDomain: z.ZodArray<z.ZodObject<{
1625
+ domain: z.ZodString;
1626
+ label: z.ZodString;
1627
+ count: z.ZodNumber;
1628
+ percentage: z.ZodNumber;
1629
+ }, z.core.$strip>>;
1630
+ bySeverity: z.ZodArray<z.ZodObject<{
1631
+ severity: z.ZodString;
1632
+ label: z.ZodString;
1633
+ count: z.ZodNumber;
1634
+ percentage: z.ZodNumber;
1635
+ }, z.core.$strip>>;
1636
+ byMode: z.ZodArray<z.ZodObject<{
1637
+ mode: z.ZodString;
1638
+ label: z.ZodString;
1639
+ domain: z.ZodString;
1640
+ domainLabel: z.ZodString;
1641
+ count: z.ZodNumber;
1642
+ percentage: z.ZodNumber;
1643
+ }, z.core.$strip>>;
1644
+ topCodes: z.ZodArray<z.ZodObject<{
1645
+ code: z.ZodString;
1646
+ domain: z.ZodString;
1647
+ mode: z.ZodString;
1648
+ severity: z.ZodString;
1649
+ label: z.ZodString;
1650
+ count: z.ZodNumber;
1651
+ percentage: z.ZodNumber;
1652
+ }, z.core.$strip>>;
1653
+ heatmapData: z.ZodArray<z.ZodObject<{
1654
+ domain: z.ZodString;
1655
+ domainLabel: z.ZodString;
1656
+ mode: z.ZodString;
1657
+ modeLabel: z.ZodString;
1658
+ count: z.ZodNumber;
1659
+ percentage: z.ZodNumber;
1660
+ intensity: z.ZodNumber;
1661
+ }, z.core.$strip>>;
1662
+ totals: z.ZodObject<{
1663
+ totalIssues: z.ZodNumber;
1664
+ classifiedIssues: z.ZodNumber;
1665
+ unclassifiedIssues: z.ZodNumber;
1666
+ classificationRate: z.ZodNumber;
1667
+ }, z.core.$strip>;
1668
+ period: z.ZodObject<{
1669
+ start: z.ZodString;
1670
+ end: z.ZodString;
1671
+ days: z.ZodNumber;
1672
+ }, z.core.$strip>;
1673
+ }, z.core.$strip>;
1143
1674
  export declare const ErrorResponseSchema: z.ZodObject<{
1144
1675
  error: z.ZodObject<{
1145
1676
  code: z.ZodString;