@thinkai/tai-api-contract 2.215.0 → 2.219.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.
@@ -1618,6 +1618,86 @@ export interface paths {
1618
1618
  patch?: never;
1619
1619
  trace?: never;
1620
1620
  };
1621
+ "/workspaces/{workspaceId}/insights/devex/results": {
1622
+ parameters: {
1623
+ query?: never;
1624
+ header?: never;
1625
+ path?: never;
1626
+ cookie?: never;
1627
+ };
1628
+ /**
1629
+ * DevEx survey aggregates (SurveyMonkey)
1630
+ * @description Persisted DevEx aggregates (`devex-score`) for a workspace. Aggregates only — never email or free text. Returns 404 when `backend-api.teamEfficiency.enabled` is false (unless the workspace is on the optional allowlist).
1631
+ */
1632
+ get: operations["getDevexResults"];
1633
+ put?: never;
1634
+ post?: never;
1635
+ delete?: never;
1636
+ options?: never;
1637
+ head?: never;
1638
+ patch?: never;
1639
+ trace?: never;
1640
+ };
1641
+ "/workspaces/{workspaceId}/insights/team-efficiency/bundle": {
1642
+ parameters: {
1643
+ query?: never;
1644
+ header?: never;
1645
+ path?: never;
1646
+ cookie?: never;
1647
+ };
1648
+ /**
1649
+ * Team Efficiency page bundle
1650
+ * @description One round trip for the Team Efficiency page. Metrics are computed for the rolling `months` calendar months (default 3) against the previous period. A department is the union of its teams. All departments plus all teams, and person scope, are rejected with 400. Returns 404 when `backend-api.teamEfficiency` is off (unless the workspace is on the allowlist).
1651
+ */
1652
+ get: operations["getTeamEfficiencyBundle"];
1653
+ put?: never;
1654
+ post?: never;
1655
+ delete?: never;
1656
+ options?: never;
1657
+ head?: never;
1658
+ patch?: never;
1659
+ trace?: never;
1660
+ };
1661
+ "/workspaces/{workspaceId}/insights/devex/sync": {
1662
+ parameters: {
1663
+ query?: never;
1664
+ header?: never;
1665
+ path?: never;
1666
+ cookie?: never;
1667
+ };
1668
+ get?: never;
1669
+ put?: never;
1670
+ /**
1671
+ * Sync DevEx aggregates from SurveyMonkey
1672
+ * @description Pull SurveyMonkey responses, score dimensions (% favourable after reverse-score), apply team min-response rollup and response-rate flags, and persist aggregates only. Admin only. 404 when Team Efficiency is disabled.
1673
+ */
1674
+ post: operations["syncDevexSurvey"];
1675
+ delete?: never;
1676
+ options?: never;
1677
+ head?: never;
1678
+ patch?: never;
1679
+ trace?: never;
1680
+ };
1681
+ "/workspaces/{workspaceId}/connectors/surveymonkey/verify": {
1682
+ parameters: {
1683
+ query?: never;
1684
+ header?: never;
1685
+ path?: never;
1686
+ cookie?: never;
1687
+ };
1688
+ get?: never;
1689
+ put?: never;
1690
+ /**
1691
+ * Re-verify SurveyMonkey connection
1692
+ * @description Re-tests the stored SurveyMonkey token and returns an anonymity warning when the collector is not anonymous (when the API exposes that setting). 404 when flag off.
1693
+ */
1694
+ post: operations["verifySurveyMonkeyConnector"];
1695
+ delete?: never;
1696
+ options?: never;
1697
+ head?: never;
1698
+ patch?: never;
1699
+ trace?: never;
1700
+ };
1621
1701
  "/workspaces/{workspaceId}/insights/sdlc/overview": {
1622
1702
  parameters: {
1623
1703
  query?: never;
@@ -6511,6 +6591,233 @@ export interface components {
6511
6591
  /** @description PagerDuty user email when known from the last successful verify. */
6512
6592
  userEmail?: string;
6513
6593
  };
6594
+ /** @description SurveyMonkey DevEx survey source for Team Efficiency (`devex-score`). Requires a private-app access token with Responses API read. Plan tier: Advantage (or Premier / Enterprise) with API access. Hidden when `backend-api.teamEfficiency.enabled` is false (404 on PUT/test). */
6595
+ SurveyMonkeySourceDto: {
6596
+ /** @enum {string} */
6597
+ type: "surveymonkey";
6598
+ /** @description SurveyMonkey private app access token (Bearer, write-only on PUT). */
6599
+ token: string;
6600
+ /** @description SurveyMonkey survey id to score. */
6601
+ surveyId: string;
6602
+ /** @description Optional collector id for anonymity checks. */
6603
+ collectorId?: string;
6604
+ /** @description Optional API base URL override. Default `https://api.surveymonkey.com/v3`. */
6605
+ baseUrl?: string;
6606
+ /** @description Required choice question whose options map to org-chart teams. */
6607
+ teamQuestionId?: string;
6608
+ /** @description SurveyMonkey choice id → org-chart team id. */
6609
+ teamOptionMap?: {
6610
+ [key: string]: string;
6611
+ };
6612
+ /** @description SurveyMonkey choice id → department id (for <5 response rollup). */
6613
+ teamDepartmentMap?: {
6614
+ [key: string]: string;
6615
+ };
6616
+ questions?: {
6617
+ questionId: string;
6618
+ /** @enum {string} */
6619
+ dimension: "feedback_loops" | "cognitive_load" | "flow_state";
6620
+ /** @description Negatively worded questions are reverse-scored before % favourable. */
6621
+ reverse?: boolean;
6622
+ }[];
6623
+ /** @description Optional display name from a successful connection test (echo-after-test). */
6624
+ userName?: string;
6625
+ };
6626
+ /** @description Redacted SurveyMonkey source returned by `GET /workspaces/{workspaceId}/config` when Team Efficiency is enabled. Raw token is never returned. Omitted from sources when the feature flag is off. */
6627
+ SurveyMonkeySourceConfigDto: {
6628
+ /** @enum {string} */
6629
+ type: "surveymonkey";
6630
+ hasToken: boolean;
6631
+ surveyId?: string;
6632
+ collectorId?: string;
6633
+ baseUrl?: string;
6634
+ teamQuestionId?: string;
6635
+ teamOptionMap?: {
6636
+ [key: string]: string;
6637
+ };
6638
+ teamDepartmentMap?: {
6639
+ [key: string]: string;
6640
+ };
6641
+ questions?: {
6642
+ questionId: string;
6643
+ /** @enum {string} */
6644
+ dimension: "feedback_loops" | "cognitive_load" | "flow_state";
6645
+ reverse?: boolean;
6646
+ }[];
6647
+ userName?: string;
6648
+ };
6649
+ /** @description One persisted DevEx aggregate row (never email / free text). */
6650
+ DevexResultDto: {
6651
+ teamId?: string | null;
6652
+ departmentId?: string | null;
6653
+ /** @example 2026-Q1 */
6654
+ quarter: string;
6655
+ feedbackLoopsScore: number;
6656
+ cognitiveLoadScore: number;
6657
+ flowStateScore: number;
6658
+ /** @description Average of the three dimension scores (0–100). */
6659
+ devexScore: number;
6660
+ responseCount: number;
6661
+ rosterSize?: number | null;
6662
+ responseRate?: number | null;
6663
+ lowResponseRate: boolean;
6664
+ /** @description True when the team had fewer than 5 responses and rolled to department. */
6665
+ rolledUp: boolean;
6666
+ /** Format: date-time */
6667
+ updatedAt: string;
6668
+ };
6669
+ DevexResultsResponseDto: {
6670
+ /** @enum {string} */
6671
+ metricId: "devex-score";
6672
+ results: components["schemas"]["DevexResultDto"][];
6673
+ };
6674
+ TeamEfficiencyDataQualityDto: {
6675
+ /** @enum {string} */
6676
+ code: "low_data" | "missing_start" | "batch_closed" | "no_roster" | "not_configured" | "no_bug_data" | "no_survey" | "unattributed_failures" | "excluded_incidents" | "unlinked_incidents" | "unknown_review_comments" | "no_linked_deploys" | "no_deployments" | "six_month_window";
6677
+ message: string;
6678
+ percent?: number;
6679
+ count?: number;
6680
+ };
6681
+ TeamEfficiencyMetricDto: {
6682
+ /** @enum {string} */
6683
+ id: "flow-time" | "pr-throughput-per-engineer" | "escaped-defects" | "devex-score" | "deployment-frequency" | "lead-time-for-changes" | "change-failure-rate" | "time-to-restore" | "pr-size" | "time-to-first-review" | "pr-approvals-without-comments";
6684
+ label: string;
6685
+ /** @description Short card label, for example "Recovery time". */
6686
+ shortLabel?: string;
6687
+ unit: string;
6688
+ value?: number;
6689
+ p85?: number;
6690
+ previous?: number;
6691
+ /** @description Per calendar month in the window, oldest first. null when no data. */
6692
+ monthly: (number | null)[];
6693
+ sampleSize: number;
6694
+ /** @description Fewer than 10 samples. */
6695
+ lowData: boolean;
6696
+ reportable: boolean;
6697
+ numerator?: number;
6698
+ denominator?: number;
6699
+ owner: string;
6700
+ counterweightIds: string[];
6701
+ dataQuality: components["schemas"]["TeamEfficiencyDataQualityDto"][];
6702
+ /** @description Drill-through route; the client appends scope and window. */
6703
+ href: string;
6704
+ /** @description Counts by key, for example escaped defects by severity. */
6705
+ breakdown?: {
6706
+ [key: string]: number;
6707
+ };
6708
+ /** @description The same series for the months before `monthly`, oldest first. */
6709
+ previousMonthly?: (number | null)[];
6710
+ stages?: components["schemas"]["TeamEfficiencyLeadTimeStagesDto"];
6711
+ devex?: components["schemas"]["TeamEfficiencyDevexDetailDto"];
6712
+ signals?: components["schemas"]["TeamEfficiencySignalDto"][];
6713
+ };
6714
+ /** @description Median hours per lead-time stage. */
6715
+ TeamEfficiencyLeadTimeStagesDto: {
6716
+ codingHours: number;
6717
+ pickupHours: number;
6718
+ reviewHours: number;
6719
+ deployHours: number;
6720
+ };
6721
+ TeamEfficiencySignalDto: {
6722
+ /** @enum {string} */
6723
+ id: "review-time-drop" | "approvals-without-comments-rise" | "pr-size-falling-flow-flat";
6724
+ label: string;
6725
+ flagged: boolean;
6726
+ /** @description Short detail shown when flagged, for example "24% to 31%". */
6727
+ detail?: string;
6728
+ };
6729
+ TeamEfficiencyDevexDetailDto: {
6730
+ /** @example 2026-Q3 */
6731
+ quarter: string;
6732
+ dimensions: {
6733
+ feedbackLoops: number;
6734
+ cognitiveLoad: number;
6735
+ flowState: number;
6736
+ };
6737
+ /** @description Latest quarters, oldest first. */
6738
+ quarters: {
6739
+ quarter: string;
6740
+ score: number;
6741
+ }[];
6742
+ responseCount: number;
6743
+ rosterSize?: number;
6744
+ /** @description 0 to 1. */
6745
+ responseRate?: number;
6746
+ lowResponseRate: boolean;
6747
+ /** @description Fewer than 5 responses, so the score shown is the department's. */
6748
+ rolledUp: boolean;
6749
+ };
6750
+ TeamEfficiencySetupItemDto: {
6751
+ id: string;
6752
+ label: string;
6753
+ done: boolean;
6754
+ hint: string;
6755
+ };
6756
+ TeamEfficiencyBundleDto: {
6757
+ summary: {
6758
+ engineers: number;
6759
+ issuesDone: number;
6760
+ mergedPrs: number;
6761
+ deployments: number;
6762
+ survey?: {
6763
+ responses: number;
6764
+ invited?: number;
6765
+ };
6766
+ };
6767
+ /** @description Share of engineers using an AI tool per month, for the months before the window followed by the window months, oldest first. null when no data. */
6768
+ aiAdoption: (number | null)[];
6769
+ scope: {
6770
+ department?: string;
6771
+ team?: string;
6772
+ teamIds: string[];
6773
+ /** @description Org-chart engineers, excluding managers, product managers and designers. */
6774
+ rosterEngineerCount: number;
6775
+ };
6776
+ window: {
6777
+ monthCount: number;
6778
+ /** Format: date-time */
6779
+ start: string;
6780
+ /** Format: date-time */
6781
+ end: string;
6782
+ /** Format: date-time */
6783
+ previousStart: string;
6784
+ /** Format: date-time */
6785
+ previousEnd: string;
6786
+ months: {
6787
+ /** Format: date-time */
6788
+ start: string;
6789
+ /** Format: date-time */
6790
+ end: string;
6791
+ }[];
6792
+ };
6793
+ metrics: components["schemas"]["TeamEfficiencyMetricDto"][];
6794
+ setup: {
6795
+ items: components["schemas"]["TeamEfficiencySetupItemDto"][];
6796
+ complete: boolean;
6797
+ };
6798
+ /** Format: date-time */
6799
+ generatedAt: string;
6800
+ };
6801
+ DevexSyncRequestDto: {
6802
+ /** @example 2026-Q1 */
6803
+ quarter?: string;
6804
+ rosterByTeam?: {
6805
+ [key: string]: number;
6806
+ };
6807
+ rosterByDepartment?: {
6808
+ [key: string]: number;
6809
+ };
6810
+ };
6811
+ DevexSyncResultDto: {
6812
+ /** @enum {string} */
6813
+ status?: "ok" | "skipped" | "error";
6814
+ quarter?: string;
6815
+ responseCount?: number;
6816
+ resultCount?: number;
6817
+ code?: string;
6818
+ reason?: string;
6819
+ error?: string;
6820
+ };
6514
6821
  /** @description incident.io incident-management source for `PUT /workspaces/{workspaceId}/sources` and `POST /workspaces/{workspaceId}/sources/test`. Requires an incident.io API key (incident.io → Settings → API keys) with permission to view incidents. The API host is fixed (`https://api.incident.io`); there is no base URL field. */
6515
6822
  IncidentIoSourceDto: {
6516
6823
  /** @enum {string} */
@@ -6736,7 +7043,7 @@ export interface components {
6736
7043
  topics?: components["schemas"]["CodeWikiGuidanceTopicDto"][];
6737
7044
  };
6738
7045
  WorkspaceConfigDto: {
6739
- sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["CodeIntelligenceSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["DatadogSourceConfigDto"] | components["schemas"]["PrometheusSourceConfigDto"] | components["schemas"]["GrafanaSourceConfigDto"] | components["schemas"]["SonarQubeSourceConfigDto"] | components["schemas"]["PagerDutySourceConfigDto"] | components["schemas"]["IncidentIoSourceConfigDto"] | components["schemas"]["SentrySourceConfigDto"] | components["schemas"]["JiraSourceConfigDto"] | components["schemas"]["LinearSourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
7046
+ sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["CodeIntelligenceSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["DatadogSourceConfigDto"] | components["schemas"]["PrometheusSourceConfigDto"] | components["schemas"]["GrafanaSourceConfigDto"] | components["schemas"]["SonarQubeSourceConfigDto"] | components["schemas"]["PagerDutySourceConfigDto"] | components["schemas"]["SurveyMonkeySourceConfigDto"] | components["schemas"]["IncidentIoSourceConfigDto"] | components["schemas"]["SentrySourceConfigDto"] | components["schemas"]["JiraSourceConfigDto"] | components["schemas"]["LinearSourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
6740
7047
  orgChart?: components["schemas"]["ScoringOrgChartDto"] | null;
6741
7048
  /** @enum {string|null} */
6742
7049
  region?: "us" | "eu" | "me" | null;
@@ -7102,6 +7409,26 @@ export interface components {
7102
7409
  clusterName?: string;
7103
7410
  /** @description Present for Prometheus verify success — Alertmanager version when available. */
7104
7411
  version?: string;
7412
+ /** @description Present for SurveyMonkey verify success. Question and choice labels only (never answers), so the connect screen can pick the team question and rating questions. */
7413
+ survey?: {
7414
+ title: string;
7415
+ questions: {
7416
+ id: string;
7417
+ text: string;
7418
+ /** @description Every choice carries a 1-5 weight or position, so the question can be scored. */
7419
+ ratingScale: boolean;
7420
+ choices: {
7421
+ id: string;
7422
+ text: string;
7423
+ }[];
7424
+ }[];
7425
+ };
7426
+ /** @description Present for SurveyMonkey verify success when the request carried `teamQuestionId`. How many survey choices matched an org-chart team by name. */
7427
+ teamMatch?: {
7428
+ matched: number;
7429
+ total: number;
7430
+ unmatched: string[];
7431
+ };
7105
7432
  };
7106
7433
  CursorKeyUsageDto: {
7107
7434
  /** @description Readiness runs this calendar month that used the ThinkAI platform Cursor key. */
@@ -13939,6 +14266,19 @@ export type SonarQubeRepoMappingValidateRowDto = components['schemas']['SonarQub
13939
14266
  export type SonarQubeRepoMappingsValidateResponseDto = components['schemas']['SonarQubeRepoMappingsValidateResponseDto'];
13940
14267
  export type PagerDutySourceDto = components['schemas']['PagerDutySourceDto'];
13941
14268
  export type PagerDutySourceConfigDto = components['schemas']['PagerDutySourceConfigDto'];
14269
+ export type SurveyMonkeySourceDto = components['schemas']['SurveyMonkeySourceDto'];
14270
+ export type SurveyMonkeySourceConfigDto = components['schemas']['SurveyMonkeySourceConfigDto'];
14271
+ export type DevexResultDto = components['schemas']['DevexResultDto'];
14272
+ export type DevexResultsResponseDto = components['schemas']['DevexResultsResponseDto'];
14273
+ export type TeamEfficiencyDataQualityDto = components['schemas']['TeamEfficiencyDataQualityDto'];
14274
+ export type TeamEfficiencyMetricDto = components['schemas']['TeamEfficiencyMetricDto'];
14275
+ export type TeamEfficiencyLeadTimeStagesDto = components['schemas']['TeamEfficiencyLeadTimeStagesDto'];
14276
+ export type TeamEfficiencySignalDto = components['schemas']['TeamEfficiencySignalDto'];
14277
+ export type TeamEfficiencyDevexDetailDto = components['schemas']['TeamEfficiencyDevexDetailDto'];
14278
+ export type TeamEfficiencySetupItemDto = components['schemas']['TeamEfficiencySetupItemDto'];
14279
+ export type TeamEfficiencyBundleDto = components['schemas']['TeamEfficiencyBundleDto'];
14280
+ export type DevexSyncRequestDto = components['schemas']['DevexSyncRequestDto'];
14281
+ export type DevexSyncResultDto = components['schemas']['DevexSyncResultDto'];
13942
14282
  export type IncidentIoSourceDto = components['schemas']['IncidentIoSourceDto'];
13943
14283
  export type IncidentIoSourceConfigDto = components['schemas']['IncidentIoSourceConfigDto'];
13944
14284
  export type SentrySourceDto = components['schemas']['SentrySourceDto'];
@@ -18040,7 +18380,7 @@ export interface operations {
18040
18380
  requestBody: {
18041
18381
  content: {
18042
18382
  "application/json": {
18043
- sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["LinearSourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
18383
+ sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["SurveyMonkeySourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["LinearSourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
18044
18384
  };
18045
18385
  };
18046
18386
  };
@@ -18094,7 +18434,7 @@ export interface operations {
18094
18434
  };
18095
18435
  requestBody: {
18096
18436
  content: {
18097
- "application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["LinearSourceDto"] | components["schemas"]["TenantSourceEntryDto"];
18437
+ "application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["SurveyMonkeySourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["LinearSourceDto"] | components["schemas"]["TenantSourceEntryDto"];
18098
18438
  };
18099
18439
  };
18100
18440
  responses: {
@@ -19444,6 +19784,175 @@ export interface operations {
19444
19784
  };
19445
19785
  };
19446
19786
  };
19787
+ getDevexResults: {
19788
+ parameters: {
19789
+ query?: {
19790
+ quarter?: string;
19791
+ team?: string;
19792
+ department?: string;
19793
+ };
19794
+ header?: never;
19795
+ path: {
19796
+ workspaceId: components["parameters"]["WorkspaceId"];
19797
+ };
19798
+ cookie?: never;
19799
+ };
19800
+ requestBody?: never;
19801
+ responses: {
19802
+ /** @description DevEx aggregate rows */
19803
+ 200: {
19804
+ headers: {
19805
+ [name: string]: unknown;
19806
+ };
19807
+ content: {
19808
+ "application/json": components["schemas"]["DevexResultsResponseDto"];
19809
+ };
19810
+ };
19811
+ 401: components["responses"]["Unauthorized"];
19812
+ 403: components["responses"]["Forbidden"];
19813
+ /** @description Feature flag off or workspace not found */
19814
+ 404: {
19815
+ headers: {
19816
+ [name: string]: unknown;
19817
+ };
19818
+ content?: never;
19819
+ };
19820
+ };
19821
+ };
19822
+ getTeamEfficiencyBundle: {
19823
+ parameters: {
19824
+ query?: {
19825
+ department?: string;
19826
+ team?: string;
19827
+ months?: number;
19828
+ };
19829
+ header?: never;
19830
+ path: {
19831
+ workspaceId: components["parameters"]["WorkspaceId"];
19832
+ };
19833
+ cookie?: never;
19834
+ };
19835
+ requestBody?: never;
19836
+ responses: {
19837
+ /** @description Team Efficiency metrics, window, and setup checklist */
19838
+ 200: {
19839
+ headers: {
19840
+ [name: string]: unknown;
19841
+ };
19842
+ content: {
19843
+ "application/json": components["schemas"]["TeamEfficiencyBundleDto"];
19844
+ };
19845
+ };
19846
+ /** @description Invalid scope or months (`scope_required`, `person_scope_not_supported`, `team_not_found`, `department_not_found`, `invalid_months`) */
19847
+ 400: {
19848
+ headers: {
19849
+ [name: string]: unknown;
19850
+ };
19851
+ content: {
19852
+ "application/json": {
19853
+ error: string;
19854
+ code: string;
19855
+ };
19856
+ };
19857
+ };
19858
+ 401: components["responses"]["Unauthorized"];
19859
+ 403: components["responses"]["Forbidden"];
19860
+ /** @description Feature flag off or workspace not found */
19861
+ 404: {
19862
+ headers: {
19863
+ [name: string]: unknown;
19864
+ };
19865
+ content?: never;
19866
+ };
19867
+ };
19868
+ };
19869
+ syncDevexSurvey: {
19870
+ parameters: {
19871
+ query?: never;
19872
+ header?: never;
19873
+ path: {
19874
+ workspaceId: components["parameters"]["WorkspaceId"];
19875
+ };
19876
+ cookie?: never;
19877
+ };
19878
+ requestBody?: {
19879
+ content: {
19880
+ "application/json": components["schemas"]["DevexSyncRequestDto"];
19881
+ };
19882
+ };
19883
+ responses: {
19884
+ /** @description Sync completed */
19885
+ 200: {
19886
+ headers: {
19887
+ [name: string]: unknown;
19888
+ };
19889
+ content: {
19890
+ "application/json": components["schemas"]["DevexSyncResultDto"];
19891
+ };
19892
+ };
19893
+ 401: components["responses"]["Unauthorized"];
19894
+ 403: components["responses"]["Forbidden"];
19895
+ /** @description Feature flag off */
19896
+ 404: {
19897
+ headers: {
19898
+ [name: string]: unknown;
19899
+ };
19900
+ content?: never;
19901
+ };
19902
+ /** @description SurveyMonkey not connected or mapping incomplete */
19903
+ 422: {
19904
+ headers: {
19905
+ [name: string]: unknown;
19906
+ };
19907
+ content?: never;
19908
+ };
19909
+ /** @description SurveyMonkey API failure */
19910
+ 502: {
19911
+ headers: {
19912
+ [name: string]: unknown;
19913
+ };
19914
+ content?: never;
19915
+ };
19916
+ };
19917
+ };
19918
+ verifySurveyMonkeyConnector: {
19919
+ parameters: {
19920
+ query?: never;
19921
+ header?: never;
19922
+ path: {
19923
+ workspaceId: components["parameters"]["WorkspaceId"];
19924
+ };
19925
+ cookie?: never;
19926
+ };
19927
+ requestBody?: never;
19928
+ responses: {
19929
+ /** @description Connection test result */
19930
+ 200: {
19931
+ headers: {
19932
+ [name: string]: unknown;
19933
+ };
19934
+ content: {
19935
+ "application/json": components["schemas"]["TestConnectionResponseDto"];
19936
+ };
19937
+ };
19938
+ 401: components["responses"]["Unauthorized"];
19939
+ 403: components["responses"]["Forbidden"];
19940
+ /** @description Feature flag off */
19941
+ 404: {
19942
+ headers: {
19943
+ [name: string]: unknown;
19944
+ };
19945
+ content?: never;
19946
+ };
19947
+ /** @description SurveyMonkey not connected */
19948
+ 422: {
19949
+ headers: {
19950
+ [name: string]: unknown;
19951
+ };
19952
+ content?: never;
19953
+ };
19954
+ };
19955
+ };
19447
19956
  getSdlcInsightsOverview: {
19448
19957
  parameters: {
19449
19958
  query?: {
package/src/index.ts CHANGED
@@ -2004,6 +2004,22 @@ export const SDL_C_METRIC_IDS = [
2004
2004
  ] as const;
2005
2005
  export type SdlcMetricId = (typeof SDL_C_METRIC_IDS)[number];
2006
2006
 
2007
+ /** Team Efficiency metric ids (Shine). Bundle assembly lands in T8. */
2008
+ export const TEAM_EFFICIENCY_METRIC_IDS = [
2009
+ "flow-time",
2010
+ "pr-throughput-per-engineer",
2011
+ "escaped-defects",
2012
+ "devex-score",
2013
+ "deployment-frequency",
2014
+ "lead-time-for-changes",
2015
+ "change-failure-rate",
2016
+ "time-to-restore",
2017
+ "pr-size",
2018
+ "time-to-first-review",
2019
+ "pr-approvals-without-comments",
2020
+ ] as const;
2021
+ export type TeamEfficiencyMetricId = (typeof TEAM_EFFICIENCY_METRIC_IDS)[number];
2022
+
2007
2023
  export type SdlcMetricDataStatus = "live" | "preview" | "unavailable";
2008
2024
  export type SdlcMetricHealthStatus = "healthy" | "warning" | "critical" | "unknown";
2009
2025
  export type SdlcBenchmarkBand = "elite" | "high" | "medium" | "low";