@thinkai/tai-api-contract 2.35.0 → 2.37.0-pr.810.f519687c
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 +39 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +51 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +66 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +39 -0
- package/src/index.ts +52 -0
|
@@ -2393,7 +2393,12 @@ export interface components {
|
|
|
2393
2393
|
/** @description Short label for the week column (MM/DD), aligned with Measure charts. */
|
|
2394
2394
|
weekLabel?: string;
|
|
2395
2395
|
mergedPrCount: number;
|
|
2396
|
+
/** @description DORA change failure rate (deployments/incidents), not CI build failures. */
|
|
2396
2397
|
failRatePercent: number;
|
|
2398
|
+
/** @description GitHub Actions / Checks CI build failure rate for the week bucket (failed runs / (failed + passed) * 100). Zero when GitHub Actions CI is disabled. */
|
|
2399
|
+
ciFailRatePercent?: number;
|
|
2400
|
+
/** @description Count of build.failed events in the week bucket when CI ingest is enabled. */
|
|
2401
|
+
ciBuildFailuresCount?: number;
|
|
2397
2402
|
/** @description Mean hours from PR creation to first review in this week bucket. */
|
|
2398
2403
|
avgReviewWaitHours?: number;
|
|
2399
2404
|
/** @description Mean hours from first review to first approval in this week bucket. */
|
|
@@ -2426,6 +2431,8 @@ export interface components {
|
|
|
2426
2431
|
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
2427
2432
|
/** Format: date-time */
|
|
2428
2433
|
generatedAt: string;
|
|
2434
|
+
/** @description True when the workspace has opted in to GitHub Actions CI ingest. */
|
|
2435
|
+
githubActionsCiEnabled?: boolean;
|
|
2429
2436
|
teams: components["schemas"]["ProductivityInsightsAggregatedTeamRowDto"][];
|
|
2430
2437
|
};
|
|
2431
2438
|
ProductivityInsightsMergedPrTrendWeekDto: {
|
|
@@ -2470,11 +2477,16 @@ export interface components {
|
|
|
2470
2477
|
periodAvgMergedPrs: number;
|
|
2471
2478
|
/** @description Average change failure rate over the range when available. */
|
|
2472
2479
|
avgFailRatePercent?: number;
|
|
2480
|
+
/** @description Average GitHub Actions CI build failure rate over the range when CI ingest is enabled. */
|
|
2481
|
+
avgCiFailRatePercent?: number;
|
|
2473
2482
|
};
|
|
2474
2483
|
ProductivityInsightsTeamSummaryDto: {
|
|
2475
2484
|
totalMergedPrs: number;
|
|
2476
2485
|
avgMergedPrsPerWeek: number;
|
|
2486
|
+
/** @description Average DORA change failure rate over the range when available. */
|
|
2477
2487
|
avgFailRatePercent: number;
|
|
2488
|
+
/** @description Average GitHub Actions CI build failure rate over the range when CI ingest is enabled. */
|
|
2489
|
+
avgCiFailRatePercent?: number;
|
|
2478
2490
|
headcount: number;
|
|
2479
2491
|
};
|
|
2480
2492
|
ProductivityInsightsTeamDetailDto: {
|
|
@@ -2501,6 +2513,8 @@ export interface components {
|
|
|
2501
2513
|
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
2502
2514
|
/** Format: date-time */
|
|
2503
2515
|
generatedAt: string;
|
|
2516
|
+
/** @description True when the workspace has opted in to GitHub Actions CI ingest. */
|
|
2517
|
+
githubActionsCiEnabled?: boolean;
|
|
2504
2518
|
/** @description Present when `teamId` query is omitted — top-ranked teams. */
|
|
2505
2519
|
items?: components["schemas"]["ProductivityInsightsTeamLeaderItemDto"][];
|
|
2506
2520
|
/** @description Present when `teamId` query is set — single-team drilldown. */
|
|
@@ -2528,6 +2542,8 @@ export interface components {
|
|
|
2528
2542
|
absenceType?: string;
|
|
2529
2543
|
failureSignal: boolean;
|
|
2530
2544
|
failures: string[];
|
|
2545
|
+
/** @description Failed GitHub Actions workflow runs for this UTC day when CI ingest is enabled. */
|
|
2546
|
+
failureItems?: components["schemas"]["ProductivityInsightsContributorFailureItemDto"][];
|
|
2531
2547
|
/** @description Optional PR rows with GitHub links when ingest stored URLs. */
|
|
2532
2548
|
mergedPrItems?: components["schemas"]["ProductivityInsightsContributorMergedPrItemDto"][];
|
|
2533
2549
|
};
|
|
@@ -2536,6 +2552,17 @@ export interface components {
|
|
|
2536
2552
|
/** Format: uri */
|
|
2537
2553
|
url?: string;
|
|
2538
2554
|
};
|
|
2555
|
+
ProductivityInsightsContributorFailureItemDto: {
|
|
2556
|
+
label: string;
|
|
2557
|
+
/** Format: uri */
|
|
2558
|
+
url?: string;
|
|
2559
|
+
workflowName?: string;
|
|
2560
|
+
/** @description GitHub repository slug (owner/repo). */
|
|
2561
|
+
repo?: string;
|
|
2562
|
+
branch?: string;
|
|
2563
|
+
/** Format: date-time */
|
|
2564
|
+
occurredAt?: string;
|
|
2565
|
+
};
|
|
2539
2566
|
ProductivityInsightsContributorActivityWeekDto: {
|
|
2540
2567
|
label: string;
|
|
2541
2568
|
/** Format: date-time */
|
|
@@ -2548,11 +2575,16 @@ export interface components {
|
|
|
2548
2575
|
totalMergedPrs: number;
|
|
2549
2576
|
avgMergedPrsPerWeek: number;
|
|
2550
2577
|
totalAbsenceDays: number;
|
|
2578
|
+
/** @description CI failure rate (%) over the selected range when GitHub Actions CI ingest is enabled (failures / runs × 100); otherwise average DORA change failure rate when available. */
|
|
2551
2579
|
avgFailRate: number;
|
|
2580
|
+
/** @description Average GitHub Actions CI build failure rate over the range when CI ingest is enabled. */
|
|
2581
|
+
avgCiFailRate?: number;
|
|
2552
2582
|
mergedPrDelta: number;
|
|
2553
2583
|
avgMergedPrsPerWeekDelta: number;
|
|
2554
2584
|
totalAbsenceDaysDelta: number;
|
|
2555
2585
|
avgFailRateDelta: number;
|
|
2586
|
+
/** @description Change in average CI build failure rate vs the prior comparison window. */
|
|
2587
|
+
avgCiFailRateDelta?: number;
|
|
2556
2588
|
};
|
|
2557
2589
|
ProductivityInsightsContributorDetailDto: {
|
|
2558
2590
|
/** Format: uuid */
|
|
@@ -2564,6 +2596,8 @@ export interface components {
|
|
|
2564
2596
|
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
2565
2597
|
/** Format: date-time */
|
|
2566
2598
|
generatedAt: string;
|
|
2599
|
+
/** @description True when the workspace has opted in to GitHub Actions CI ingest. */
|
|
2600
|
+
githubActionsCiEnabled?: boolean;
|
|
2567
2601
|
contributor: components["schemas"]["ProductivityInsightsContributorProfileDto"];
|
|
2568
2602
|
weeks: components["schemas"]["ProductivityInsightsContributorActivityWeekDto"][];
|
|
2569
2603
|
summary: components["schemas"]["ProductivityInsightsContributorActivitySummaryDto"];
|
|
@@ -2582,6 +2616,8 @@ export interface components {
|
|
|
2582
2616
|
periodAvgMergedPrs: number;
|
|
2583
2617
|
/** @description Mean weekly change-failure rate when available. */
|
|
2584
2618
|
avgFailRatePercent?: number;
|
|
2619
|
+
/** @description Mean weekly GitHub Actions CI build failure rate when CI ingest is enabled. */
|
|
2620
|
+
avgCiFailRatePercent?: number;
|
|
2585
2621
|
};
|
|
2586
2622
|
ProductivityInsightsNeedsAttentionDto: {
|
|
2587
2623
|
/** Format: uuid */
|
|
@@ -2592,6 +2628,8 @@ export interface components {
|
|
|
2592
2628
|
entityType: "teams" | "contributors";
|
|
2593
2629
|
/** Format: date-time */
|
|
2594
2630
|
generatedAt: string;
|
|
2631
|
+
/** @description True when GitHub Actions CI ingest is enabled for this workspace. */
|
|
2632
|
+
githubActionsCiEnabled?: boolean;
|
|
2595
2633
|
items: components["schemas"]["ProductivityInsightsNeedsAttentionItemDto"][];
|
|
2596
2634
|
};
|
|
2597
2635
|
AiUsageSpendAggregatedTeamWeekDto: {
|
|
@@ -4344,6 +4382,7 @@ export type ProductivityInsightsTeamsResponseDto = components['schemas']['Produc
|
|
|
4344
4382
|
export type ProductivityInsightsContributorProfileDto = components['schemas']['ProductivityInsightsContributorProfileDto'];
|
|
4345
4383
|
export type ProductivityInsightsContributorActivityDayDto = components['schemas']['ProductivityInsightsContributorActivityDayDto'];
|
|
4346
4384
|
export type ProductivityInsightsContributorMergedPrItemDto = components['schemas']['ProductivityInsightsContributorMergedPrItemDto'];
|
|
4385
|
+
export type ProductivityInsightsContributorFailureItemDto = components['schemas']['ProductivityInsightsContributorFailureItemDto'];
|
|
4347
4386
|
export type ProductivityInsightsContributorActivityWeekDto = components['schemas']['ProductivityInsightsContributorActivityWeekDto'];
|
|
4348
4387
|
export type ProductivityInsightsContributorActivitySummaryDto = components['schemas']['ProductivityInsightsContributorActivitySummaryDto'];
|
|
4349
4388
|
export type ProductivityInsightsContributorDetailDto = components['schemas']['ProductivityInsightsContributorDetailDto'];
|