@thinkai/tai-api-contract 2.214.0 → 2.216.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.
@@ -1026,6 +1026,50 @@ export interface paths {
1026
1026
  patch?: never;
1027
1027
  trace?: never;
1028
1028
  };
1029
+ "/workspaces/{workspaceId}/team-ownership": {
1030
+ parameters: {
1031
+ query?: never;
1032
+ header?: never;
1033
+ path?: never;
1034
+ cookie?: never;
1035
+ };
1036
+ /**
1037
+ * List team ownership mappings (Team Efficiency T1)
1038
+ * @description Returns org-chart team ownership of repos, services, and tracker teams, plus unmapped workspace repos and (when Datadog is connected) unmapped catalog services. Requires `backend-api.teamEfficiency.enabled` (or workspace allowlist); otherwise `404` with `code: team_efficiency_disabled`. Member read.
1039
+ */
1040
+ get: operations["getWorkspaceTeamOwnership"];
1041
+ /**
1042
+ * Replace team ownership mappings (Team Efficiency T1)
1043
+ * @description Full-replace ownership rows. Requires workspace **admin**. Flag-gated like GET (`404` `team_efficiency_disabled` when off).
1044
+ */
1045
+ put: operations["putWorkspaceTeamOwnership"];
1046
+ post?: never;
1047
+ delete?: never;
1048
+ options?: never;
1049
+ head?: never;
1050
+ patch?: never;
1051
+ trace?: never;
1052
+ };
1053
+ "/workspaces/{workspaceId}/team-ownership/import-datadog-catalog": {
1054
+ parameters: {
1055
+ query?: never;
1056
+ header?: never;
1057
+ path?: never;
1058
+ cookie?: never;
1059
+ };
1060
+ get?: never;
1061
+ put?: never;
1062
+ /**
1063
+ * Import Datadog service-catalog team ownership
1064
+ * @description Reads Datadog service definitions (`team` / `dd-team`), matches labels to org-chart team id or name (case-insensitive), and upserts `kind=service` rows with `provider=datadog`. Admin only; flag-gated.
1065
+ */
1066
+ post: operations["importDatadogTeamOwnershipCatalog"];
1067
+ delete?: never;
1068
+ options?: never;
1069
+ head?: never;
1070
+ patch?: never;
1071
+ trace?: never;
1072
+ };
1029
1073
  "/workspaces/{workspaceId}/productivity-targets": {
1030
1074
  parameters: {
1031
1075
  query?: never;
@@ -1574,6 +1618,66 @@ export interface paths {
1574
1618
  patch?: never;
1575
1619
  trace?: never;
1576
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/devex/sync": {
1642
+ parameters: {
1643
+ query?: never;
1644
+ header?: never;
1645
+ path?: never;
1646
+ cookie?: never;
1647
+ };
1648
+ get?: never;
1649
+ put?: never;
1650
+ /**
1651
+ * Sync DevEx aggregates from SurveyMonkey
1652
+ * @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.
1653
+ */
1654
+ post: operations["syncDevexSurvey"];
1655
+ delete?: never;
1656
+ options?: never;
1657
+ head?: never;
1658
+ patch?: never;
1659
+ trace?: never;
1660
+ };
1661
+ "/workspaces/{workspaceId}/connectors/surveymonkey/verify": {
1662
+ parameters: {
1663
+ query?: never;
1664
+ header?: never;
1665
+ path?: never;
1666
+ cookie?: never;
1667
+ };
1668
+ get?: never;
1669
+ put?: never;
1670
+ /**
1671
+ * Re-verify SurveyMonkey connection
1672
+ * @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.
1673
+ */
1674
+ post: operations["verifySurveyMonkeyConnector"];
1675
+ delete?: never;
1676
+ options?: never;
1677
+ head?: never;
1678
+ patch?: never;
1679
+ trace?: never;
1680
+ };
1577
1681
  "/workspaces/{workspaceId}/insights/sdlc/overview": {
1578
1682
  parameters: {
1579
1683
  query?: never;
@@ -6467,6 +6571,106 @@ export interface components {
6467
6571
  /** @description PagerDuty user email when known from the last successful verify. */
6468
6572
  userEmail?: string;
6469
6573
  };
6574
+ /** @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). */
6575
+ SurveyMonkeySourceDto: {
6576
+ /** @enum {string} */
6577
+ type: "surveymonkey";
6578
+ /** @description SurveyMonkey private app access token (Bearer, write-only on PUT). */
6579
+ token: string;
6580
+ /** @description SurveyMonkey survey id to score. */
6581
+ surveyId: string;
6582
+ /** @description Optional collector id for anonymity checks. */
6583
+ collectorId?: string;
6584
+ /** @description Optional API base URL override. Default `https://api.surveymonkey.com/v3`. */
6585
+ baseUrl?: string;
6586
+ /** @description Required choice question whose options map to org-chart teams. */
6587
+ teamQuestionId?: string;
6588
+ /** @description SurveyMonkey choice id → org-chart team id. */
6589
+ teamOptionMap?: {
6590
+ [key: string]: string;
6591
+ };
6592
+ /** @description SurveyMonkey choice id → department id (for <5 response rollup). */
6593
+ teamDepartmentMap?: {
6594
+ [key: string]: string;
6595
+ };
6596
+ questions?: {
6597
+ questionId: string;
6598
+ /** @enum {string} */
6599
+ dimension: "feedback_loops" | "cognitive_load" | "flow_state";
6600
+ /** @description Negatively worded questions are reverse-scored before % favourable. */
6601
+ reverse?: boolean;
6602
+ }[];
6603
+ /** @description Optional display name from a successful connection test (echo-after-test). */
6604
+ userName?: string;
6605
+ };
6606
+ /** @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. */
6607
+ SurveyMonkeySourceConfigDto: {
6608
+ /** @enum {string} */
6609
+ type: "surveymonkey";
6610
+ hasToken: boolean;
6611
+ surveyId?: string;
6612
+ collectorId?: string;
6613
+ baseUrl?: string;
6614
+ teamQuestionId?: string;
6615
+ teamOptionMap?: {
6616
+ [key: string]: string;
6617
+ };
6618
+ teamDepartmentMap?: {
6619
+ [key: string]: string;
6620
+ };
6621
+ questions?: {
6622
+ questionId: string;
6623
+ /** @enum {string} */
6624
+ dimension: "feedback_loops" | "cognitive_load" | "flow_state";
6625
+ reverse?: boolean;
6626
+ }[];
6627
+ userName?: string;
6628
+ };
6629
+ /** @description One persisted DevEx aggregate row (never email / free text). */
6630
+ DevexResultDto: {
6631
+ teamId?: string | null;
6632
+ departmentId?: string | null;
6633
+ /** @example 2026-Q1 */
6634
+ quarter: string;
6635
+ feedbackLoopsScore: number;
6636
+ cognitiveLoadScore: number;
6637
+ flowStateScore: number;
6638
+ /** @description Average of the three dimension scores (0–100). */
6639
+ devexScore: number;
6640
+ responseCount: number;
6641
+ rosterSize?: number | null;
6642
+ responseRate?: number | null;
6643
+ lowResponseRate: boolean;
6644
+ /** @description True when the team had fewer than 5 responses and rolled to department. */
6645
+ rolledUp: boolean;
6646
+ /** Format: date-time */
6647
+ updatedAt: string;
6648
+ };
6649
+ DevexResultsResponseDto: {
6650
+ /** @enum {string} */
6651
+ metricId: "devex-score";
6652
+ results: components["schemas"]["DevexResultDto"][];
6653
+ };
6654
+ DevexSyncRequestDto: {
6655
+ /** @example 2026-Q1 */
6656
+ quarter?: string;
6657
+ rosterByTeam?: {
6658
+ [key: string]: number;
6659
+ };
6660
+ rosterByDepartment?: {
6661
+ [key: string]: number;
6662
+ };
6663
+ };
6664
+ DevexSyncResultDto: {
6665
+ /** @enum {string} */
6666
+ status?: "ok" | "skipped" | "error";
6667
+ quarter?: string;
6668
+ responseCount?: number;
6669
+ resultCount?: number;
6670
+ code?: string;
6671
+ reason?: string;
6672
+ error?: string;
6673
+ };
6470
6674
  /** @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. */
6471
6675
  IncidentIoSourceDto: {
6472
6676
  /** @enum {string} */
@@ -6692,7 +6896,7 @@ export interface components {
6692
6896
  topics?: components["schemas"]["CodeWikiGuidanceTopicDto"][];
6693
6897
  };
6694
6898
  WorkspaceConfigDto: {
6695
- 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"])[];
6899
+ 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"])[];
6696
6900
  orgChart?: components["schemas"]["ScoringOrgChartDto"] | null;
6697
6901
  /** @enum {string|null} */
6698
6902
  region?: "us" | "eu" | "me" | null;
@@ -6922,6 +7126,58 @@ export interface components {
6922
7126
  /** @enum {string|null} */
6923
7127
  idpType?: "okta" | "entra" | "saml" | null;
6924
7128
  };
7129
+ /** @enum {string} */
7130
+ TeamOwnershipKindDto: "repo" | "service" | "tracker_team";
7131
+ TeamOwnershipMappingDto: {
7132
+ /** Format: uuid */
7133
+ id: string;
7134
+ /** @description Org-chart team node id */
7135
+ teamId: string;
7136
+ kind: components["schemas"]["TeamOwnershipKindDto"];
7137
+ /** @description e.g. github, datadog, linear */
7138
+ provider: string;
7139
+ /** @description Repo slug, service name, or tracker team key */
7140
+ key: string;
7141
+ /** Format: date-time */
7142
+ createdAt: string;
7143
+ /** Format: date-time */
7144
+ updatedAt: string;
7145
+ };
7146
+ TeamOwnershipUnmappedDto: {
7147
+ /** @description Workspace repo provider_slugs with no kind=repo mapping */
7148
+ repos: string[];
7149
+ /** @description Datadog catalog services with no kind=service mapping (empty when Datadog disconnected) */
7150
+ services: string[];
7151
+ };
7152
+ TeamOwnershipListDto: {
7153
+ mappings: components["schemas"]["TeamOwnershipMappingDto"][];
7154
+ unmapped: components["schemas"]["TeamOwnershipUnmappedDto"];
7155
+ };
7156
+ TeamOwnershipMappingInputDto: {
7157
+ teamId: string;
7158
+ kind: components["schemas"]["TeamOwnershipKindDto"];
7159
+ provider: string;
7160
+ key: string;
7161
+ };
7162
+ TeamOwnershipReplaceDto: {
7163
+ mappings: components["schemas"]["TeamOwnershipMappingInputDto"][];
7164
+ };
7165
+ TeamOwnershipDatadogImportMatchDto: {
7166
+ teamId: string;
7167
+ service: string;
7168
+ catalogTeam: string;
7169
+ };
7170
+ TeamOwnershipDatadogImportUnmatchedDto: {
7171
+ service: string;
7172
+ catalogTeam: string | null;
7173
+ };
7174
+ TeamOwnershipDatadogImportResultDto: {
7175
+ importedCount: number;
7176
+ upserted: number;
7177
+ unmatchedCount: number;
7178
+ imported: components["schemas"]["TeamOwnershipDatadogImportMatchDto"][];
7179
+ unmatched: components["schemas"]["TeamOwnershipDatadogImportUnmatchedDto"][];
7180
+ };
6925
7181
  /** @description Optional weekly per-engineer targets for Productivity Insights. Omitted or null fields mean no target for that metric. Additional properties are rejected. */
6926
7182
  ProductivityTargetsDto: {
6927
7183
  /** @description Floor — meet or exceed this many merged PRs per engineer per week. */
@@ -13843,6 +14099,12 @@ export type SonarQubeRepoMappingValidateRowDto = components['schemas']['SonarQub
13843
14099
  export type SonarQubeRepoMappingsValidateResponseDto = components['schemas']['SonarQubeRepoMappingsValidateResponseDto'];
13844
14100
  export type PagerDutySourceDto = components['schemas']['PagerDutySourceDto'];
13845
14101
  export type PagerDutySourceConfigDto = components['schemas']['PagerDutySourceConfigDto'];
14102
+ export type SurveyMonkeySourceDto = components['schemas']['SurveyMonkeySourceDto'];
14103
+ export type SurveyMonkeySourceConfigDto = components['schemas']['SurveyMonkeySourceConfigDto'];
14104
+ export type DevexResultDto = components['schemas']['DevexResultDto'];
14105
+ export type DevexResultsResponseDto = components['schemas']['DevexResultsResponseDto'];
14106
+ export type DevexSyncRequestDto = components['schemas']['DevexSyncRequestDto'];
14107
+ export type DevexSyncResultDto = components['schemas']['DevexSyncResultDto'];
13846
14108
  export type IncidentIoSourceDto = components['schemas']['IncidentIoSourceDto'];
13847
14109
  export type IncidentIoSourceConfigDto = components['schemas']['IncidentIoSourceConfigDto'];
13848
14110
  export type SentrySourceDto = components['schemas']['SentrySourceDto'];
@@ -13878,6 +14140,15 @@ export type AdminEnterpriseSsoApplyRequestDto = components['schemas']['AdminEnte
13878
14140
  export type AdminEnterpriseSsoApplyResponseDto = components['schemas']['AdminEnterpriseSsoApplyResponseDto'];
13879
14141
  export type AdminEnterpriseSsoRejectRequestDto = components['schemas']['AdminEnterpriseSsoRejectRequestDto'];
13880
14142
  export type AuthSsoLookupDto = components['schemas']['AuthSsoLookupDto'];
14143
+ export type TeamOwnershipKindDto = components['schemas']['TeamOwnershipKindDto'];
14144
+ export type TeamOwnershipMappingDto = components['schemas']['TeamOwnershipMappingDto'];
14145
+ export type TeamOwnershipUnmappedDto = components['schemas']['TeamOwnershipUnmappedDto'];
14146
+ export type TeamOwnershipListDto = components['schemas']['TeamOwnershipListDto'];
14147
+ export type TeamOwnershipMappingInputDto = components['schemas']['TeamOwnershipMappingInputDto'];
14148
+ export type TeamOwnershipReplaceDto = components['schemas']['TeamOwnershipReplaceDto'];
14149
+ export type TeamOwnershipDatadogImportMatchDto = components['schemas']['TeamOwnershipDatadogImportMatchDto'];
14150
+ export type TeamOwnershipDatadogImportUnmatchedDto = components['schemas']['TeamOwnershipDatadogImportUnmatchedDto'];
14151
+ export type TeamOwnershipDatadogImportResultDto = components['schemas']['TeamOwnershipDatadogImportResultDto'];
13881
14152
  export type ProductivityTargetsDto = components['schemas']['ProductivityTargetsDto'];
13882
14153
  export type DimensionTargetPercentsDto = components['schemas']['DimensionTargetPercentsDto'];
13883
14154
  export type DimensionTargetsRepoOverrideDto = components['schemas']['DimensionTargetsRepoOverrideDto'];
@@ -17615,6 +17886,144 @@ export interface operations {
17615
17886
  };
17616
17887
  };
17617
17888
  };
17889
+ getWorkspaceTeamOwnership: {
17890
+ parameters: {
17891
+ query?: never;
17892
+ header?: never;
17893
+ path: {
17894
+ workspaceId: components["parameters"]["WorkspaceId"];
17895
+ };
17896
+ cookie?: never;
17897
+ };
17898
+ requestBody?: never;
17899
+ responses: {
17900
+ /** @description Current mappings and unmapped inventory */
17901
+ 200: {
17902
+ headers: {
17903
+ [name: string]: unknown;
17904
+ };
17905
+ content: {
17906
+ "application/json": components["schemas"]["TeamOwnershipListDto"];
17907
+ };
17908
+ };
17909
+ 401: components["responses"]["Unauthorized"];
17910
+ 403: components["responses"]["Forbidden"];
17911
+ /** @description Workspace missing or Team Efficiency disabled */
17912
+ 404: {
17913
+ headers: {
17914
+ [name: string]: unknown;
17915
+ };
17916
+ content: {
17917
+ "application/json": components["schemas"]["ErrorMessageDto"];
17918
+ };
17919
+ };
17920
+ };
17921
+ };
17922
+ putWorkspaceTeamOwnership: {
17923
+ parameters: {
17924
+ query?: never;
17925
+ header?: never;
17926
+ path: {
17927
+ workspaceId: components["parameters"]["WorkspaceId"];
17928
+ };
17929
+ cookie?: never;
17930
+ };
17931
+ requestBody: {
17932
+ content: {
17933
+ "application/json": components["schemas"]["TeamOwnershipReplaceDto"];
17934
+ };
17935
+ };
17936
+ responses: {
17937
+ /** @description Replaced mappings */
17938
+ 200: {
17939
+ headers: {
17940
+ [name: string]: unknown;
17941
+ };
17942
+ content: {
17943
+ "application/json": components["schemas"]["TeamOwnershipListDto"];
17944
+ };
17945
+ };
17946
+ /** @description Invalid payload */
17947
+ 400: {
17948
+ headers: {
17949
+ [name: string]: unknown;
17950
+ };
17951
+ content: {
17952
+ "application/json": components["schemas"]["ErrorMessageDto"];
17953
+ };
17954
+ };
17955
+ 401: components["responses"]["Unauthorized"];
17956
+ /** @description Forbidden — workspace admin required */
17957
+ 403: {
17958
+ headers: {
17959
+ [name: string]: unknown;
17960
+ };
17961
+ content: {
17962
+ "application/json": components["schemas"]["ErrorMessageDto"];
17963
+ };
17964
+ };
17965
+ /** @description Workspace missing or Team Efficiency disabled */
17966
+ 404: {
17967
+ headers: {
17968
+ [name: string]: unknown;
17969
+ };
17970
+ content: {
17971
+ "application/json": components["schemas"]["ErrorMessageDto"];
17972
+ };
17973
+ };
17974
+ };
17975
+ };
17976
+ importDatadogTeamOwnershipCatalog: {
17977
+ parameters: {
17978
+ query?: never;
17979
+ header?: never;
17980
+ path: {
17981
+ workspaceId: components["parameters"]["WorkspaceId"];
17982
+ };
17983
+ cookie?: never;
17984
+ };
17985
+ requestBody?: never;
17986
+ responses: {
17987
+ /** @description Import result */
17988
+ 200: {
17989
+ headers: {
17990
+ [name: string]: unknown;
17991
+ };
17992
+ content: {
17993
+ "application/json": components["schemas"]["TeamOwnershipDatadogImportResultDto"];
17994
+ };
17995
+ };
17996
+ 401: components["responses"]["Unauthorized"];
17997
+ 403: components["responses"]["Forbidden"];
17998
+ /** @description Workspace missing or Team Efficiency disabled */
17999
+ 404: {
18000
+ headers: {
18001
+ [name: string]: unknown;
18002
+ };
18003
+ content: {
18004
+ "application/json": components["schemas"]["ErrorMessageDto"];
18005
+ };
18006
+ };
18007
+ /** @description Datadog not connected */
18008
+ 422: {
18009
+ headers: {
18010
+ [name: string]: unknown;
18011
+ };
18012
+ content: {
18013
+ "application/json": components["schemas"]["ErrorMessageDto"];
18014
+ };
18015
+ };
18016
+ /** @description Datadog catalog fetch failed */
18017
+ 503: {
18018
+ headers: {
18019
+ [name: string]: unknown;
18020
+ };
18021
+ content: {
18022
+ "application/json": components["schemas"]["ErrorMessageDto"];
18023
+ };
18024
+ };
18025
+ };
18026
+ };
17618
18027
  getWorkspaceProductivityTargets: {
17619
18028
  parameters: {
17620
18029
  query?: never;
@@ -17797,7 +18206,7 @@ export interface operations {
17797
18206
  requestBody: {
17798
18207
  content: {
17799
18208
  "application/json": {
17800
- 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"])[];
18209
+ 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"])[];
17801
18210
  };
17802
18211
  };
17803
18212
  };
@@ -17851,7 +18260,7 @@ export interface operations {
17851
18260
  };
17852
18261
  requestBody: {
17853
18262
  content: {
17854
- "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"];
18263
+ "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"];
17855
18264
  };
17856
18265
  };
17857
18266
  responses: {
@@ -19201,6 +19610,128 @@ export interface operations {
19201
19610
  };
19202
19611
  };
19203
19612
  };
19613
+ getDevexResults: {
19614
+ parameters: {
19615
+ query?: {
19616
+ quarter?: string;
19617
+ team?: string;
19618
+ department?: string;
19619
+ };
19620
+ header?: never;
19621
+ path: {
19622
+ workspaceId: components["parameters"]["WorkspaceId"];
19623
+ };
19624
+ cookie?: never;
19625
+ };
19626
+ requestBody?: never;
19627
+ responses: {
19628
+ /** @description DevEx aggregate rows */
19629
+ 200: {
19630
+ headers: {
19631
+ [name: string]: unknown;
19632
+ };
19633
+ content: {
19634
+ "application/json": components["schemas"]["DevexResultsResponseDto"];
19635
+ };
19636
+ };
19637
+ 401: components["responses"]["Unauthorized"];
19638
+ 403: components["responses"]["Forbidden"];
19639
+ /** @description Feature flag off or workspace not found */
19640
+ 404: {
19641
+ headers: {
19642
+ [name: string]: unknown;
19643
+ };
19644
+ content?: never;
19645
+ };
19646
+ };
19647
+ };
19648
+ syncDevexSurvey: {
19649
+ parameters: {
19650
+ query?: never;
19651
+ header?: never;
19652
+ path: {
19653
+ workspaceId: components["parameters"]["WorkspaceId"];
19654
+ };
19655
+ cookie?: never;
19656
+ };
19657
+ requestBody?: {
19658
+ content: {
19659
+ "application/json": components["schemas"]["DevexSyncRequestDto"];
19660
+ };
19661
+ };
19662
+ responses: {
19663
+ /** @description Sync completed */
19664
+ 200: {
19665
+ headers: {
19666
+ [name: string]: unknown;
19667
+ };
19668
+ content: {
19669
+ "application/json": components["schemas"]["DevexSyncResultDto"];
19670
+ };
19671
+ };
19672
+ 401: components["responses"]["Unauthorized"];
19673
+ 403: components["responses"]["Forbidden"];
19674
+ /** @description Feature flag off */
19675
+ 404: {
19676
+ headers: {
19677
+ [name: string]: unknown;
19678
+ };
19679
+ content?: never;
19680
+ };
19681
+ /** @description SurveyMonkey not connected or mapping incomplete */
19682
+ 422: {
19683
+ headers: {
19684
+ [name: string]: unknown;
19685
+ };
19686
+ content?: never;
19687
+ };
19688
+ /** @description SurveyMonkey API failure */
19689
+ 502: {
19690
+ headers: {
19691
+ [name: string]: unknown;
19692
+ };
19693
+ content?: never;
19694
+ };
19695
+ };
19696
+ };
19697
+ verifySurveyMonkeyConnector: {
19698
+ parameters: {
19699
+ query?: never;
19700
+ header?: never;
19701
+ path: {
19702
+ workspaceId: components["parameters"]["WorkspaceId"];
19703
+ };
19704
+ cookie?: never;
19705
+ };
19706
+ requestBody?: never;
19707
+ responses: {
19708
+ /** @description Connection test result */
19709
+ 200: {
19710
+ headers: {
19711
+ [name: string]: unknown;
19712
+ };
19713
+ content: {
19714
+ "application/json": components["schemas"]["TestConnectionResponseDto"];
19715
+ };
19716
+ };
19717
+ 401: components["responses"]["Unauthorized"];
19718
+ 403: components["responses"]["Forbidden"];
19719
+ /** @description Feature flag off */
19720
+ 404: {
19721
+ headers: {
19722
+ [name: string]: unknown;
19723
+ };
19724
+ content?: never;
19725
+ };
19726
+ /** @description SurveyMonkey not connected */
19727
+ 422: {
19728
+ headers: {
19729
+ [name: string]: unknown;
19730
+ };
19731
+ content?: never;
19732
+ };
19733
+ };
19734
+ };
19204
19735
  getSdlcInsightsOverview: {
19205
19736
  parameters: {
19206
19737
  query?: {
package/src/index.ts CHANGED
@@ -2004,6 +2004,10 @@ 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 = ["devex-score"] as const;
2009
+ export type TeamEfficiencyMetricId = (typeof TEAM_EFFICIENCY_METRIC_IDS)[number];
2010
+
2007
2011
  export type SdlcMetricDataStatus = "live" | "preview" | "unavailable";
2008
2012
  export type SdlcMetricHealthStatus = "healthy" | "warning" | "critical" | "unknown";
2009
2013
  export type SdlcBenchmarkBand = "elite" | "high" | "medium" | "low";