@thinkai/tai-api-contract 2.63.0 → 2.65.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.
@@ -963,6 +963,146 @@ export interface paths {
963
963
  patch?: never;
964
964
  trace?: never;
965
965
  };
966
+ "/workspaces/{workspaceId}/insights/recommendations-page/verdict-summary": {
967
+ parameters: {
968
+ query?: never;
969
+ header?: never;
970
+ path?: never;
971
+ cookie?: never;
972
+ };
973
+ /**
974
+ * Insights recommendations — verdict summary cards
975
+ * @description Top status cards for `/insights-recommendations`. `productivityMultiplier` is the merged-PR volume ratio versus the previous equal-length window (not AI-active vs non-users). `ciFailRatePct` is portfolio CI fail rate percent. Cost statuses compare AI spend per merged PR to the prior window. Status thresholds match the product UI: productivity ≥1.5 healthy / ≥1.0 watch / else at-risk; CI fail <15 healthy / ≤30 watch / else at-risk; cost change ≤0 healthy / <20% watch / else at-risk (prev≤0 → watch).
976
+ */
977
+ get: operations["getInsightsRecommendationsVerdictSummary"];
978
+ put?: never;
979
+ post?: never;
980
+ delete?: never;
981
+ options?: never;
982
+ head?: never;
983
+ patch?: never;
984
+ trace?: never;
985
+ };
986
+ "/workspaces/{workspaceId}/insights/recommendations-page/roi-quadrant": {
987
+ parameters: {
988
+ query?: never;
989
+ header?: never;
990
+ path?: never;
991
+ cookie?: never;
992
+ };
993
+ /**
994
+ * Insights recommendations — AI spend vs delivery output
995
+ * @description Per-engineer AI spend (USD) and merged PR counts for the scatter / ROI quadrant. Includes engineers with spend>0 or mergedPrs>0. Medians are over the returned set (n<2 uses the single point or zeros when empty). `id` is the stable org person id.
996
+ */
997
+ get: operations["getInsightsRecommendationsRoiQuadrant"];
998
+ put?: never;
999
+ post?: never;
1000
+ delete?: never;
1001
+ options?: never;
1002
+ head?: never;
1003
+ patch?: never;
1004
+ trace?: never;
1005
+ };
1006
+ "/workspaces/{workspaceId}/insights/recommendations-page/velocity-quality": {
1007
+ parameters: {
1008
+ query?: never;
1009
+ header?: never;
1010
+ path?: never;
1011
+ cookie?: never;
1012
+ };
1013
+ /**
1014
+ * Insights recommendations — velocity vs quality weekly series
1015
+ * @description Weekly merged PR volume and CI fail rate for the filter window. Weeks follow the Measure calendar-week bucket convention. `targetFailRatePct` is the org target (15). `volumeGrowthPct` is percent change vs the prior equal-length period.
1016
+ */
1017
+ get: operations["getInsightsRecommendationsVelocityQuality"];
1018
+ put?: never;
1019
+ post?: never;
1020
+ delete?: never;
1021
+ options?: never;
1022
+ head?: never;
1023
+ patch?: never;
1024
+ trace?: never;
1025
+ };
1026
+ "/workspaces/{workspaceId}/insights/recommendations-page/review-pipeline": {
1027
+ parameters: {
1028
+ query?: never;
1029
+ header?: never;
1030
+ path?: never;
1031
+ cookie?: never;
1032
+ };
1033
+ /**
1034
+ * Insights recommendations — review bottleneck funnel
1035
+ * @description Review funnel stages `open-review`, `review-approval`, `approval-merge`, and `merged`. Wait stages use delivery-health hours (`avgReviewWaitHours`, `avgApprovalHours`, and approval→merge as max(0, avgTimeToMergeHours − wait − approval)). The `merged` stage uses `medianHours=0` (volume is not hours). `bottleneckStageId` is the wait stage with the highest median hours. `reviewerLoad` comes from persisted `deliveryHealth.topReviewers` when available; otherwise an empty array (never invented reviewers).
1036
+ */
1037
+ get: operations["getInsightsRecommendationsReviewPipeline"];
1038
+ put?: never;
1039
+ post?: never;
1040
+ delete?: never;
1041
+ options?: never;
1042
+ head?: never;
1043
+ patch?: never;
1044
+ trace?: never;
1045
+ };
1046
+ "/workspaces/{workspaceId}/insights/recommendations-page/cost-per-pr": {
1047
+ parameters: {
1048
+ query?: never;
1049
+ header?: never;
1050
+ path?: never;
1051
+ cookie?: never;
1052
+ };
1053
+ /**
1054
+ * Insights recommendations — cost per merged PR by team
1055
+ * @description Org and per-team AI spend / merged PRs. Teams with zero merged PRs in the window are omitted. `costPerPrUsd = spendUsd / mergedPrs`. `activeAi` is distinct AI-active members on the team in the window (provider filter applied).
1056
+ */
1057
+ get: operations["getInsightsRecommendationsCostPerPr"];
1058
+ put?: never;
1059
+ post?: never;
1060
+ delete?: never;
1061
+ options?: never;
1062
+ head?: never;
1063
+ patch?: never;
1064
+ trace?: never;
1065
+ };
1066
+ "/workspaces/{workspaceId}/insights/recommendations-page/adoption-gap": {
1067
+ parameters: {
1068
+ query?: never;
1069
+ header?: never;
1070
+ path?: never;
1071
+ cookie?: never;
1072
+ };
1073
+ /**
1074
+ * Insights recommendations — AI adoption gap by team
1075
+ * @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).
1076
+ */
1077
+ get: operations["getInsightsRecommendationsAdoptionGap"];
1078
+ put?: never;
1079
+ post?: never;
1080
+ delete?: never;
1081
+ options?: never;
1082
+ head?: never;
1083
+ patch?: never;
1084
+ trace?: never;
1085
+ };
1086
+ "/workspaces/{workspaceId}/insights/recommendations-page/recommendations": {
1087
+ parameters: {
1088
+ query?: never;
1089
+ header?: never;
1090
+ path?: never;
1091
+ cookie?: never;
1092
+ };
1093
+ /**
1094
+ * Insights recommendations — deterministic action items
1095
+ * @description Deterministic rules engine (no LLM). Emits module-anchored recommendations with `moduleId` in {mod-spend-vs-output, mod-velocity-vs-quality, mod-review-bottleneck, mod-cost-per-pr, mod-adoption-gap}. Action items must cite one AI metric and one delivery metric in `observed`. Evidence chips use kinds user-spend|team|contributor|repo|module with real target ids when available.
1096
+ */
1097
+ get: operations["getInsightsRecommendationsRecommendations"];
1098
+ put?: never;
1099
+ post?: never;
1100
+ delete?: never;
1101
+ options?: never;
1102
+ head?: never;
1103
+ patch?: never;
1104
+ trace?: never;
1105
+ };
966
1106
  "/workspaces/{workspaceId}/integrations/ai-tool/{provider}/members": {
967
1107
  parameters: {
968
1108
  query?: never;
@@ -4839,6 +4979,14 @@ export interface components {
4839
4979
  productivityLastIngestAt?: string | null;
4840
4980
  /** @description True while another session holds the workspace productivity ingest advisory lock. */
4841
4981
  productivityRefreshInProgress?: boolean;
4982
+ /** @description Repos remaining in the staged backfill queue. */
4983
+ productivityIngestPendingRepoCount?: number | null;
4984
+ /** @description Repos benign-skipped or quarantined during backfill. */
4985
+ productivityIngestSkippedRepoCount?: number | null;
4986
+ /** @description Repos with transient failures awaiting retry in the current phase. */
4987
+ productivityIngestFailedRepoCount?: number | null;
4988
+ /** @description Percent of eligible repos with merged-PR productivity data (excludes skipped/quarantined). */
4989
+ productivityIngestCoveragePercent?: number | null;
4842
4990
  };
4843
4991
  GithubInstallUrlRequestDto: {
4844
4992
  returnPath?: string;
@@ -5907,7 +6055,7 @@ export interface components {
5907
6055
  * @description Type of workspace lifecycle event.
5908
6056
  * @enum {string}
5909
6057
  */
5910
- ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed";
6058
+ ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "productivity.ingest.repo_skipped" | "productivity.ingest.coverage_gap_detected" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed";
5911
6059
  ActivityLogActorDto: {
5912
6060
  /** Format: uuid */
5913
6061
  userId: string;
@@ -6229,6 +6377,154 @@ export interface components {
6229
6377
  items: components["schemas"]["SdlcDrilldownItemDto"][];
6230
6378
  nextCursor?: string;
6231
6379
  };
6380
+ InsightsResponseMeta: {
6381
+ /**
6382
+ * Format: date-time
6383
+ * @description ISO timestamp when numbers were computed server-side
6384
+ */
6385
+ syncedAt: string;
6386
+ /**
6387
+ * @description Must be false for production handlers
6388
+ * @enum {boolean}
6389
+ */
6390
+ isMock: false;
6391
+ };
6392
+ /** @enum {string} */
6393
+ InsightsVerdictStatus: "healthy" | "watch" | "at-risk";
6394
+ InsightsRecommendationsVerdictSummary: {
6395
+ /** @description Merged-PR volume ratio vs prior equal-length window (current/prior). When priorMergedPrs is 0, value is 1.0 and productivityStatus is watch. */
6396
+ productivityMultiplier: number;
6397
+ productivityStatus: components["schemas"]["InsightsVerdictStatus"];
6398
+ ciFailRatePct: number;
6399
+ qualityStatus: components["schemas"]["InsightsVerdictStatus"];
6400
+ spendPerMergedPrUsd: number;
6401
+ spendPerMergedPrPrevUsd: number;
6402
+ costStatus: components["schemas"]["InsightsVerdictStatus"];
6403
+ };
6404
+ InsightsRecommendationsVerdictSummaryResponse: components["schemas"]["InsightsRecommendationsVerdictSummary"] & {
6405
+ _meta: components["schemas"]["InsightsResponseMeta"];
6406
+ };
6407
+ InsightsRoiEngineerPoint: {
6408
+ id: string;
6409
+ name: string;
6410
+ team: string;
6411
+ spendUsd: number;
6412
+ mergedPrs: number;
6413
+ };
6414
+ InsightsRecommendationsRoiQuadrant: {
6415
+ medianSpendUsd: number;
6416
+ medianMergedPrs: number;
6417
+ engineers: components["schemas"]["InsightsRoiEngineerPoint"][];
6418
+ correlationHint: string;
6419
+ };
6420
+ InsightsRecommendationsRoiQuadrantResponse: components["schemas"]["InsightsRecommendationsRoiQuadrant"] & {
6421
+ _meta: components["schemas"]["InsightsResponseMeta"];
6422
+ };
6423
+ InsightsVelocityQualityWeek: {
6424
+ /** Format: date */
6425
+ weekStartIso: string;
6426
+ mergedPrs: number;
6427
+ ciFailRatePct: number;
6428
+ };
6429
+ InsightsRecommendationsVelocityQuality: {
6430
+ weeks: components["schemas"]["InsightsVelocityQualityWeek"][];
6431
+ targetFailRatePct: number;
6432
+ volumeGrowthPct: number;
6433
+ };
6434
+ InsightsRecommendationsVelocityQualityResponse: components["schemas"]["InsightsRecommendationsVelocityQuality"] & {
6435
+ _meta: components["schemas"]["InsightsResponseMeta"];
6436
+ };
6437
+ /** @enum {string} */
6438
+ InsightsReviewStageId: "open-review" | "review-approval" | "approval-merge" | "merged";
6439
+ InsightsReviewStage: {
6440
+ id: components["schemas"]["InsightsReviewStageId"];
6441
+ name: string;
6442
+ /** @description Wait hours for funnel stages; 0 for the merged volume stage */
6443
+ medianHours: number;
6444
+ trendPct: number;
6445
+ };
6446
+ InsightsReviewerLoadItem: {
6447
+ id: string;
6448
+ name: string;
6449
+ reviewsCount: number;
6450
+ sharePct: number;
6451
+ };
6452
+ InsightsRecommendationsReviewPipeline: {
6453
+ stages: components["schemas"]["InsightsReviewStage"][];
6454
+ bottleneckStageId: components["schemas"]["InsightsReviewStageId"];
6455
+ reviewerLoad: components["schemas"]["InsightsReviewerLoadItem"][];
6456
+ };
6457
+ InsightsRecommendationsReviewPipelineResponse: components["schemas"]["InsightsRecommendationsReviewPipeline"] & {
6458
+ _meta: components["schemas"]["InsightsResponseMeta"];
6459
+ };
6460
+ InsightsCostPerPrTeam: {
6461
+ id: string;
6462
+ name: string;
6463
+ activeAi: number;
6464
+ spendUsd: number;
6465
+ mergedPrs: number;
6466
+ costPerPrUsd: number;
6467
+ changePct: number;
6468
+ };
6469
+ InsightsRecommendationsCostPerPr: {
6470
+ orgAvgCostUsd: number;
6471
+ orgAvgPrevUsd: number;
6472
+ teams: components["schemas"]["InsightsCostPerPrTeam"][];
6473
+ };
6474
+ InsightsRecommendationsCostPerPrResponse: components["schemas"]["InsightsRecommendationsCostPerPr"] & {
6475
+ _meta: components["schemas"]["InsightsResponseMeta"];
6476
+ };
6477
+ InsightsAdoptionTeam: {
6478
+ id: string;
6479
+ name: string;
6480
+ activeAi: number;
6481
+ totalMembers: number;
6482
+ readinessPct: number;
6483
+ outputPerEngPerWeek: number;
6484
+ };
6485
+ InsightsRecommendationsAdoptionGap: {
6486
+ totalContributors: number;
6487
+ activeContributors: number;
6488
+ upliftPct: number;
6489
+ teams: components["schemas"]["InsightsAdoptionTeam"][];
6490
+ };
6491
+ InsightsRecommendationsAdoptionGapResponse: components["schemas"]["InsightsRecommendationsAdoptionGap"] & {
6492
+ _meta: components["schemas"]["InsightsResponseMeta"];
6493
+ };
6494
+ /** @enum {string} */
6495
+ InsightsRecommendationModuleId: "mod-spend-vs-output" | "mod-velocity-vs-quality" | "mod-review-bottleneck" | "mod-cost-per-pr" | "mod-adoption-gap";
6496
+ /** @enum {string} */
6497
+ InsightsRecommendationImpact: "high" | "medium";
6498
+ /** @enum {string} */
6499
+ InsightsRecommendationTone: "action" | "no-action";
6500
+ /** @enum {string} */
6501
+ InsightsEvidenceLinkKind: "user-spend" | "team" | "contributor" | "repo" | "module";
6502
+ InsightsEvidenceChip: {
6503
+ label: string;
6504
+ kind: components["schemas"]["InsightsEvidenceLinkKind"];
6505
+ targetId: string;
6506
+ };
6507
+ InsightsRecommendationEvidenceGroup: {
6508
+ title: string;
6509
+ chips: components["schemas"]["InsightsEvidenceChip"][];
6510
+ };
6511
+ InsightsRecommendationDto: {
6512
+ moduleId: components["schemas"]["InsightsRecommendationModuleId"];
6513
+ moduleName: string;
6514
+ tone: components["schemas"]["InsightsRecommendationTone"];
6515
+ impact: components["schemas"]["InsightsRecommendationImpact"];
6516
+ headline: string;
6517
+ /** @description For tone=action must cite one AI metric and one delivery metric */
6518
+ observed: string;
6519
+ action: string;
6520
+ benefit: string;
6521
+ confidencePct: number;
6522
+ evidence: components["schemas"]["InsightsRecommendationEvidenceGroup"][];
6523
+ };
6524
+ InsightsRecommendationsListResponse: {
6525
+ items: components["schemas"]["InsightsRecommendationDto"][];
6526
+ _meta: components["schemas"]["InsightsResponseMeta"];
6527
+ };
6232
6528
  };
6233
6529
  responses: {
6234
6530
  /** @description Missing or invalid bearer token */
@@ -6286,6 +6582,20 @@ export interface components {
6286
6582
  InsightsSdlcRangeId: string;
6287
6583
  /** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
6288
6584
  InsightsDepartmentFilter: string;
6585
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
6586
+ InsightsRecommendationsDepartments: string[];
6587
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
6588
+ InsightsRecommendationsTeams: string[];
6589
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
6590
+ InsightsRecommendationsDateFrom: string;
6591
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
6592
+ InsightsRecommendationsDateTo: string;
6593
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
6594
+ InsightsRecommendationsProvider: string[];
6595
+ /** @description Include contributors / AI rows not mapped to a team. */
6596
+ InsightsRecommendationsIncludeUnmapped: boolean;
6597
+ /** @description Include bot accounts in PR/CI stats. */
6598
+ InsightsRecommendationsIncludeBots: boolean;
6289
6599
  /** @description Page size (default 25, max 100). */
6290
6600
  PaginationLimit: number;
6291
6601
  /** @description Zero-based row offset into the filtered, sorted result set. */
@@ -6622,6 +6932,35 @@ export type SdlcModuleDto = components['schemas']['SdlcModuleDto'];
6622
6932
  export type SdlcOverviewDto = components['schemas']['SdlcOverviewDto'];
6623
6933
  export type SdlcDrilldownItemDto = components['schemas']['SdlcDrilldownItemDto'];
6624
6934
  export type SdlcDrilldownDto = components['schemas']['SdlcDrilldownDto'];
6935
+ export type InsightsResponseMeta = components['schemas']['InsightsResponseMeta'];
6936
+ export type InsightsVerdictStatus = components['schemas']['InsightsVerdictStatus'];
6937
+ export type InsightsRecommendationsVerdictSummary = components['schemas']['InsightsRecommendationsVerdictSummary'];
6938
+ export type InsightsRecommendationsVerdictSummaryResponse = components['schemas']['InsightsRecommendationsVerdictSummaryResponse'];
6939
+ export type InsightsRoiEngineerPoint = components['schemas']['InsightsRoiEngineerPoint'];
6940
+ export type InsightsRecommendationsRoiQuadrant = components['schemas']['InsightsRecommendationsRoiQuadrant'];
6941
+ export type InsightsRecommendationsRoiQuadrantResponse = components['schemas']['InsightsRecommendationsRoiQuadrantResponse'];
6942
+ export type InsightsVelocityQualityWeek = components['schemas']['InsightsVelocityQualityWeek'];
6943
+ export type InsightsRecommendationsVelocityQuality = components['schemas']['InsightsRecommendationsVelocityQuality'];
6944
+ export type InsightsRecommendationsVelocityQualityResponse = components['schemas']['InsightsRecommendationsVelocityQualityResponse'];
6945
+ export type InsightsReviewStageId = components['schemas']['InsightsReviewStageId'];
6946
+ export type InsightsReviewStage = components['schemas']['InsightsReviewStage'];
6947
+ export type InsightsReviewerLoadItem = components['schemas']['InsightsReviewerLoadItem'];
6948
+ export type InsightsRecommendationsReviewPipeline = components['schemas']['InsightsRecommendationsReviewPipeline'];
6949
+ export type InsightsRecommendationsReviewPipelineResponse = components['schemas']['InsightsRecommendationsReviewPipelineResponse'];
6950
+ export type InsightsCostPerPrTeam = components['schemas']['InsightsCostPerPrTeam'];
6951
+ export type InsightsRecommendationsCostPerPr = components['schemas']['InsightsRecommendationsCostPerPr'];
6952
+ export type InsightsRecommendationsCostPerPrResponse = components['schemas']['InsightsRecommendationsCostPerPrResponse'];
6953
+ export type InsightsAdoptionTeam = components['schemas']['InsightsAdoptionTeam'];
6954
+ export type InsightsRecommendationsAdoptionGap = components['schemas']['InsightsRecommendationsAdoptionGap'];
6955
+ export type InsightsRecommendationsAdoptionGapResponse = components['schemas']['InsightsRecommendationsAdoptionGapResponse'];
6956
+ export type InsightsRecommendationModuleId = components['schemas']['InsightsRecommendationModuleId'];
6957
+ export type InsightsRecommendationImpact = components['schemas']['InsightsRecommendationImpact'];
6958
+ export type InsightsRecommendationTone = components['schemas']['InsightsRecommendationTone'];
6959
+ export type InsightsEvidenceLinkKind = components['schemas']['InsightsEvidenceLinkKind'];
6960
+ export type InsightsEvidenceChip = components['schemas']['InsightsEvidenceChip'];
6961
+ export type InsightsRecommendationEvidenceGroup = components['schemas']['InsightsRecommendationEvidenceGroup'];
6962
+ export type InsightsRecommendationDto = components['schemas']['InsightsRecommendationDto'];
6963
+ export type InsightsRecommendationsListResponse = components['schemas']['InsightsRecommendationsListResponse'];
6625
6964
  export type ResponseUnauthorized = components['responses']['Unauthorized'];
6626
6965
  export type ResponseForbidden = components['responses']['Forbidden'];
6627
6966
  export type ResponseZenHrSyncInProgress = components['responses']['ZenHrSyncInProgress'];
@@ -6638,6 +6977,13 @@ export type ParameterInsightsProductivityFrom = components['parameters']['Insigh
6638
6977
  export type ParameterInsightsProductivityTo = components['parameters']['InsightsProductivityTo'];
6639
6978
  export type ParameterInsightsSdlcRangeId = components['parameters']['InsightsSdlcRangeId'];
6640
6979
  export type ParameterInsightsDepartmentFilter = components['parameters']['InsightsDepartmentFilter'];
6980
+ export type ParameterInsightsRecommendationsDepartments = components['parameters']['InsightsRecommendationsDepartments'];
6981
+ export type ParameterInsightsRecommendationsTeams = components['parameters']['InsightsRecommendationsTeams'];
6982
+ export type ParameterInsightsRecommendationsDateFrom = components['parameters']['InsightsRecommendationsDateFrom'];
6983
+ export type ParameterInsightsRecommendationsDateTo = components['parameters']['InsightsRecommendationsDateTo'];
6984
+ export type ParameterInsightsRecommendationsProvider = components['parameters']['InsightsRecommendationsProvider'];
6985
+ export type ParameterInsightsRecommendationsIncludeUnmapped = components['parameters']['InsightsRecommendationsIncludeUnmapped'];
6986
+ export type ParameterInsightsRecommendationsIncludeBots = components['parameters']['InsightsRecommendationsIncludeBots'];
6641
6987
  export type ParameterPaginationLimit = components['parameters']['PaginationLimit'];
6642
6988
  export type ParameterPaginationOffset = components['parameters']['PaginationOffset'];
6643
6989
  export type ParameterPaginationOrder = components['parameters']['PaginationOrder'];
@@ -9335,6 +9681,412 @@ export interface operations {
9335
9681
  };
9336
9682
  };
9337
9683
  };
9684
+ getInsightsRecommendationsVerdictSummary: {
9685
+ parameters: {
9686
+ query: {
9687
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
9688
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
9689
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
9690
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
9691
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
9692
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
9693
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
9694
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
9695
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
9696
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
9697
+ /** @description Include contributors / AI rows not mapped to a team. */
9698
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
9699
+ /** @description Include bot accounts in PR/CI stats. */
9700
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
9701
+ };
9702
+ header?: never;
9703
+ path: {
9704
+ workspaceId: components["parameters"]["WorkspaceId"];
9705
+ };
9706
+ cookie?: never;
9707
+ };
9708
+ requestBody?: never;
9709
+ responses: {
9710
+ /** @description Verdict summary with `_meta.isMock=false` */
9711
+ 200: {
9712
+ headers: {
9713
+ [name: string]: unknown;
9714
+ };
9715
+ content: {
9716
+ "application/json": components["schemas"]["InsightsRecommendationsVerdictSummaryResponse"];
9717
+ };
9718
+ };
9719
+ /** @description Invalid filter or date range */
9720
+ 400: {
9721
+ headers: {
9722
+ [name: string]: unknown;
9723
+ };
9724
+ content: {
9725
+ "application/json": {
9726
+ /** @example invalid_query */
9727
+ error: string;
9728
+ };
9729
+ };
9730
+ };
9731
+ 401: components["responses"]["Unauthorized"];
9732
+ 403: components["responses"]["Forbidden"];
9733
+ /** @description Workspace does not exist or malformed workspaceId */
9734
+ 404: {
9735
+ headers: {
9736
+ [name: string]: unknown;
9737
+ };
9738
+ content?: never;
9739
+ };
9740
+ };
9741
+ };
9742
+ getInsightsRecommendationsRoiQuadrant: {
9743
+ parameters: {
9744
+ query: {
9745
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
9746
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
9747
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
9748
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
9749
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
9750
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
9751
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
9752
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
9753
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
9754
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
9755
+ /** @description Include contributors / AI rows not mapped to a team. */
9756
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
9757
+ /** @description Include bot accounts in PR/CI stats. */
9758
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
9759
+ };
9760
+ header?: never;
9761
+ path: {
9762
+ workspaceId: components["parameters"]["WorkspaceId"];
9763
+ };
9764
+ cookie?: never;
9765
+ };
9766
+ requestBody?: never;
9767
+ responses: {
9768
+ /** @description ROI quadrant payload */
9769
+ 200: {
9770
+ headers: {
9771
+ [name: string]: unknown;
9772
+ };
9773
+ content: {
9774
+ "application/json": components["schemas"]["InsightsRecommendationsRoiQuadrantResponse"];
9775
+ };
9776
+ };
9777
+ /** @description Invalid filter or date range */
9778
+ 400: {
9779
+ headers: {
9780
+ [name: string]: unknown;
9781
+ };
9782
+ content: {
9783
+ "application/json": {
9784
+ /** @example invalid_query */
9785
+ error: string;
9786
+ };
9787
+ };
9788
+ };
9789
+ 401: components["responses"]["Unauthorized"];
9790
+ 403: components["responses"]["Forbidden"];
9791
+ /** @description Workspace does not exist or malformed workspaceId */
9792
+ 404: {
9793
+ headers: {
9794
+ [name: string]: unknown;
9795
+ };
9796
+ content?: never;
9797
+ };
9798
+ };
9799
+ };
9800
+ getInsightsRecommendationsVelocityQuality: {
9801
+ parameters: {
9802
+ query: {
9803
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
9804
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
9805
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
9806
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
9807
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
9808
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
9809
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
9810
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
9811
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
9812
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
9813
+ /** @description Include contributors / AI rows not mapped to a team. */
9814
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
9815
+ /** @description Include bot accounts in PR/CI stats. */
9816
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
9817
+ };
9818
+ header?: never;
9819
+ path: {
9820
+ workspaceId: components["parameters"]["WorkspaceId"];
9821
+ };
9822
+ cookie?: never;
9823
+ };
9824
+ requestBody?: never;
9825
+ responses: {
9826
+ /** @description Velocity vs quality payload */
9827
+ 200: {
9828
+ headers: {
9829
+ [name: string]: unknown;
9830
+ };
9831
+ content: {
9832
+ "application/json": components["schemas"]["InsightsRecommendationsVelocityQualityResponse"];
9833
+ };
9834
+ };
9835
+ /** @description Invalid filter or date range */
9836
+ 400: {
9837
+ headers: {
9838
+ [name: string]: unknown;
9839
+ };
9840
+ content: {
9841
+ "application/json": {
9842
+ /** @example invalid_query */
9843
+ error: string;
9844
+ };
9845
+ };
9846
+ };
9847
+ 401: components["responses"]["Unauthorized"];
9848
+ 403: components["responses"]["Forbidden"];
9849
+ /** @description Workspace does not exist or malformed workspaceId */
9850
+ 404: {
9851
+ headers: {
9852
+ [name: string]: unknown;
9853
+ };
9854
+ content?: never;
9855
+ };
9856
+ };
9857
+ };
9858
+ getInsightsRecommendationsReviewPipeline: {
9859
+ parameters: {
9860
+ query: {
9861
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
9862
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
9863
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
9864
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
9865
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
9866
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
9867
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
9868
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
9869
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
9870
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
9871
+ /** @description Include contributors / AI rows not mapped to a team. */
9872
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
9873
+ /** @description Include bot accounts in PR/CI stats. */
9874
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
9875
+ };
9876
+ header?: never;
9877
+ path: {
9878
+ workspaceId: components["parameters"]["WorkspaceId"];
9879
+ };
9880
+ cookie?: never;
9881
+ };
9882
+ requestBody?: never;
9883
+ responses: {
9884
+ /** @description Review pipeline payload */
9885
+ 200: {
9886
+ headers: {
9887
+ [name: string]: unknown;
9888
+ };
9889
+ content: {
9890
+ "application/json": components["schemas"]["InsightsRecommendationsReviewPipelineResponse"];
9891
+ };
9892
+ };
9893
+ /** @description Invalid filter or date range */
9894
+ 400: {
9895
+ headers: {
9896
+ [name: string]: unknown;
9897
+ };
9898
+ content: {
9899
+ "application/json": {
9900
+ /** @example invalid_query */
9901
+ error: string;
9902
+ };
9903
+ };
9904
+ };
9905
+ 401: components["responses"]["Unauthorized"];
9906
+ 403: components["responses"]["Forbidden"];
9907
+ /** @description Workspace does not exist or malformed workspaceId */
9908
+ 404: {
9909
+ headers: {
9910
+ [name: string]: unknown;
9911
+ };
9912
+ content?: never;
9913
+ };
9914
+ };
9915
+ };
9916
+ getInsightsRecommendationsCostPerPr: {
9917
+ parameters: {
9918
+ query: {
9919
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
9920
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
9921
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
9922
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
9923
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
9924
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
9925
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
9926
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
9927
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
9928
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
9929
+ /** @description Include contributors / AI rows not mapped to a team. */
9930
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
9931
+ /** @description Include bot accounts in PR/CI stats. */
9932
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
9933
+ };
9934
+ header?: never;
9935
+ path: {
9936
+ workspaceId: components["parameters"]["WorkspaceId"];
9937
+ };
9938
+ cookie?: never;
9939
+ };
9940
+ requestBody?: never;
9941
+ responses: {
9942
+ /** @description Cost per PR payload */
9943
+ 200: {
9944
+ headers: {
9945
+ [name: string]: unknown;
9946
+ };
9947
+ content: {
9948
+ "application/json": components["schemas"]["InsightsRecommendationsCostPerPrResponse"];
9949
+ };
9950
+ };
9951
+ /** @description Invalid filter or date range */
9952
+ 400: {
9953
+ headers: {
9954
+ [name: string]: unknown;
9955
+ };
9956
+ content: {
9957
+ "application/json": {
9958
+ /** @example invalid_query */
9959
+ error: string;
9960
+ };
9961
+ };
9962
+ };
9963
+ 401: components["responses"]["Unauthorized"];
9964
+ 403: components["responses"]["Forbidden"];
9965
+ /** @description Workspace does not exist or malformed workspaceId */
9966
+ 404: {
9967
+ headers: {
9968
+ [name: string]: unknown;
9969
+ };
9970
+ content?: never;
9971
+ };
9972
+ };
9973
+ };
9974
+ getInsightsRecommendationsAdoptionGap: {
9975
+ parameters: {
9976
+ query: {
9977
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
9978
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
9979
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
9980
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
9981
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
9982
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
9983
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
9984
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
9985
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
9986
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
9987
+ /** @description Include contributors / AI rows not mapped to a team. */
9988
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
9989
+ /** @description Include bot accounts in PR/CI stats. */
9990
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
9991
+ };
9992
+ header?: never;
9993
+ path: {
9994
+ workspaceId: components["parameters"]["WorkspaceId"];
9995
+ };
9996
+ cookie?: never;
9997
+ };
9998
+ requestBody?: never;
9999
+ responses: {
10000
+ /** @description Adoption gap payload */
10001
+ 200: {
10002
+ headers: {
10003
+ [name: string]: unknown;
10004
+ };
10005
+ content: {
10006
+ "application/json": components["schemas"]["InsightsRecommendationsAdoptionGapResponse"];
10007
+ };
10008
+ };
10009
+ /** @description Invalid filter or date range */
10010
+ 400: {
10011
+ headers: {
10012
+ [name: string]: unknown;
10013
+ };
10014
+ content: {
10015
+ "application/json": {
10016
+ /** @example invalid_query */
10017
+ error: string;
10018
+ };
10019
+ };
10020
+ };
10021
+ 401: components["responses"]["Unauthorized"];
10022
+ 403: components["responses"]["Forbidden"];
10023
+ /** @description Workspace does not exist or malformed workspaceId */
10024
+ 404: {
10025
+ headers: {
10026
+ [name: string]: unknown;
10027
+ };
10028
+ content?: never;
10029
+ };
10030
+ };
10031
+ };
10032
+ getInsightsRecommendationsRecommendations: {
10033
+ parameters: {
10034
+ query: {
10035
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
10036
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
10037
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
10038
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
10039
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
10040
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
10041
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
10042
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
10043
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
10044
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
10045
+ /** @description Include contributors / AI rows not mapped to a team. */
10046
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
10047
+ /** @description Include bot accounts in PR/CI stats. */
10048
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
10049
+ };
10050
+ header?: never;
10051
+ path: {
10052
+ workspaceId: components["parameters"]["WorkspaceId"];
10053
+ };
10054
+ cookie?: never;
10055
+ };
10056
+ requestBody?: never;
10057
+ responses: {
10058
+ /** @description Recommendation items */
10059
+ 200: {
10060
+ headers: {
10061
+ [name: string]: unknown;
10062
+ };
10063
+ content: {
10064
+ "application/json": components["schemas"]["InsightsRecommendationsListResponse"];
10065
+ };
10066
+ };
10067
+ /** @description Invalid filter or date range */
10068
+ 400: {
10069
+ headers: {
10070
+ [name: string]: unknown;
10071
+ };
10072
+ content: {
10073
+ "application/json": {
10074
+ /** @example invalid_query */
10075
+ error: string;
10076
+ };
10077
+ };
10078
+ };
10079
+ 401: components["responses"]["Unauthorized"];
10080
+ 403: components["responses"]["Forbidden"];
10081
+ /** @description Workspace does not exist or malformed workspaceId */
10082
+ 404: {
10083
+ headers: {
10084
+ [name: string]: unknown;
10085
+ };
10086
+ content?: never;
10087
+ };
10088
+ };
10089
+ };
9338
10090
  getAiToolMembers: {
9339
10091
  parameters: {
9340
10092
  query?: {