@thinkai/tai-api-contract 2.83.0 → 2.85.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 +16 -3
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +49 -12
- package/package.json +1 -1
- package/src/generated/openapi.ts +16 -3
- package/src/index.ts +9 -1
|
@@ -1171,7 +1171,7 @@ export interface paths {
|
|
|
1171
1171
|
};
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Insights recommendations — AI adoption gap by team
|
|
1174
|
-
* @description Headcount vs AI-active contributors and per-team
|
|
1174
|
+
* @description Headcount vs AI-active contributors and per-team output. Each team includes a `members` roster with `hasTrackedAiUsage` per org-chart person. `outputPerEngPerWeek` is team merged PRs / headcount / weeks in window. `upliftPct` estimates additional PR volume if non-adopters matched leader-team output (teams with >50% adoption).
|
|
1175
1175
|
*/
|
|
1176
1176
|
get: operations["getInsightsRecommendationsAdoptionGap"];
|
|
1177
1177
|
put?: never;
|
|
@@ -2132,7 +2132,7 @@ export interface paths {
|
|
|
2132
2132
|
/**
|
|
2133
2133
|
* Export repository readiness issues as Markdown
|
|
2134
2134
|
* @description Download outstanding readiness issues for one repository as a Markdown (`.md`) attachment for local IDE workflows. Reuses the same scorecard as `GET .../readiness/repos/{repoId}` (issues plus optional remediation from `criteriaDetails`).
|
|
2135
|
-
* The Markdown is grouped **by readiness dimension** (catalog order). Each dimension section lists matching issues sorted by severity. Default filter is outstanding issues (`open` + `pr-pending`). Optional query params narrow the set. When `includeCriteria` is true (default), each issue includes a Remediation section from the matching criterion when available.
|
|
2135
|
+
* The Markdown is grouped **by readiness dimension** (catalog order). Each dimension section lists matching issues sorted by severity. Issue sections include severity in the heading and do not emit per-issue `Fix status` / `Fix tier` lines. Default filter is outstanding issues (`open` + `pr-pending`). Optional query params narrow the set. When `includeCriteria` is true (default), each issue includes a Remediation section from the matching criterion when available. Timestamps use the optional `timeZone` query (IANA; default `UTC`).
|
|
2136
2136
|
* The response sets `Content-Disposition: attachment` with filename `readiness-issues-{providerSlug}-{date}.md`.
|
|
2137
2137
|
*/
|
|
2138
2138
|
get: operations["exportReadinessRepoIssuesMarkdown"];
|
|
@@ -7231,6 +7231,8 @@ export interface components {
|
|
|
7231
7231
|
mergedPrs: number;
|
|
7232
7232
|
costPerPrUsd: number;
|
|
7233
7233
|
changePct: number;
|
|
7234
|
+
/** @description Weekly cost per merged PR aligned to the selected week buckets (same order as filters.weekBuckets). Null when the team had no merged PRs in that week. */
|
|
7235
|
+
trendUsdPerPr?: (number | null)[];
|
|
7234
7236
|
};
|
|
7235
7237
|
InsightsRecommendationsCostPerPr: {
|
|
7236
7238
|
orgAvgCostUsd: number;
|
|
@@ -7240,13 +7242,21 @@ export interface components {
|
|
|
7240
7242
|
InsightsRecommendationsCostPerPrResponse: components["schemas"]["InsightsRecommendationsCostPerPr"] & {
|
|
7241
7243
|
_meta: components["schemas"]["InsightsResponseMeta"];
|
|
7242
7244
|
};
|
|
7245
|
+
InsightsAdoptionMember: {
|
|
7246
|
+
/** @description Org-chart person id (typically work email). */
|
|
7247
|
+
personId: string;
|
|
7248
|
+
/** @description Display name from the org chart. */
|
|
7249
|
+
name: string;
|
|
7250
|
+
/** @description True when this person had synced AI daily usage or spend attributed to this team in the selected window (same team-scoped set as activeAi). */
|
|
7251
|
+
hasTrackedAiUsage: boolean;
|
|
7252
|
+
};
|
|
7243
7253
|
InsightsAdoptionTeam: {
|
|
7244
7254
|
id: string;
|
|
7245
7255
|
name: string;
|
|
7246
7256
|
activeAi: number;
|
|
7247
7257
|
totalMembers: number;
|
|
7248
|
-
readinessPct: number;
|
|
7249
7258
|
outputPerEngPerWeek: number;
|
|
7259
|
+
members: components["schemas"]["InsightsAdoptionMember"][];
|
|
7250
7260
|
};
|
|
7251
7261
|
InsightsRecommendationsAdoptionGap: {
|
|
7252
7262
|
totalContributors: number;
|
|
@@ -8268,6 +8278,7 @@ export type InsightsRecommendationsReviewPipelineResponse = components['schemas'
|
|
|
8268
8278
|
export type InsightsCostPerPrTeam = components['schemas']['InsightsCostPerPrTeam'];
|
|
8269
8279
|
export type InsightsRecommendationsCostPerPr = components['schemas']['InsightsRecommendationsCostPerPr'];
|
|
8270
8280
|
export type InsightsRecommendationsCostPerPrResponse = components['schemas']['InsightsRecommendationsCostPerPrResponse'];
|
|
8281
|
+
export type InsightsAdoptionMember = components['schemas']['InsightsAdoptionMember'];
|
|
8271
8282
|
export type InsightsAdoptionTeam = components['schemas']['InsightsAdoptionTeam'];
|
|
8272
8283
|
export type InsightsRecommendationsAdoptionGap = components['schemas']['InsightsRecommendationsAdoptionGap'];
|
|
8273
8284
|
export type InsightsRecommendationsAdoptionGapResponse = components['schemas']['InsightsRecommendationsAdoptionGapResponse'];
|
|
@@ -13913,6 +13924,8 @@ export interface operations {
|
|
|
13913
13924
|
severity?: "critical" | "high" | "medium" | "low";
|
|
13914
13925
|
/** @description Include remediation from criteriaDetails (default true). */
|
|
13915
13926
|
includeCriteria?: boolean;
|
|
13927
|
+
/** @description IANA time zone for human-readable `Last analyzed` / `Exported` timestamps and the calendar date in the attachment filename (e.g. `Europe/Berlin`). Defaults to `UTC`. */
|
|
13928
|
+
timeZone?: string;
|
|
13916
13929
|
};
|
|
13917
13930
|
header?: never;
|
|
13918
13931
|
path: {
|