@thinkai/tai-api-contract 2.210.1 → 2.211.1
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 +135 -59
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/journeySteps.d.ts.map +1 -1
- package/dist/journeySteps.js +2 -1
- package/dist/journeySteps.js.map +1 -1
- package/openapi/openapi.yaml +118 -63
- package/openapi/x-test-status-map.json +96 -61
- package/package.json +1 -1
- package/src/generated/openapi.ts +135 -59
- package/src/index.ts +10 -10
- package/src/journeySteps.ts +2 -1
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.211.1
|
|
5
5
|
description: >
|
|
6
6
|
Contract surface for the AI Driven SDLC backend used by ThinkAI.
|
|
7
7
|
Workspace-scoped routes use `/workspaces/{workspaceId}/...`.
|
|
@@ -9,6 +9,9 @@ info:
|
|
|
9
9
|
Legacy HTTP routes that exist on the server but are not listed here (for example
|
|
10
10
|
`PUT /workspaces/{workspaceId}/dashboard-settings`) remain supported for existing API clients;
|
|
11
11
|
prefer OpenAPI-documented equivalents where available. Removal will be coordinated with ThinkAI releases.
|
|
12
|
+
Connector routes are documented under `/connectors/...` and `/workspaces/{workspaceId}/connectors/...`.
|
|
13
|
+
The server also accepts the previous `/integrations` prefix in the same positions, because
|
|
14
|
+
OAuth redirect URIs and the GitHub webhook URL are registered with providers under that path.
|
|
12
15
|
|
|
13
16
|
**Acceptance intent:** Per-operation behavior (happy paths, validation, and representative errors)
|
|
14
17
|
is defined only in this document via `summary`, `description`, response codes, and `examples`.
|
|
@@ -29,7 +32,7 @@ tags:
|
|
|
29
32
|
- name: TechStack
|
|
30
33
|
description: Tech stack (§3)
|
|
31
34
|
- name: Integrations
|
|
32
|
-
description: Workspace
|
|
35
|
+
description: Workspace connectors (GitHub App status and related)
|
|
33
36
|
- name: NDA
|
|
34
37
|
description: NDA flows (§4, §14 storagePath)
|
|
35
38
|
- name: RepositoryReadiness
|
|
@@ -68,7 +71,7 @@ tags:
|
|
|
68
71
|
- name: PlatformAdmin
|
|
69
72
|
description: Platform-admin operations restricted to PLATFORM_ADMIN_EMAILS. Callers must present a valid JWT from an email on that allowlist; all other callers receive 403.
|
|
70
73
|
- name: HRIS
|
|
71
|
-
description: HRIS
|
|
74
|
+
description: HRIS connectors (Personio, ZenHR, …); absence data, sync status, and manual sync (issue #447).
|
|
72
75
|
- name: PrivacyRequests
|
|
73
76
|
description: >
|
|
74
77
|
Data subject access / erasure / portability request intake and privacy-ops management (DSAR, issue #611).
|
|
@@ -3150,7 +3153,7 @@ paths:
|
|
|
3150
3153
|
jira / bitbucket callers are not regressed. `sonarqube` entries get strict validation
|
|
3151
3154
|
(`baseUrl`, `token`, `projectKey` required; optional `branch`).
|
|
3152
3155
|
**`type: github` is rejected** with HTTP 400 and `code: github_sources_deprecated`; use the
|
|
3153
|
-
GitHub App integration (`POST /workspaces/{workspaceId}/
|
|
3156
|
+
GitHub App integration (`POST /workspaces/{workspaceId}/connectors/github/install-url` and callback) instead.
|
|
3154
3157
|
|
|
3155
3158
|
Every secret-keyed top-level string field
|
|
3156
3159
|
(`token`, `password`, `api_key`, `secret`, `private_key`,
|
|
@@ -3263,7 +3266,7 @@ paths:
|
|
|
3263
3266
|
githubDeprecated:
|
|
3264
3267
|
summary: Legacy GitHub PAT in sources (use GitHub App)
|
|
3265
3268
|
value:
|
|
3266
|
-
error: 'sources[0]: type "github" is no longer supported in workspace sources; use the GitHub App integration (POST .../
|
|
3269
|
+
error: 'sources[0]: type "github" is no longer supported in workspace sources; use the GitHub App integration (POST .../connectors/github/install-url).'
|
|
3267
3270
|
code: github_sources_deprecated
|
|
3268
3271
|
cursorExecutionIsAdmin:
|
|
3269
3272
|
summary: Cursor admin key submitted as executionToken
|
|
@@ -3416,7 +3419,7 @@ paths:
|
|
|
3416
3419
|
"404":
|
|
3417
3420
|
description: Workspace does not exist or malformed workspaceId
|
|
3418
3421
|
|
|
3419
|
-
/workspaces/{workspaceId}/
|
|
3422
|
+
/workspaces/{workspaceId}/connectors/sonarqube/repo-mappings:
|
|
3420
3423
|
get:
|
|
3421
3424
|
tags: [Workspace]
|
|
3422
3425
|
summary: List SonarQube repo to project key mappings
|
|
@@ -3463,7 +3466,7 @@ paths:
|
|
|
3463
3466
|
"403":
|
|
3464
3467
|
$ref: "#/components/responses/Forbidden"
|
|
3465
3468
|
|
|
3466
|
-
/workspaces/{workspaceId}/
|
|
3469
|
+
/workspaces/{workspaceId}/connectors/sonarqube/repo-mappings/validate:
|
|
3467
3470
|
post:
|
|
3468
3471
|
tags: [Workspace]
|
|
3469
3472
|
summary: Validate SonarQube mapping rows against the workspace token
|
|
@@ -3499,7 +3502,7 @@ paths:
|
|
|
3499
3502
|
sources. Other source types are left unchanged.
|
|
3500
3503
|
|
|
3501
3504
|
`type: github` is rejected — GitHub App integration is managed via
|
|
3502
|
-
`/
|
|
3505
|
+
`/connectors/github`, not workspace sources.
|
|
3503
3506
|
|
|
3504
3507
|
Requires admin workspace role (same as `PUT /workspaces/{workspaceId}/sources`).
|
|
3505
3508
|
|
|
@@ -5414,7 +5417,7 @@ paths:
|
|
|
5414
5417
|
schema:
|
|
5415
5418
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5416
5419
|
|
|
5417
|
-
/workspaces/{workspaceId}/
|
|
5420
|
+
/workspaces/{workspaceId}/connectors/ai-tool/{provider}/members:
|
|
5418
5421
|
get:
|
|
5419
5422
|
tags: [Workspace]
|
|
5420
5423
|
summary: AI tool integration — paginated member list with usage totals
|
|
@@ -5503,7 +5506,7 @@ paths:
|
|
|
5503
5506
|
"404":
|
|
5504
5507
|
description: Workspace does not exist or malformed workspaceId
|
|
5505
5508
|
|
|
5506
|
-
/workspaces/{workspaceId}/
|
|
5509
|
+
/workspaces/{workspaceId}/connectors/ai-tool/{provider}/teams:
|
|
5507
5510
|
get:
|
|
5508
5511
|
tags: [Workspace]
|
|
5509
5512
|
summary: AI tool integration — team rollups from org chart
|
|
@@ -5565,7 +5568,7 @@ paths:
|
|
|
5565
5568
|
"404":
|
|
5566
5569
|
description: Workspace does not exist or malformed workspaceId
|
|
5567
5570
|
|
|
5568
|
-
/workspaces/{workspaceId}/
|
|
5571
|
+
/workspaces/{workspaceId}/connectors/ai-tool/{provider}/members/{externalId}:
|
|
5569
5572
|
get:
|
|
5570
5573
|
tags: [Workspace]
|
|
5571
5574
|
summary: AI tool integration — member detail drill-down
|
|
@@ -5786,7 +5789,7 @@ paths:
|
|
|
5786
5789
|
schema:
|
|
5787
5790
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5788
5791
|
|
|
5789
|
-
/workspaces/{workspaceId}/
|
|
5792
|
+
/workspaces/{workspaceId}/connectors/connectors-snapshot:
|
|
5790
5793
|
get:
|
|
5791
5794
|
tags: [Integrations]
|
|
5792
5795
|
summary: Workspace connectors snapshot for settings UI
|
|
@@ -5814,7 +5817,7 @@ paths:
|
|
|
5814
5817
|
schema:
|
|
5815
5818
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5816
5819
|
|
|
5817
|
-
/workspaces/{workspaceId}/
|
|
5820
|
+
/workspaces/{workspaceId}/connectors/github/recent-commit-authors:
|
|
5818
5821
|
post:
|
|
5819
5822
|
tags: [Integrations]
|
|
5820
5823
|
summary: Default-branch commit authors for the GitHub contribution filter
|
|
@@ -5849,7 +5852,7 @@ paths:
|
|
|
5849
5852
|
$ref: "#/components/responses/Unauthorized"
|
|
5850
5853
|
"403":
|
|
5851
5854
|
$ref: "#/components/responses/Forbidden"
|
|
5852
|
-
/workspaces/{workspaceId}/
|
|
5855
|
+
/workspaces/{workspaceId}/connectors/github:
|
|
5853
5856
|
get:
|
|
5854
5857
|
tags: [Integrations]
|
|
5855
5858
|
summary: GitHub App installation status for workspace
|
|
@@ -5954,7 +5957,7 @@ paths:
|
|
|
5954
5957
|
schema:
|
|
5955
5958
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5956
5959
|
|
|
5957
|
-
/workspaces/{workspaceId}/
|
|
5960
|
+
/workspaces/{workspaceId}/connectors/github/install-url:
|
|
5958
5961
|
post:
|
|
5959
5962
|
tags: [Integrations]
|
|
5960
5963
|
summary: Create GitHub App installation URL
|
|
@@ -5964,7 +5967,7 @@ paths:
|
|
|
5964
5967
|
Default intent `connect` installs ThinkAI Platform Insights (read).
|
|
5965
5968
|
Intent `enable_fixes` installs ThinkAI Platform Automations (write) for the Insights
|
|
5966
5969
|
installation identified by `installationId`.
|
|
5967
|
-
Body is optional; when omitted, defaults to `/onboarding/
|
|
5970
|
+
Body is optional; when omitted, defaults to `/onboarding/connectors` return path.
|
|
5968
5971
|
Optional `pickerSession` (from user OAuth org picker) recovers `returnPath` from the server-side picker snapshot when the multi-hop authorize→install flow should return to the page where OAuth started.
|
|
5969
5972
|
security:
|
|
5970
5973
|
- bearerAuth: []
|
|
@@ -6006,7 +6009,7 @@ paths:
|
|
|
6006
6009
|
schema:
|
|
6007
6010
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
6008
6011
|
|
|
6009
|
-
/workspaces/{workspaceId}/
|
|
6012
|
+
/workspaces/{workspaceId}/connectors/github/installations/{installationId}/automated-fixes/enable:
|
|
6010
6013
|
post:
|
|
6011
6014
|
tags: [Integrations]
|
|
6012
6015
|
summary: Enable automated fixes for a GitHub installation
|
|
@@ -6051,7 +6054,7 @@ paths:
|
|
|
6051
6054
|
schema:
|
|
6052
6055
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
6053
6056
|
|
|
6054
|
-
/workspaces/{workspaceId}/
|
|
6057
|
+
/workspaces/{workspaceId}/connectors/github/installations/{installationId}/automated-fixes:
|
|
6055
6058
|
delete:
|
|
6056
6059
|
tags: [Integrations]
|
|
6057
6060
|
summary: Disable automated fixes for a GitHub installation
|
|
@@ -6085,7 +6088,7 @@ paths:
|
|
|
6085
6088
|
schema:
|
|
6086
6089
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
6087
6090
|
|
|
6088
|
-
/workspaces/{workspaceId}/
|
|
6091
|
+
/workspaces/{workspaceId}/connectors/github/installations/{installationId}/automated-fixes/pr-creation-mode:
|
|
6089
6092
|
put:
|
|
6090
6093
|
tags: [Integrations]
|
|
6091
6094
|
summary: Set fix PR creation mode for a GitHub installation
|
|
@@ -6136,7 +6139,7 @@ paths:
|
|
|
6136
6139
|
schema:
|
|
6137
6140
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
6138
6141
|
|
|
6139
|
-
/workspaces/{workspaceId}/
|
|
6142
|
+
/workspaces/{workspaceId}/connectors/github/user-authorize-url:
|
|
6140
6143
|
post:
|
|
6141
6144
|
tags: [Integrations]
|
|
6142
6145
|
summary: Create GitHub user OAuth authorize URL
|
|
@@ -6184,7 +6187,7 @@ paths:
|
|
|
6184
6187
|
schema:
|
|
6185
6188
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
6186
6189
|
|
|
6187
|
-
/workspaces/{workspaceId}/
|
|
6190
|
+
/workspaces/{workspaceId}/connectors/github/connectable-accounts:
|
|
6188
6191
|
get:
|
|
6189
6192
|
tags: [Integrations]
|
|
6190
6193
|
summary: List connectable GitHub accounts from user OAuth session
|
|
@@ -6227,7 +6230,7 @@ paths:
|
|
|
6227
6230
|
schema:
|
|
6228
6231
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
6229
6232
|
|
|
6230
|
-
/workspaces/{workspaceId}/
|
|
6233
|
+
/workspaces/{workspaceId}/connectors/github/connect-by-org:
|
|
6231
6234
|
post:
|
|
6232
6235
|
tags: [Integrations]
|
|
6233
6236
|
summary: Link GitHub App installation by org or user account
|
|
@@ -6283,7 +6286,7 @@ paths:
|
|
|
6283
6286
|
schema:
|
|
6284
6287
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
6285
6288
|
|
|
6286
|
-
/workspaces/{workspaceId}/
|
|
6289
|
+
/workspaces/{workspaceId}/connectors/ai-tool/{provider}/refresh:
|
|
6287
6290
|
post:
|
|
6288
6291
|
tags: [Integrations]
|
|
6289
6292
|
summary: Refresh AI tool integration snapshots
|
|
@@ -6419,7 +6422,7 @@ paths:
|
|
|
6419
6422
|
ok: false
|
|
6420
6423
|
error: "already_in_progress"
|
|
6421
6424
|
|
|
6422
|
-
/workspaces/{workspaceId}/
|
|
6425
|
+
/workspaces/{workspaceId}/connectors/ai-tool/{provider}/seats:
|
|
6423
6426
|
get:
|
|
6424
6427
|
tags: [Integrations]
|
|
6425
6428
|
summary: List latest AI-tool seats
|
|
@@ -6450,7 +6453,7 @@ paths:
|
|
|
6450
6453
|
"403":
|
|
6451
6454
|
$ref: "#/components/responses/Forbidden"
|
|
6452
6455
|
|
|
6453
|
-
/workspaces/{workspaceId}/
|
|
6456
|
+
/workspaces/{workspaceId}/connectors/ai-tool/{provider}/daily-usage:
|
|
6454
6457
|
get:
|
|
6455
6458
|
tags: [Integrations]
|
|
6456
6459
|
summary: List AI-tool daily usage
|
|
@@ -6498,7 +6501,7 @@ paths:
|
|
|
6498
6501
|
"403":
|
|
6499
6502
|
$ref: "#/components/responses/Forbidden"
|
|
6500
6503
|
|
|
6501
|
-
/workspaces/{workspaceId}/
|
|
6504
|
+
/workspaces/{workspaceId}/connectors/ai-tool/{provider}/spend:
|
|
6502
6505
|
get:
|
|
6503
6506
|
tags: [Integrations]
|
|
6504
6507
|
summary: List AI-tool spend
|
|
@@ -6535,7 +6538,7 @@ paths:
|
|
|
6535
6538
|
"403":
|
|
6536
6539
|
$ref: "#/components/responses/Forbidden"
|
|
6537
6540
|
|
|
6538
|
-
/workspaces/{workspaceId}/
|
|
6541
|
+
/workspaces/{workspaceId}/connectors/ai-tool/{provider}/spend-daily:
|
|
6539
6542
|
get:
|
|
6540
6543
|
tags: [Integrations]
|
|
6541
6544
|
summary: List AI-tool daily spend (historic Cursor filtered-usage rollup)
|
|
@@ -6583,7 +6586,7 @@ paths:
|
|
|
6583
6586
|
"403":
|
|
6584
6587
|
$ref: "#/components/responses/Forbidden"
|
|
6585
6588
|
|
|
6586
|
-
/workspaces/{workspaceId}/
|
|
6589
|
+
/workspaces/{workspaceId}/connectors/ai-tool/{provider}/summary:
|
|
6587
6590
|
get:
|
|
6588
6591
|
tags: [Integrations]
|
|
6589
6592
|
summary: AI-tool provider summary for a date window
|
|
@@ -6633,7 +6636,7 @@ paths:
|
|
|
6633
6636
|
"403":
|
|
6634
6637
|
$ref: "#/components/responses/Forbidden"
|
|
6635
6638
|
|
|
6636
|
-
/workspaces/{workspaceId}/
|
|
6639
|
+
/workspaces/{workspaceId}/connectors/ai-tool/{provider}/daily-series:
|
|
6637
6640
|
get:
|
|
6638
6641
|
tags: [Integrations]
|
|
6639
6642
|
summary: AI-tool daily spend and usage series for charts
|
|
@@ -6694,7 +6697,7 @@ paths:
|
|
|
6694
6697
|
"403":
|
|
6695
6698
|
$ref: "#/components/responses/Forbidden"
|
|
6696
6699
|
|
|
6697
|
-
/workspaces/{workspaceId}/
|
|
6700
|
+
/workspaces/{workspaceId}/connectors/ai-tool/{provider}/model-breakdown:
|
|
6698
6701
|
get:
|
|
6699
6702
|
tags: [Integrations]
|
|
6700
6703
|
summary: AI-tool model spend rollup for a date window
|
|
@@ -6753,7 +6756,7 @@ paths:
|
|
|
6753
6756
|
"403":
|
|
6754
6757
|
$ref: "#/components/responses/Forbidden"
|
|
6755
6758
|
|
|
6756
|
-
/workspaces/{workspaceId}/
|
|
6759
|
+
/workspaces/{workspaceId}/connectors/ai-tool/{provider}/status:
|
|
6757
6760
|
get:
|
|
6758
6761
|
tags: [Integrations]
|
|
6759
6762
|
summary: Get last refresh status
|
|
@@ -6791,7 +6794,7 @@ paths:
|
|
|
6791
6794
|
ok: false
|
|
6792
6795
|
error: "no_source"
|
|
6793
6796
|
|
|
6794
|
-
/
|
|
6797
|
+
/connectors/github/callback:
|
|
6795
6798
|
get:
|
|
6796
6799
|
tags: [Integrations]
|
|
6797
6800
|
summary: GitHub App installation callback
|
|
@@ -6842,7 +6845,7 @@ paths:
|
|
|
6842
6845
|
schema:
|
|
6843
6846
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
6844
6847
|
|
|
6845
|
-
/
|
|
6848
|
+
/connectors/github/user-oauth/callback:
|
|
6846
6849
|
get:
|
|
6847
6850
|
tags: [Integrations]
|
|
6848
6851
|
summary: GitHub user OAuth callback
|
|
@@ -6888,7 +6891,7 @@ paths:
|
|
|
6888
6891
|
schema:
|
|
6889
6892
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
6890
6893
|
|
|
6891
|
-
/workspaces/{workspaceId}/
|
|
6894
|
+
/workspaces/{workspaceId}/connectors/github-actions:
|
|
6892
6895
|
get:
|
|
6893
6896
|
tags: [Integrations]
|
|
6894
6897
|
summary: GitHub Actions CI integration status for workspace
|
|
@@ -6942,7 +6945,7 @@ paths:
|
|
|
6942
6945
|
schema:
|
|
6943
6946
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
6944
6947
|
|
|
6945
|
-
/workspaces/{workspaceId}/
|
|
6948
|
+
/workspaces/{workspaceId}/connectors/github-actions/enable:
|
|
6946
6949
|
post:
|
|
6947
6950
|
tags: [Integrations]
|
|
6948
6951
|
summary: Enable GitHub Actions CI integration
|
|
@@ -6979,7 +6982,7 @@ paths:
|
|
|
6979
6982
|
schema:
|
|
6980
6983
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
6981
6984
|
|
|
6982
|
-
/workspaces/{workspaceId}/
|
|
6985
|
+
/workspaces/{workspaceId}/connectors/newrelic:
|
|
6983
6986
|
get:
|
|
6984
6987
|
tags: [Integrations]
|
|
6985
6988
|
summary: New Relic monitoring integration status
|
|
@@ -7007,7 +7010,7 @@ paths:
|
|
|
7007
7010
|
schema:
|
|
7008
7011
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
7009
7012
|
|
|
7010
|
-
/workspaces/{workspaceId}/
|
|
7013
|
+
/workspaces/{workspaceId}/connectors/newrelic/sync:
|
|
7011
7014
|
post:
|
|
7012
7015
|
tags: [Integrations]
|
|
7013
7016
|
summary: Trigger New Relic monitoring ingest now
|
|
@@ -7050,7 +7053,7 @@ paths:
|
|
|
7050
7053
|
schema:
|
|
7051
7054
|
$ref: "#/components/schemas/NewRelicTriggerSyncResultDto"
|
|
7052
7055
|
|
|
7053
|
-
/workspaces/{workspaceId}/
|
|
7056
|
+
/workspaces/{workspaceId}/connectors/prometheus:
|
|
7054
7057
|
get:
|
|
7055
7058
|
tags: [Integrations]
|
|
7056
7059
|
summary: Prometheus monitoring integration status
|
|
@@ -7077,7 +7080,7 @@ paths:
|
|
|
7077
7080
|
schema:
|
|
7078
7081
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
7079
7082
|
|
|
7080
|
-
/workspaces/{workspaceId}/
|
|
7083
|
+
/workspaces/{workspaceId}/connectors/prometheus/sync:
|
|
7081
7084
|
post:
|
|
7082
7085
|
tags: [Integrations]
|
|
7083
7086
|
summary: Trigger Prometheus monitoring ingest now
|
|
@@ -7119,7 +7122,7 @@ paths:
|
|
|
7119
7122
|
schema:
|
|
7120
7123
|
$ref: "#/components/schemas/PrometheusTriggerSyncResultDto"
|
|
7121
7124
|
|
|
7122
|
-
/workspaces/{workspaceId}/
|
|
7125
|
+
/workspaces/{workspaceId}/connectors/grafana:
|
|
7123
7126
|
get:
|
|
7124
7127
|
tags: [Integrations]
|
|
7125
7128
|
summary: Grafana monitoring integration status
|
|
@@ -7146,7 +7149,7 @@ paths:
|
|
|
7146
7149
|
schema:
|
|
7147
7150
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
7148
7151
|
|
|
7149
|
-
/workspaces/{workspaceId}/
|
|
7152
|
+
/workspaces/{workspaceId}/connectors/grafana/sync:
|
|
7150
7153
|
post:
|
|
7151
7154
|
tags: [Integrations]
|
|
7152
7155
|
summary: Trigger Grafana monitoring ingest now
|
|
@@ -7189,7 +7192,7 @@ paths:
|
|
|
7189
7192
|
schema:
|
|
7190
7193
|
$ref: "#/components/schemas/GrafanaTriggerSyncResultDto"
|
|
7191
7194
|
|
|
7192
|
-
/workspaces/{workspaceId}/
|
|
7195
|
+
/workspaces/{workspaceId}/connectors/datadog:
|
|
7193
7196
|
get:
|
|
7194
7197
|
tags: [Integrations]
|
|
7195
7198
|
summary: Datadog monitoring integration status
|
|
@@ -7217,7 +7220,7 @@ paths:
|
|
|
7217
7220
|
schema:
|
|
7218
7221
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
7219
7222
|
|
|
7220
|
-
/workspaces/{workspaceId}/
|
|
7223
|
+
/workspaces/{workspaceId}/connectors/datadog/sync:
|
|
7221
7224
|
post:
|
|
7222
7225
|
tags: [Integrations]
|
|
7223
7226
|
summary: Trigger Datadog monitoring ingest now
|
|
@@ -7260,7 +7263,7 @@ paths:
|
|
|
7260
7263
|
schema:
|
|
7261
7264
|
$ref: "#/components/schemas/DatadogTriggerSyncResultDto"
|
|
7262
7265
|
|
|
7263
|
-
/workspaces/{workspaceId}/
|
|
7266
|
+
/workspaces/{workspaceId}/connectors/sentry:
|
|
7264
7267
|
get:
|
|
7265
7268
|
tags: [Integrations]
|
|
7266
7269
|
summary: Sentry monitoring integration status
|
|
@@ -7288,7 +7291,7 @@ paths:
|
|
|
7288
7291
|
schema:
|
|
7289
7292
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
7290
7293
|
|
|
7291
|
-
/workspaces/{workspaceId}/
|
|
7294
|
+
/workspaces/{workspaceId}/connectors/sentry/sync:
|
|
7292
7295
|
post:
|
|
7293
7296
|
tags: [Integrations]
|
|
7294
7297
|
summary: Trigger Sentry monitoring ingest now
|
|
@@ -7331,7 +7334,7 @@ paths:
|
|
|
7331
7334
|
schema:
|
|
7332
7335
|
$ref: "#/components/schemas/SentryTriggerSyncResultDto"
|
|
7333
7336
|
|
|
7334
|
-
/
|
|
7337
|
+
/connectors/github/webhook:
|
|
7335
7338
|
post:
|
|
7336
7339
|
tags: [Integrations]
|
|
7337
7340
|
summary: GitHub App webhook receiver
|
|
@@ -10768,6 +10771,58 @@ paths:
|
|
|
10768
10771
|
schema:
|
|
10769
10772
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
10770
10773
|
|
|
10774
|
+
/workspaces/{workspaceId}/code-chat/knowledge-jobs/{jobId}/cancel:
|
|
10775
|
+
post:
|
|
10776
|
+
tags: [CodeChat]
|
|
10777
|
+
summary: Cancel a queued or running knowledge job
|
|
10778
|
+
description: >
|
|
10779
|
+
Any workspace member when Engineering Context Graph is on. Clears the worker lease so
|
|
10780
|
+
in-flight work stops at the next ownership check. Restores the index to ready when a
|
|
10781
|
+
usable graph already exists (`graph_json` and `node_count > 0`); otherwise marks the
|
|
10782
|
+
index failed with "Cancelled by user". Authz matches other CodeChat member routes
|
|
10783
|
+
(Code Intelligence enabled); unlike continue, no execution key is required.
|
|
10784
|
+
operationId: cancelCodeChatKnowledgeJob
|
|
10785
|
+
x-test-coverage-skip: thin HTTP over cancelKnowledgeJob store update; covered by stuck-recovery unit tests
|
|
10786
|
+
parameters:
|
|
10787
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
10788
|
+
- name: jobId
|
|
10789
|
+
in: path
|
|
10790
|
+
required: true
|
|
10791
|
+
schema:
|
|
10792
|
+
type: string
|
|
10793
|
+
format: uuid
|
|
10794
|
+
description: Active knowledge job id (`tai_workspace_code_knowledge_jobs.id`).
|
|
10795
|
+
responses:
|
|
10796
|
+
"200":
|
|
10797
|
+
description: Job cancelled
|
|
10798
|
+
content:
|
|
10799
|
+
application/json:
|
|
10800
|
+
schema:
|
|
10801
|
+
type: object
|
|
10802
|
+
required: [job]
|
|
10803
|
+
properties:
|
|
10804
|
+
job:
|
|
10805
|
+
$ref: "#/components/schemas/CodeKnowledgeJobDto"
|
|
10806
|
+
"401":
|
|
10807
|
+
$ref: "#/components/responses/Unauthorized"
|
|
10808
|
+
"403":
|
|
10809
|
+
description: Engineering Context Graph is off
|
|
10810
|
+
content:
|
|
10811
|
+
application/json:
|
|
10812
|
+
schema:
|
|
10813
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
10814
|
+
example:
|
|
10815
|
+
error: Code Intelligence is disabled for this workspace
|
|
10816
|
+
code: code_intelligence_disabled
|
|
10817
|
+
"404":
|
|
10818
|
+
description: No active knowledge job to cancel
|
|
10819
|
+
content:
|
|
10820
|
+
application/json:
|
|
10821
|
+
schema:
|
|
10822
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
10823
|
+
example:
|
|
10824
|
+
error: No active knowledge job to cancel
|
|
10825
|
+
|
|
10771
10826
|
/workspaces/{workspaceId}/code-chat/readiness:
|
|
10772
10827
|
get:
|
|
10773
10828
|
tags: [CodeChat]
|
|
@@ -11970,7 +12025,7 @@ paths:
|
|
|
11970
12025
|
schema:
|
|
11971
12026
|
type: string
|
|
11972
12027
|
|
|
11973
|
-
/workspaces/{workspaceId}/
|
|
12028
|
+
/workspaces/{workspaceId}/connectors/slack/install-url:
|
|
11974
12029
|
get:
|
|
11975
12030
|
tags: [Integrations]
|
|
11976
12031
|
summary: Slack install URL for Message Center
|
|
@@ -12019,7 +12074,7 @@ paths:
|
|
|
12019
12074
|
error: Slack is not configured
|
|
12020
12075
|
code: slack_not_configured
|
|
12021
12076
|
|
|
12022
|
-
/
|
|
12077
|
+
/connectors/slack/callback:
|
|
12023
12078
|
get:
|
|
12024
12079
|
tags: [Integrations]
|
|
12025
12080
|
summary: Slack OAuth callback
|
|
@@ -12060,7 +12115,7 @@ paths:
|
|
|
12060
12115
|
schema:
|
|
12061
12116
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
12062
12117
|
|
|
12063
|
-
/workspaces/{workspaceId}/
|
|
12118
|
+
/workspaces/{workspaceId}/connectors/slack:
|
|
12064
12119
|
get:
|
|
12065
12120
|
tags: [Integrations]
|
|
12066
12121
|
summary: Slack connection status
|
|
@@ -12123,7 +12178,7 @@ paths:
|
|
|
12123
12178
|
schema:
|
|
12124
12179
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
12125
12180
|
|
|
12126
|
-
/workspaces/{workspaceId}/
|
|
12181
|
+
/workspaces/{workspaceId}/connectors/slack/channel:
|
|
12127
12182
|
put:
|
|
12128
12183
|
tags: [Integrations]
|
|
12129
12184
|
summary: Change Slack channel (requires reinstall)
|
|
@@ -13063,7 +13118,7 @@ paths:
|
|
|
13063
13118
|
"403":
|
|
13064
13119
|
$ref: "#/components/responses/Forbidden"
|
|
13065
13120
|
|
|
13066
|
-
/workspaces/{workspaceId}/
|
|
13121
|
+
/workspaces/{workspaceId}/connectors/teams/install-url:
|
|
13067
13122
|
get:
|
|
13068
13123
|
tags: [Integrations, Notifications]
|
|
13069
13124
|
summary: Microsoft sign-in URL for Teams notification delivery
|
|
@@ -13111,7 +13166,7 @@ paths:
|
|
|
13111
13166
|
error: Teams sign-in is not configured
|
|
13112
13167
|
code: teams_not_configured
|
|
13113
13168
|
|
|
13114
|
-
/
|
|
13169
|
+
/connectors/teams/callback:
|
|
13115
13170
|
get:
|
|
13116
13171
|
tags: [Integrations, Notifications]
|
|
13117
13172
|
summary: Finish Teams Microsoft sign-in
|
|
@@ -13150,7 +13205,7 @@ paths:
|
|
|
13150
13205
|
schema:
|
|
13151
13206
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
13152
13207
|
|
|
13153
|
-
/workspaces/{workspaceId}/
|
|
13208
|
+
/workspaces/{workspaceId}/connectors/teams:
|
|
13154
13209
|
get:
|
|
13155
13210
|
tags: [Integrations, Notifications]
|
|
13156
13211
|
summary: Teams connection status
|
|
@@ -13214,7 +13269,7 @@ paths:
|
|
|
13214
13269
|
example:
|
|
13215
13270
|
error: Not found
|
|
13216
13271
|
|
|
13217
|
-
/workspaces/{workspaceId}/
|
|
13272
|
+
/workspaces/{workspaceId}/connectors/teams/channel:
|
|
13218
13273
|
put:
|
|
13219
13274
|
tags: [Integrations, Notifications]
|
|
13220
13275
|
summary: Save the Teams channel for notification posts
|
|
@@ -13296,7 +13351,7 @@ paths:
|
|
|
13296
13351
|
error: Teams channel lookup failed
|
|
13297
13352
|
code: teams_graph_failed
|
|
13298
13353
|
|
|
13299
|
-
/workspaces/{workspaceId}/
|
|
13354
|
+
/workspaces/{workspaceId}/connectors/zelt/authorize-url:
|
|
13300
13355
|
post:
|
|
13301
13356
|
tags: [HRIS, Integrations]
|
|
13302
13357
|
summary: Start Zelt OAuth authorize
|
|
@@ -13341,7 +13396,7 @@ paths:
|
|
|
13341
13396
|
example:
|
|
13342
13397
|
error: api_public_origin_not_configured
|
|
13343
13398
|
|
|
13344
|
-
/workspaces/{workspaceId}/
|
|
13399
|
+
/workspaces/{workspaceId}/connectors/zelt/reauthorize-url:
|
|
13345
13400
|
post:
|
|
13346
13401
|
tags: [HRIS, Integrations]
|
|
13347
13402
|
summary: Start Zelt OAuth reauthorize from stored credentials
|
|
@@ -13391,7 +13446,7 @@ paths:
|
|
|
13391
13446
|
example:
|
|
13392
13447
|
error: api_public_origin_not_configured
|
|
13393
13448
|
|
|
13394
|
-
/workspaces/{workspaceId}/
|
|
13449
|
+
/workspaces/{workspaceId}/connectors/zelt/reconnect:
|
|
13395
13450
|
post:
|
|
13396
13451
|
tags: [HRIS, Integrations]
|
|
13397
13452
|
summary: Attempt silent Zelt reconnect
|
|
@@ -13449,7 +13504,7 @@ paths:
|
|
|
13449
13504
|
example:
|
|
13450
13505
|
error: zelt_sync_in_progress
|
|
13451
13506
|
|
|
13452
|
-
/
|
|
13507
|
+
/connectors/zelt/oauth/callback:
|
|
13453
13508
|
get:
|
|
13454
13509
|
tags: [HRIS, Integrations]
|
|
13455
13510
|
summary: Zelt OAuth callback
|
|
@@ -13473,7 +13528,7 @@ paths:
|
|
|
13473
13528
|
"302":
|
|
13474
13529
|
description: Redirect to SPA return path with zelt status query params
|
|
13475
13530
|
|
|
13476
|
-
/workspaces/{workspaceId}/
|
|
13531
|
+
/workspaces/{workspaceId}/connectors/zenhr/reconnect:
|
|
13477
13532
|
post:
|
|
13478
13533
|
tags: [HRIS, Integrations]
|
|
13479
13534
|
summary: Attempt silent ZenHR reconnect
|
|
@@ -13484,7 +13539,7 @@ paths:
|
|
|
13484
13539
|
Returns `{ ok: false, oauthRequired: true }` when stored credentials exist but refresh
|
|
13485
13540
|
failed with an OAuth re-authorization error (e.g. `invalid_grant`); the SPA should
|
|
13486
13541
|
start ZenHR OAuth next. Returns `502` for other upstream failures (same semantics as
|
|
13487
|
-
`GET .../
|
|
13542
|
+
`GET .../connectors/zenhr/branches`). Returns `503` with `zenhr_sync_in_progress` when
|
|
13488
13543
|
an HRIS sync or OAuth refresh is already in progress for this workspace (retry shortly).
|
|
13489
13544
|
parameters:
|
|
13490
13545
|
- $ref: "#/components/parameters/WorkspaceId"
|
|
@@ -13526,7 +13581,7 @@ paths:
|
|
|
13526
13581
|
"503":
|
|
13527
13582
|
$ref: "#/components/responses/ZenHrSyncInProgress"
|
|
13528
13583
|
|
|
13529
|
-
/workspaces/{workspaceId}/
|
|
13584
|
+
/workspaces/{workspaceId}/connectors/zenhr/branches:
|
|
13530
13585
|
get:
|
|
13531
13586
|
tags: [HRIS, Integrations]
|
|
13532
13587
|
summary: List ZenHR branches
|
|
@@ -13567,7 +13622,7 @@ paths:
|
|
|
13567
13622
|
"503":
|
|
13568
13623
|
$ref: "#/components/responses/ZenHrSyncInProgress"
|
|
13569
13624
|
|
|
13570
|
-
/workspaces/{workspaceId}/
|
|
13625
|
+
/workspaces/{workspaceId}/connectors/zenhr/branch:
|
|
13571
13626
|
patch:
|
|
13572
13627
|
tags: [HRIS, Integrations]
|
|
13573
13628
|
summary: Save selected ZenHR branch
|
|
@@ -18864,7 +18919,7 @@ components:
|
|
|
18864
18919
|
additionalProperties: false
|
|
18865
18920
|
description: >
|
|
18866
18921
|
Optional member drill-down for person-scoped `model_right_sizing` cards.
|
|
18867
|
-
Links to `GET …/
|
|
18922
|
+
Links to `GET …/connectors/ai-tool/{provider}/members/{externalId}`.
|
|
18868
18923
|
required: [provider, externalId]
|
|
18869
18924
|
properties:
|
|
18870
18925
|
provider:
|