@thinkai/tai-api-contract 2.210.1 → 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 +59 -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 +66 -63
- package/openapi/x-test-status-map.json +96 -61
- package/package.json +1 -1
- package/src/generated/openapi.ts +59 -59
- package/src/index.ts +10 -10
- package/src/journeySteps.ts +2 -1
package/src/generated/openapi.ts
CHANGED
|
@@ -1024,7 +1024,7 @@ export interface paths {
|
|
|
1024
1024
|
get?: never;
|
|
1025
1025
|
/**
|
|
1026
1026
|
* Replace workspace data sources
|
|
1027
|
-
* @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}/
|
|
1027
|
+
* @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.
|
|
1028
1028
|
* 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.
|
|
1029
1029
|
* Requires editor or admin workspace role.
|
|
1030
1030
|
* **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).
|
|
@@ -1059,7 +1059,7 @@ export interface paths {
|
|
|
1059
1059
|
patch?: never;
|
|
1060
1060
|
trace?: never;
|
|
1061
1061
|
};
|
|
1062
|
-
"/workspaces/{workspaceId}/
|
|
1062
|
+
"/workspaces/{workspaceId}/connectors/sonarqube/repo-mappings": {
|
|
1063
1063
|
parameters: {
|
|
1064
1064
|
query?: never;
|
|
1065
1065
|
header?: never;
|
|
@@ -1080,7 +1080,7 @@ export interface paths {
|
|
|
1080
1080
|
patch?: never;
|
|
1081
1081
|
trace?: never;
|
|
1082
1082
|
};
|
|
1083
|
-
"/workspaces/{workspaceId}/
|
|
1083
|
+
"/workspaces/{workspaceId}/connectors/sonarqube/repo-mappings/validate": {
|
|
1084
1084
|
parameters: {
|
|
1085
1085
|
query?: never;
|
|
1086
1086
|
header?: never;
|
|
@@ -1110,7 +1110,7 @@ export interface paths {
|
|
|
1110
1110
|
/**
|
|
1111
1111
|
* Remove a single data source by type
|
|
1112
1112
|
* @description Remove the source entry matching `type` from the workspace's persisted sources. Other source types are left unchanged.
|
|
1113
|
-
* `type: github` is rejected — GitHub App integration is managed via `/
|
|
1113
|
+
* `type: github` is rejected — GitHub App integration is managed via `/connectors/github`, not workspace sources.
|
|
1114
1114
|
* Requires admin workspace role (same as `PUT /workspaces/{workspaceId}/sources`).
|
|
1115
1115
|
* **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`.
|
|
1116
1116
|
*/
|
|
@@ -1818,7 +1818,7 @@ export interface paths {
|
|
|
1818
1818
|
patch?: never;
|
|
1819
1819
|
trace?: never;
|
|
1820
1820
|
};
|
|
1821
|
-
"/workspaces/{workspaceId}/
|
|
1821
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/members": {
|
|
1822
1822
|
parameters: {
|
|
1823
1823
|
query?: never;
|
|
1824
1824
|
header?: never;
|
|
@@ -1838,7 +1838,7 @@ export interface paths {
|
|
|
1838
1838
|
patch?: never;
|
|
1839
1839
|
trace?: never;
|
|
1840
1840
|
};
|
|
1841
|
-
"/workspaces/{workspaceId}/
|
|
1841
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/teams": {
|
|
1842
1842
|
parameters: {
|
|
1843
1843
|
query?: never;
|
|
1844
1844
|
header?: never;
|
|
@@ -1858,7 +1858,7 @@ export interface paths {
|
|
|
1858
1858
|
patch?: never;
|
|
1859
1859
|
trace?: never;
|
|
1860
1860
|
};
|
|
1861
|
-
"/workspaces/{workspaceId}/
|
|
1861
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/members/{externalId}": {
|
|
1862
1862
|
parameters: {
|
|
1863
1863
|
query?: never;
|
|
1864
1864
|
header?: never;
|
|
@@ -1923,7 +1923,7 @@ export interface paths {
|
|
|
1923
1923
|
patch?: never;
|
|
1924
1924
|
trace?: never;
|
|
1925
1925
|
};
|
|
1926
|
-
"/workspaces/{workspaceId}/
|
|
1926
|
+
"/workspaces/{workspaceId}/connectors/connectors-snapshot": {
|
|
1927
1927
|
parameters: {
|
|
1928
1928
|
query?: never;
|
|
1929
1929
|
header?: never;
|
|
@@ -1943,7 +1943,7 @@ export interface paths {
|
|
|
1943
1943
|
patch?: never;
|
|
1944
1944
|
trace?: never;
|
|
1945
1945
|
};
|
|
1946
|
-
"/workspaces/{workspaceId}/
|
|
1946
|
+
"/workspaces/{workspaceId}/connectors/github/recent-commit-authors": {
|
|
1947
1947
|
parameters: {
|
|
1948
1948
|
query?: never;
|
|
1949
1949
|
header?: never;
|
|
@@ -1963,7 +1963,7 @@ export interface paths {
|
|
|
1963
1963
|
patch?: never;
|
|
1964
1964
|
trace?: never;
|
|
1965
1965
|
};
|
|
1966
|
-
"/workspaces/{workspaceId}/
|
|
1966
|
+
"/workspaces/{workspaceId}/connectors/github": {
|
|
1967
1967
|
parameters: {
|
|
1968
1968
|
query?: never;
|
|
1969
1969
|
header?: never;
|
|
@@ -1987,7 +1987,7 @@ export interface paths {
|
|
|
1987
1987
|
patch?: never;
|
|
1988
1988
|
trace?: never;
|
|
1989
1989
|
};
|
|
1990
|
-
"/workspaces/{workspaceId}/
|
|
1990
|
+
"/workspaces/{workspaceId}/connectors/github/install-url": {
|
|
1991
1991
|
parameters: {
|
|
1992
1992
|
query?: never;
|
|
1993
1993
|
header?: never;
|
|
@@ -1998,7 +1998,7 @@ export interface paths {
|
|
|
1998
1998
|
put?: never;
|
|
1999
1999
|
/**
|
|
2000
2000
|
* Create GitHub App installation URL
|
|
2001
|
-
* @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/
|
|
2001
|
+
* @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.
|
|
2002
2002
|
*/
|
|
2003
2003
|
post: operations["postGithubInstallUrl"];
|
|
2004
2004
|
delete?: never;
|
|
@@ -2007,7 +2007,7 @@ export interface paths {
|
|
|
2007
2007
|
patch?: never;
|
|
2008
2008
|
trace?: never;
|
|
2009
2009
|
};
|
|
2010
|
-
"/workspaces/{workspaceId}/
|
|
2010
|
+
"/workspaces/{workspaceId}/connectors/github/installations/{installationId}/automated-fixes/enable": {
|
|
2011
2011
|
parameters: {
|
|
2012
2012
|
query?: never;
|
|
2013
2013
|
header?: never;
|
|
@@ -2027,7 +2027,7 @@ export interface paths {
|
|
|
2027
2027
|
patch?: never;
|
|
2028
2028
|
trace?: never;
|
|
2029
2029
|
};
|
|
2030
|
-
"/workspaces/{workspaceId}/
|
|
2030
|
+
"/workspaces/{workspaceId}/connectors/github/installations/{installationId}/automated-fixes": {
|
|
2031
2031
|
parameters: {
|
|
2032
2032
|
query?: never;
|
|
2033
2033
|
header?: never;
|
|
@@ -2047,7 +2047,7 @@ export interface paths {
|
|
|
2047
2047
|
patch?: never;
|
|
2048
2048
|
trace?: never;
|
|
2049
2049
|
};
|
|
2050
|
-
"/workspaces/{workspaceId}/
|
|
2050
|
+
"/workspaces/{workspaceId}/connectors/github/installations/{installationId}/automated-fixes/pr-creation-mode": {
|
|
2051
2051
|
parameters: {
|
|
2052
2052
|
query?: never;
|
|
2053
2053
|
header?: never;
|
|
@@ -2067,7 +2067,7 @@ export interface paths {
|
|
|
2067
2067
|
patch?: never;
|
|
2068
2068
|
trace?: never;
|
|
2069
2069
|
};
|
|
2070
|
-
"/workspaces/{workspaceId}/
|
|
2070
|
+
"/workspaces/{workspaceId}/connectors/github/user-authorize-url": {
|
|
2071
2071
|
parameters: {
|
|
2072
2072
|
query?: never;
|
|
2073
2073
|
header?: never;
|
|
@@ -2087,7 +2087,7 @@ export interface paths {
|
|
|
2087
2087
|
patch?: never;
|
|
2088
2088
|
trace?: never;
|
|
2089
2089
|
};
|
|
2090
|
-
"/workspaces/{workspaceId}/
|
|
2090
|
+
"/workspaces/{workspaceId}/connectors/github/connectable-accounts": {
|
|
2091
2091
|
parameters: {
|
|
2092
2092
|
query?: never;
|
|
2093
2093
|
header?: never;
|
|
@@ -2107,7 +2107,7 @@ export interface paths {
|
|
|
2107
2107
|
patch?: never;
|
|
2108
2108
|
trace?: never;
|
|
2109
2109
|
};
|
|
2110
|
-
"/workspaces/{workspaceId}/
|
|
2110
|
+
"/workspaces/{workspaceId}/connectors/github/connect-by-org": {
|
|
2111
2111
|
parameters: {
|
|
2112
2112
|
query?: never;
|
|
2113
2113
|
header?: never;
|
|
@@ -2127,7 +2127,7 @@ export interface paths {
|
|
|
2127
2127
|
patch?: never;
|
|
2128
2128
|
trace?: never;
|
|
2129
2129
|
};
|
|
2130
|
-
"/workspaces/{workspaceId}/
|
|
2130
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/refresh": {
|
|
2131
2131
|
parameters: {
|
|
2132
2132
|
query?: never;
|
|
2133
2133
|
header?: never;
|
|
@@ -2147,7 +2147,7 @@ export interface paths {
|
|
|
2147
2147
|
patch?: never;
|
|
2148
2148
|
trace?: never;
|
|
2149
2149
|
};
|
|
2150
|
-
"/workspaces/{workspaceId}/
|
|
2150
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/seats": {
|
|
2151
2151
|
parameters: {
|
|
2152
2152
|
query?: never;
|
|
2153
2153
|
header?: never;
|
|
@@ -2164,7 +2164,7 @@ export interface paths {
|
|
|
2164
2164
|
patch?: never;
|
|
2165
2165
|
trace?: never;
|
|
2166
2166
|
};
|
|
2167
|
-
"/workspaces/{workspaceId}/
|
|
2167
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/daily-usage": {
|
|
2168
2168
|
parameters: {
|
|
2169
2169
|
query?: never;
|
|
2170
2170
|
header?: never;
|
|
@@ -2181,7 +2181,7 @@ export interface paths {
|
|
|
2181
2181
|
patch?: never;
|
|
2182
2182
|
trace?: never;
|
|
2183
2183
|
};
|
|
2184
|
-
"/workspaces/{workspaceId}/
|
|
2184
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/spend": {
|
|
2185
2185
|
parameters: {
|
|
2186
2186
|
query?: never;
|
|
2187
2187
|
header?: never;
|
|
@@ -2198,7 +2198,7 @@ export interface paths {
|
|
|
2198
2198
|
patch?: never;
|
|
2199
2199
|
trace?: never;
|
|
2200
2200
|
};
|
|
2201
|
-
"/workspaces/{workspaceId}/
|
|
2201
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/spend-daily": {
|
|
2202
2202
|
parameters: {
|
|
2203
2203
|
query?: never;
|
|
2204
2204
|
header?: never;
|
|
@@ -2215,7 +2215,7 @@ export interface paths {
|
|
|
2215
2215
|
patch?: never;
|
|
2216
2216
|
trace?: never;
|
|
2217
2217
|
};
|
|
2218
|
-
"/workspaces/{workspaceId}/
|
|
2218
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/summary": {
|
|
2219
2219
|
parameters: {
|
|
2220
2220
|
query?: never;
|
|
2221
2221
|
header?: never;
|
|
@@ -2235,7 +2235,7 @@ export interface paths {
|
|
|
2235
2235
|
patch?: never;
|
|
2236
2236
|
trace?: never;
|
|
2237
2237
|
};
|
|
2238
|
-
"/workspaces/{workspaceId}/
|
|
2238
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/daily-series": {
|
|
2239
2239
|
parameters: {
|
|
2240
2240
|
query?: never;
|
|
2241
2241
|
header?: never;
|
|
@@ -2255,7 +2255,7 @@ export interface paths {
|
|
|
2255
2255
|
patch?: never;
|
|
2256
2256
|
trace?: never;
|
|
2257
2257
|
};
|
|
2258
|
-
"/workspaces/{workspaceId}/
|
|
2258
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/model-breakdown": {
|
|
2259
2259
|
parameters: {
|
|
2260
2260
|
query?: never;
|
|
2261
2261
|
header?: never;
|
|
@@ -2275,7 +2275,7 @@ export interface paths {
|
|
|
2275
2275
|
patch?: never;
|
|
2276
2276
|
trace?: never;
|
|
2277
2277
|
};
|
|
2278
|
-
"/workspaces/{workspaceId}/
|
|
2278
|
+
"/workspaces/{workspaceId}/connectors/ai-tool/{provider}/status": {
|
|
2279
2279
|
parameters: {
|
|
2280
2280
|
query?: never;
|
|
2281
2281
|
header?: never;
|
|
@@ -2292,7 +2292,7 @@ export interface paths {
|
|
|
2292
2292
|
patch?: never;
|
|
2293
2293
|
trace?: never;
|
|
2294
2294
|
};
|
|
2295
|
-
"/
|
|
2295
|
+
"/connectors/github/callback": {
|
|
2296
2296
|
parameters: {
|
|
2297
2297
|
query?: never;
|
|
2298
2298
|
header?: never;
|
|
@@ -2312,7 +2312,7 @@ export interface paths {
|
|
|
2312
2312
|
patch?: never;
|
|
2313
2313
|
trace?: never;
|
|
2314
2314
|
};
|
|
2315
|
-
"/
|
|
2315
|
+
"/connectors/github/user-oauth/callback": {
|
|
2316
2316
|
parameters: {
|
|
2317
2317
|
query?: never;
|
|
2318
2318
|
header?: never;
|
|
@@ -2332,7 +2332,7 @@ export interface paths {
|
|
|
2332
2332
|
patch?: never;
|
|
2333
2333
|
trace?: never;
|
|
2334
2334
|
};
|
|
2335
|
-
"/workspaces/{workspaceId}/
|
|
2335
|
+
"/workspaces/{workspaceId}/connectors/github-actions": {
|
|
2336
2336
|
parameters: {
|
|
2337
2337
|
query?: never;
|
|
2338
2338
|
header?: never;
|
|
@@ -2356,7 +2356,7 @@ export interface paths {
|
|
|
2356
2356
|
patch?: never;
|
|
2357
2357
|
trace?: never;
|
|
2358
2358
|
};
|
|
2359
|
-
"/workspaces/{workspaceId}/
|
|
2359
|
+
"/workspaces/{workspaceId}/connectors/github-actions/enable": {
|
|
2360
2360
|
parameters: {
|
|
2361
2361
|
query?: never;
|
|
2362
2362
|
header?: never;
|
|
@@ -2376,7 +2376,7 @@ export interface paths {
|
|
|
2376
2376
|
patch?: never;
|
|
2377
2377
|
trace?: never;
|
|
2378
2378
|
};
|
|
2379
|
-
"/workspaces/{workspaceId}/
|
|
2379
|
+
"/workspaces/{workspaceId}/connectors/newrelic": {
|
|
2380
2380
|
parameters: {
|
|
2381
2381
|
query?: never;
|
|
2382
2382
|
header?: never;
|
|
@@ -2396,7 +2396,7 @@ export interface paths {
|
|
|
2396
2396
|
patch?: never;
|
|
2397
2397
|
trace?: never;
|
|
2398
2398
|
};
|
|
2399
|
-
"/workspaces/{workspaceId}/
|
|
2399
|
+
"/workspaces/{workspaceId}/connectors/newrelic/sync": {
|
|
2400
2400
|
parameters: {
|
|
2401
2401
|
query?: never;
|
|
2402
2402
|
header?: never;
|
|
@@ -2416,7 +2416,7 @@ export interface paths {
|
|
|
2416
2416
|
patch?: never;
|
|
2417
2417
|
trace?: never;
|
|
2418
2418
|
};
|
|
2419
|
-
"/workspaces/{workspaceId}/
|
|
2419
|
+
"/workspaces/{workspaceId}/connectors/prometheus": {
|
|
2420
2420
|
parameters: {
|
|
2421
2421
|
query?: never;
|
|
2422
2422
|
header?: never;
|
|
@@ -2436,7 +2436,7 @@ export interface paths {
|
|
|
2436
2436
|
patch?: never;
|
|
2437
2437
|
trace?: never;
|
|
2438
2438
|
};
|
|
2439
|
-
"/workspaces/{workspaceId}/
|
|
2439
|
+
"/workspaces/{workspaceId}/connectors/prometheus/sync": {
|
|
2440
2440
|
parameters: {
|
|
2441
2441
|
query?: never;
|
|
2442
2442
|
header?: never;
|
|
@@ -2456,7 +2456,7 @@ export interface paths {
|
|
|
2456
2456
|
patch?: never;
|
|
2457
2457
|
trace?: never;
|
|
2458
2458
|
};
|
|
2459
|
-
"/workspaces/{workspaceId}/
|
|
2459
|
+
"/workspaces/{workspaceId}/connectors/grafana": {
|
|
2460
2460
|
parameters: {
|
|
2461
2461
|
query?: never;
|
|
2462
2462
|
header?: never;
|
|
@@ -2476,7 +2476,7 @@ export interface paths {
|
|
|
2476
2476
|
patch?: never;
|
|
2477
2477
|
trace?: never;
|
|
2478
2478
|
};
|
|
2479
|
-
"/workspaces/{workspaceId}/
|
|
2479
|
+
"/workspaces/{workspaceId}/connectors/grafana/sync": {
|
|
2480
2480
|
parameters: {
|
|
2481
2481
|
query?: never;
|
|
2482
2482
|
header?: never;
|
|
@@ -2496,7 +2496,7 @@ export interface paths {
|
|
|
2496
2496
|
patch?: never;
|
|
2497
2497
|
trace?: never;
|
|
2498
2498
|
};
|
|
2499
|
-
"/workspaces/{workspaceId}/
|
|
2499
|
+
"/workspaces/{workspaceId}/connectors/datadog": {
|
|
2500
2500
|
parameters: {
|
|
2501
2501
|
query?: never;
|
|
2502
2502
|
header?: never;
|
|
@@ -2516,7 +2516,7 @@ export interface paths {
|
|
|
2516
2516
|
patch?: never;
|
|
2517
2517
|
trace?: never;
|
|
2518
2518
|
};
|
|
2519
|
-
"/workspaces/{workspaceId}/
|
|
2519
|
+
"/workspaces/{workspaceId}/connectors/datadog/sync": {
|
|
2520
2520
|
parameters: {
|
|
2521
2521
|
query?: never;
|
|
2522
2522
|
header?: never;
|
|
@@ -2536,7 +2536,7 @@ export interface paths {
|
|
|
2536
2536
|
patch?: never;
|
|
2537
2537
|
trace?: never;
|
|
2538
2538
|
};
|
|
2539
|
-
"/workspaces/{workspaceId}/
|
|
2539
|
+
"/workspaces/{workspaceId}/connectors/sentry": {
|
|
2540
2540
|
parameters: {
|
|
2541
2541
|
query?: never;
|
|
2542
2542
|
header?: never;
|
|
@@ -2556,7 +2556,7 @@ export interface paths {
|
|
|
2556
2556
|
patch?: never;
|
|
2557
2557
|
trace?: never;
|
|
2558
2558
|
};
|
|
2559
|
-
"/workspaces/{workspaceId}/
|
|
2559
|
+
"/workspaces/{workspaceId}/connectors/sentry/sync": {
|
|
2560
2560
|
parameters: {
|
|
2561
2561
|
query?: never;
|
|
2562
2562
|
header?: never;
|
|
@@ -2576,7 +2576,7 @@ export interface paths {
|
|
|
2576
2576
|
patch?: never;
|
|
2577
2577
|
trace?: never;
|
|
2578
2578
|
};
|
|
2579
|
-
"/
|
|
2579
|
+
"/connectors/github/webhook": {
|
|
2580
2580
|
parameters: {
|
|
2581
2581
|
query?: never;
|
|
2582
2582
|
header?: never;
|
|
@@ -4548,7 +4548,7 @@ export interface paths {
|
|
|
4548
4548
|
patch?: never;
|
|
4549
4549
|
trace?: never;
|
|
4550
4550
|
};
|
|
4551
|
-
"/workspaces/{workspaceId}/
|
|
4551
|
+
"/workspaces/{workspaceId}/connectors/slack/install-url": {
|
|
4552
4552
|
parameters: {
|
|
4553
4553
|
query?: never;
|
|
4554
4554
|
header?: never;
|
|
@@ -4568,7 +4568,7 @@ export interface paths {
|
|
|
4568
4568
|
patch?: never;
|
|
4569
4569
|
trace?: never;
|
|
4570
4570
|
};
|
|
4571
|
-
"/
|
|
4571
|
+
"/connectors/slack/callback": {
|
|
4572
4572
|
parameters: {
|
|
4573
4573
|
query?: never;
|
|
4574
4574
|
header?: never;
|
|
@@ -4588,7 +4588,7 @@ export interface paths {
|
|
|
4588
4588
|
patch?: never;
|
|
4589
4589
|
trace?: never;
|
|
4590
4590
|
};
|
|
4591
|
-
"/workspaces/{workspaceId}/
|
|
4591
|
+
"/workspaces/{workspaceId}/connectors/slack": {
|
|
4592
4592
|
parameters: {
|
|
4593
4593
|
query?: never;
|
|
4594
4594
|
header?: never;
|
|
@@ -4612,7 +4612,7 @@ export interface paths {
|
|
|
4612
4612
|
patch?: never;
|
|
4613
4613
|
trace?: never;
|
|
4614
4614
|
};
|
|
4615
|
-
"/workspaces/{workspaceId}/
|
|
4615
|
+
"/workspaces/{workspaceId}/connectors/slack/channel": {
|
|
4616
4616
|
parameters: {
|
|
4617
4617
|
query?: never;
|
|
4618
4618
|
header?: never;
|
|
@@ -5094,7 +5094,7 @@ export interface paths {
|
|
|
5094
5094
|
patch?: never;
|
|
5095
5095
|
trace?: never;
|
|
5096
5096
|
};
|
|
5097
|
-
"/workspaces/{workspaceId}/
|
|
5097
|
+
"/workspaces/{workspaceId}/connectors/teams/install-url": {
|
|
5098
5098
|
parameters: {
|
|
5099
5099
|
query?: never;
|
|
5100
5100
|
header?: never;
|
|
@@ -5114,7 +5114,7 @@ export interface paths {
|
|
|
5114
5114
|
patch?: never;
|
|
5115
5115
|
trace?: never;
|
|
5116
5116
|
};
|
|
5117
|
-
"/
|
|
5117
|
+
"/connectors/teams/callback": {
|
|
5118
5118
|
parameters: {
|
|
5119
5119
|
query?: never;
|
|
5120
5120
|
header?: never;
|
|
@@ -5134,7 +5134,7 @@ export interface paths {
|
|
|
5134
5134
|
patch?: never;
|
|
5135
5135
|
trace?: never;
|
|
5136
5136
|
};
|
|
5137
|
-
"/workspaces/{workspaceId}/
|
|
5137
|
+
"/workspaces/{workspaceId}/connectors/teams": {
|
|
5138
5138
|
parameters: {
|
|
5139
5139
|
query?: never;
|
|
5140
5140
|
header?: never;
|
|
@@ -5158,7 +5158,7 @@ export interface paths {
|
|
|
5158
5158
|
patch?: never;
|
|
5159
5159
|
trace?: never;
|
|
5160
5160
|
};
|
|
5161
|
-
"/workspaces/{workspaceId}/
|
|
5161
|
+
"/workspaces/{workspaceId}/connectors/teams/channel": {
|
|
5162
5162
|
parameters: {
|
|
5163
5163
|
query?: never;
|
|
5164
5164
|
header?: never;
|
|
@@ -5178,7 +5178,7 @@ export interface paths {
|
|
|
5178
5178
|
patch?: never;
|
|
5179
5179
|
trace?: never;
|
|
5180
5180
|
};
|
|
5181
|
-
"/workspaces/{workspaceId}/
|
|
5181
|
+
"/workspaces/{workspaceId}/connectors/zelt/authorize-url": {
|
|
5182
5182
|
parameters: {
|
|
5183
5183
|
query?: never;
|
|
5184
5184
|
header?: never;
|
|
@@ -5198,7 +5198,7 @@ export interface paths {
|
|
|
5198
5198
|
patch?: never;
|
|
5199
5199
|
trace?: never;
|
|
5200
5200
|
};
|
|
5201
|
-
"/workspaces/{workspaceId}/
|
|
5201
|
+
"/workspaces/{workspaceId}/connectors/zelt/reauthorize-url": {
|
|
5202
5202
|
parameters: {
|
|
5203
5203
|
query?: never;
|
|
5204
5204
|
header?: never;
|
|
@@ -5218,7 +5218,7 @@ export interface paths {
|
|
|
5218
5218
|
patch?: never;
|
|
5219
5219
|
trace?: never;
|
|
5220
5220
|
};
|
|
5221
|
-
"/workspaces/{workspaceId}/
|
|
5221
|
+
"/workspaces/{workspaceId}/connectors/zelt/reconnect": {
|
|
5222
5222
|
parameters: {
|
|
5223
5223
|
query?: never;
|
|
5224
5224
|
header?: never;
|
|
@@ -5238,7 +5238,7 @@ export interface paths {
|
|
|
5238
5238
|
patch?: never;
|
|
5239
5239
|
trace?: never;
|
|
5240
5240
|
};
|
|
5241
|
-
"/
|
|
5241
|
+
"/connectors/zelt/oauth/callback": {
|
|
5242
5242
|
parameters: {
|
|
5243
5243
|
query?: never;
|
|
5244
5244
|
header?: never;
|
|
@@ -5258,7 +5258,7 @@ export interface paths {
|
|
|
5258
5258
|
patch?: never;
|
|
5259
5259
|
trace?: never;
|
|
5260
5260
|
};
|
|
5261
|
-
"/workspaces/{workspaceId}/
|
|
5261
|
+
"/workspaces/{workspaceId}/connectors/zenhr/reconnect": {
|
|
5262
5262
|
parameters: {
|
|
5263
5263
|
query?: never;
|
|
5264
5264
|
header?: never;
|
|
@@ -5269,7 +5269,7 @@ export interface paths {
|
|
|
5269
5269
|
put?: never;
|
|
5270
5270
|
/**
|
|
5271
5271
|
* Attempt silent ZenHR reconnect
|
|
5272
|
-
* @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 .../
|
|
5272
|
+
* @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).
|
|
5273
5273
|
*/
|
|
5274
5274
|
post: operations["reconnectWorkspaceZenHr"];
|
|
5275
5275
|
delete?: never;
|
|
@@ -5278,7 +5278,7 @@ export interface paths {
|
|
|
5278
5278
|
patch?: never;
|
|
5279
5279
|
trace?: never;
|
|
5280
5280
|
};
|
|
5281
|
-
"/workspaces/{workspaceId}/
|
|
5281
|
+
"/workspaces/{workspaceId}/connectors/zenhr/branches": {
|
|
5282
5282
|
parameters: {
|
|
5283
5283
|
query?: never;
|
|
5284
5284
|
header?: never;
|
|
@@ -5298,7 +5298,7 @@ export interface paths {
|
|
|
5298
5298
|
patch?: never;
|
|
5299
5299
|
trace?: never;
|
|
5300
5300
|
};
|
|
5301
|
-
"/workspaces/{workspaceId}/
|
|
5301
|
+
"/workspaces/{workspaceId}/connectors/zenhr/branch": {
|
|
5302
5302
|
parameters: {
|
|
5303
5303
|
query?: never;
|
|
5304
5304
|
header?: never;
|
|
@@ -7495,7 +7495,7 @@ export interface components {
|
|
|
7495
7495
|
/** @description Distinct mapped person_id rows contributing to this card's sample (workspace rollup or the single person for a person-scoped card). */
|
|
7496
7496
|
personCount: number;
|
|
7497
7497
|
};
|
|
7498
|
-
/** @description Optional member drill-down for person-scoped `model_right_sizing` cards. Links to `GET …/
|
|
7498
|
+
/** @description Optional member drill-down for person-scoped `model_right_sizing` cards. Links to `GET …/connectors/ai-tool/{provider}/members/{externalId}`. */
|
|
7499
7499
|
AiUsageSpendKeyInsightDrilldownDto: {
|
|
7500
7500
|
/**
|
|
7501
7501
|
* @description AI tool provider for the member detail route.
|
package/src/index.ts
CHANGED
|
@@ -1747,7 +1747,7 @@ export interface HrisProviderSyncResultDto {
|
|
|
1747
1747
|
error?: string;
|
|
1748
1748
|
}
|
|
1749
1749
|
|
|
1750
|
-
/** Response body for POST /workspaces/:id/
|
|
1750
|
+
/** Response body for POST /workspaces/:id/connectors/zenhr/reconnect. */
|
|
1751
1751
|
export interface ZenHrReconnectResultDto {
|
|
1752
1752
|
ok: boolean;
|
|
1753
1753
|
/** When true with ok=false, the SPA should start ZenHR OAuth next. */
|
|
@@ -1774,7 +1774,7 @@ export interface HrisTriggerSyncResultDto {
|
|
|
1774
1774
|
providers?: HrisProviderSyncResultDto[];
|
|
1775
1775
|
}
|
|
1776
1776
|
|
|
1777
|
-
/** Weekly bucket in GET .../
|
|
1777
|
+
/** Weekly bucket in GET .../connectors/ai-tool/:provider/summary */
|
|
1778
1778
|
export interface AiToolProviderSummaryWeekBucketDto {
|
|
1779
1779
|
weekLabel: string;
|
|
1780
1780
|
spendCents: number;
|
|
@@ -1790,7 +1790,7 @@ export interface AiToolProviderSummaryTopMoverDto {
|
|
|
1790
1790
|
currentSpendCents: number;
|
|
1791
1791
|
}
|
|
1792
1792
|
|
|
1793
|
-
/** Response for GET .../
|
|
1793
|
+
/** Response for GET .../connectors/ai-tool/:provider/summary */
|
|
1794
1794
|
export interface AiToolProviderSummaryDto {
|
|
1795
1795
|
provider: string;
|
|
1796
1796
|
from: string;
|
|
@@ -1811,7 +1811,7 @@ export interface AiToolProviderSummaryDto {
|
|
|
1811
1811
|
generatedAt: string;
|
|
1812
1812
|
}
|
|
1813
1813
|
|
|
1814
|
-
/** One day in GET .../
|
|
1814
|
+
/** One day in GET .../connectors/ai-tool/:provider/daily-series */
|
|
1815
1815
|
export interface AiToolDailySeriesPointDto {
|
|
1816
1816
|
day: string;
|
|
1817
1817
|
label: string;
|
|
@@ -1821,7 +1821,7 @@ export interface AiToolDailySeriesPointDto {
|
|
|
1821
1821
|
models: Record<string, number>;
|
|
1822
1822
|
}
|
|
1823
1823
|
|
|
1824
|
-
/** Response for GET .../
|
|
1824
|
+
/** Response for GET .../connectors/ai-tool/:provider/daily-series */
|
|
1825
1825
|
export interface AiToolDailySeriesDto {
|
|
1826
1826
|
provider: string;
|
|
1827
1827
|
from: string;
|
|
@@ -1837,7 +1837,7 @@ export interface AiToolDailySeriesDto {
|
|
|
1837
1837
|
generatedAt: string;
|
|
1838
1838
|
}
|
|
1839
1839
|
|
|
1840
|
-
/** One model row in GET .../
|
|
1840
|
+
/** One model row in GET .../connectors/ai-tool/:provider/model-breakdown */
|
|
1841
1841
|
export interface AiToolModelBreakdownItemDto {
|
|
1842
1842
|
modelName: string;
|
|
1843
1843
|
spendCents: number;
|
|
@@ -1845,7 +1845,7 @@ export interface AiToolModelBreakdownItemDto {
|
|
|
1845
1845
|
activeUsers: number;
|
|
1846
1846
|
}
|
|
1847
1847
|
|
|
1848
|
-
/** Response for GET .../
|
|
1848
|
+
/** Response for GET .../connectors/ai-tool/:provider/model-breakdown */
|
|
1849
1849
|
export interface AiToolModelBreakdownDto {
|
|
1850
1850
|
provider: string;
|
|
1851
1851
|
from: string;
|
|
@@ -1869,7 +1869,7 @@ export interface AiToolMemberSummaryDto {
|
|
|
1869
1869
|
productBreakdownCents?: Record<string, number>;
|
|
1870
1870
|
}
|
|
1871
1871
|
|
|
1872
|
-
/** Paginated response for GET .../
|
|
1872
|
+
/** Paginated response for GET .../connectors/ai-tool/:provider/members */
|
|
1873
1873
|
export interface AiToolMembersListDto {
|
|
1874
1874
|
members: AiToolMemberSummaryDto[];
|
|
1875
1875
|
total: number;
|
|
@@ -1887,7 +1887,7 @@ export interface AiToolTeamSummaryDto {
|
|
|
1887
1887
|
tokenCount: number;
|
|
1888
1888
|
}
|
|
1889
1889
|
|
|
1890
|
-
/** Response for GET .../
|
|
1890
|
+
/** Response for GET .../connectors/ai-tool/:provider/teams */
|
|
1891
1891
|
export interface AiToolTeamsListDto {
|
|
1892
1892
|
teams: AiToolTeamSummaryDto[];
|
|
1893
1893
|
total: number;
|
|
@@ -1916,7 +1916,7 @@ export interface AiToolMemberHeatmapDayDto {
|
|
|
1916
1916
|
tokenCount: number;
|
|
1917
1917
|
}
|
|
1918
1918
|
|
|
1919
|
-
/** Response for GET .../
|
|
1919
|
+
/** Response for GET .../connectors/ai-tool/:provider/members/:externalId */
|
|
1920
1920
|
export interface AiToolMemberDetailDto {
|
|
1921
1921
|
externalId: string;
|
|
1922
1922
|
email: string;
|
package/src/journeySteps.ts
CHANGED
|
@@ -41,8 +41,9 @@ export const JOURNEY_STEP_REGISTRY: readonly StepDef[] = [
|
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
id: "onboarding.integrations",
|
|
44
|
-
route: "/onboarding/
|
|
44
|
+
route: "/onboarding/connectors",
|
|
45
45
|
aliases: [
|
|
46
|
+
"/onboarding/integrations",
|
|
46
47
|
"/onboarding/platform",
|
|
47
48
|
"/phase-a/p3",
|
|
48
49
|
"/phase-a/p4",
|