@thinkai/tai-api-contract 2.61.0 → 2.63.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.
- package/dist/generated/openapi.d.ts +532 -4
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +69 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -0
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +636 -7
- package/package.json +1 -1
- package/src/generated/openapi.ts +532 -4
- package/src/index.ts +122 -0
package/src/index.ts
CHANGED
|
@@ -1145,6 +1145,14 @@ export interface YourAiJourneyAnalyticsDto {
|
|
|
1145
1145
|
/** Response for GET /workspaces/:workspaceId/your-ai-journey/productivity — same shape as DashboardProductivityDto. */
|
|
1146
1146
|
export type YourAiJourneyProductivityDto = DashboardProductivityDto;
|
|
1147
1147
|
|
|
1148
|
+
/** Response for GET /workspaces/:workspaceId/your-ai-journey/hero — first-paint BFF. */
|
|
1149
|
+
export interface YourAiJourneyHeroDto {
|
|
1150
|
+
workspaceId: string;
|
|
1151
|
+
generatedAt: string;
|
|
1152
|
+
analytics: YourAiJourneyAnalyticsDto;
|
|
1153
|
+
productivity: YourAiJourneyProductivityDto;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1148
1156
|
/** Response for GET /workspaces/:workspaceId/your-ai-journey/agentic-foundation — same shape as AgenticFoundationDashboardDto. */
|
|
1149
1157
|
export type YourAiJourneyAgenticFoundationDto = AgenticFoundationDashboardDto;
|
|
1150
1158
|
|
|
@@ -1415,6 +1423,120 @@ export interface AiToolMemberDetailDto {
|
|
|
1415
1423
|
heatmap: AiToolMemberHeatmapDayDto[];
|
|
1416
1424
|
}
|
|
1417
1425
|
|
|
1426
|
+
/** Canonical SDLC Engineering Health module ids. */
|
|
1427
|
+
export const SDL_C_MODULE_IDS = [
|
|
1428
|
+
"dora",
|
|
1429
|
+
"ci-pipeline",
|
|
1430
|
+
"collaboration-pr",
|
|
1431
|
+
"security-risk",
|
|
1432
|
+
"governance-architecture",
|
|
1433
|
+
"financial-operational",
|
|
1434
|
+
] as const;
|
|
1435
|
+
export type SdlcModuleId = (typeof SDL_C_MODULE_IDS)[number];
|
|
1436
|
+
|
|
1437
|
+
/** Canonical SDLC Engineering Health metric ids (34). */
|
|
1438
|
+
export const SDL_C_METRIC_IDS = [
|
|
1439
|
+
"dora-deployment-frequency",
|
|
1440
|
+
"dora-lead-time",
|
|
1441
|
+
"dora-cfr",
|
|
1442
|
+
"dora-mttr",
|
|
1443
|
+
"ci-success-rate",
|
|
1444
|
+
"ci-duration-p50-p95",
|
|
1445
|
+
"ci-flakiness",
|
|
1446
|
+
"ci-queue-wait",
|
|
1447
|
+
"ci-cache-hit",
|
|
1448
|
+
"pr-review-time",
|
|
1449
|
+
"pr-bus-factor",
|
|
1450
|
+
"pr-size",
|
|
1451
|
+
"pr-abandonment",
|
|
1452
|
+
"pr-review-depth",
|
|
1453
|
+
"pr-draft-duration",
|
|
1454
|
+
"pr-merge-conflicts",
|
|
1455
|
+
"pr-commit-density",
|
|
1456
|
+
"sec-dependabot-backlog",
|
|
1457
|
+
"sec-vuln-mttr",
|
|
1458
|
+
"sec-secret-scanning",
|
|
1459
|
+
"sec-self-approvals",
|
|
1460
|
+
"sec-unreviewed-merge",
|
|
1461
|
+
"gov-branch-protection",
|
|
1462
|
+
"gov-stale-branches",
|
|
1463
|
+
"gov-orphaned-repos",
|
|
1464
|
+
"gov-readme-health",
|
|
1465
|
+
"gov-codeowners",
|
|
1466
|
+
"gov-issue-pr-linkage",
|
|
1467
|
+
"fin-gha-minutes",
|
|
1468
|
+
"fin-copilot-utilization",
|
|
1469
|
+
"fin-org-inactivity",
|
|
1470
|
+
"fin-env-drift",
|
|
1471
|
+
"fin-release-cadence",
|
|
1472
|
+
"fin-api-rate-limit",
|
|
1473
|
+
] as const;
|
|
1474
|
+
export type SdlcMetricId = (typeof SDL_C_METRIC_IDS)[number];
|
|
1475
|
+
|
|
1476
|
+
export type SdlcMetricDataStatus = "live" | "preview" | "unavailable";
|
|
1477
|
+
export type SdlcMetricHealthStatus = "healthy" | "warning" | "critical" | "unknown";
|
|
1478
|
+
export type SdlcBenchmarkBand = "elite" | "high" | "medium" | "low";
|
|
1479
|
+
|
|
1480
|
+
export interface SdlcMetricTrendDto {
|
|
1481
|
+
direction: "up" | "down" | "flat";
|
|
1482
|
+
deltaPercent?: number;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
export interface SdlcDailySeriesPointDto {
|
|
1486
|
+
date: string;
|
|
1487
|
+
value: number;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
export interface SdlcMetricDto {
|
|
1491
|
+
id: SdlcMetricId;
|
|
1492
|
+
name: string;
|
|
1493
|
+
dataStatus: SdlcMetricDataStatus;
|
|
1494
|
+
healthStatus: SdlcMetricHealthStatus;
|
|
1495
|
+
value: number | string | null;
|
|
1496
|
+
unit?: string;
|
|
1497
|
+
secondaryValue?: number | string | null;
|
|
1498
|
+
secondaryLabel?: string;
|
|
1499
|
+
trend?: SdlcMetricTrendDto;
|
|
1500
|
+
benchmarkBand?: SdlcBenchmarkBand;
|
|
1501
|
+
drilldownAvailable: boolean;
|
|
1502
|
+
dailySeries?: SdlcDailySeriesPointDto[];
|
|
1503
|
+
unavailableReason?: string;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
export interface SdlcModuleDto {
|
|
1507
|
+
id: SdlcModuleId;
|
|
1508
|
+
name: string;
|
|
1509
|
+
metrics: SdlcMetricDto[];
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
/** Response for GET /workspaces/:workspaceId/insights/sdlc/overview */
|
|
1513
|
+
export interface SdlcOverviewDto {
|
|
1514
|
+
rangeId: string;
|
|
1515
|
+
from: string;
|
|
1516
|
+
to: string;
|
|
1517
|
+
department: string;
|
|
1518
|
+
team: string;
|
|
1519
|
+
repoIds: string[];
|
|
1520
|
+
asOf: string;
|
|
1521
|
+
modules: SdlcModuleDto[];
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
export interface SdlcDrilldownItemDto {
|
|
1525
|
+
id: string;
|
|
1526
|
+
title: string;
|
|
1527
|
+
subtitle?: string;
|
|
1528
|
+
url?: string;
|
|
1529
|
+
occurredAt?: string;
|
|
1530
|
+
metadata?: Record<string, string | number>;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
/** Response for GET /workspaces/:workspaceId/insights/sdlc/drilldown/{metricId} */
|
|
1534
|
+
export interface SdlcDrilldownDto {
|
|
1535
|
+
metricId: SdlcMetricId;
|
|
1536
|
+
items: SdlcDrilldownItemDto[];
|
|
1537
|
+
nextCursor?: string;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1418
1540
|
export {
|
|
1419
1541
|
JOURNEY_STEP_IDS,
|
|
1420
1542
|
JOURNEY_STEP_REGISTRY,
|