@thinkai/tai-api-contract 2.210.0 → 2.211.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 +77 -61
- 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 +96 -66
- package/openapi/x-test-status-map.json +96 -61
- package/package.json +1 -1
- package/src/generated/openapi.ts +77 -61
- 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.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}/...`.
|
|
@@ -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
|
|
@@ -11970,7 +11973,7 @@ paths:
|
|
|
11970
11973
|
schema:
|
|
11971
11974
|
type: string
|
|
11972
11975
|
|
|
11973
|
-
/workspaces/{workspaceId}/
|
|
11976
|
+
/workspaces/{workspaceId}/connectors/slack/install-url:
|
|
11974
11977
|
get:
|
|
11975
11978
|
tags: [Integrations]
|
|
11976
11979
|
summary: Slack install URL for Message Center
|
|
@@ -12019,7 +12022,7 @@ paths:
|
|
|
12019
12022
|
error: Slack is not configured
|
|
12020
12023
|
code: slack_not_configured
|
|
12021
12024
|
|
|
12022
|
-
/
|
|
12025
|
+
/connectors/slack/callback:
|
|
12023
12026
|
get:
|
|
12024
12027
|
tags: [Integrations]
|
|
12025
12028
|
summary: Slack OAuth callback
|
|
@@ -12060,7 +12063,7 @@ paths:
|
|
|
12060
12063
|
schema:
|
|
12061
12064
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
12062
12065
|
|
|
12063
|
-
/workspaces/{workspaceId}/
|
|
12066
|
+
/workspaces/{workspaceId}/connectors/slack:
|
|
12064
12067
|
get:
|
|
12065
12068
|
tags: [Integrations]
|
|
12066
12069
|
summary: Slack connection status
|
|
@@ -12123,7 +12126,7 @@ paths:
|
|
|
12123
12126
|
schema:
|
|
12124
12127
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
12125
12128
|
|
|
12126
|
-
/workspaces/{workspaceId}/
|
|
12129
|
+
/workspaces/{workspaceId}/connectors/slack/channel:
|
|
12127
12130
|
put:
|
|
12128
12131
|
tags: [Integrations]
|
|
12129
12132
|
summary: Change Slack channel (requires reinstall)
|
|
@@ -13063,7 +13066,7 @@ paths:
|
|
|
13063
13066
|
"403":
|
|
13064
13067
|
$ref: "#/components/responses/Forbidden"
|
|
13065
13068
|
|
|
13066
|
-
/workspaces/{workspaceId}/
|
|
13069
|
+
/workspaces/{workspaceId}/connectors/teams/install-url:
|
|
13067
13070
|
get:
|
|
13068
13071
|
tags: [Integrations, Notifications]
|
|
13069
13072
|
summary: Microsoft sign-in URL for Teams notification delivery
|
|
@@ -13111,7 +13114,7 @@ paths:
|
|
|
13111
13114
|
error: Teams sign-in is not configured
|
|
13112
13115
|
code: teams_not_configured
|
|
13113
13116
|
|
|
13114
|
-
/
|
|
13117
|
+
/connectors/teams/callback:
|
|
13115
13118
|
get:
|
|
13116
13119
|
tags: [Integrations, Notifications]
|
|
13117
13120
|
summary: Finish Teams Microsoft sign-in
|
|
@@ -13150,7 +13153,7 @@ paths:
|
|
|
13150
13153
|
schema:
|
|
13151
13154
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
13152
13155
|
|
|
13153
|
-
/workspaces/{workspaceId}/
|
|
13156
|
+
/workspaces/{workspaceId}/connectors/teams:
|
|
13154
13157
|
get:
|
|
13155
13158
|
tags: [Integrations, Notifications]
|
|
13156
13159
|
summary: Teams connection status
|
|
@@ -13214,7 +13217,7 @@ paths:
|
|
|
13214
13217
|
example:
|
|
13215
13218
|
error: Not found
|
|
13216
13219
|
|
|
13217
|
-
/workspaces/{workspaceId}/
|
|
13220
|
+
/workspaces/{workspaceId}/connectors/teams/channel:
|
|
13218
13221
|
put:
|
|
13219
13222
|
tags: [Integrations, Notifications]
|
|
13220
13223
|
summary: Save the Teams channel for notification posts
|
|
@@ -13296,7 +13299,7 @@ paths:
|
|
|
13296
13299
|
error: Teams channel lookup failed
|
|
13297
13300
|
code: teams_graph_failed
|
|
13298
13301
|
|
|
13299
|
-
/workspaces/{workspaceId}/
|
|
13302
|
+
/workspaces/{workspaceId}/connectors/zelt/authorize-url:
|
|
13300
13303
|
post:
|
|
13301
13304
|
tags: [HRIS, Integrations]
|
|
13302
13305
|
summary: Start Zelt OAuth authorize
|
|
@@ -13341,7 +13344,7 @@ paths:
|
|
|
13341
13344
|
example:
|
|
13342
13345
|
error: api_public_origin_not_configured
|
|
13343
13346
|
|
|
13344
|
-
/workspaces/{workspaceId}/
|
|
13347
|
+
/workspaces/{workspaceId}/connectors/zelt/reauthorize-url:
|
|
13345
13348
|
post:
|
|
13346
13349
|
tags: [HRIS, Integrations]
|
|
13347
13350
|
summary: Start Zelt OAuth reauthorize from stored credentials
|
|
@@ -13391,7 +13394,7 @@ paths:
|
|
|
13391
13394
|
example:
|
|
13392
13395
|
error: api_public_origin_not_configured
|
|
13393
13396
|
|
|
13394
|
-
/workspaces/{workspaceId}/
|
|
13397
|
+
/workspaces/{workspaceId}/connectors/zelt/reconnect:
|
|
13395
13398
|
post:
|
|
13396
13399
|
tags: [HRIS, Integrations]
|
|
13397
13400
|
summary: Attempt silent Zelt reconnect
|
|
@@ -13449,7 +13452,7 @@ paths:
|
|
|
13449
13452
|
example:
|
|
13450
13453
|
error: zelt_sync_in_progress
|
|
13451
13454
|
|
|
13452
|
-
/
|
|
13455
|
+
/connectors/zelt/oauth/callback:
|
|
13453
13456
|
get:
|
|
13454
13457
|
tags: [HRIS, Integrations]
|
|
13455
13458
|
summary: Zelt OAuth callback
|
|
@@ -13473,7 +13476,7 @@ paths:
|
|
|
13473
13476
|
"302":
|
|
13474
13477
|
description: Redirect to SPA return path with zelt status query params
|
|
13475
13478
|
|
|
13476
|
-
/workspaces/{workspaceId}/
|
|
13479
|
+
/workspaces/{workspaceId}/connectors/zenhr/reconnect:
|
|
13477
13480
|
post:
|
|
13478
13481
|
tags: [HRIS, Integrations]
|
|
13479
13482
|
summary: Attempt silent ZenHR reconnect
|
|
@@ -13484,7 +13487,7 @@ paths:
|
|
|
13484
13487
|
Returns `{ ok: false, oauthRequired: true }` when stored credentials exist but refresh
|
|
13485
13488
|
failed with an OAuth re-authorization error (e.g. `invalid_grant`); the SPA should
|
|
13486
13489
|
start ZenHR OAuth next. Returns `502` for other upstream failures (same semantics as
|
|
13487
|
-
`GET .../
|
|
13490
|
+
`GET .../connectors/zenhr/branches`). Returns `503` with `zenhr_sync_in_progress` when
|
|
13488
13491
|
an HRIS sync or OAuth refresh is already in progress for this workspace (retry shortly).
|
|
13489
13492
|
parameters:
|
|
13490
13493
|
- $ref: "#/components/parameters/WorkspaceId"
|
|
@@ -13526,7 +13529,7 @@ paths:
|
|
|
13526
13529
|
"503":
|
|
13527
13530
|
$ref: "#/components/responses/ZenHrSyncInProgress"
|
|
13528
13531
|
|
|
13529
|
-
/workspaces/{workspaceId}/
|
|
13532
|
+
/workspaces/{workspaceId}/connectors/zenhr/branches:
|
|
13530
13533
|
get:
|
|
13531
13534
|
tags: [HRIS, Integrations]
|
|
13532
13535
|
summary: List ZenHR branches
|
|
@@ -13567,7 +13570,7 @@ paths:
|
|
|
13567
13570
|
"503":
|
|
13568
13571
|
$ref: "#/components/responses/ZenHrSyncInProgress"
|
|
13569
13572
|
|
|
13570
|
-
/workspaces/{workspaceId}/
|
|
13573
|
+
/workspaces/{workspaceId}/connectors/zenhr/branch:
|
|
13571
13574
|
patch:
|
|
13572
13575
|
tags: [HRIS, Integrations]
|
|
13573
13576
|
summary: Save selected ZenHR branch
|
|
@@ -18864,7 +18867,7 @@ components:
|
|
|
18864
18867
|
additionalProperties: false
|
|
18865
18868
|
description: >
|
|
18866
18869
|
Optional member drill-down for person-scoped `model_right_sizing` cards.
|
|
18867
|
-
Links to `GET …/
|
|
18870
|
+
Links to `GET …/connectors/ai-tool/{provider}/members/{externalId}`.
|
|
18868
18871
|
required: [provider, externalId]
|
|
18869
18872
|
properties:
|
|
18870
18873
|
provider:
|
|
@@ -29587,7 +29590,7 @@ components:
|
|
|
29587
29590
|
properties:
|
|
29588
29591
|
operation:
|
|
29589
29592
|
type: string
|
|
29590
|
-
description: Ledger operation key (code_chat, prd_generate, workspace_kb,
|
|
29593
|
+
description: Ledger operation key (code_chat, prd_generate, workspace_kb, wiki, …). Older rows may still say wiki_enrich or wiki_json_outline; clients collapse those into Wiki.
|
|
29591
29594
|
provider: { type: string }
|
|
29592
29595
|
model: { type: string, nullable: true }
|
|
29593
29596
|
inputTokens: { type: integer, minimum: 0 }
|
|
@@ -29624,6 +29627,33 @@ components:
|
|
|
29624
29627
|
byOperation:
|
|
29625
29628
|
type: array
|
|
29626
29629
|
items: { $ref: "#/components/schemas/CodeIntelligenceTokenUsageByOperationDto" }
|
|
29630
|
+
runs:
|
|
29631
|
+
type: array
|
|
29632
|
+
description: >-
|
|
29633
|
+
Knowledge jobs (wiki scans and similar) whose tokens make up this repository
|
|
29634
|
+
total. Newest first. Absent on older servers.
|
|
29635
|
+
items: { $ref: "#/components/schemas/CodeIntelligenceTokenUsageRunDto" }
|
|
29636
|
+
|
|
29637
|
+
CodeIntelligenceTokenUsageRunDto:
|
|
29638
|
+
type: object
|
|
29639
|
+
required:
|
|
29640
|
+
- operation
|
|
29641
|
+
- inputTokens
|
|
29642
|
+
- outputTokens
|
|
29643
|
+
- estimatedCostUsd
|
|
29644
|
+
- invocationCount
|
|
29645
|
+
properties:
|
|
29646
|
+
jobId: { type: string, format: uuid, nullable: true }
|
|
29647
|
+
startedAt: { type: string, format: date-time, nullable: true }
|
|
29648
|
+
status:
|
|
29649
|
+
type: string
|
|
29650
|
+
nullable: true
|
|
29651
|
+
description: Knowledge job status (queued, running, completed, failed).
|
|
29652
|
+
operation: { type: string }
|
|
29653
|
+
inputTokens: { type: integer, minimum: 0 }
|
|
29654
|
+
outputTokens: { type: integer, minimum: 0 }
|
|
29655
|
+
estimatedCostUsd: { type: number }
|
|
29656
|
+
invocationCount: { type: integer, minimum: 0 }
|
|
29627
29657
|
|
|
29628
29658
|
CodeIntelligenceTokenUsageSummaryDto:
|
|
29629
29659
|
type: object
|
|
@@ -29656,8 +29686,8 @@ components:
|
|
|
29656
29686
|
byRepo:
|
|
29657
29687
|
type: array
|
|
29658
29688
|
description: >-
|
|
29659
|
-
Per-repository split (wiki generation, conversations, outline).
|
|
29660
|
-
repository
|
|
29689
|
+
Per-repository split (wiki generation, conversations, outline). Calls that were
|
|
29690
|
+
not about a single repository use an empty repoId and a null repoName.
|
|
29661
29691
|
items: { $ref: "#/components/schemas/CodeIntelligenceTokenUsageByRepoDto" }
|
|
29662
29692
|
|
|
29663
29693
|
CodeChatWikiPageListDto:
|