@thinkai/tai-api-contract 2.83.0 → 2.84.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.
@@ -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 readiness/output. `readinessPct` is the mean latest overallScore of repos with matching `teamId` (workspace mean fallback). `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).
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;
@@ -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'];