@thinkai/tai-api-contract 2.62.0 → 2.64.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.
@@ -922,6 +922,186 @@ export interface paths {
922
922
  patch?: never;
923
923
  trace?: never;
924
924
  };
925
+ "/workspaces/{workspaceId}/insights/sdlc/overview": {
926
+ parameters: {
927
+ query?: never;
928
+ header?: never;
929
+ path?: never;
930
+ cookie?: never;
931
+ };
932
+ /**
933
+ * SDLC insights — Engineering Health overview
934
+ * @description Engineering Health dashboard for `/insights/sdlc/overview`. Returns precomputed DORA, CI, collaboration, security, governance, and operational metrics aggregated at calendar-day granularity for the selected window. Filter params mirror other Measure insights routes plus optional `repoIds` scope.
935
+ */
936
+ get: operations["getSdlcInsightsOverview"];
937
+ put?: never;
938
+ post?: never;
939
+ delete?: never;
940
+ options?: never;
941
+ head?: never;
942
+ patch?: never;
943
+ trace?: never;
944
+ };
945
+ "/workspaces/{workspaceId}/insights/sdlc/drilldown/{metricId}": {
946
+ parameters: {
947
+ query?: never;
948
+ header?: never;
949
+ path?: never;
950
+ cookie?: never;
951
+ };
952
+ /**
953
+ * SDLC insights — metric drill-down entities
954
+ * @description Paginated entity list for a single Engineering Health metric (failed workflow runs, PRs, alerts, etc.). Available only when the overview marks `drilldownAvailable: true`.
955
+ */
956
+ get: operations["getSdlcInsightsDrilldown"];
957
+ put?: never;
958
+ post?: never;
959
+ delete?: never;
960
+ options?: never;
961
+ head?: never;
962
+ patch?: never;
963
+ trace?: never;
964
+ };
965
+ "/workspaces/{workspaceId}/insights/recommendations-page/verdict-summary": {
966
+ parameters: {
967
+ query?: never;
968
+ header?: never;
969
+ path?: never;
970
+ cookie?: never;
971
+ };
972
+ /**
973
+ * Insights recommendations — verdict summary cards
974
+ * @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).
975
+ */
976
+ get: operations["getInsightsRecommendationsVerdictSummary"];
977
+ put?: never;
978
+ post?: never;
979
+ delete?: never;
980
+ options?: never;
981
+ head?: never;
982
+ patch?: never;
983
+ trace?: never;
984
+ };
985
+ "/workspaces/{workspaceId}/insights/recommendations-page/roi-quadrant": {
986
+ parameters: {
987
+ query?: never;
988
+ header?: never;
989
+ path?: never;
990
+ cookie?: never;
991
+ };
992
+ /**
993
+ * Insights recommendations — AI spend vs delivery output
994
+ * @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.
995
+ */
996
+ get: operations["getInsightsRecommendationsRoiQuadrant"];
997
+ put?: never;
998
+ post?: never;
999
+ delete?: never;
1000
+ options?: never;
1001
+ head?: never;
1002
+ patch?: never;
1003
+ trace?: never;
1004
+ };
1005
+ "/workspaces/{workspaceId}/insights/recommendations-page/velocity-quality": {
1006
+ parameters: {
1007
+ query?: never;
1008
+ header?: never;
1009
+ path?: never;
1010
+ cookie?: never;
1011
+ };
1012
+ /**
1013
+ * Insights recommendations — velocity vs quality weekly series
1014
+ * @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.
1015
+ */
1016
+ get: operations["getInsightsRecommendationsVelocityQuality"];
1017
+ put?: never;
1018
+ post?: never;
1019
+ delete?: never;
1020
+ options?: never;
1021
+ head?: never;
1022
+ patch?: never;
1023
+ trace?: never;
1024
+ };
1025
+ "/workspaces/{workspaceId}/insights/recommendations-page/review-pipeline": {
1026
+ parameters: {
1027
+ query?: never;
1028
+ header?: never;
1029
+ path?: never;
1030
+ cookie?: never;
1031
+ };
1032
+ /**
1033
+ * Insights recommendations — review bottleneck funnel
1034
+ * @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).
1035
+ */
1036
+ get: operations["getInsightsRecommendationsReviewPipeline"];
1037
+ put?: never;
1038
+ post?: never;
1039
+ delete?: never;
1040
+ options?: never;
1041
+ head?: never;
1042
+ patch?: never;
1043
+ trace?: never;
1044
+ };
1045
+ "/workspaces/{workspaceId}/insights/recommendations-page/cost-per-pr": {
1046
+ parameters: {
1047
+ query?: never;
1048
+ header?: never;
1049
+ path?: never;
1050
+ cookie?: never;
1051
+ };
1052
+ /**
1053
+ * Insights recommendations — cost per merged PR by team
1054
+ * @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).
1055
+ */
1056
+ get: operations["getInsightsRecommendationsCostPerPr"];
1057
+ put?: never;
1058
+ post?: never;
1059
+ delete?: never;
1060
+ options?: never;
1061
+ head?: never;
1062
+ patch?: never;
1063
+ trace?: never;
1064
+ };
1065
+ "/workspaces/{workspaceId}/insights/recommendations-page/adoption-gap": {
1066
+ parameters: {
1067
+ query?: never;
1068
+ header?: never;
1069
+ path?: never;
1070
+ cookie?: never;
1071
+ };
1072
+ /**
1073
+ * Insights recommendations — AI adoption gap by team
1074
+ * @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).
1075
+ */
1076
+ get: operations["getInsightsRecommendationsAdoptionGap"];
1077
+ put?: never;
1078
+ post?: never;
1079
+ delete?: never;
1080
+ options?: never;
1081
+ head?: never;
1082
+ patch?: never;
1083
+ trace?: never;
1084
+ };
1085
+ "/workspaces/{workspaceId}/insights/recommendations-page/recommendations": {
1086
+ parameters: {
1087
+ query?: never;
1088
+ header?: never;
1089
+ path?: never;
1090
+ cookie?: never;
1091
+ };
1092
+ /**
1093
+ * Insights recommendations — deterministic action items
1094
+ * @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.
1095
+ */
1096
+ get: operations["getInsightsRecommendationsRecommendations"];
1097
+ put?: never;
1098
+ post?: never;
1099
+ delete?: never;
1100
+ options?: never;
1101
+ head?: never;
1102
+ patch?: never;
1103
+ trace?: never;
1104
+ };
925
1105
  "/workspaces/{workspaceId}/integrations/ai-tool/{provider}/members": {
926
1106
  parameters: {
927
1107
  query?: never;
@@ -6115,6 +6295,227 @@ export interface components {
6115
6295
  */
6116
6296
  lastSeenAt: string;
6117
6297
  };
6298
+ /** @enum {string} */
6299
+ SdlcModuleId: "dora" | "ci-pipeline" | "collaboration-pr" | "security-risk" | "governance-architecture" | "financial-operational";
6300
+ /** @enum {string} */
6301
+ SdlcMetricId: "dora-deployment-frequency" | "dora-lead-time" | "dora-cfr" | "dora-mttr" | "ci-success-rate" | "ci-duration-p50-p95" | "ci-flakiness" | "ci-queue-wait" | "ci-cache-hit" | "pr-review-time" | "pr-bus-factor" | "pr-size" | "pr-abandonment" | "pr-review-depth" | "pr-draft-duration" | "pr-merge-conflicts" | "pr-commit-density" | "sec-dependabot-backlog" | "sec-vuln-mttr" | "sec-secret-scanning" | "sec-self-approvals" | "sec-unreviewed-merge" | "gov-branch-protection" | "gov-stale-branches" | "gov-orphaned-repos" | "gov-readme-health" | "gov-codeowners" | "gov-issue-pr-linkage" | "fin-gha-minutes" | "fin-copilot-utilization" | "fin-org-inactivity" | "fin-env-drift" | "fin-release-cadence" | "fin-api-rate-limit";
6302
+ /** @enum {string} */
6303
+ SdlcMetricDataStatus: "live" | "preview" | "unavailable";
6304
+ /** @enum {string} */
6305
+ SdlcMetricHealthStatus: "healthy" | "warning" | "critical" | "unknown";
6306
+ /** @enum {string} */
6307
+ SdlcBenchmarkBand: "elite" | "high" | "medium" | "low";
6308
+ SdlcMetricTrendDto: {
6309
+ /** @enum {string} */
6310
+ direction: "up" | "down" | "flat";
6311
+ deltaPercent?: number;
6312
+ };
6313
+ SdlcDailySeriesPointDto: {
6314
+ /**
6315
+ * Format: date
6316
+ * @description Inclusive ISO calendar day (UTC).
6317
+ */
6318
+ date: string;
6319
+ value: number;
6320
+ };
6321
+ SdlcMetricDto: {
6322
+ id: components["schemas"]["SdlcMetricId"];
6323
+ name: string;
6324
+ dataStatus: components["schemas"]["SdlcMetricDataStatus"];
6325
+ healthStatus: components["schemas"]["SdlcMetricHealthStatus"];
6326
+ value: (number | string) | null;
6327
+ unit?: string;
6328
+ secondaryValue?: (number | string) | null;
6329
+ secondaryLabel?: string;
6330
+ trend?: components["schemas"]["SdlcMetricTrendDto"];
6331
+ benchmarkBand?: components["schemas"]["SdlcBenchmarkBand"];
6332
+ drilldownAvailable: boolean;
6333
+ dailySeries?: components["schemas"]["SdlcDailySeriesPointDto"][];
6334
+ unavailableReason?: string;
6335
+ };
6336
+ SdlcModuleDto: {
6337
+ id: components["schemas"]["SdlcModuleId"];
6338
+ name: string;
6339
+ metrics: components["schemas"]["SdlcMetricDto"][];
6340
+ };
6341
+ SdlcOverviewDto: {
6342
+ rangeId: string;
6343
+ /** Format: date */
6344
+ from: string;
6345
+ /** Format: date */
6346
+ to: string;
6347
+ department: string;
6348
+ team: string;
6349
+ repoIds: string[];
6350
+ /** Format: date-time */
6351
+ asOf: string;
6352
+ modules: components["schemas"]["SdlcModuleDto"][];
6353
+ };
6354
+ SdlcDrilldownItemDto: {
6355
+ id: string;
6356
+ title: string;
6357
+ subtitle?: string;
6358
+ /** Format: uri */
6359
+ url?: string;
6360
+ /** Format: date-time */
6361
+ occurredAt?: string;
6362
+ metadata?: {
6363
+ [key: string]: string | number;
6364
+ };
6365
+ };
6366
+ SdlcDrilldownDto: {
6367
+ metricId: components["schemas"]["SdlcMetricId"];
6368
+ items: components["schemas"]["SdlcDrilldownItemDto"][];
6369
+ nextCursor?: string;
6370
+ };
6371
+ InsightsResponseMeta: {
6372
+ /**
6373
+ * Format: date-time
6374
+ * @description ISO timestamp when numbers were computed server-side
6375
+ */
6376
+ syncedAt: string;
6377
+ /**
6378
+ * @description Must be false for production handlers
6379
+ * @enum {boolean}
6380
+ */
6381
+ isMock: false;
6382
+ };
6383
+ /** @enum {string} */
6384
+ InsightsVerdictStatus: "healthy" | "watch" | "at-risk";
6385
+ InsightsRecommendationsVerdictSummary: {
6386
+ /** @description Merged-PR volume ratio vs prior equal-length window (current/prior). When priorMergedPrs is 0, value is 1.0 and productivityStatus is watch. */
6387
+ productivityMultiplier: number;
6388
+ productivityStatus: components["schemas"]["InsightsVerdictStatus"];
6389
+ ciFailRatePct: number;
6390
+ qualityStatus: components["schemas"]["InsightsVerdictStatus"];
6391
+ spendPerMergedPrUsd: number;
6392
+ spendPerMergedPrPrevUsd: number;
6393
+ costStatus: components["schemas"]["InsightsVerdictStatus"];
6394
+ };
6395
+ InsightsRecommendationsVerdictSummaryResponse: components["schemas"]["InsightsRecommendationsVerdictSummary"] & {
6396
+ _meta: components["schemas"]["InsightsResponseMeta"];
6397
+ };
6398
+ InsightsRoiEngineerPoint: {
6399
+ id: string;
6400
+ name: string;
6401
+ team: string;
6402
+ spendUsd: number;
6403
+ mergedPrs: number;
6404
+ };
6405
+ InsightsRecommendationsRoiQuadrant: {
6406
+ medianSpendUsd: number;
6407
+ medianMergedPrs: number;
6408
+ engineers: components["schemas"]["InsightsRoiEngineerPoint"][];
6409
+ correlationHint: string;
6410
+ };
6411
+ InsightsRecommendationsRoiQuadrantResponse: components["schemas"]["InsightsRecommendationsRoiQuadrant"] & {
6412
+ _meta: components["schemas"]["InsightsResponseMeta"];
6413
+ };
6414
+ InsightsVelocityQualityWeek: {
6415
+ /** Format: date */
6416
+ weekStartIso: string;
6417
+ mergedPrs: number;
6418
+ ciFailRatePct: number;
6419
+ };
6420
+ InsightsRecommendationsVelocityQuality: {
6421
+ weeks: components["schemas"]["InsightsVelocityQualityWeek"][];
6422
+ targetFailRatePct: number;
6423
+ volumeGrowthPct: number;
6424
+ };
6425
+ InsightsRecommendationsVelocityQualityResponse: components["schemas"]["InsightsRecommendationsVelocityQuality"] & {
6426
+ _meta: components["schemas"]["InsightsResponseMeta"];
6427
+ };
6428
+ /** @enum {string} */
6429
+ InsightsReviewStageId: "open-review" | "review-approval" | "approval-merge" | "merged";
6430
+ InsightsReviewStage: {
6431
+ id: components["schemas"]["InsightsReviewStageId"];
6432
+ name: string;
6433
+ /** @description Wait hours for funnel stages; 0 for the merged volume stage */
6434
+ medianHours: number;
6435
+ trendPct: number;
6436
+ };
6437
+ InsightsReviewerLoadItem: {
6438
+ id: string;
6439
+ name: string;
6440
+ reviewsCount: number;
6441
+ sharePct: number;
6442
+ };
6443
+ InsightsRecommendationsReviewPipeline: {
6444
+ stages: components["schemas"]["InsightsReviewStage"][];
6445
+ bottleneckStageId: components["schemas"]["InsightsReviewStageId"];
6446
+ reviewerLoad: components["schemas"]["InsightsReviewerLoadItem"][];
6447
+ };
6448
+ InsightsRecommendationsReviewPipelineResponse: components["schemas"]["InsightsRecommendationsReviewPipeline"] & {
6449
+ _meta: components["schemas"]["InsightsResponseMeta"];
6450
+ };
6451
+ InsightsCostPerPrTeam: {
6452
+ id: string;
6453
+ name: string;
6454
+ activeAi: number;
6455
+ spendUsd: number;
6456
+ mergedPrs: number;
6457
+ costPerPrUsd: number;
6458
+ changePct: number;
6459
+ };
6460
+ InsightsRecommendationsCostPerPr: {
6461
+ orgAvgCostUsd: number;
6462
+ orgAvgPrevUsd: number;
6463
+ teams: components["schemas"]["InsightsCostPerPrTeam"][];
6464
+ };
6465
+ InsightsRecommendationsCostPerPrResponse: components["schemas"]["InsightsRecommendationsCostPerPr"] & {
6466
+ _meta: components["schemas"]["InsightsResponseMeta"];
6467
+ };
6468
+ InsightsAdoptionTeam: {
6469
+ id: string;
6470
+ name: string;
6471
+ activeAi: number;
6472
+ totalMembers: number;
6473
+ readinessPct: number;
6474
+ outputPerEngPerWeek: number;
6475
+ };
6476
+ InsightsRecommendationsAdoptionGap: {
6477
+ totalContributors: number;
6478
+ activeContributors: number;
6479
+ upliftPct: number;
6480
+ teams: components["schemas"]["InsightsAdoptionTeam"][];
6481
+ };
6482
+ InsightsRecommendationsAdoptionGapResponse: components["schemas"]["InsightsRecommendationsAdoptionGap"] & {
6483
+ _meta: components["schemas"]["InsightsResponseMeta"];
6484
+ };
6485
+ /** @enum {string} */
6486
+ InsightsRecommendationModuleId: "mod-spend-vs-output" | "mod-velocity-vs-quality" | "mod-review-bottleneck" | "mod-cost-per-pr" | "mod-adoption-gap";
6487
+ /** @enum {string} */
6488
+ InsightsRecommendationImpact: "high" | "medium";
6489
+ /** @enum {string} */
6490
+ InsightsRecommendationTone: "action" | "no-action";
6491
+ /** @enum {string} */
6492
+ InsightsEvidenceLinkKind: "user-spend" | "team" | "contributor" | "repo" | "module";
6493
+ InsightsEvidenceChip: {
6494
+ label: string;
6495
+ kind: components["schemas"]["InsightsEvidenceLinkKind"];
6496
+ targetId: string;
6497
+ };
6498
+ InsightsRecommendationEvidenceGroup: {
6499
+ title: string;
6500
+ chips: components["schemas"]["InsightsEvidenceChip"][];
6501
+ };
6502
+ InsightsRecommendationDto: {
6503
+ moduleId: components["schemas"]["InsightsRecommendationModuleId"];
6504
+ moduleName: string;
6505
+ tone: components["schemas"]["InsightsRecommendationTone"];
6506
+ impact: components["schemas"]["InsightsRecommendationImpact"];
6507
+ headline: string;
6508
+ /** @description For tone=action must cite one AI metric and one delivery metric */
6509
+ observed: string;
6510
+ action: string;
6511
+ benefit: string;
6512
+ confidencePct: number;
6513
+ evidence: components["schemas"]["InsightsRecommendationEvidenceGroup"][];
6514
+ };
6515
+ InsightsRecommendationsListResponse: {
6516
+ items: components["schemas"]["InsightsRecommendationDto"][];
6517
+ _meta: components["schemas"]["InsightsResponseMeta"];
6518
+ };
6118
6519
  };
6119
6520
  responses: {
6120
6521
  /** @description Missing or invalid bearer token */
@@ -6168,8 +6569,24 @@ export interface components {
6168
6569
  InsightsProductivityFrom: string;
6169
6570
  /** @description Inclusive end of a daily window (`YYYY-MM-DD`). When set with `from`, overrides `rangeId` for day-mode responses (max 180 days). */
6170
6571
  InsightsProductivityTo: string;
6572
+ /** @description Day-level Measure window. Presets: `7d`, `30d`, `90d`, `180d`. Custom inclusive calendar range: `cr:YYYY-MM-DD:YYYY-MM-DD` (max span 180 days). */
6573
+ InsightsSdlcRangeId: string;
6171
6574
  /** @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). */
6172
6575
  InsightsDepartmentFilter: string;
6576
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
6577
+ InsightsRecommendationsDepartments: string[];
6578
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
6579
+ InsightsRecommendationsTeams: string[];
6580
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
6581
+ InsightsRecommendationsDateFrom: string;
6582
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
6583
+ InsightsRecommendationsDateTo: string;
6584
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
6585
+ InsightsRecommendationsProvider: string[];
6586
+ /** @description Include contributors / AI rows not mapped to a team. */
6587
+ InsightsRecommendationsIncludeUnmapped: boolean;
6588
+ /** @description Include bot accounts in PR/CI stats. */
6589
+ InsightsRecommendationsIncludeBots: boolean;
6173
6590
  /** @description Page size (default 25, max 100). */
6174
6591
  PaginationLimit: number;
6175
6592
  /** @description Zero-based row offset into the filtered, sorted result set. */
@@ -6494,6 +6911,47 @@ export type HrisProviderSyncResultDto = components['schemas']['HrisProviderSyncR
6494
6911
  export type ActivityLogPageDto = components['schemas']['ActivityLogPageDto'];
6495
6912
  export type ReadinessTokenUsageRowDto = components['schemas']['ReadinessTokenUsageRowDto'];
6496
6913
  export type ReadinessTokenUsageByDimensionRowDto = components['schemas']['ReadinessTokenUsageByDimensionRowDto'];
6914
+ export type SdlcModuleId = components['schemas']['SdlcModuleId'];
6915
+ export type SdlcMetricId = components['schemas']['SdlcMetricId'];
6916
+ export type SdlcMetricDataStatus = components['schemas']['SdlcMetricDataStatus'];
6917
+ export type SdlcMetricHealthStatus = components['schemas']['SdlcMetricHealthStatus'];
6918
+ export type SdlcBenchmarkBand = components['schemas']['SdlcBenchmarkBand'];
6919
+ export type SdlcMetricTrendDto = components['schemas']['SdlcMetricTrendDto'];
6920
+ export type SdlcDailySeriesPointDto = components['schemas']['SdlcDailySeriesPointDto'];
6921
+ export type SdlcMetricDto = components['schemas']['SdlcMetricDto'];
6922
+ export type SdlcModuleDto = components['schemas']['SdlcModuleDto'];
6923
+ export type SdlcOverviewDto = components['schemas']['SdlcOverviewDto'];
6924
+ export type SdlcDrilldownItemDto = components['schemas']['SdlcDrilldownItemDto'];
6925
+ export type SdlcDrilldownDto = components['schemas']['SdlcDrilldownDto'];
6926
+ export type InsightsResponseMeta = components['schemas']['InsightsResponseMeta'];
6927
+ export type InsightsVerdictStatus = components['schemas']['InsightsVerdictStatus'];
6928
+ export type InsightsRecommendationsVerdictSummary = components['schemas']['InsightsRecommendationsVerdictSummary'];
6929
+ export type InsightsRecommendationsVerdictSummaryResponse = components['schemas']['InsightsRecommendationsVerdictSummaryResponse'];
6930
+ export type InsightsRoiEngineerPoint = components['schemas']['InsightsRoiEngineerPoint'];
6931
+ export type InsightsRecommendationsRoiQuadrant = components['schemas']['InsightsRecommendationsRoiQuadrant'];
6932
+ export type InsightsRecommendationsRoiQuadrantResponse = components['schemas']['InsightsRecommendationsRoiQuadrantResponse'];
6933
+ export type InsightsVelocityQualityWeek = components['schemas']['InsightsVelocityQualityWeek'];
6934
+ export type InsightsRecommendationsVelocityQuality = components['schemas']['InsightsRecommendationsVelocityQuality'];
6935
+ export type InsightsRecommendationsVelocityQualityResponse = components['schemas']['InsightsRecommendationsVelocityQualityResponse'];
6936
+ export type InsightsReviewStageId = components['schemas']['InsightsReviewStageId'];
6937
+ export type InsightsReviewStage = components['schemas']['InsightsReviewStage'];
6938
+ export type InsightsReviewerLoadItem = components['schemas']['InsightsReviewerLoadItem'];
6939
+ export type InsightsRecommendationsReviewPipeline = components['schemas']['InsightsRecommendationsReviewPipeline'];
6940
+ export type InsightsRecommendationsReviewPipelineResponse = components['schemas']['InsightsRecommendationsReviewPipelineResponse'];
6941
+ export type InsightsCostPerPrTeam = components['schemas']['InsightsCostPerPrTeam'];
6942
+ export type InsightsRecommendationsCostPerPr = components['schemas']['InsightsRecommendationsCostPerPr'];
6943
+ export type InsightsRecommendationsCostPerPrResponse = components['schemas']['InsightsRecommendationsCostPerPrResponse'];
6944
+ export type InsightsAdoptionTeam = components['schemas']['InsightsAdoptionTeam'];
6945
+ export type InsightsRecommendationsAdoptionGap = components['schemas']['InsightsRecommendationsAdoptionGap'];
6946
+ export type InsightsRecommendationsAdoptionGapResponse = components['schemas']['InsightsRecommendationsAdoptionGapResponse'];
6947
+ export type InsightsRecommendationModuleId = components['schemas']['InsightsRecommendationModuleId'];
6948
+ export type InsightsRecommendationImpact = components['schemas']['InsightsRecommendationImpact'];
6949
+ export type InsightsRecommendationTone = components['schemas']['InsightsRecommendationTone'];
6950
+ export type InsightsEvidenceLinkKind = components['schemas']['InsightsEvidenceLinkKind'];
6951
+ export type InsightsEvidenceChip = components['schemas']['InsightsEvidenceChip'];
6952
+ export type InsightsRecommendationEvidenceGroup = components['schemas']['InsightsRecommendationEvidenceGroup'];
6953
+ export type InsightsRecommendationDto = components['schemas']['InsightsRecommendationDto'];
6954
+ export type InsightsRecommendationsListResponse = components['schemas']['InsightsRecommendationsListResponse'];
6497
6955
  export type ResponseUnauthorized = components['responses']['Unauthorized'];
6498
6956
  export type ResponseForbidden = components['responses']['Forbidden'];
6499
6957
  export type ResponseZenHrSyncInProgress = components['responses']['ZenHrSyncInProgress'];
@@ -6508,7 +6966,15 @@ export type ParameterFixId = components['parameters']['FixId'];
6508
6966
  export type ParameterInsightsProductivityRangeId = components['parameters']['InsightsProductivityRangeId'];
6509
6967
  export type ParameterInsightsProductivityFrom = components['parameters']['InsightsProductivityFrom'];
6510
6968
  export type ParameterInsightsProductivityTo = components['parameters']['InsightsProductivityTo'];
6969
+ export type ParameterInsightsSdlcRangeId = components['parameters']['InsightsSdlcRangeId'];
6511
6970
  export type ParameterInsightsDepartmentFilter = components['parameters']['InsightsDepartmentFilter'];
6971
+ export type ParameterInsightsRecommendationsDepartments = components['parameters']['InsightsRecommendationsDepartments'];
6972
+ export type ParameterInsightsRecommendationsTeams = components['parameters']['InsightsRecommendationsTeams'];
6973
+ export type ParameterInsightsRecommendationsDateFrom = components['parameters']['InsightsRecommendationsDateFrom'];
6974
+ export type ParameterInsightsRecommendationsDateTo = components['parameters']['InsightsRecommendationsDateTo'];
6975
+ export type ParameterInsightsRecommendationsProvider = components['parameters']['InsightsRecommendationsProvider'];
6976
+ export type ParameterInsightsRecommendationsIncludeUnmapped = components['parameters']['InsightsRecommendationsIncludeUnmapped'];
6977
+ export type ParameterInsightsRecommendationsIncludeBots = components['parameters']['InsightsRecommendationsIncludeBots'];
6512
6978
  export type ParameterPaginationLimit = components['parameters']['PaginationLimit'];
6513
6979
  export type ParameterPaginationOffset = components['parameters']['PaginationOffset'];
6514
6980
  export type ParameterPaginationOrder = components['parameters']['PaginationOrder'];
@@ -9100,6 +9566,518 @@ export interface operations {
9100
9566
  };
9101
9567
  };
9102
9568
  };
9569
+ getSdlcInsightsOverview: {
9570
+ parameters: {
9571
+ query?: {
9572
+ /** @description Day-level Measure window. Presets: `7d`, `30d`, `90d`, `180d`. Custom inclusive calendar range: `cr:YYYY-MM-DD:YYYY-MM-DD` (max span 180 days). */
9573
+ rangeId?: components["parameters"]["InsightsSdlcRangeId"];
9574
+ /** @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). */
9575
+ department?: components["parameters"]["InsightsDepartmentFilter"];
9576
+ /** @description Team name filter; send `All teams` to include every team. */
9577
+ team?: string;
9578
+ /** @description Comma-separated internal repo ids; omit or empty for all repos. */
9579
+ repoIds?: string;
9580
+ };
9581
+ header?: never;
9582
+ path: {
9583
+ workspaceId: components["parameters"]["WorkspaceId"];
9584
+ };
9585
+ cookie?: never;
9586
+ };
9587
+ requestBody?: never;
9588
+ responses: {
9589
+ /** @description Engineering Health overview payload */
9590
+ 200: {
9591
+ headers: {
9592
+ [name: string]: unknown;
9593
+ };
9594
+ content: {
9595
+ "application/json": components["schemas"]["SdlcOverviewDto"];
9596
+ };
9597
+ };
9598
+ /** @description Invalid query parameters */
9599
+ 400: {
9600
+ headers: {
9601
+ [name: string]: unknown;
9602
+ };
9603
+ content: {
9604
+ "application/json": {
9605
+ /** @example invalid_query */
9606
+ error: string;
9607
+ };
9608
+ };
9609
+ };
9610
+ 401: components["responses"]["Unauthorized"];
9611
+ 403: components["responses"]["Forbidden"];
9612
+ /** @description Workspace does not exist or malformed workspaceId */
9613
+ 404: {
9614
+ headers: {
9615
+ [name: string]: unknown;
9616
+ };
9617
+ content?: never;
9618
+ };
9619
+ };
9620
+ };
9621
+ getSdlcInsightsDrilldown: {
9622
+ parameters: {
9623
+ query?: {
9624
+ /** @description Day-level Measure window. Presets: `7d`, `30d`, `90d`, `180d`. Custom inclusive calendar range: `cr:YYYY-MM-DD:YYYY-MM-DD` (max span 180 days). */
9625
+ rangeId?: components["parameters"]["InsightsSdlcRangeId"];
9626
+ /** @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). */
9627
+ department?: components["parameters"]["InsightsDepartmentFilter"];
9628
+ team?: string;
9629
+ repoIds?: string;
9630
+ /** @description Opaque pagination cursor from a prior response. */
9631
+ cursor?: string;
9632
+ limit?: number;
9633
+ };
9634
+ header?: never;
9635
+ path: {
9636
+ workspaceId: components["parameters"]["WorkspaceId"];
9637
+ metricId: components["schemas"]["SdlcMetricId"];
9638
+ };
9639
+ cookie?: never;
9640
+ };
9641
+ requestBody?: never;
9642
+ responses: {
9643
+ /** @description Drill-down page */
9644
+ 200: {
9645
+ headers: {
9646
+ [name: string]: unknown;
9647
+ };
9648
+ content: {
9649
+ "application/json": components["schemas"]["SdlcDrilldownDto"];
9650
+ };
9651
+ };
9652
+ /** @description Invalid query parameters */
9653
+ 400: {
9654
+ headers: {
9655
+ [name: string]: unknown;
9656
+ };
9657
+ content: {
9658
+ "application/json": {
9659
+ /** @example invalid_query */
9660
+ error: string;
9661
+ };
9662
+ };
9663
+ };
9664
+ 401: components["responses"]["Unauthorized"];
9665
+ 403: components["responses"]["Forbidden"];
9666
+ /** @description Workspace or metric not found */
9667
+ 404: {
9668
+ headers: {
9669
+ [name: string]: unknown;
9670
+ };
9671
+ content?: never;
9672
+ };
9673
+ };
9674
+ };
9675
+ getInsightsRecommendationsVerdictSummary: {
9676
+ parameters: {
9677
+ query: {
9678
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
9679
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
9680
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
9681
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
9682
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
9683
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
9684
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
9685
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
9686
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
9687
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
9688
+ /** @description Include contributors / AI rows not mapped to a team. */
9689
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
9690
+ /** @description Include bot accounts in PR/CI stats. */
9691
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
9692
+ };
9693
+ header?: never;
9694
+ path: {
9695
+ workspaceId: components["parameters"]["WorkspaceId"];
9696
+ };
9697
+ cookie?: never;
9698
+ };
9699
+ requestBody?: never;
9700
+ responses: {
9701
+ /** @description Verdict summary with `_meta.isMock=false` */
9702
+ 200: {
9703
+ headers: {
9704
+ [name: string]: unknown;
9705
+ };
9706
+ content: {
9707
+ "application/json": components["schemas"]["InsightsRecommendationsVerdictSummaryResponse"];
9708
+ };
9709
+ };
9710
+ /** @description Invalid filter or date range */
9711
+ 400: {
9712
+ headers: {
9713
+ [name: string]: unknown;
9714
+ };
9715
+ content: {
9716
+ "application/json": {
9717
+ /** @example invalid_query */
9718
+ error: string;
9719
+ };
9720
+ };
9721
+ };
9722
+ 401: components["responses"]["Unauthorized"];
9723
+ 403: components["responses"]["Forbidden"];
9724
+ /** @description Workspace does not exist or malformed workspaceId */
9725
+ 404: {
9726
+ headers: {
9727
+ [name: string]: unknown;
9728
+ };
9729
+ content?: never;
9730
+ };
9731
+ };
9732
+ };
9733
+ getInsightsRecommendationsRoiQuadrant: {
9734
+ parameters: {
9735
+ query: {
9736
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
9737
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
9738
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
9739
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
9740
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
9741
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
9742
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
9743
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
9744
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
9745
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
9746
+ /** @description Include contributors / AI rows not mapped to a team. */
9747
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
9748
+ /** @description Include bot accounts in PR/CI stats. */
9749
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
9750
+ };
9751
+ header?: never;
9752
+ path: {
9753
+ workspaceId: components["parameters"]["WorkspaceId"];
9754
+ };
9755
+ cookie?: never;
9756
+ };
9757
+ requestBody?: never;
9758
+ responses: {
9759
+ /** @description ROI quadrant payload */
9760
+ 200: {
9761
+ headers: {
9762
+ [name: string]: unknown;
9763
+ };
9764
+ content: {
9765
+ "application/json": components["schemas"]["InsightsRecommendationsRoiQuadrantResponse"];
9766
+ };
9767
+ };
9768
+ /** @description Invalid filter or date range */
9769
+ 400: {
9770
+ headers: {
9771
+ [name: string]: unknown;
9772
+ };
9773
+ content: {
9774
+ "application/json": {
9775
+ /** @example invalid_query */
9776
+ error: string;
9777
+ };
9778
+ };
9779
+ };
9780
+ 401: components["responses"]["Unauthorized"];
9781
+ 403: components["responses"]["Forbidden"];
9782
+ /** @description Workspace does not exist or malformed workspaceId */
9783
+ 404: {
9784
+ headers: {
9785
+ [name: string]: unknown;
9786
+ };
9787
+ content?: never;
9788
+ };
9789
+ };
9790
+ };
9791
+ getInsightsRecommendationsVelocityQuality: {
9792
+ parameters: {
9793
+ query: {
9794
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
9795
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
9796
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
9797
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
9798
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
9799
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
9800
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
9801
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
9802
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
9803
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
9804
+ /** @description Include contributors / AI rows not mapped to a team. */
9805
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
9806
+ /** @description Include bot accounts in PR/CI stats. */
9807
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
9808
+ };
9809
+ header?: never;
9810
+ path: {
9811
+ workspaceId: components["parameters"]["WorkspaceId"];
9812
+ };
9813
+ cookie?: never;
9814
+ };
9815
+ requestBody?: never;
9816
+ responses: {
9817
+ /** @description Velocity vs quality payload */
9818
+ 200: {
9819
+ headers: {
9820
+ [name: string]: unknown;
9821
+ };
9822
+ content: {
9823
+ "application/json": components["schemas"]["InsightsRecommendationsVelocityQualityResponse"];
9824
+ };
9825
+ };
9826
+ /** @description Invalid filter or date range */
9827
+ 400: {
9828
+ headers: {
9829
+ [name: string]: unknown;
9830
+ };
9831
+ content: {
9832
+ "application/json": {
9833
+ /** @example invalid_query */
9834
+ error: string;
9835
+ };
9836
+ };
9837
+ };
9838
+ 401: components["responses"]["Unauthorized"];
9839
+ 403: components["responses"]["Forbidden"];
9840
+ /** @description Workspace does not exist or malformed workspaceId */
9841
+ 404: {
9842
+ headers: {
9843
+ [name: string]: unknown;
9844
+ };
9845
+ content?: never;
9846
+ };
9847
+ };
9848
+ };
9849
+ getInsightsRecommendationsReviewPipeline: {
9850
+ parameters: {
9851
+ query: {
9852
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
9853
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
9854
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
9855
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
9856
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
9857
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
9858
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
9859
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
9860
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
9861
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
9862
+ /** @description Include contributors / AI rows not mapped to a team. */
9863
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
9864
+ /** @description Include bot accounts in PR/CI stats. */
9865
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
9866
+ };
9867
+ header?: never;
9868
+ path: {
9869
+ workspaceId: components["parameters"]["WorkspaceId"];
9870
+ };
9871
+ cookie?: never;
9872
+ };
9873
+ requestBody?: never;
9874
+ responses: {
9875
+ /** @description Review pipeline payload */
9876
+ 200: {
9877
+ headers: {
9878
+ [name: string]: unknown;
9879
+ };
9880
+ content: {
9881
+ "application/json": components["schemas"]["InsightsRecommendationsReviewPipelineResponse"];
9882
+ };
9883
+ };
9884
+ /** @description Invalid filter or date range */
9885
+ 400: {
9886
+ headers: {
9887
+ [name: string]: unknown;
9888
+ };
9889
+ content: {
9890
+ "application/json": {
9891
+ /** @example invalid_query */
9892
+ error: string;
9893
+ };
9894
+ };
9895
+ };
9896
+ 401: components["responses"]["Unauthorized"];
9897
+ 403: components["responses"]["Forbidden"];
9898
+ /** @description Workspace does not exist or malformed workspaceId */
9899
+ 404: {
9900
+ headers: {
9901
+ [name: string]: unknown;
9902
+ };
9903
+ content?: never;
9904
+ };
9905
+ };
9906
+ };
9907
+ getInsightsRecommendationsCostPerPr: {
9908
+ parameters: {
9909
+ query: {
9910
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
9911
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
9912
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
9913
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
9914
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
9915
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
9916
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
9917
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
9918
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
9919
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
9920
+ /** @description Include contributors / AI rows not mapped to a team. */
9921
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
9922
+ /** @description Include bot accounts in PR/CI stats. */
9923
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
9924
+ };
9925
+ header?: never;
9926
+ path: {
9927
+ workspaceId: components["parameters"]["WorkspaceId"];
9928
+ };
9929
+ cookie?: never;
9930
+ };
9931
+ requestBody?: never;
9932
+ responses: {
9933
+ /** @description Cost per PR payload */
9934
+ 200: {
9935
+ headers: {
9936
+ [name: string]: unknown;
9937
+ };
9938
+ content: {
9939
+ "application/json": components["schemas"]["InsightsRecommendationsCostPerPrResponse"];
9940
+ };
9941
+ };
9942
+ /** @description Invalid filter or date range */
9943
+ 400: {
9944
+ headers: {
9945
+ [name: string]: unknown;
9946
+ };
9947
+ content: {
9948
+ "application/json": {
9949
+ /** @example invalid_query */
9950
+ error: string;
9951
+ };
9952
+ };
9953
+ };
9954
+ 401: components["responses"]["Unauthorized"];
9955
+ 403: components["responses"]["Forbidden"];
9956
+ /** @description Workspace does not exist or malformed workspaceId */
9957
+ 404: {
9958
+ headers: {
9959
+ [name: string]: unknown;
9960
+ };
9961
+ content?: never;
9962
+ };
9963
+ };
9964
+ };
9965
+ getInsightsRecommendationsAdoptionGap: {
9966
+ parameters: {
9967
+ query: {
9968
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
9969
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
9970
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
9971
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
9972
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
9973
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
9974
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
9975
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
9976
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
9977
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
9978
+ /** @description Include contributors / AI rows not mapped to a team. */
9979
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
9980
+ /** @description Include bot accounts in PR/CI stats. */
9981
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
9982
+ };
9983
+ header?: never;
9984
+ path: {
9985
+ workspaceId: components["parameters"]["WorkspaceId"];
9986
+ };
9987
+ cookie?: never;
9988
+ };
9989
+ requestBody?: never;
9990
+ responses: {
9991
+ /** @description Adoption gap payload */
9992
+ 200: {
9993
+ headers: {
9994
+ [name: string]: unknown;
9995
+ };
9996
+ content: {
9997
+ "application/json": components["schemas"]["InsightsRecommendationsAdoptionGapResponse"];
9998
+ };
9999
+ };
10000
+ /** @description Invalid filter or date range */
10001
+ 400: {
10002
+ headers: {
10003
+ [name: string]: unknown;
10004
+ };
10005
+ content: {
10006
+ "application/json": {
10007
+ /** @example invalid_query */
10008
+ error: string;
10009
+ };
10010
+ };
10011
+ };
10012
+ 401: components["responses"]["Unauthorized"];
10013
+ 403: components["responses"]["Forbidden"];
10014
+ /** @description Workspace does not exist or malformed workspaceId */
10015
+ 404: {
10016
+ headers: {
10017
+ [name: string]: unknown;
10018
+ };
10019
+ content?: never;
10020
+ };
10021
+ };
10022
+ };
10023
+ getInsightsRecommendationsRecommendations: {
10024
+ parameters: {
10025
+ query: {
10026
+ /** @description Org-chart department ids (repeat param or comma-separated). Empty/omitted = all departments. */
10027
+ departments?: components["parameters"]["InsightsRecommendationsDepartments"];
10028
+ /** @description Org-chart team ids (repeat param or comma-separated). Empty/omitted = all teams in department scope. */
10029
+ teams?: components["parameters"]["InsightsRecommendationsTeams"];
10030
+ /** @description Inclusive window start (`YYYY-MM-DD`). Required with `dateTo`. Maps to Measure day-mode custom range (`from`/`to`). Max span 180 days. */
10031
+ dateFrom: components["parameters"]["InsightsRecommendationsDateFrom"];
10032
+ /** @description Inclusive window end (`YYYY-MM-DD`). Required with `dateFrom`. */
10033
+ dateTo: components["parameters"]["InsightsRecommendationsDateTo"];
10034
+ /** @description AI provider ids (e.g. `cursor`, `copilot`). Empty/omitted = all configured providers. */
10035
+ provider?: components["parameters"]["InsightsRecommendationsProvider"];
10036
+ /** @description Include contributors / AI rows not mapped to a team. */
10037
+ includeUnmapped?: components["parameters"]["InsightsRecommendationsIncludeUnmapped"];
10038
+ /** @description Include bot accounts in PR/CI stats. */
10039
+ includeBots?: components["parameters"]["InsightsRecommendationsIncludeBots"];
10040
+ };
10041
+ header?: never;
10042
+ path: {
10043
+ workspaceId: components["parameters"]["WorkspaceId"];
10044
+ };
10045
+ cookie?: never;
10046
+ };
10047
+ requestBody?: never;
10048
+ responses: {
10049
+ /** @description Recommendation items */
10050
+ 200: {
10051
+ headers: {
10052
+ [name: string]: unknown;
10053
+ };
10054
+ content: {
10055
+ "application/json": components["schemas"]["InsightsRecommendationsListResponse"];
10056
+ };
10057
+ };
10058
+ /** @description Invalid filter or date range */
10059
+ 400: {
10060
+ headers: {
10061
+ [name: string]: unknown;
10062
+ };
10063
+ content: {
10064
+ "application/json": {
10065
+ /** @example invalid_query */
10066
+ error: string;
10067
+ };
10068
+ };
10069
+ };
10070
+ 401: components["responses"]["Unauthorized"];
10071
+ 403: components["responses"]["Forbidden"];
10072
+ /** @description Workspace does not exist or malformed workspaceId */
10073
+ 404: {
10074
+ headers: {
10075
+ [name: string]: unknown;
10076
+ };
10077
+ content?: never;
10078
+ };
10079
+ };
10080
+ };
9103
10081
  getAiToolMembers: {
9104
10082
  parameters: {
9105
10083
  query?: {