@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.
- package/dist/generated/openapi.d.ts +512 -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 +14 -0
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +619 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +512 -3
- package/src/index.ts +16 -0
package/openapi/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ThinkAI API
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.219.0
|
|
5
5
|
description: >
|
|
6
6
|
Contract surface for the AI Driven SDLC backend used by ThinkAI.
|
|
7
7
|
Workspace-scoped routes use `/workspaces/{workspaceId}/...`.
|
|
@@ -23,6 +23,10 @@ info:
|
|
|
23
23
|
security:
|
|
24
24
|
- bearerAuth: []
|
|
25
25
|
tags:
|
|
26
|
+
- name: TeamEfficiency
|
|
27
|
+
description: >
|
|
28
|
+
Team Efficiency insights (Shine). SurveyMonkey DevEx (`devex-score`) and related
|
|
29
|
+
routes are gated by `backend-api.teamEfficiency.enabled` (404 when off).
|
|
26
30
|
- name: Workspace
|
|
27
31
|
description: Workspace bootstrap (§13)
|
|
28
32
|
- name: CompanyProfile
|
|
@@ -3418,6 +3422,7 @@ paths:
|
|
|
3418
3422
|
- $ref: "#/components/schemas/GrafanaSourceDto"
|
|
3419
3423
|
- $ref: "#/components/schemas/SonarQubeSourceDto"
|
|
3420
3424
|
- $ref: "#/components/schemas/PagerDutySourceDto"
|
|
3425
|
+
- $ref: "#/components/schemas/SurveyMonkeySourceDto"
|
|
3421
3426
|
- $ref: "#/components/schemas/IncidentIoSourceDto"
|
|
3422
3427
|
- $ref: "#/components/schemas/SentrySourceDto"
|
|
3423
3428
|
- $ref: "#/components/schemas/JiraSourceDto"
|
|
@@ -3557,6 +3562,7 @@ paths:
|
|
|
3557
3562
|
- $ref: "#/components/schemas/GrafanaSourceDto"
|
|
3558
3563
|
- $ref: "#/components/schemas/SonarQubeSourceDto"
|
|
3559
3564
|
- $ref: "#/components/schemas/PagerDutySourceDto"
|
|
3565
|
+
- $ref: "#/components/schemas/SurveyMonkeySourceDto"
|
|
3560
3566
|
- $ref: "#/components/schemas/IncidentIoSourceDto"
|
|
3561
3567
|
- $ref: "#/components/schemas/SentrySourceDto"
|
|
3562
3568
|
- $ref: "#/components/schemas/JiraSourceDto"
|
|
@@ -4944,6 +4950,149 @@ paths:
|
|
|
4944
4950
|
ok: false
|
|
4945
4951
|
error: already_in_progress
|
|
4946
4952
|
|
|
4953
|
+
/workspaces/{workspaceId}/insights/devex/results:
|
|
4954
|
+
get:
|
|
4955
|
+
tags: [TeamEfficiency]
|
|
4956
|
+
summary: DevEx survey aggregates (SurveyMonkey)
|
|
4957
|
+
description: >
|
|
4958
|
+
Persisted DevEx aggregates (`devex-score`) for a workspace. Aggregates only —
|
|
4959
|
+
never email or free text. Returns 404 when `backend-api.teamEfficiency.enabled`
|
|
4960
|
+
is false (unless the workspace is on the optional allowlist).
|
|
4961
|
+
operationId: getDevexResults
|
|
4962
|
+
parameters:
|
|
4963
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
4964
|
+
- name: quarter
|
|
4965
|
+
in: query
|
|
4966
|
+
schema: { type: string, example: "2026-Q1" }
|
|
4967
|
+
- name: team
|
|
4968
|
+
in: query
|
|
4969
|
+
schema: { type: string }
|
|
4970
|
+
- name: department
|
|
4971
|
+
in: query
|
|
4972
|
+
schema: { type: string }
|
|
4973
|
+
responses:
|
|
4974
|
+
"200":
|
|
4975
|
+
description: DevEx aggregate rows
|
|
4976
|
+
content:
|
|
4977
|
+
application/json:
|
|
4978
|
+
schema:
|
|
4979
|
+
$ref: "#/components/schemas/DevexResultsResponseDto"
|
|
4980
|
+
"401":
|
|
4981
|
+
$ref: "#/components/responses/Unauthorized"
|
|
4982
|
+
"403":
|
|
4983
|
+
$ref: "#/components/responses/Forbidden"
|
|
4984
|
+
"404":
|
|
4985
|
+
description: Feature flag off or workspace not found
|
|
4986
|
+
|
|
4987
|
+
/workspaces/{workspaceId}/insights/team-efficiency/bundle:
|
|
4988
|
+
get:
|
|
4989
|
+
tags: [TeamEfficiency]
|
|
4990
|
+
summary: Team Efficiency page bundle
|
|
4991
|
+
description: >
|
|
4992
|
+
One round trip for the Team Efficiency page. Metrics are computed for the rolling
|
|
4993
|
+
`months` calendar months (default 3) against the previous period. A department is the
|
|
4994
|
+
union of its teams. All departments plus all teams, and person scope, are rejected with
|
|
4995
|
+
400. Returns 404 when `backend-api.teamEfficiency` is off (unless the workspace is on
|
|
4996
|
+
the allowlist).
|
|
4997
|
+
operationId: getTeamEfficiencyBundle
|
|
4998
|
+
parameters:
|
|
4999
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
5000
|
+
- name: department
|
|
5001
|
+
in: query
|
|
5002
|
+
schema: { type: string }
|
|
5003
|
+
- name: team
|
|
5004
|
+
in: query
|
|
5005
|
+
schema: { type: string }
|
|
5006
|
+
- name: months
|
|
5007
|
+
in: query
|
|
5008
|
+
schema: { type: integer, minimum: 1, maximum: 6, default: 3 }
|
|
5009
|
+
responses:
|
|
5010
|
+
"200":
|
|
5011
|
+
description: Team Efficiency metrics, window, and setup checklist
|
|
5012
|
+
content:
|
|
5013
|
+
application/json:
|
|
5014
|
+
schema:
|
|
5015
|
+
$ref: "#/components/schemas/TeamEfficiencyBundleDto"
|
|
5016
|
+
"400":
|
|
5017
|
+
description: >
|
|
5018
|
+
Invalid scope or months (`scope_required`, `person_scope_not_supported`,
|
|
5019
|
+
`team_not_found`, `department_not_found`, `invalid_months`)
|
|
5020
|
+
content:
|
|
5021
|
+
application/json:
|
|
5022
|
+
schema:
|
|
5023
|
+
type: object
|
|
5024
|
+
required: [error, code]
|
|
5025
|
+
properties:
|
|
5026
|
+
error: { type: string }
|
|
5027
|
+
code: { type: string }
|
|
5028
|
+
"401":
|
|
5029
|
+
$ref: "#/components/responses/Unauthorized"
|
|
5030
|
+
"403":
|
|
5031
|
+
$ref: "#/components/responses/Forbidden"
|
|
5032
|
+
"404":
|
|
5033
|
+
description: Feature flag off or workspace not found
|
|
5034
|
+
|
|
5035
|
+
/workspaces/{workspaceId}/insights/devex/sync:
|
|
5036
|
+
post:
|
|
5037
|
+
tags: [TeamEfficiency]
|
|
5038
|
+
summary: Sync DevEx aggregates from SurveyMonkey
|
|
5039
|
+
description: >
|
|
5040
|
+
Pull SurveyMonkey responses, score dimensions (% favourable after reverse-score),
|
|
5041
|
+
apply team min-response rollup and response-rate flags, and persist aggregates only.
|
|
5042
|
+
Admin only. 404 when Team Efficiency is disabled.
|
|
5043
|
+
operationId: syncDevexSurvey
|
|
5044
|
+
parameters:
|
|
5045
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
5046
|
+
requestBody:
|
|
5047
|
+
required: false
|
|
5048
|
+
content:
|
|
5049
|
+
application/json:
|
|
5050
|
+
schema:
|
|
5051
|
+
$ref: "#/components/schemas/DevexSyncRequestDto"
|
|
5052
|
+
responses:
|
|
5053
|
+
"200":
|
|
5054
|
+
description: Sync completed
|
|
5055
|
+
content:
|
|
5056
|
+
application/json:
|
|
5057
|
+
schema:
|
|
5058
|
+
$ref: "#/components/schemas/DevexSyncResultDto"
|
|
5059
|
+
"401":
|
|
5060
|
+
$ref: "#/components/responses/Unauthorized"
|
|
5061
|
+
"403":
|
|
5062
|
+
$ref: "#/components/responses/Forbidden"
|
|
5063
|
+
"404":
|
|
5064
|
+
description: Feature flag off
|
|
5065
|
+
"422":
|
|
5066
|
+
description: SurveyMonkey not connected or mapping incomplete
|
|
5067
|
+
"502":
|
|
5068
|
+
description: SurveyMonkey API failure
|
|
5069
|
+
|
|
5070
|
+
/workspaces/{workspaceId}/connectors/surveymonkey/verify:
|
|
5071
|
+
post:
|
|
5072
|
+
tags: [TeamEfficiency]
|
|
5073
|
+
summary: Re-verify SurveyMonkey connection
|
|
5074
|
+
description: >
|
|
5075
|
+
Re-tests the stored SurveyMonkey token and returns an anonymity warning when the
|
|
5076
|
+
collector is not anonymous (when the API exposes that setting). 404 when flag off.
|
|
5077
|
+
operationId: verifySurveyMonkeyConnector
|
|
5078
|
+
parameters:
|
|
5079
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
5080
|
+
responses:
|
|
5081
|
+
"200":
|
|
5082
|
+
description: Connection test result
|
|
5083
|
+
content:
|
|
5084
|
+
application/json:
|
|
5085
|
+
schema:
|
|
5086
|
+
$ref: "#/components/schemas/TestConnectionResponseDto"
|
|
5087
|
+
"401":
|
|
5088
|
+
$ref: "#/components/responses/Unauthorized"
|
|
5089
|
+
"403":
|
|
5090
|
+
$ref: "#/components/responses/Forbidden"
|
|
5091
|
+
"404":
|
|
5092
|
+
description: Feature flag off
|
|
5093
|
+
"422":
|
|
5094
|
+
description: SurveyMonkey not connected
|
|
5095
|
+
|
|
4947
5096
|
/workspaces/{workspaceId}/insights/sdlc/overview:
|
|
4948
5097
|
get:
|
|
4949
5098
|
tags: [SdlcInsights]
|
|
@@ -16871,6 +17020,427 @@ components:
|
|
|
16871
17020
|
type: string
|
|
16872
17021
|
description: PagerDuty user email when known from the last successful verify.
|
|
16873
17022
|
|
|
17023
|
+
SurveyMonkeySourceDto:
|
|
17024
|
+
type: object
|
|
17025
|
+
description: >
|
|
17026
|
+
SurveyMonkey DevEx survey source for Team Efficiency (`devex-score`).
|
|
17027
|
+
Requires a private-app access token with Responses API read.
|
|
17028
|
+
Plan tier: Advantage (or Premier / Enterprise) with API access.
|
|
17029
|
+
Hidden when `backend-api.teamEfficiency.enabled` is false (404 on PUT/test).
|
|
17030
|
+
required: [type, token, surveyId]
|
|
17031
|
+
additionalProperties: false
|
|
17032
|
+
properties:
|
|
17033
|
+
type:
|
|
17034
|
+
type: string
|
|
17035
|
+
enum: [surveymonkey]
|
|
17036
|
+
token:
|
|
17037
|
+
type: string
|
|
17038
|
+
minLength: 1
|
|
17039
|
+
maxLength: 2048
|
|
17040
|
+
description: SurveyMonkey private app access token (Bearer, write-only on PUT).
|
|
17041
|
+
surveyId:
|
|
17042
|
+
type: string
|
|
17043
|
+
minLength: 1
|
|
17044
|
+
maxLength: 128
|
|
17045
|
+
description: SurveyMonkey survey id to score.
|
|
17046
|
+
collectorId:
|
|
17047
|
+
type: string
|
|
17048
|
+
maxLength: 128
|
|
17049
|
+
description: Optional collector id for anonymity checks.
|
|
17050
|
+
baseUrl:
|
|
17051
|
+
type: string
|
|
17052
|
+
description: Optional API base URL override. Default `https://api.surveymonkey.com/v3`.
|
|
17053
|
+
teamQuestionId:
|
|
17054
|
+
type: string
|
|
17055
|
+
description: Required choice question whose options map to org-chart teams.
|
|
17056
|
+
teamOptionMap:
|
|
17057
|
+
type: object
|
|
17058
|
+
additionalProperties:
|
|
17059
|
+
type: string
|
|
17060
|
+
description: SurveyMonkey choice id → org-chart team id.
|
|
17061
|
+
teamDepartmentMap:
|
|
17062
|
+
type: object
|
|
17063
|
+
additionalProperties:
|
|
17064
|
+
type: string
|
|
17065
|
+
description: SurveyMonkey choice id → department id (for <5 response rollup).
|
|
17066
|
+
questions:
|
|
17067
|
+
type: array
|
|
17068
|
+
items:
|
|
17069
|
+
type: object
|
|
17070
|
+
required: [questionId, dimension]
|
|
17071
|
+
additionalProperties: false
|
|
17072
|
+
properties:
|
|
17073
|
+
questionId: { type: string }
|
|
17074
|
+
dimension:
|
|
17075
|
+
type: string
|
|
17076
|
+
enum: [feedback_loops, cognitive_load, flow_state]
|
|
17077
|
+
reverse:
|
|
17078
|
+
type: boolean
|
|
17079
|
+
description: Negatively worded questions are reverse-scored before % favourable.
|
|
17080
|
+
userName:
|
|
17081
|
+
type: string
|
|
17082
|
+
description: Optional display name from a successful connection test (echo-after-test).
|
|
17083
|
+
|
|
17084
|
+
SurveyMonkeySourceConfigDto:
|
|
17085
|
+
type: object
|
|
17086
|
+
description: >
|
|
17087
|
+
Redacted SurveyMonkey source returned by `GET /workspaces/{workspaceId}/config`
|
|
17088
|
+
when Team Efficiency is enabled. Raw token is never returned. Omitted from sources
|
|
17089
|
+
when the feature flag is off.
|
|
17090
|
+
required: [type, hasToken]
|
|
17091
|
+
additionalProperties: false
|
|
17092
|
+
properties:
|
|
17093
|
+
type:
|
|
17094
|
+
type: string
|
|
17095
|
+
enum: [surveymonkey]
|
|
17096
|
+
hasToken:
|
|
17097
|
+
type: boolean
|
|
17098
|
+
surveyId: { type: string }
|
|
17099
|
+
collectorId: { type: string }
|
|
17100
|
+
baseUrl: { type: string }
|
|
17101
|
+
teamQuestionId: { type: string }
|
|
17102
|
+
teamOptionMap:
|
|
17103
|
+
type: object
|
|
17104
|
+
additionalProperties: { type: string }
|
|
17105
|
+
teamDepartmentMap:
|
|
17106
|
+
type: object
|
|
17107
|
+
additionalProperties: { type: string }
|
|
17108
|
+
questions:
|
|
17109
|
+
type: array
|
|
17110
|
+
items:
|
|
17111
|
+
type: object
|
|
17112
|
+
required: [questionId, dimension]
|
|
17113
|
+
additionalProperties: false
|
|
17114
|
+
properties:
|
|
17115
|
+
questionId: { type: string }
|
|
17116
|
+
dimension:
|
|
17117
|
+
type: string
|
|
17118
|
+
enum: [feedback_loops, cognitive_load, flow_state]
|
|
17119
|
+
reverse: { type: boolean }
|
|
17120
|
+
userName: { type: string }
|
|
17121
|
+
|
|
17122
|
+
DevexResultDto:
|
|
17123
|
+
type: object
|
|
17124
|
+
description: One persisted DevEx aggregate row (never email / free text).
|
|
17125
|
+
required:
|
|
17126
|
+
[
|
|
17127
|
+
quarter,
|
|
17128
|
+
feedbackLoopsScore,
|
|
17129
|
+
cognitiveLoadScore,
|
|
17130
|
+
flowStateScore,
|
|
17131
|
+
devexScore,
|
|
17132
|
+
responseCount,
|
|
17133
|
+
lowResponseRate,
|
|
17134
|
+
rolledUp,
|
|
17135
|
+
updatedAt,
|
|
17136
|
+
]
|
|
17137
|
+
additionalProperties: false
|
|
17138
|
+
properties:
|
|
17139
|
+
teamId: { type: string, nullable: true }
|
|
17140
|
+
departmentId: { type: string, nullable: true }
|
|
17141
|
+
quarter: { type: string, example: "2026-Q1" }
|
|
17142
|
+
feedbackLoopsScore: { type: number }
|
|
17143
|
+
cognitiveLoadScore: { type: number }
|
|
17144
|
+
flowStateScore: { type: number }
|
|
17145
|
+
devexScore: { type: number, description: Average of the three dimension scores (0–100). }
|
|
17146
|
+
responseCount: { type: integer, minimum: 0 }
|
|
17147
|
+
rosterSize: { type: integer, nullable: true, minimum: 0 }
|
|
17148
|
+
responseRate: { type: number, nullable: true }
|
|
17149
|
+
lowResponseRate: { type: boolean }
|
|
17150
|
+
rolledUp:
|
|
17151
|
+
type: boolean
|
|
17152
|
+
description: True when the team had fewer than 5 responses and rolled to department.
|
|
17153
|
+
updatedAt: { type: string, format: date-time }
|
|
17154
|
+
|
|
17155
|
+
DevexResultsResponseDto:
|
|
17156
|
+
type: object
|
|
17157
|
+
required: [metricId, results]
|
|
17158
|
+
additionalProperties: false
|
|
17159
|
+
properties:
|
|
17160
|
+
metricId:
|
|
17161
|
+
type: string
|
|
17162
|
+
enum: [devex-score]
|
|
17163
|
+
results:
|
|
17164
|
+
type: array
|
|
17165
|
+
items:
|
|
17166
|
+
$ref: "#/components/schemas/DevexResultDto"
|
|
17167
|
+
|
|
17168
|
+
TeamEfficiencyDataQualityDto:
|
|
17169
|
+
type: object
|
|
17170
|
+
required: [code, message]
|
|
17171
|
+
additionalProperties: false
|
|
17172
|
+
properties:
|
|
17173
|
+
code:
|
|
17174
|
+
type: string
|
|
17175
|
+
enum:
|
|
17176
|
+
- low_data
|
|
17177
|
+
- missing_start
|
|
17178
|
+
- batch_closed
|
|
17179
|
+
- no_roster
|
|
17180
|
+
- not_configured
|
|
17181
|
+
- no_bug_data
|
|
17182
|
+
- no_survey
|
|
17183
|
+
- unattributed_failures
|
|
17184
|
+
- excluded_incidents
|
|
17185
|
+
- unlinked_incidents
|
|
17186
|
+
- unknown_review_comments
|
|
17187
|
+
- no_linked_deploys
|
|
17188
|
+
- no_deployments
|
|
17189
|
+
- six_month_window
|
|
17190
|
+
message: { type: string }
|
|
17191
|
+
percent: { type: number }
|
|
17192
|
+
count: { type: integer }
|
|
17193
|
+
|
|
17194
|
+
TeamEfficiencyMetricDto:
|
|
17195
|
+
type: object
|
|
17196
|
+
required:
|
|
17197
|
+
- id
|
|
17198
|
+
- label
|
|
17199
|
+
- unit
|
|
17200
|
+
- monthly
|
|
17201
|
+
- sampleSize
|
|
17202
|
+
- lowData
|
|
17203
|
+
- reportable
|
|
17204
|
+
- owner
|
|
17205
|
+
- counterweightIds
|
|
17206
|
+
- dataQuality
|
|
17207
|
+
- href
|
|
17208
|
+
additionalProperties: false
|
|
17209
|
+
properties:
|
|
17210
|
+
id:
|
|
17211
|
+
type: string
|
|
17212
|
+
enum:
|
|
17213
|
+
- flow-time
|
|
17214
|
+
- pr-throughput-per-engineer
|
|
17215
|
+
- escaped-defects
|
|
17216
|
+
- devex-score
|
|
17217
|
+
- deployment-frequency
|
|
17218
|
+
- lead-time-for-changes
|
|
17219
|
+
- change-failure-rate
|
|
17220
|
+
- time-to-restore
|
|
17221
|
+
- pr-size
|
|
17222
|
+
- time-to-first-review
|
|
17223
|
+
- pr-approvals-without-comments
|
|
17224
|
+
label: { type: string }
|
|
17225
|
+
shortLabel:
|
|
17226
|
+
type: string
|
|
17227
|
+
description: Short card label, for example "Recovery time".
|
|
17228
|
+
unit: { type: string }
|
|
17229
|
+
value: { type: number }
|
|
17230
|
+
p85: { type: number }
|
|
17231
|
+
previous: { type: number }
|
|
17232
|
+
monthly:
|
|
17233
|
+
type: array
|
|
17234
|
+
description: Per calendar month in the window, oldest first. null when no data.
|
|
17235
|
+
items: { type: number, nullable: true }
|
|
17236
|
+
sampleSize: { type: integer }
|
|
17237
|
+
lowData:
|
|
17238
|
+
type: boolean
|
|
17239
|
+
description: Fewer than 10 samples.
|
|
17240
|
+
reportable: { type: boolean }
|
|
17241
|
+
numerator: { type: number }
|
|
17242
|
+
denominator: { type: number }
|
|
17243
|
+
owner: { type: string }
|
|
17244
|
+
counterweightIds:
|
|
17245
|
+
type: array
|
|
17246
|
+
items: { type: string }
|
|
17247
|
+
dataQuality:
|
|
17248
|
+
type: array
|
|
17249
|
+
items:
|
|
17250
|
+
$ref: "#/components/schemas/TeamEfficiencyDataQualityDto"
|
|
17251
|
+
href:
|
|
17252
|
+
type: string
|
|
17253
|
+
description: Drill-through route; the client appends scope and window.
|
|
17254
|
+
breakdown:
|
|
17255
|
+
type: object
|
|
17256
|
+
description: Counts by key, for example escaped defects by severity.
|
|
17257
|
+
additionalProperties: { type: number }
|
|
17258
|
+
previousMonthly:
|
|
17259
|
+
type: array
|
|
17260
|
+
description: The same series for the months before `monthly`, oldest first.
|
|
17261
|
+
items: { type: number, nullable: true }
|
|
17262
|
+
stages:
|
|
17263
|
+
$ref: "#/components/schemas/TeamEfficiencyLeadTimeStagesDto"
|
|
17264
|
+
devex:
|
|
17265
|
+
$ref: "#/components/schemas/TeamEfficiencyDevexDetailDto"
|
|
17266
|
+
signals:
|
|
17267
|
+
type: array
|
|
17268
|
+
items:
|
|
17269
|
+
$ref: "#/components/schemas/TeamEfficiencySignalDto"
|
|
17270
|
+
|
|
17271
|
+
TeamEfficiencyLeadTimeStagesDto:
|
|
17272
|
+
type: object
|
|
17273
|
+
description: Median hours per lead-time stage.
|
|
17274
|
+
required: [codingHours, pickupHours, reviewHours, deployHours]
|
|
17275
|
+
additionalProperties: false
|
|
17276
|
+
properties:
|
|
17277
|
+
codingHours: { type: number }
|
|
17278
|
+
pickupHours: { type: number }
|
|
17279
|
+
reviewHours: { type: number }
|
|
17280
|
+
deployHours: { type: number }
|
|
17281
|
+
|
|
17282
|
+
TeamEfficiencySignalDto:
|
|
17283
|
+
type: object
|
|
17284
|
+
required: [id, label, flagged]
|
|
17285
|
+
additionalProperties: false
|
|
17286
|
+
properties:
|
|
17287
|
+
id:
|
|
17288
|
+
type: string
|
|
17289
|
+
enum:
|
|
17290
|
+
- review-time-drop
|
|
17291
|
+
- approvals-without-comments-rise
|
|
17292
|
+
- pr-size-falling-flow-flat
|
|
17293
|
+
label: { type: string }
|
|
17294
|
+
flagged: { type: boolean }
|
|
17295
|
+
detail:
|
|
17296
|
+
type: string
|
|
17297
|
+
description: Short detail shown when flagged, for example "24% to 31%".
|
|
17298
|
+
|
|
17299
|
+
TeamEfficiencyDevexDetailDto:
|
|
17300
|
+
type: object
|
|
17301
|
+
required: [quarter, dimensions, quarters, responseCount, lowResponseRate, rolledUp]
|
|
17302
|
+
additionalProperties: false
|
|
17303
|
+
properties:
|
|
17304
|
+
quarter: { type: string, example: "2026-Q3" }
|
|
17305
|
+
dimensions:
|
|
17306
|
+
type: object
|
|
17307
|
+
required: [feedbackLoops, cognitiveLoad, flowState]
|
|
17308
|
+
additionalProperties: false
|
|
17309
|
+
properties:
|
|
17310
|
+
feedbackLoops: { type: number }
|
|
17311
|
+
cognitiveLoad: { type: number }
|
|
17312
|
+
flowState: { type: number }
|
|
17313
|
+
quarters:
|
|
17314
|
+
type: array
|
|
17315
|
+
description: Latest quarters, oldest first.
|
|
17316
|
+
items:
|
|
17317
|
+
type: object
|
|
17318
|
+
required: [quarter, score]
|
|
17319
|
+
additionalProperties: false
|
|
17320
|
+
properties:
|
|
17321
|
+
quarter: { type: string }
|
|
17322
|
+
score: { type: number }
|
|
17323
|
+
responseCount: { type: integer }
|
|
17324
|
+
rosterSize: { type: integer }
|
|
17325
|
+
responseRate:
|
|
17326
|
+
type: number
|
|
17327
|
+
description: 0 to 1.
|
|
17328
|
+
lowResponseRate: { type: boolean }
|
|
17329
|
+
rolledUp:
|
|
17330
|
+
type: boolean
|
|
17331
|
+
description: Fewer than 5 responses, so the score shown is the department's.
|
|
17332
|
+
|
|
17333
|
+
TeamEfficiencySetupItemDto:
|
|
17334
|
+
type: object
|
|
17335
|
+
required: [id, label, done, hint]
|
|
17336
|
+
additionalProperties: false
|
|
17337
|
+
properties:
|
|
17338
|
+
id: { type: string }
|
|
17339
|
+
label: { type: string }
|
|
17340
|
+
done: { type: boolean }
|
|
17341
|
+
hint: { type: string }
|
|
17342
|
+
|
|
17343
|
+
TeamEfficiencyBundleDto:
|
|
17344
|
+
type: object
|
|
17345
|
+
required: [scope, summary, aiAdoption, window, metrics, setup, generatedAt]
|
|
17346
|
+
additionalProperties: false
|
|
17347
|
+
properties:
|
|
17348
|
+
summary:
|
|
17349
|
+
type: object
|
|
17350
|
+
required: [engineers, issuesDone, mergedPrs, deployments]
|
|
17351
|
+
additionalProperties: false
|
|
17352
|
+
properties:
|
|
17353
|
+
engineers: { type: integer }
|
|
17354
|
+
issuesDone: { type: integer }
|
|
17355
|
+
mergedPrs: { type: integer }
|
|
17356
|
+
deployments: { type: integer }
|
|
17357
|
+
survey:
|
|
17358
|
+
type: object
|
|
17359
|
+
required: [responses]
|
|
17360
|
+
additionalProperties: false
|
|
17361
|
+
properties:
|
|
17362
|
+
responses: { type: integer }
|
|
17363
|
+
invited: { type: integer }
|
|
17364
|
+
aiAdoption:
|
|
17365
|
+
type: array
|
|
17366
|
+
description: >-
|
|
17367
|
+
Share of engineers using an AI tool per month, for the months before the window
|
|
17368
|
+
followed by the window months, oldest first. null when no data.
|
|
17369
|
+
items: { type: number, nullable: true }
|
|
17370
|
+
scope:
|
|
17371
|
+
type: object
|
|
17372
|
+
required: [teamIds, rosterEngineerCount]
|
|
17373
|
+
additionalProperties: false
|
|
17374
|
+
properties:
|
|
17375
|
+
department: { type: string }
|
|
17376
|
+
team: { type: string }
|
|
17377
|
+
teamIds:
|
|
17378
|
+
type: array
|
|
17379
|
+
items: { type: string }
|
|
17380
|
+
rosterEngineerCount:
|
|
17381
|
+
type: integer
|
|
17382
|
+
description: Org-chart engineers, excluding managers, product managers and designers.
|
|
17383
|
+
window:
|
|
17384
|
+
type: object
|
|
17385
|
+
required: [monthCount, start, end, previousStart, previousEnd, months]
|
|
17386
|
+
additionalProperties: false
|
|
17387
|
+
properties:
|
|
17388
|
+
monthCount: { type: integer }
|
|
17389
|
+
start: { type: string, format: date-time }
|
|
17390
|
+
end: { type: string, format: date-time }
|
|
17391
|
+
previousStart: { type: string, format: date-time }
|
|
17392
|
+
previousEnd: { type: string, format: date-time }
|
|
17393
|
+
months:
|
|
17394
|
+
type: array
|
|
17395
|
+
items:
|
|
17396
|
+
type: object
|
|
17397
|
+
required: [start, end]
|
|
17398
|
+
additionalProperties: false
|
|
17399
|
+
properties:
|
|
17400
|
+
start: { type: string, format: date-time }
|
|
17401
|
+
end: { type: string, format: date-time }
|
|
17402
|
+
metrics:
|
|
17403
|
+
type: array
|
|
17404
|
+
items:
|
|
17405
|
+
$ref: "#/components/schemas/TeamEfficiencyMetricDto"
|
|
17406
|
+
setup:
|
|
17407
|
+
type: object
|
|
17408
|
+
required: [items, complete]
|
|
17409
|
+
additionalProperties: false
|
|
17410
|
+
properties:
|
|
17411
|
+
items:
|
|
17412
|
+
type: array
|
|
17413
|
+
items:
|
|
17414
|
+
$ref: "#/components/schemas/TeamEfficiencySetupItemDto"
|
|
17415
|
+
complete: { type: boolean }
|
|
17416
|
+
generatedAt: { type: string, format: date-time }
|
|
17417
|
+
|
|
17418
|
+
DevexSyncRequestDto:
|
|
17419
|
+
type: object
|
|
17420
|
+
additionalProperties: false
|
|
17421
|
+
properties:
|
|
17422
|
+
quarter: { type: string, example: "2026-Q1" }
|
|
17423
|
+
rosterByTeam:
|
|
17424
|
+
type: object
|
|
17425
|
+
additionalProperties: { type: number }
|
|
17426
|
+
rosterByDepartment:
|
|
17427
|
+
type: object
|
|
17428
|
+
additionalProperties: { type: number }
|
|
17429
|
+
|
|
17430
|
+
DevexSyncResultDto:
|
|
17431
|
+
type: object
|
|
17432
|
+
additionalProperties: false
|
|
17433
|
+
properties:
|
|
17434
|
+
status:
|
|
17435
|
+
type: string
|
|
17436
|
+
enum: [ok, skipped, error]
|
|
17437
|
+
quarter: { type: string }
|
|
17438
|
+
responseCount: { type: integer }
|
|
17439
|
+
resultCount: { type: integer }
|
|
17440
|
+
code: { type: string }
|
|
17441
|
+
reason: { type: string }
|
|
17442
|
+
error: { type: string }
|
|
17443
|
+
|
|
16874
17444
|
IncidentIoSourceDto:
|
|
16875
17445
|
type: object
|
|
16876
17446
|
description: >
|
|
@@ -17364,6 +17934,7 @@ components:
|
|
|
17364
17934
|
- $ref: "#/components/schemas/GrafanaSourceConfigDto"
|
|
17365
17935
|
- $ref: "#/components/schemas/SonarQubeSourceConfigDto"
|
|
17366
17936
|
- $ref: "#/components/schemas/PagerDutySourceConfigDto"
|
|
17937
|
+
- $ref: "#/components/schemas/SurveyMonkeySourceConfigDto"
|
|
17367
17938
|
- $ref: "#/components/schemas/IncidentIoSourceConfigDto"
|
|
17368
17939
|
- $ref: "#/components/schemas/SentrySourceConfigDto"
|
|
17369
17940
|
- $ref: "#/components/schemas/JiraSourceConfigDto"
|
|
@@ -18157,6 +18728,53 @@ components:
|
|
|
18157
18728
|
version:
|
|
18158
18729
|
type: string
|
|
18159
18730
|
description: Present for Prometheus verify success — Alertmanager version when available.
|
|
18731
|
+
survey:
|
|
18732
|
+
type: object
|
|
18733
|
+
description: >
|
|
18734
|
+
Present for SurveyMonkey verify success. Question and choice labels only (never
|
|
18735
|
+
answers), so the connect screen can pick the team question and rating questions.
|
|
18736
|
+
required: [title, questions]
|
|
18737
|
+
properties:
|
|
18738
|
+
title:
|
|
18739
|
+
type: string
|
|
18740
|
+
questions:
|
|
18741
|
+
type: array
|
|
18742
|
+
items:
|
|
18743
|
+
type: object
|
|
18744
|
+
required: [id, text, ratingScale, choices]
|
|
18745
|
+
properties:
|
|
18746
|
+
id:
|
|
18747
|
+
type: string
|
|
18748
|
+
text:
|
|
18749
|
+
type: string
|
|
18750
|
+
ratingScale:
|
|
18751
|
+
type: boolean
|
|
18752
|
+
description: Every choice carries a 1-5 weight or position, so the question can be scored.
|
|
18753
|
+
choices:
|
|
18754
|
+
type: array
|
|
18755
|
+
items:
|
|
18756
|
+
type: object
|
|
18757
|
+
required: [id, text]
|
|
18758
|
+
properties:
|
|
18759
|
+
id:
|
|
18760
|
+
type: string
|
|
18761
|
+
text:
|
|
18762
|
+
type: string
|
|
18763
|
+
teamMatch:
|
|
18764
|
+
type: object
|
|
18765
|
+
description: >
|
|
18766
|
+
Present for SurveyMonkey verify success when the request carried `teamQuestionId`.
|
|
18767
|
+
How many survey choices matched an org-chart team by name.
|
|
18768
|
+
required: [matched, total, unmatched]
|
|
18769
|
+
properties:
|
|
18770
|
+
matched:
|
|
18771
|
+
type: integer
|
|
18772
|
+
total:
|
|
18773
|
+
type: integer
|
|
18774
|
+
unmatched:
|
|
18775
|
+
type: array
|
|
18776
|
+
items:
|
|
18777
|
+
type: string
|
|
18160
18778
|
|
|
18161
18779
|
CursorKeyUsageDto:
|
|
18162
18780
|
type: object
|