@thinkai/tai-api-contract 2.215.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.
- package/dist/generated/openapi.d.ts +291 -3
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +274 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +291 -3
- package/src/index.ts +4 -0
|
@@ -1617,6 +1617,66 @@ export interface paths {
|
|
|
1617
1617
|
patch?: never;
|
|
1618
1618
|
trace?: never;
|
|
1619
1619
|
};
|
|
1620
|
+
"/workspaces/{workspaceId}/insights/devex/results": {
|
|
1621
|
+
parameters: {
|
|
1622
|
+
query?: never;
|
|
1623
|
+
header?: never;
|
|
1624
|
+
path?: never;
|
|
1625
|
+
cookie?: never;
|
|
1626
|
+
};
|
|
1627
|
+
/**
|
|
1628
|
+
* DevEx survey aggregates (SurveyMonkey)
|
|
1629
|
+
* @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).
|
|
1630
|
+
*/
|
|
1631
|
+
get: operations["getDevexResults"];
|
|
1632
|
+
put?: never;
|
|
1633
|
+
post?: never;
|
|
1634
|
+
delete?: never;
|
|
1635
|
+
options?: never;
|
|
1636
|
+
head?: never;
|
|
1637
|
+
patch?: never;
|
|
1638
|
+
trace?: never;
|
|
1639
|
+
};
|
|
1640
|
+
"/workspaces/{workspaceId}/insights/devex/sync": {
|
|
1641
|
+
parameters: {
|
|
1642
|
+
query?: never;
|
|
1643
|
+
header?: never;
|
|
1644
|
+
path?: never;
|
|
1645
|
+
cookie?: never;
|
|
1646
|
+
};
|
|
1647
|
+
get?: never;
|
|
1648
|
+
put?: never;
|
|
1649
|
+
/**
|
|
1650
|
+
* Sync DevEx aggregates from SurveyMonkey
|
|
1651
|
+
* @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.
|
|
1652
|
+
*/
|
|
1653
|
+
post: operations["syncDevexSurvey"];
|
|
1654
|
+
delete?: never;
|
|
1655
|
+
options?: never;
|
|
1656
|
+
head?: never;
|
|
1657
|
+
patch?: never;
|
|
1658
|
+
trace?: never;
|
|
1659
|
+
};
|
|
1660
|
+
"/workspaces/{workspaceId}/connectors/surveymonkey/verify": {
|
|
1661
|
+
parameters: {
|
|
1662
|
+
query?: never;
|
|
1663
|
+
header?: never;
|
|
1664
|
+
path?: never;
|
|
1665
|
+
cookie?: never;
|
|
1666
|
+
};
|
|
1667
|
+
get?: never;
|
|
1668
|
+
put?: never;
|
|
1669
|
+
/**
|
|
1670
|
+
* Re-verify SurveyMonkey connection
|
|
1671
|
+
* @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.
|
|
1672
|
+
*/
|
|
1673
|
+
post: operations["verifySurveyMonkeyConnector"];
|
|
1674
|
+
delete?: never;
|
|
1675
|
+
options?: never;
|
|
1676
|
+
head?: never;
|
|
1677
|
+
patch?: never;
|
|
1678
|
+
trace?: never;
|
|
1679
|
+
};
|
|
1620
1680
|
"/workspaces/{workspaceId}/insights/sdlc/overview": {
|
|
1621
1681
|
parameters: {
|
|
1622
1682
|
query?: never;
|
|
@@ -6510,6 +6570,106 @@ export interface components {
|
|
|
6510
6570
|
/** @description PagerDuty user email when known from the last successful verify. */
|
|
6511
6571
|
userEmail?: string;
|
|
6512
6572
|
};
|
|
6573
|
+
/** @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). */
|
|
6574
|
+
SurveyMonkeySourceDto: {
|
|
6575
|
+
/** @enum {string} */
|
|
6576
|
+
type: "surveymonkey";
|
|
6577
|
+
/** @description SurveyMonkey private app access token (Bearer, write-only on PUT). */
|
|
6578
|
+
token: string;
|
|
6579
|
+
/** @description SurveyMonkey survey id to score. */
|
|
6580
|
+
surveyId: string;
|
|
6581
|
+
/** @description Optional collector id for anonymity checks. */
|
|
6582
|
+
collectorId?: string;
|
|
6583
|
+
/** @description Optional API base URL override. Default `https://api.surveymonkey.com/v3`. */
|
|
6584
|
+
baseUrl?: string;
|
|
6585
|
+
/** @description Required choice question whose options map to org-chart teams. */
|
|
6586
|
+
teamQuestionId?: string;
|
|
6587
|
+
/** @description SurveyMonkey choice id → org-chart team id. */
|
|
6588
|
+
teamOptionMap?: {
|
|
6589
|
+
[key: string]: string;
|
|
6590
|
+
};
|
|
6591
|
+
/** @description SurveyMonkey choice id → department id (for <5 response rollup). */
|
|
6592
|
+
teamDepartmentMap?: {
|
|
6593
|
+
[key: string]: string;
|
|
6594
|
+
};
|
|
6595
|
+
questions?: {
|
|
6596
|
+
questionId: string;
|
|
6597
|
+
/** @enum {string} */
|
|
6598
|
+
dimension: "feedback_loops" | "cognitive_load" | "flow_state";
|
|
6599
|
+
/** @description Negatively worded questions are reverse-scored before % favourable. */
|
|
6600
|
+
reverse?: boolean;
|
|
6601
|
+
}[];
|
|
6602
|
+
/** @description Optional display name from a successful connection test (echo-after-test). */
|
|
6603
|
+
userName?: string;
|
|
6604
|
+
};
|
|
6605
|
+
/** @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. */
|
|
6606
|
+
SurveyMonkeySourceConfigDto: {
|
|
6607
|
+
/** @enum {string} */
|
|
6608
|
+
type: "surveymonkey";
|
|
6609
|
+
hasToken: boolean;
|
|
6610
|
+
surveyId?: string;
|
|
6611
|
+
collectorId?: string;
|
|
6612
|
+
baseUrl?: string;
|
|
6613
|
+
teamQuestionId?: string;
|
|
6614
|
+
teamOptionMap?: {
|
|
6615
|
+
[key: string]: string;
|
|
6616
|
+
};
|
|
6617
|
+
teamDepartmentMap?: {
|
|
6618
|
+
[key: string]: string;
|
|
6619
|
+
};
|
|
6620
|
+
questions?: {
|
|
6621
|
+
questionId: string;
|
|
6622
|
+
/** @enum {string} */
|
|
6623
|
+
dimension: "feedback_loops" | "cognitive_load" | "flow_state";
|
|
6624
|
+
reverse?: boolean;
|
|
6625
|
+
}[];
|
|
6626
|
+
userName?: string;
|
|
6627
|
+
};
|
|
6628
|
+
/** @description One persisted DevEx aggregate row (never email / free text). */
|
|
6629
|
+
DevexResultDto: {
|
|
6630
|
+
teamId?: string | null;
|
|
6631
|
+
departmentId?: string | null;
|
|
6632
|
+
/** @example 2026-Q1 */
|
|
6633
|
+
quarter: string;
|
|
6634
|
+
feedbackLoopsScore: number;
|
|
6635
|
+
cognitiveLoadScore: number;
|
|
6636
|
+
flowStateScore: number;
|
|
6637
|
+
/** @description Average of the three dimension scores (0–100). */
|
|
6638
|
+
devexScore: number;
|
|
6639
|
+
responseCount: number;
|
|
6640
|
+
rosterSize?: number | null;
|
|
6641
|
+
responseRate?: number | null;
|
|
6642
|
+
lowResponseRate: boolean;
|
|
6643
|
+
/** @description True when the team had fewer than 5 responses and rolled to department. */
|
|
6644
|
+
rolledUp: boolean;
|
|
6645
|
+
/** Format: date-time */
|
|
6646
|
+
updatedAt: string;
|
|
6647
|
+
};
|
|
6648
|
+
DevexResultsResponseDto: {
|
|
6649
|
+
/** @enum {string} */
|
|
6650
|
+
metricId: "devex-score";
|
|
6651
|
+
results: components["schemas"]["DevexResultDto"][];
|
|
6652
|
+
};
|
|
6653
|
+
DevexSyncRequestDto: {
|
|
6654
|
+
/** @example 2026-Q1 */
|
|
6655
|
+
quarter?: string;
|
|
6656
|
+
rosterByTeam?: {
|
|
6657
|
+
[key: string]: number;
|
|
6658
|
+
};
|
|
6659
|
+
rosterByDepartment?: {
|
|
6660
|
+
[key: string]: number;
|
|
6661
|
+
};
|
|
6662
|
+
};
|
|
6663
|
+
DevexSyncResultDto: {
|
|
6664
|
+
/** @enum {string} */
|
|
6665
|
+
status?: "ok" | "skipped" | "error";
|
|
6666
|
+
quarter?: string;
|
|
6667
|
+
responseCount?: number;
|
|
6668
|
+
resultCount?: number;
|
|
6669
|
+
code?: string;
|
|
6670
|
+
reason?: string;
|
|
6671
|
+
error?: string;
|
|
6672
|
+
};
|
|
6513
6673
|
/** @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. */
|
|
6514
6674
|
IncidentIoSourceDto: {
|
|
6515
6675
|
/** @enum {string} */
|
|
@@ -6735,7 +6895,7 @@ export interface components {
|
|
|
6735
6895
|
topics?: components["schemas"]["CodeWikiGuidanceTopicDto"][];
|
|
6736
6896
|
};
|
|
6737
6897
|
WorkspaceConfigDto: {
|
|
6738
|
-
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"])[];
|
|
6898
|
+
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"])[];
|
|
6739
6899
|
orgChart?: components["schemas"]["ScoringOrgChartDto"] | null;
|
|
6740
6900
|
/** @enum {string|null} */
|
|
6741
6901
|
region?: "us" | "eu" | "me" | null;
|
|
@@ -13938,6 +14098,12 @@ export type SonarQubeRepoMappingValidateRowDto = components['schemas']['SonarQub
|
|
|
13938
14098
|
export type SonarQubeRepoMappingsValidateResponseDto = components['schemas']['SonarQubeRepoMappingsValidateResponseDto'];
|
|
13939
14099
|
export type PagerDutySourceDto = components['schemas']['PagerDutySourceDto'];
|
|
13940
14100
|
export type PagerDutySourceConfigDto = components['schemas']['PagerDutySourceConfigDto'];
|
|
14101
|
+
export type SurveyMonkeySourceDto = components['schemas']['SurveyMonkeySourceDto'];
|
|
14102
|
+
export type SurveyMonkeySourceConfigDto = components['schemas']['SurveyMonkeySourceConfigDto'];
|
|
14103
|
+
export type DevexResultDto = components['schemas']['DevexResultDto'];
|
|
14104
|
+
export type DevexResultsResponseDto = components['schemas']['DevexResultsResponseDto'];
|
|
14105
|
+
export type DevexSyncRequestDto = components['schemas']['DevexSyncRequestDto'];
|
|
14106
|
+
export type DevexSyncResultDto = components['schemas']['DevexSyncResultDto'];
|
|
13941
14107
|
export type IncidentIoSourceDto = components['schemas']['IncidentIoSourceDto'];
|
|
13942
14108
|
export type IncidentIoSourceConfigDto = components['schemas']['IncidentIoSourceConfigDto'];
|
|
13943
14109
|
export type SentrySourceDto = components['schemas']['SentrySourceDto'];
|
|
@@ -18039,7 +18205,7 @@ export interface operations {
|
|
|
18039
18205
|
requestBody: {
|
|
18040
18206
|
content: {
|
|
18041
18207
|
"application/json": {
|
|
18042
|
-
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"])[];
|
|
18208
|
+
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"])[];
|
|
18043
18209
|
};
|
|
18044
18210
|
};
|
|
18045
18211
|
};
|
|
@@ -18093,7 +18259,7 @@ export interface operations {
|
|
|
18093
18259
|
};
|
|
18094
18260
|
requestBody: {
|
|
18095
18261
|
content: {
|
|
18096
|
-
"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"];
|
|
18262
|
+
"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"];
|
|
18097
18263
|
};
|
|
18098
18264
|
};
|
|
18099
18265
|
responses: {
|
|
@@ -19443,6 +19609,128 @@ export interface operations {
|
|
|
19443
19609
|
};
|
|
19444
19610
|
};
|
|
19445
19611
|
};
|
|
19612
|
+
getDevexResults: {
|
|
19613
|
+
parameters: {
|
|
19614
|
+
query?: {
|
|
19615
|
+
quarter?: string;
|
|
19616
|
+
team?: string;
|
|
19617
|
+
department?: string;
|
|
19618
|
+
};
|
|
19619
|
+
header?: never;
|
|
19620
|
+
path: {
|
|
19621
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
19622
|
+
};
|
|
19623
|
+
cookie?: never;
|
|
19624
|
+
};
|
|
19625
|
+
requestBody?: never;
|
|
19626
|
+
responses: {
|
|
19627
|
+
/** @description DevEx aggregate rows */
|
|
19628
|
+
200: {
|
|
19629
|
+
headers: {
|
|
19630
|
+
[name: string]: unknown;
|
|
19631
|
+
};
|
|
19632
|
+
content: {
|
|
19633
|
+
"application/json": components["schemas"]["DevexResultsResponseDto"];
|
|
19634
|
+
};
|
|
19635
|
+
};
|
|
19636
|
+
401: components["responses"]["Unauthorized"];
|
|
19637
|
+
403: components["responses"]["Forbidden"];
|
|
19638
|
+
/** @description Feature flag off or workspace not found */
|
|
19639
|
+
404: {
|
|
19640
|
+
headers: {
|
|
19641
|
+
[name: string]: unknown;
|
|
19642
|
+
};
|
|
19643
|
+
content?: never;
|
|
19644
|
+
};
|
|
19645
|
+
};
|
|
19646
|
+
};
|
|
19647
|
+
syncDevexSurvey: {
|
|
19648
|
+
parameters: {
|
|
19649
|
+
query?: never;
|
|
19650
|
+
header?: never;
|
|
19651
|
+
path: {
|
|
19652
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
19653
|
+
};
|
|
19654
|
+
cookie?: never;
|
|
19655
|
+
};
|
|
19656
|
+
requestBody?: {
|
|
19657
|
+
content: {
|
|
19658
|
+
"application/json": components["schemas"]["DevexSyncRequestDto"];
|
|
19659
|
+
};
|
|
19660
|
+
};
|
|
19661
|
+
responses: {
|
|
19662
|
+
/** @description Sync completed */
|
|
19663
|
+
200: {
|
|
19664
|
+
headers: {
|
|
19665
|
+
[name: string]: unknown;
|
|
19666
|
+
};
|
|
19667
|
+
content: {
|
|
19668
|
+
"application/json": components["schemas"]["DevexSyncResultDto"];
|
|
19669
|
+
};
|
|
19670
|
+
};
|
|
19671
|
+
401: components["responses"]["Unauthorized"];
|
|
19672
|
+
403: components["responses"]["Forbidden"];
|
|
19673
|
+
/** @description Feature flag off */
|
|
19674
|
+
404: {
|
|
19675
|
+
headers: {
|
|
19676
|
+
[name: string]: unknown;
|
|
19677
|
+
};
|
|
19678
|
+
content?: never;
|
|
19679
|
+
};
|
|
19680
|
+
/** @description SurveyMonkey not connected or mapping incomplete */
|
|
19681
|
+
422: {
|
|
19682
|
+
headers: {
|
|
19683
|
+
[name: string]: unknown;
|
|
19684
|
+
};
|
|
19685
|
+
content?: never;
|
|
19686
|
+
};
|
|
19687
|
+
/** @description SurveyMonkey API failure */
|
|
19688
|
+
502: {
|
|
19689
|
+
headers: {
|
|
19690
|
+
[name: string]: unknown;
|
|
19691
|
+
};
|
|
19692
|
+
content?: never;
|
|
19693
|
+
};
|
|
19694
|
+
};
|
|
19695
|
+
};
|
|
19696
|
+
verifySurveyMonkeyConnector: {
|
|
19697
|
+
parameters: {
|
|
19698
|
+
query?: never;
|
|
19699
|
+
header?: never;
|
|
19700
|
+
path: {
|
|
19701
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
19702
|
+
};
|
|
19703
|
+
cookie?: never;
|
|
19704
|
+
};
|
|
19705
|
+
requestBody?: never;
|
|
19706
|
+
responses: {
|
|
19707
|
+
/** @description Connection test result */
|
|
19708
|
+
200: {
|
|
19709
|
+
headers: {
|
|
19710
|
+
[name: string]: unknown;
|
|
19711
|
+
};
|
|
19712
|
+
content: {
|
|
19713
|
+
"application/json": components["schemas"]["TestConnectionResponseDto"];
|
|
19714
|
+
};
|
|
19715
|
+
};
|
|
19716
|
+
401: components["responses"]["Unauthorized"];
|
|
19717
|
+
403: components["responses"]["Forbidden"];
|
|
19718
|
+
/** @description Feature flag off */
|
|
19719
|
+
404: {
|
|
19720
|
+
headers: {
|
|
19721
|
+
[name: string]: unknown;
|
|
19722
|
+
};
|
|
19723
|
+
content?: never;
|
|
19724
|
+
};
|
|
19725
|
+
/** @description SurveyMonkey not connected */
|
|
19726
|
+
422: {
|
|
19727
|
+
headers: {
|
|
19728
|
+
[name: string]: unknown;
|
|
19729
|
+
};
|
|
19730
|
+
content?: never;
|
|
19731
|
+
};
|
|
19732
|
+
};
|
|
19733
|
+
};
|
|
19446
19734
|
getSdlcInsightsOverview: {
|
|
19447
19735
|
parameters: {
|
|
19448
19736
|
query?: {
|