@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
|
@@ -1023,7 +1023,7 @@ export interface paths {
|
|
|
1023
1023
|
get?: never;
|
|
1024
1024
|
/**
|
|
1025
1025
|
* Replace workspace data sources
|
|
1026
|
-
* @description Replace the workspace's `sources` array. Cursor entries are validated strictly (`token` 1-256 chars, no whitespace, no `env:` prefix; optional deprecated `baseUrl` is accepted for backwards compatibility and ignored at runtime; verification and future refresh use the fixed Cursor Admin API host. Other types pass through with only a non-empty `type` requirement so existing jira / bitbucket callers are not regressed. `sonarqube` entries get strict validation (`baseUrl`, `token`, `projectKey` required; optional `branch`). **`type: github` is rejected** with HTTP 400 and `code: github_sources_deprecated`; use the GitHub App integration (`POST /workspaces/{workspaceId}/
|
|
1026
|
+
* @description Replace the workspace's `sources` array. Cursor entries are validated strictly (`token` 1-256 chars, no whitespace, no `env:` prefix; optional deprecated `baseUrl` is accepted for backwards compatibility and ignored at runtime; verification and future refresh use the fixed Cursor Admin API host. Other types pass through with only a non-empty `type` requirement so existing jira / bitbucket callers are not regressed. `sonarqube` entries get strict validation (`baseUrl`, `token`, `projectKey` required; optional `branch`). **`type: github` is rejected** with HTTP 400 and `code: github_sources_deprecated`; use the GitHub App integration (`POST /workspaces/{workspaceId}/connectors/github/install-url` and callback) instead.
|
|
1027
1027
|
* Every secret-keyed top-level string field (`token`, `password`, `api_key`, `secret`, `private_key`, `client_secret`) is encrypted at rest with AES-256-GCM under `SOURCES_TOKEN_ENC_KEY` before persistence; `env:`-prefixed values pass through unchanged. `GET /workspaces/{workspaceId}/config` continues to redact every secret-keyed field to `***` regardless of whether the stored value is encrypted, plaintext, or `env:` ref.
|
|
1028
1028
|
* Requires editor or admin workspace role.
|
|
1029
1029
|
* **Typical outcomes:** Valid typed sources → `200` with `{ ok: true, workspaceId }`. Missing required fields for a given `type` → `400` with `error` text. Unknown `type` strings (non-AI-tool, non-github) currently pass through to storage (lenient compatibility). Registered AI tools (`cursor`, `claude`) get strict field validation (no whitespace, no `env:` prefix on tokens). For `cursor`, each PUT entry may include `token` (admin key), `executionToken` (execution key), or both; at least one key field is required per entry. Cursor-specific `400` codes: `cursor_execution_token_is_admin_key` (admin key in `executionToken`), `invalid_cursor_execution_token` (execution key failed Cloud Agents verification).
|
|
@@ -1058,7 +1058,7 @@ export interface paths {
|
|
|
1058
1058
|
patch?: never;
|
|
1059
1059
|
trace?: never;
|
|
1060
1060
|
};
|
|
1061
|
-
"/workspaces/{workspaceId}/
|
|
1061
|
+
"/workspaces/{workspaceId}/connectors/sonarqube/repo-mappings": {
|
|
1062
1062
|
parameters: {
|
|
1063
1063
|
query?: never;
|
|
1064
1064
|
header?: never;
|
|
@@ -1079,7 +1079,7 @@ export interface paths {
|
|
|
1079
1079
|
patch?: never;
|
|
1080
1080
|
trace?: never;
|
|
1081
1081
|
};
|
|
1082
|
-
"/workspaces/{workspaceId}/
|
|
1082
|
+
"/workspaces/{workspaceId}/connectors/sonarqube/repo-mappings/validate": {
|
|
1083
1083
|
parameters: {
|
|
1084
1084
|
query?: never;
|
|
1085
1085
|
header?: never;
|
|
@@ -1109,7 +1109,7 @@ export interface paths {
|
|
|
1109
1109
|
/**
|
|
1110
1110
|
* Remove a single data source by type
|
|
1111
1111
|
* @description Remove the source entry matching `type` from the workspace's persisted sources. Other source types are left unchanged.
|
|
1112
|
-
* `type: github` is rejected — GitHub App integration is managed via `/
|
|
1112
|
+
* `type: github` is rejected — GitHub App integration is managed via `/connectors/github`, not workspace sources.
|
|
1113
1113
|
* Requires admin workspace role (same as `PUT /workspaces/{workspaceId}/sources`).
|
|
1114
1114
|
* **Typical outcomes:** Entry found and removed → `200` with `{ ok: true }`. No entry of that type exists → `404` with `code: source_not_found`. `type: github` or empty type → `400` with `code: invalid_source_type`.
|
|
1115
1115
|
*/
|
|
@@ -1817,7 +1817,7 @@ export interface paths {
|
|
|
1817
1817
|
patch?: never;
|
|
1818
1818
|
trace?: never;
|
|
1819
1819
|
};
|
|
1820
|
-
"/workspaces/{workspaceId}/
|
|
1820
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/members": {
|
|
1821
1821
|
parameters: {
|
|
1822
1822
|
query?: never;
|
|
1823
1823
|
header?: never;
|
|
@@ -1837,7 +1837,7 @@ export interface paths {
|
|
|
1837
1837
|
patch?: never;
|
|
1838
1838
|
trace?: never;
|
|
1839
1839
|
};
|
|
1840
|
-
"/workspaces/{workspaceId}/
|
|
1840
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/teams": {
|
|
1841
1841
|
parameters: {
|
|
1842
1842
|
query?: never;
|
|
1843
1843
|
header?: never;
|
|
@@ -1857,7 +1857,7 @@ export interface paths {
|
|
|
1857
1857
|
patch?: never;
|
|
1858
1858
|
trace?: never;
|
|
1859
1859
|
};
|
|
1860
|
-
"/workspaces/{workspaceId}/
|
|
1860
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/members/{externalId}": {
|
|
1861
1861
|
parameters: {
|
|
1862
1862
|
query?: never;
|
|
1863
1863
|
header?: never;
|
|
@@ -1922,7 +1922,7 @@ export interface paths {
|
|
|
1922
1922
|
patch?: never;
|
|
1923
1923
|
trace?: never;
|
|
1924
1924
|
};
|
|
1925
|
-
"/workspaces/{workspaceId}/
|
|
1925
|
+
"/workspaces/{workspaceId}/connectors/connectors-snapshot": {
|
|
1926
1926
|
parameters: {
|
|
1927
1927
|
query?: never;
|
|
1928
1928
|
header?: never;
|
|
@@ -1942,7 +1942,7 @@ export interface paths {
|
|
|
1942
1942
|
patch?: never;
|
|
1943
1943
|
trace?: never;
|
|
1944
1944
|
};
|
|
1945
|
-
"/workspaces/{workspaceId}/
|
|
1945
|
+
"/workspaces/{workspaceId}/connectors/github/recent-commit-authors": {
|
|
1946
1946
|
parameters: {
|
|
1947
1947
|
query?: never;
|
|
1948
1948
|
header?: never;
|
|
@@ -1962,7 +1962,7 @@ export interface paths {
|
|
|
1962
1962
|
patch?: never;
|
|
1963
1963
|
trace?: never;
|
|
1964
1964
|
};
|
|
1965
|
-
"/workspaces/{workspaceId}/
|
|
1965
|
+
"/workspaces/{workspaceId}/connectors/github": {
|
|
1966
1966
|
parameters: {
|
|
1967
1967
|
query?: never;
|
|
1968
1968
|
header?: never;
|
|
@@ -1986,7 +1986,7 @@ export interface paths {
|
|
|
1986
1986
|
patch?: never;
|
|
1987
1987
|
trace?: never;
|
|
1988
1988
|
};
|
|
1989
|
-
"/workspaces/{workspaceId}/
|
|
1989
|
+
"/workspaces/{workspaceId}/connectors/github/install-url": {
|
|
1990
1990
|
parameters: {
|
|
1991
1991
|
query?: never;
|
|
1992
1992
|
header?: never;
|
|
@@ -1997,7 +1997,7 @@ export interface paths {
|
|
|
1997
1997
|
put?: never;
|
|
1998
1998
|
/**
|
|
1999
1999
|
* Create GitHub App installation URL
|
|
2000
|
-
* @description Creates a GitHub App installation URL scoped to the workspace and caller. Default intent `connect` installs ThinkAI Platform Insights (read). Intent `enable_fixes` installs ThinkAI Platform Automations (write) for the Insights installation identified by `installationId`. Body is optional; when omitted, defaults to `/onboarding/
|
|
2000
|
+
* @description Creates a GitHub App installation URL scoped to the workspace and caller. Default intent `connect` installs ThinkAI Platform Insights (read). Intent `enable_fixes` installs ThinkAI Platform Automations (write) for the Insights installation identified by `installationId`. Body is optional; when omitted, defaults to `/onboarding/connectors` return path. 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.
|
|
2001
2001
|
*/
|
|
2002
2002
|
post: operations["postGithubInstallUrl"];
|
|
2003
2003
|
delete?: never;
|
|
@@ -2006,7 +2006,7 @@ export interface paths {
|
|
|
2006
2006
|
patch?: never;
|
|
2007
2007
|
trace?: never;
|
|
2008
2008
|
};
|
|
2009
|
-
"/workspaces/{workspaceId}/
|
|
2009
|
+
"/workspaces/{workspaceId}/connectors/github/installations/{installationId}/automated-fixes/enable": {
|
|
2010
2010
|
parameters: {
|
|
2011
2011
|
query?: never;
|
|
2012
2012
|
header?: never;
|
|
@@ -2026,7 +2026,7 @@ export interface paths {
|
|
|
2026
2026
|
patch?: never;
|
|
2027
2027
|
trace?: never;
|
|
2028
2028
|
};
|
|
2029
|
-
"/workspaces/{workspaceId}/
|
|
2029
|
+
"/workspaces/{workspaceId}/connectors/github/installations/{installationId}/automated-fixes": {
|
|
2030
2030
|
parameters: {
|
|
2031
2031
|
query?: never;
|
|
2032
2032
|
header?: never;
|
|
@@ -2046,7 +2046,7 @@ export interface paths {
|
|
|
2046
2046
|
patch?: never;
|
|
2047
2047
|
trace?: never;
|
|
2048
2048
|
};
|
|
2049
|
-
"/workspaces/{workspaceId}/
|
|
2049
|
+
"/workspaces/{workspaceId}/connectors/github/installations/{installationId}/automated-fixes/pr-creation-mode": {
|
|
2050
2050
|
parameters: {
|
|
2051
2051
|
query?: never;
|
|
2052
2052
|
header?: never;
|
|
@@ -2066,7 +2066,7 @@ export interface paths {
|
|
|
2066
2066
|
patch?: never;
|
|
2067
2067
|
trace?: never;
|
|
2068
2068
|
};
|
|
2069
|
-
"/workspaces/{workspaceId}/
|
|
2069
|
+
"/workspaces/{workspaceId}/connectors/github/user-authorize-url": {
|
|
2070
2070
|
parameters: {
|
|
2071
2071
|
query?: never;
|
|
2072
2072
|
header?: never;
|
|
@@ -2086,7 +2086,7 @@ export interface paths {
|
|
|
2086
2086
|
patch?: never;
|
|
2087
2087
|
trace?: never;
|
|
2088
2088
|
};
|
|
2089
|
-
"/workspaces/{workspaceId}/
|
|
2089
|
+
"/workspaces/{workspaceId}/connectors/github/connectable-accounts": {
|
|
2090
2090
|
parameters: {
|
|
2091
2091
|
query?: never;
|
|
2092
2092
|
header?: never;
|
|
@@ -2106,7 +2106,7 @@ export interface paths {
|
|
|
2106
2106
|
patch?: never;
|
|
2107
2107
|
trace?: never;
|
|
2108
2108
|
};
|
|
2109
|
-
"/workspaces/{workspaceId}/
|
|
2109
|
+
"/workspaces/{workspaceId}/connectors/github/connect-by-org": {
|
|
2110
2110
|
parameters: {
|
|
2111
2111
|
query?: never;
|
|
2112
2112
|
header?: never;
|
|
@@ -2126,7 +2126,7 @@ export interface paths {
|
|
|
2126
2126
|
patch?: never;
|
|
2127
2127
|
trace?: never;
|
|
2128
2128
|
};
|
|
2129
|
-
"/workspaces/{workspaceId}/
|
|
2129
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/refresh": {
|
|
2130
2130
|
parameters: {
|
|
2131
2131
|
query?: never;
|
|
2132
2132
|
header?: never;
|
|
@@ -2146,7 +2146,7 @@ export interface paths {
|
|
|
2146
2146
|
patch?: never;
|
|
2147
2147
|
trace?: never;
|
|
2148
2148
|
};
|
|
2149
|
-
"/workspaces/{workspaceId}/
|
|
2149
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/seats": {
|
|
2150
2150
|
parameters: {
|
|
2151
2151
|
query?: never;
|
|
2152
2152
|
header?: never;
|
|
@@ -2163,7 +2163,7 @@ export interface paths {
|
|
|
2163
2163
|
patch?: never;
|
|
2164
2164
|
trace?: never;
|
|
2165
2165
|
};
|
|
2166
|
-
"/workspaces/{workspaceId}/
|
|
2166
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/daily-usage": {
|
|
2167
2167
|
parameters: {
|
|
2168
2168
|
query?: never;
|
|
2169
2169
|
header?: never;
|
|
@@ -2180,7 +2180,7 @@ export interface paths {
|
|
|
2180
2180
|
patch?: never;
|
|
2181
2181
|
trace?: never;
|
|
2182
2182
|
};
|
|
2183
|
-
"/workspaces/{workspaceId}/
|
|
2183
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/spend": {
|
|
2184
2184
|
parameters: {
|
|
2185
2185
|
query?: never;
|
|
2186
2186
|
header?: never;
|
|
@@ -2197,7 +2197,7 @@ export interface paths {
|
|
|
2197
2197
|
patch?: never;
|
|
2198
2198
|
trace?: never;
|
|
2199
2199
|
};
|
|
2200
|
-
"/workspaces/{workspaceId}/
|
|
2200
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/spend-daily": {
|
|
2201
2201
|
parameters: {
|
|
2202
2202
|
query?: never;
|
|
2203
2203
|
header?: never;
|
|
@@ -2214,7 +2214,7 @@ export interface paths {
|
|
|
2214
2214
|
patch?: never;
|
|
2215
2215
|
trace?: never;
|
|
2216
2216
|
};
|
|
2217
|
-
"/workspaces/{workspaceId}/
|
|
2217
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/summary": {
|
|
2218
2218
|
parameters: {
|
|
2219
2219
|
query?: never;
|
|
2220
2220
|
header?: never;
|
|
@@ -2234,7 +2234,7 @@ export interface paths {
|
|
|
2234
2234
|
patch?: never;
|
|
2235
2235
|
trace?: never;
|
|
2236
2236
|
};
|
|
2237
|
-
"/workspaces/{workspaceId}/
|
|
2237
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/daily-series": {
|
|
2238
2238
|
parameters: {
|
|
2239
2239
|
query?: never;
|
|
2240
2240
|
header?: never;
|
|
@@ -2254,7 +2254,7 @@ export interface paths {
|
|
|
2254
2254
|
patch?: never;
|
|
2255
2255
|
trace?: never;
|
|
2256
2256
|
};
|
|
2257
|
-
"/workspaces/{workspaceId}/
|
|
2257
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/model-breakdown": {
|
|
2258
2258
|
parameters: {
|
|
2259
2259
|
query?: never;
|
|
2260
2260
|
header?: never;
|
|
@@ -2274,7 +2274,7 @@ export interface paths {
|
|
|
2274
2274
|
patch?: never;
|
|
2275
2275
|
trace?: never;
|
|
2276
2276
|
};
|
|
2277
|
-
"/workspaces/{workspaceId}/
|
|
2277
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/status": {
|
|
2278
2278
|
parameters: {
|
|
2279
2279
|
query?: never;
|
|
2280
2280
|
header?: never;
|
|
@@ -2291,7 +2291,7 @@ export interface paths {
|
|
|
2291
2291
|
patch?: never;
|
|
2292
2292
|
trace?: never;
|
|
2293
2293
|
};
|
|
2294
|
-
"/
|
|
2294
|
+
"/connectors/github/callback": {
|
|
2295
2295
|
parameters: {
|
|
2296
2296
|
query?: never;
|
|
2297
2297
|
header?: never;
|
|
@@ -2311,7 +2311,7 @@ export interface paths {
|
|
|
2311
2311
|
patch?: never;
|
|
2312
2312
|
trace?: never;
|
|
2313
2313
|
};
|
|
2314
|
-
"/
|
|
2314
|
+
"/connectors/github/user-oauth/callback": {
|
|
2315
2315
|
parameters: {
|
|
2316
2316
|
query?: never;
|
|
2317
2317
|
header?: never;
|
|
@@ -2331,7 +2331,7 @@ export interface paths {
|
|
|
2331
2331
|
patch?: never;
|
|
2332
2332
|
trace?: never;
|
|
2333
2333
|
};
|
|
2334
|
-
"/workspaces/{workspaceId}/
|
|
2334
|
+
"/workspaces/{workspaceId}/connectors/github-actions": {
|
|
2335
2335
|
parameters: {
|
|
2336
2336
|
query?: never;
|
|
2337
2337
|
header?: never;
|
|
@@ -2355,7 +2355,7 @@ export interface paths {
|
|
|
2355
2355
|
patch?: never;
|
|
2356
2356
|
trace?: never;
|
|
2357
2357
|
};
|
|
2358
|
-
"/workspaces/{workspaceId}/
|
|
2358
|
+
"/workspaces/{workspaceId}/connectors/github-actions/enable": {
|
|
2359
2359
|
parameters: {
|
|
2360
2360
|
query?: never;
|
|
2361
2361
|
header?: never;
|
|
@@ -2375,7 +2375,7 @@ export interface paths {
|
|
|
2375
2375
|
patch?: never;
|
|
2376
2376
|
trace?: never;
|
|
2377
2377
|
};
|
|
2378
|
-
"/workspaces/{workspaceId}/
|
|
2378
|
+
"/workspaces/{workspaceId}/connectors/newrelic": {
|
|
2379
2379
|
parameters: {
|
|
2380
2380
|
query?: never;
|
|
2381
2381
|
header?: never;
|
|
@@ -2395,7 +2395,7 @@ export interface paths {
|
|
|
2395
2395
|
patch?: never;
|
|
2396
2396
|
trace?: never;
|
|
2397
2397
|
};
|
|
2398
|
-
"/workspaces/{workspaceId}/
|
|
2398
|
+
"/workspaces/{workspaceId}/connectors/newrelic/sync": {
|
|
2399
2399
|
parameters: {
|
|
2400
2400
|
query?: never;
|
|
2401
2401
|
header?: never;
|
|
@@ -2415,7 +2415,7 @@ export interface paths {
|
|
|
2415
2415
|
patch?: never;
|
|
2416
2416
|
trace?: never;
|
|
2417
2417
|
};
|
|
2418
|
-
"/workspaces/{workspaceId}/
|
|
2418
|
+
"/workspaces/{workspaceId}/connectors/prometheus": {
|
|
2419
2419
|
parameters: {
|
|
2420
2420
|
query?: never;
|
|
2421
2421
|
header?: never;
|
|
@@ -2435,7 +2435,7 @@ export interface paths {
|
|
|
2435
2435
|
patch?: never;
|
|
2436
2436
|
trace?: never;
|
|
2437
2437
|
};
|
|
2438
|
-
"/workspaces/{workspaceId}/
|
|
2438
|
+
"/workspaces/{workspaceId}/connectors/prometheus/sync": {
|
|
2439
2439
|
parameters: {
|
|
2440
2440
|
query?: never;
|
|
2441
2441
|
header?: never;
|
|
@@ -2455,7 +2455,7 @@ export interface paths {
|
|
|
2455
2455
|
patch?: never;
|
|
2456
2456
|
trace?: never;
|
|
2457
2457
|
};
|
|
2458
|
-
"/workspaces/{workspaceId}/
|
|
2458
|
+
"/workspaces/{workspaceId}/connectors/grafana": {
|
|
2459
2459
|
parameters: {
|
|
2460
2460
|
query?: never;
|
|
2461
2461
|
header?: never;
|
|
@@ -2475,7 +2475,7 @@ export interface paths {
|
|
|
2475
2475
|
patch?: never;
|
|
2476
2476
|
trace?: never;
|
|
2477
2477
|
};
|
|
2478
|
-
"/workspaces/{workspaceId}/
|
|
2478
|
+
"/workspaces/{workspaceId}/connectors/grafana/sync": {
|
|
2479
2479
|
parameters: {
|
|
2480
2480
|
query?: never;
|
|
2481
2481
|
header?: never;
|
|
@@ -2495,7 +2495,7 @@ export interface paths {
|
|
|
2495
2495
|
patch?: never;
|
|
2496
2496
|
trace?: never;
|
|
2497
2497
|
};
|
|
2498
|
-
"/workspaces/{workspaceId}/
|
|
2498
|
+
"/workspaces/{workspaceId}/connectors/datadog": {
|
|
2499
2499
|
parameters: {
|
|
2500
2500
|
query?: never;
|
|
2501
2501
|
header?: never;
|
|
@@ -2515,7 +2515,7 @@ export interface paths {
|
|
|
2515
2515
|
patch?: never;
|
|
2516
2516
|
trace?: never;
|
|
2517
2517
|
};
|
|
2518
|
-
"/workspaces/{workspaceId}/
|
|
2518
|
+
"/workspaces/{workspaceId}/connectors/datadog/sync": {
|
|
2519
2519
|
parameters: {
|
|
2520
2520
|
query?: never;
|
|
2521
2521
|
header?: never;
|
|
@@ -2535,7 +2535,7 @@ export interface paths {
|
|
|
2535
2535
|
patch?: never;
|
|
2536
2536
|
trace?: never;
|
|
2537
2537
|
};
|
|
2538
|
-
"/workspaces/{workspaceId}/
|
|
2538
|
+
"/workspaces/{workspaceId}/connectors/sentry": {
|
|
2539
2539
|
parameters: {
|
|
2540
2540
|
query?: never;
|
|
2541
2541
|
header?: never;
|
|
@@ -2555,7 +2555,7 @@ export interface paths {
|
|
|
2555
2555
|
patch?: never;
|
|
2556
2556
|
trace?: never;
|
|
2557
2557
|
};
|
|
2558
|
-
"/workspaces/{workspaceId}/
|
|
2558
|
+
"/workspaces/{workspaceId}/connectors/sentry/sync": {
|
|
2559
2559
|
parameters: {
|
|
2560
2560
|
query?: never;
|
|
2561
2561
|
header?: never;
|
|
@@ -2575,7 +2575,7 @@ export interface paths {
|
|
|
2575
2575
|
patch?: never;
|
|
2576
2576
|
trace?: never;
|
|
2577
2577
|
};
|
|
2578
|
-
"/
|
|
2578
|
+
"/connectors/github/webhook": {
|
|
2579
2579
|
parameters: {
|
|
2580
2580
|
query?: never;
|
|
2581
2581
|
header?: never;
|
|
@@ -4547,7 +4547,7 @@ export interface paths {
|
|
|
4547
4547
|
patch?: never;
|
|
4548
4548
|
trace?: never;
|
|
4549
4549
|
};
|
|
4550
|
-
"/workspaces/{workspaceId}/
|
|
4550
|
+
"/workspaces/{workspaceId}/connectors/slack/install-url": {
|
|
4551
4551
|
parameters: {
|
|
4552
4552
|
query?: never;
|
|
4553
4553
|
header?: never;
|
|
@@ -4567,7 +4567,7 @@ export interface paths {
|
|
|
4567
4567
|
patch?: never;
|
|
4568
4568
|
trace?: never;
|
|
4569
4569
|
};
|
|
4570
|
-
"/
|
|
4570
|
+
"/connectors/slack/callback": {
|
|
4571
4571
|
parameters: {
|
|
4572
4572
|
query?: never;
|
|
4573
4573
|
header?: never;
|
|
@@ -4587,7 +4587,7 @@ export interface paths {
|
|
|
4587
4587
|
patch?: never;
|
|
4588
4588
|
trace?: never;
|
|
4589
4589
|
};
|
|
4590
|
-
"/workspaces/{workspaceId}/
|
|
4590
|
+
"/workspaces/{workspaceId}/connectors/slack": {
|
|
4591
4591
|
parameters: {
|
|
4592
4592
|
query?: never;
|
|
4593
4593
|
header?: never;
|
|
@@ -4611,7 +4611,7 @@ export interface paths {
|
|
|
4611
4611
|
patch?: never;
|
|
4612
4612
|
trace?: never;
|
|
4613
4613
|
};
|
|
4614
|
-
"/workspaces/{workspaceId}/
|
|
4614
|
+
"/workspaces/{workspaceId}/connectors/slack/channel": {
|
|
4615
4615
|
parameters: {
|
|
4616
4616
|
query?: never;
|
|
4617
4617
|
header?: never;
|
|
@@ -5093,7 +5093,7 @@ export interface paths {
|
|
|
5093
5093
|
patch?: never;
|
|
5094
5094
|
trace?: never;
|
|
5095
5095
|
};
|
|
5096
|
-
"/workspaces/{workspaceId}/
|
|
5096
|
+
"/workspaces/{workspaceId}/connectors/teams/install-url": {
|
|
5097
5097
|
parameters: {
|
|
5098
5098
|
query?: never;
|
|
5099
5099
|
header?: never;
|
|
@@ -5113,7 +5113,7 @@ export interface paths {
|
|
|
5113
5113
|
patch?: never;
|
|
5114
5114
|
trace?: never;
|
|
5115
5115
|
};
|
|
5116
|
-
"/
|
|
5116
|
+
"/connectors/teams/callback": {
|
|
5117
5117
|
parameters: {
|
|
5118
5118
|
query?: never;
|
|
5119
5119
|
header?: never;
|
|
@@ -5133,7 +5133,7 @@ export interface paths {
|
|
|
5133
5133
|
patch?: never;
|
|
5134
5134
|
trace?: never;
|
|
5135
5135
|
};
|
|
5136
|
-
"/workspaces/{workspaceId}/
|
|
5136
|
+
"/workspaces/{workspaceId}/connectors/teams": {
|
|
5137
5137
|
parameters: {
|
|
5138
5138
|
query?: never;
|
|
5139
5139
|
header?: never;
|
|
@@ -5157,7 +5157,7 @@ export interface paths {
|
|
|
5157
5157
|
patch?: never;
|
|
5158
5158
|
trace?: never;
|
|
5159
5159
|
};
|
|
5160
|
-
"/workspaces/{workspaceId}/
|
|
5160
|
+
"/workspaces/{workspaceId}/connectors/teams/channel": {
|
|
5161
5161
|
parameters: {
|
|
5162
5162
|
query?: never;
|
|
5163
5163
|
header?: never;
|
|
@@ -5177,7 +5177,7 @@ export interface paths {
|
|
|
5177
5177
|
patch?: never;
|
|
5178
5178
|
trace?: never;
|
|
5179
5179
|
};
|
|
5180
|
-
"/workspaces/{workspaceId}/
|
|
5180
|
+
"/workspaces/{workspaceId}/connectors/zelt/authorize-url": {
|
|
5181
5181
|
parameters: {
|
|
5182
5182
|
query?: never;
|
|
5183
5183
|
header?: never;
|
|
@@ -5197,7 +5197,7 @@ export interface paths {
|
|
|
5197
5197
|
patch?: never;
|
|
5198
5198
|
trace?: never;
|
|
5199
5199
|
};
|
|
5200
|
-
"/workspaces/{workspaceId}/
|
|
5200
|
+
"/workspaces/{workspaceId}/connectors/zelt/reauthorize-url": {
|
|
5201
5201
|
parameters: {
|
|
5202
5202
|
query?: never;
|
|
5203
5203
|
header?: never;
|
|
@@ -5217,7 +5217,7 @@ export interface paths {
|
|
|
5217
5217
|
patch?: never;
|
|
5218
5218
|
trace?: never;
|
|
5219
5219
|
};
|
|
5220
|
-
"/workspaces/{workspaceId}/
|
|
5220
|
+
"/workspaces/{workspaceId}/connectors/zelt/reconnect": {
|
|
5221
5221
|
parameters: {
|
|
5222
5222
|
query?: never;
|
|
5223
5223
|
header?: never;
|
|
@@ -5237,7 +5237,7 @@ export interface paths {
|
|
|
5237
5237
|
patch?: never;
|
|
5238
5238
|
trace?: never;
|
|
5239
5239
|
};
|
|
5240
|
-
"/
|
|
5240
|
+
"/connectors/zelt/oauth/callback": {
|
|
5241
5241
|
parameters: {
|
|
5242
5242
|
query?: never;
|
|
5243
5243
|
header?: never;
|
|
@@ -5257,7 +5257,7 @@ export interface paths {
|
|
|
5257
5257
|
patch?: never;
|
|
5258
5258
|
trace?: never;
|
|
5259
5259
|
};
|
|
5260
|
-
"/workspaces/{workspaceId}/
|
|
5260
|
+
"/workspaces/{workspaceId}/connectors/zenhr/reconnect": {
|
|
5261
5261
|
parameters: {
|
|
5262
5262
|
query?: never;
|
|
5263
5263
|
header?: never;
|
|
@@ -5268,7 +5268,7 @@ export interface paths {
|
|
|
5268
5268
|
put?: never;
|
|
5269
5269
|
/**
|
|
5270
5270
|
* Attempt silent ZenHR reconnect
|
|
5271
|
-
* @description Attempts a silent token refresh and branch ping using stored ZenHR OAuth credentials. Returns `{ ok: true }` when the connection is restored without user interaction. Returns `{ ok: false, oauthRequired: true }` when stored credentials exist but refresh failed with an OAuth re-authorization error (e.g. `invalid_grant`); the SPA should start ZenHR OAuth next. Returns `502` for other upstream failures (same semantics as `GET .../
|
|
5271
|
+
* @description Attempts a silent token refresh and branch ping using stored ZenHR OAuth credentials. Returns `{ ok: true }` when the connection is restored without user interaction. Returns `{ ok: false, oauthRequired: true }` when stored credentials exist but refresh failed with an OAuth re-authorization error (e.g. `invalid_grant`); the SPA should start ZenHR OAuth next. Returns `502` for other upstream failures (same semantics as `GET .../connectors/zenhr/branches`). Returns `503` with `zenhr_sync_in_progress` when an HRIS sync or OAuth refresh is already in progress for this workspace (retry shortly).
|
|
5272
5272
|
*/
|
|
5273
5273
|
post: operations["reconnectWorkspaceZenHr"];
|
|
5274
5274
|
delete?: never;
|
|
@@ -5277,7 +5277,7 @@ export interface paths {
|
|
|
5277
5277
|
patch?: never;
|
|
5278
5278
|
trace?: never;
|
|
5279
5279
|
};
|
|
5280
|
-
"/workspaces/{workspaceId}/
|
|
5280
|
+
"/workspaces/{workspaceId}/connectors/zenhr/branches": {
|
|
5281
5281
|
parameters: {
|
|
5282
5282
|
query?: never;
|
|
5283
5283
|
header?: never;
|
|
@@ -5297,7 +5297,7 @@ export interface paths {
|
|
|
5297
5297
|
patch?: never;
|
|
5298
5298
|
trace?: never;
|
|
5299
5299
|
};
|
|
5300
|
-
"/workspaces/{workspaceId}/
|
|
5300
|
+
"/workspaces/{workspaceId}/connectors/zenhr/branch": {
|
|
5301
5301
|
parameters: {
|
|
5302
5302
|
query?: never;
|
|
5303
5303
|
header?: never;
|
|
@@ -7494,7 +7494,7 @@ export interface components {
|
|
|
7494
7494
|
/** @description Distinct mapped person_id rows contributing to this card's sample (workspace rollup or the single person for a person-scoped card). */
|
|
7495
7495
|
personCount: number;
|
|
7496
7496
|
};
|
|
7497
|
-
/** @description Optional member drill-down for person-scoped `model_right_sizing` cards. Links to `GET …/
|
|
7497
|
+
/** @description Optional member drill-down for person-scoped `model_right_sizing` cards. Links to `GET …/connectors/ai-tool/{provider}/members/{externalId}`. */
|
|
7498
7498
|
AiUsageSpendKeyInsightDrilldownDto: {
|
|
7499
7499
|
/**
|
|
7500
7500
|
* @description AI tool provider for the member detail route.
|
|
@@ -12469,7 +12469,7 @@ export interface components {
|
|
|
12469
12469
|
workspaceContext?: components["schemas"]["WorkspaceContextInsightsDto"];
|
|
12470
12470
|
};
|
|
12471
12471
|
CodeIntelligenceUsageDto: {
|
|
12472
|
-
/** @description Ledger operation key (code_chat, prd_generate, workspace_kb,
|
|
12472
|
+
/** @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. */
|
|
12473
12473
|
operation: string;
|
|
12474
12474
|
provider: string;
|
|
12475
12475
|
model?: string | null;
|
|
@@ -12494,6 +12494,21 @@ export interface components {
|
|
|
12494
12494
|
estimatedCostUsd: number;
|
|
12495
12495
|
invocationCount: number;
|
|
12496
12496
|
byOperation: components["schemas"]["CodeIntelligenceTokenUsageByOperationDto"][];
|
|
12497
|
+
/** @description Knowledge jobs (wiki scans and similar) whose tokens make up this repository total. Newest first. Absent on older servers. */
|
|
12498
|
+
runs?: components["schemas"]["CodeIntelligenceTokenUsageRunDto"][];
|
|
12499
|
+
};
|
|
12500
|
+
CodeIntelligenceTokenUsageRunDto: {
|
|
12501
|
+
/** Format: uuid */
|
|
12502
|
+
jobId?: string | null;
|
|
12503
|
+
/** Format: date-time */
|
|
12504
|
+
startedAt?: string | null;
|
|
12505
|
+
/** @description Knowledge job status (queued, running, completed, failed). */
|
|
12506
|
+
status?: string | null;
|
|
12507
|
+
operation: string;
|
|
12508
|
+
inputTokens: number;
|
|
12509
|
+
outputTokens: number;
|
|
12510
|
+
estimatedCostUsd: number;
|
|
12511
|
+
invocationCount: number;
|
|
12497
12512
|
};
|
|
12498
12513
|
CodeIntelligenceTokenUsageSummaryDto: {
|
|
12499
12514
|
days: number;
|
|
@@ -12506,7 +12521,7 @@ export interface components {
|
|
|
12506
12521
|
/** @description Rate basis used for the derived cost, for display in tooltips. */
|
|
12507
12522
|
costBasis?: string | null;
|
|
12508
12523
|
byOperation: components["schemas"]["CodeIntelligenceTokenUsageByOperationDto"][];
|
|
12509
|
-
/** @description Per-repository split (wiki generation, conversations, outline).
|
|
12524
|
+
/** @description Per-repository split (wiki generation, conversations, outline). Calls that were not about a single repository use an empty repoId and a null repoName. */
|
|
12510
12525
|
byRepo: components["schemas"]["CodeIntelligenceTokenUsageByRepoDto"][];
|
|
12511
12526
|
};
|
|
12512
12527
|
CodeChatWikiPageListDto: {
|
|
@@ -14194,6 +14209,7 @@ export type WorkspaceKnowledgePackDto = components['schemas']['WorkspaceKnowledg
|
|
|
14194
14209
|
export type CodeIntelligenceUsageDto = components['schemas']['CodeIntelligenceUsageDto'];
|
|
14195
14210
|
export type CodeIntelligenceTokenUsageByOperationDto = components['schemas']['CodeIntelligenceTokenUsageByOperationDto'];
|
|
14196
14211
|
export type CodeIntelligenceTokenUsageByRepoDto = components['schemas']['CodeIntelligenceTokenUsageByRepoDto'];
|
|
14212
|
+
export type CodeIntelligenceTokenUsageRunDto = components['schemas']['CodeIntelligenceTokenUsageRunDto'];
|
|
14197
14213
|
export type CodeIntelligenceTokenUsageSummaryDto = components['schemas']['CodeIntelligenceTokenUsageSummaryDto'];
|
|
14198
14214
|
export type CodeChatWikiPageListDto = components['schemas']['CodeChatWikiPageListDto'];
|
|
14199
14215
|
export type CodeChatWikiOkfExportDto = components['schemas']['CodeChatWikiOkfExportDto'];
|