@thinkai/tai-api-contract 2.48.0 → 2.49.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 +950 -18
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +45 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +892 -11
- package/package.json +1 -1
- package/src/generated/openapi.ts +950 -18
- package/src/index.ts +48 -10
package/src/index.ts
CHANGED
|
@@ -473,6 +473,19 @@ export interface ProductivityInsightsAggregatedTeamsScopeDto {
|
|
|
473
473
|
team: string;
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
+
/** Resolved time bucket for productivity insights responses. */
|
|
477
|
+
export type ProductivityInsightsGranularity = "day" | "week";
|
|
478
|
+
|
|
479
|
+
/** Daily merged PR / CI failure bucket for productivity trend charts. */
|
|
480
|
+
export interface ProductivityInsightsDailyBucketDto {
|
|
481
|
+
date: string;
|
|
482
|
+
mergedPrCount: number;
|
|
483
|
+
ciFailuresCount?: number;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/** Productivity insights range id — daily (`7d`, `30d`, `cr:…`) or weekly legacy. */
|
|
487
|
+
export type ProductivityInsightsRangeId = string;
|
|
488
|
+
|
|
476
489
|
/** One weekly bucket in an aggregated team row. */
|
|
477
490
|
export interface ProductivityInsightsAggregatedTeamWeekDto {
|
|
478
491
|
bucketStart: string;
|
|
@@ -499,13 +512,18 @@ export interface ProductivityInsightsAggregatedTeamRowDto {
|
|
|
499
512
|
managerLabel?: string;
|
|
500
513
|
/** True when the team aggregates GitHub logins not mapped in the org chart (`teamId` `__other`). */
|
|
501
514
|
notInOrgChart?: boolean;
|
|
502
|
-
|
|
515
|
+
/** Present in day-mode responses. */
|
|
516
|
+
days?: ProductivityInsightsDailyBucketDto[];
|
|
517
|
+
weeks?: ProductivityInsightsAggregatedTeamWeekDto[];
|
|
503
518
|
}
|
|
504
519
|
|
|
505
520
|
/** Response for GET /workspaces/:workspaceId/insights/productivity-insights/aggregated-teams */
|
|
506
521
|
export interface ProductivityInsightsAggregatedTeamsDto {
|
|
507
522
|
workspaceId: string;
|
|
508
|
-
range:
|
|
523
|
+
range: ProductivityInsightsRangeId;
|
|
524
|
+
granularity?: ProductivityInsightsGranularity;
|
|
525
|
+
from?: string;
|
|
526
|
+
to?: string;
|
|
509
527
|
scope: ProductivityInsightsAggregatedTeamsScopeDto;
|
|
510
528
|
generatedAt: string;
|
|
511
529
|
/** True when the workspace has opted in to GitHub Actions CI ingest. */
|
|
@@ -532,16 +550,23 @@ export interface ProductivityInsightsMergedPrContributorRowDto {
|
|
|
532
550
|
notInOrgChart?: boolean;
|
|
533
551
|
/** GitHub login for unattributed contributors (`notInOrgChart: true`). */
|
|
534
552
|
githubLogin?: string;
|
|
535
|
-
|
|
553
|
+
/** Present in day-mode responses. */
|
|
554
|
+
days?: ProductivityInsightsDailyBucketDto[];
|
|
555
|
+
weeks?: ProductivityInsightsMergedPrTrendWeekDto[];
|
|
536
556
|
}
|
|
537
557
|
|
|
538
558
|
/** Response for GET /workspaces/:workspaceId/insights/productivity-insights/merged-pr-trends */
|
|
539
559
|
export interface ProductivityInsightsMergedPrTrendsDto {
|
|
540
560
|
workspaceId: string;
|
|
541
|
-
range:
|
|
561
|
+
range: ProductivityInsightsRangeId;
|
|
562
|
+
granularity?: ProductivityInsightsGranularity;
|
|
563
|
+
from?: string;
|
|
564
|
+
to?: string;
|
|
542
565
|
scope: ProductivityInsightsAggregatedTeamsScopeDto;
|
|
543
566
|
generatedAt: string;
|
|
544
|
-
|
|
567
|
+
/** Portfolio daily series in day mode. */
|
|
568
|
+
days?: ProductivityInsightsDailyBucketDto[];
|
|
569
|
+
weeks?: ProductivityInsightsMergedPrTrendWeekDto[];
|
|
545
570
|
contributors: ProductivityInsightsMergedPrContributorRowDto[];
|
|
546
571
|
}
|
|
547
572
|
|
|
@@ -574,7 +599,9 @@ export interface ProductivityInsightsTeamDetailDto {
|
|
|
574
599
|
managerLabel?: string;
|
|
575
600
|
/** True when the team aggregates GitHub logins not mapped in the org chart (`teamId` `__other`). */
|
|
576
601
|
notInOrgChart?: boolean;
|
|
577
|
-
|
|
602
|
+
/** Daily merged PR series for the selected period in day mode. */
|
|
603
|
+
days?: ProductivityInsightsDailyBucketDto[];
|
|
604
|
+
weeks?: ProductivityInsightsAggregatedTeamWeekDto[];
|
|
578
605
|
summary: ProductivityInsightsTeamSummaryDto;
|
|
579
606
|
/** Present when the request included `year` — calendar-year heatmap mode. */
|
|
580
607
|
year?: number;
|
|
@@ -588,7 +615,10 @@ export interface ProductivityInsightsTeamDetailDto {
|
|
|
588
615
|
/** Response for GET /workspaces/:workspaceId/insights/productivity-insights/teams */
|
|
589
616
|
export interface ProductivityInsightsTeamsResponseDto {
|
|
590
617
|
workspaceId: string;
|
|
591
|
-
range:
|
|
618
|
+
range: ProductivityInsightsRangeId;
|
|
619
|
+
granularity?: ProductivityInsightsGranularity;
|
|
620
|
+
from?: string;
|
|
621
|
+
to?: string;
|
|
592
622
|
/** Present when the request included `year` — calendar-year heatmap mode. */
|
|
593
623
|
year?: number;
|
|
594
624
|
scope: ProductivityInsightsAggregatedTeamsScopeDto;
|
|
@@ -677,7 +707,10 @@ export interface ProductivityInsightsContributorActivitySummaryDto {
|
|
|
677
707
|
export interface ProductivityInsightsContributorDetailDto {
|
|
678
708
|
workspaceId: string;
|
|
679
709
|
contributorId: string;
|
|
680
|
-
range:
|
|
710
|
+
range: ProductivityInsightsRangeId;
|
|
711
|
+
granularity?: ProductivityInsightsGranularity;
|
|
712
|
+
from?: string;
|
|
713
|
+
to?: string;
|
|
681
714
|
/** Present when the request included `year` — calendar-year contribution heatmap mode. */
|
|
682
715
|
year?: number;
|
|
683
716
|
scope: ProductivityInsightsAggregatedTeamsScopeDto;
|
|
@@ -685,7 +718,9 @@ export interface ProductivityInsightsContributorDetailDto {
|
|
|
685
718
|
/** True when the workspace has opted in to GitHub Actions CI ingest. */
|
|
686
719
|
githubActionsCiEnabled?: boolean;
|
|
687
720
|
contributor: ProductivityInsightsContributorProfileDto;
|
|
688
|
-
|
|
721
|
+
/** Daily merged PR series for the selected period in day mode. */
|
|
722
|
+
days?: ProductivityInsightsDailyBucketDto[];
|
|
723
|
+
weeks?: ProductivityInsightsContributorActivityWeekDto[];
|
|
689
724
|
summary: ProductivityInsightsContributorActivitySummaryDto;
|
|
690
725
|
}
|
|
691
726
|
|
|
@@ -704,7 +739,10 @@ export interface ProductivityInsightsNeedsAttentionItemDto {
|
|
|
704
739
|
/** Response for GET /workspaces/:workspaceId/insights/productivity-insights/needs-attention */
|
|
705
740
|
export interface ProductivityInsightsNeedsAttentionDto {
|
|
706
741
|
workspaceId: string;
|
|
707
|
-
range:
|
|
742
|
+
range: ProductivityInsightsRangeId;
|
|
743
|
+
granularity?: ProductivityInsightsGranularity;
|
|
744
|
+
from?: string;
|
|
745
|
+
to?: string;
|
|
708
746
|
scope: ProductivityInsightsAggregatedTeamsScopeDto;
|
|
709
747
|
entityType: "teams" | "contributors";
|
|
710
748
|
generatedAt: string;
|