@thinkai/tai-api-contract 2.8.2 → 2.8.3
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 +24 -1
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -1
- package/openapi/openapi.yaml +65 -2
- package/package.json +1 -1
- package/src/generated/openapi.ts +24 -1
- package/src/index.ts +27 -0
|
@@ -309,7 +309,7 @@ export interface paths {
|
|
|
309
309
|
};
|
|
310
310
|
/**
|
|
311
311
|
* Productivity insights — top teams and team drilldown
|
|
312
|
-
* @description Without `teamId`: returns the top-ranked teams by average weekly merged PR count for the Measure **Top teams** widget on /phase-c/c4 and /phase-c/c7. With `teamId`: returns weekly rollup and summary for a single team (powers `/phase-c/c4/teams/:teamId` drilldown).
|
|
312
|
+
* @description Without `teamId`: returns the top-ranked teams by average weekly merged PR count for the Measure **Top teams** widget on /phase-c/c4 and /phase-c/c7. With `teamId`: returns weekly rollup and summary for a single team (powers `/phase-c/c4/teams/:teamId` drilldown). When `year` is also set, returns daily buckets aggregated across team members for the GitHub-style yearly heatmap.
|
|
313
313
|
*/
|
|
314
314
|
get: operations["getProductivityInsightsTeams"];
|
|
315
315
|
put?: never;
|
|
@@ -1839,6 +1839,13 @@ export interface components {
|
|
|
1839
1839
|
teamName: string;
|
|
1840
1840
|
headcount: number;
|
|
1841
1841
|
managerLabel?: string;
|
|
1842
|
+
/** @description True when the team aggregates GitHub logins not mapped in the org chart (`teamId` `__other`). */
|
|
1843
|
+
notInOrgChart?: boolean;
|
|
1844
|
+
/** @description Present when the request included `year` — calendar-year heatmap mode. */
|
|
1845
|
+
year?: number;
|
|
1846
|
+
/** @description Daily buckets aggregated across team members when `year` is set. */
|
|
1847
|
+
heatmapWeeks?: components["schemas"]["ProductivityInsightsContributorActivityWeekDto"][];
|
|
1848
|
+
heatmapSummary?: components["schemas"]["ProductivityInsightsContributorActivitySummaryDto"];
|
|
1842
1849
|
weeks: components["schemas"]["ProductivityInsightsAggregatedTeamWeekDto"][];
|
|
1843
1850
|
summary: components["schemas"]["ProductivityInsightsTeamSummaryDto"];
|
|
1844
1851
|
};
|
|
@@ -1847,6 +1854,8 @@ export interface components {
|
|
|
1847
1854
|
workspaceId: string;
|
|
1848
1855
|
/** @enum {string} */
|
|
1849
1856
|
range: "4w" | "8w" | "q";
|
|
1857
|
+
/** @description Present when the request included `year` — calendar-year heatmap mode. */
|
|
1858
|
+
year?: number;
|
|
1850
1859
|
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1851
1860
|
/** Format: date-time */
|
|
1852
1861
|
generatedAt: string;
|
|
@@ -1877,6 +1886,13 @@ export interface components {
|
|
|
1877
1886
|
absenceType?: string;
|
|
1878
1887
|
failureSignal: boolean;
|
|
1879
1888
|
failures: string[];
|
|
1889
|
+
/** @description Optional PR rows with GitHub links when ingest stored URLs. */
|
|
1890
|
+
mergedPrItems?: components["schemas"]["ProductivityInsightsContributorMergedPrItemDto"][];
|
|
1891
|
+
};
|
|
1892
|
+
ProductivityInsightsContributorMergedPrItemDto: {
|
|
1893
|
+
label: string;
|
|
1894
|
+
/** Format: uri */
|
|
1895
|
+
url?: string;
|
|
1880
1896
|
};
|
|
1881
1897
|
ProductivityInsightsContributorActivityWeekDto: {
|
|
1882
1898
|
label: string;
|
|
@@ -1902,6 +1918,8 @@ export interface components {
|
|
|
1902
1918
|
contributorId: string;
|
|
1903
1919
|
/** @enum {string} */
|
|
1904
1920
|
range: "4w" | "8w" | "q";
|
|
1921
|
+
/** @description Present when the request included `year` — calendar-year heatmap mode. */
|
|
1922
|
+
year?: number;
|
|
1905
1923
|
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1906
1924
|
/** Format: date-time */
|
|
1907
1925
|
generatedAt: string;
|
|
@@ -2957,6 +2975,7 @@ export type ProductivityInsightsTeamDetailDto = components['schemas']['Productiv
|
|
|
2957
2975
|
export type ProductivityInsightsTeamsResponseDto = components['schemas']['ProductivityInsightsTeamsResponseDto'];
|
|
2958
2976
|
export type ProductivityInsightsContributorProfileDto = components['schemas']['ProductivityInsightsContributorProfileDto'];
|
|
2959
2977
|
export type ProductivityInsightsContributorActivityDayDto = components['schemas']['ProductivityInsightsContributorActivityDayDto'];
|
|
2978
|
+
export type ProductivityInsightsContributorMergedPrItemDto = components['schemas']['ProductivityInsightsContributorMergedPrItemDto'];
|
|
2960
2979
|
export type ProductivityInsightsContributorActivityWeekDto = components['schemas']['ProductivityInsightsContributorActivityWeekDto'];
|
|
2961
2980
|
export type ProductivityInsightsContributorActivitySummaryDto = components['schemas']['ProductivityInsightsContributorActivitySummaryDto'];
|
|
2962
2981
|
export type ProductivityInsightsContributorDetailDto = components['schemas']['ProductivityInsightsContributorDetailDto'];
|
|
@@ -3879,6 +3898,8 @@ export interface operations {
|
|
|
3879
3898
|
team?: string;
|
|
3880
3899
|
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3881
3900
|
windowEnd?: string;
|
|
3901
|
+
/** @description Calendar year (e.g. 2026) for GitHub-style yearly contribution heatmap on `/phase-c/c4/teams/:teamId`. Aggregates merged PRs across all team members for that year instead of the `rangeId` window. Requires `teamId`. */
|
|
3902
|
+
year?: number;
|
|
3882
3903
|
};
|
|
3883
3904
|
header?: never;
|
|
3884
3905
|
path: {
|
|
@@ -3931,6 +3952,8 @@ export interface operations {
|
|
|
3931
3952
|
team?: string;
|
|
3932
3953
|
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3933
3954
|
windowEnd?: string;
|
|
3955
|
+
/** @description Calendar year (e.g. 2026) for GitHub-style yearly contribution heatmap on `/phase-c/c4/contributors/:id`. When set, returns weekly buckets overlapping that year instead of the `rangeId` window. */
|
|
3956
|
+
year?: number;
|
|
3934
3957
|
};
|
|
3935
3958
|
header?: never;
|
|
3936
3959
|
path: {
|