@thinkai/tai-api-contract 2.230.0 → 2.231.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 +40 -16
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +51 -14
- package/package.json +1 -1
- package/src/generated/openapi.ts +40 -16
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.231.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}/...`.
|
|
@@ -5364,8 +5364,10 @@ paths:
|
|
|
5364
5364
|
Workspace admin only. Returns the Google OAuth authorize URL (offline access, read-only
|
|
5365
5365
|
Forms scopes). State is stored server-side, single-use, and names this workspace and the
|
|
5366
5366
|
signed-in admin. Editor or viewer is `403` with `code` `workspace_admin_required`.
|
|
5367
|
-
Missing Google client settings
|
|
5368
|
-
`
|
|
5367
|
+
Missing Google client settings, or an unavailable OAuth state store (Postgres
|
|
5368
|
+
`42P01`/`42501` on insert), are `503` with `code` `googleforms_not_configured`.
|
|
5369
|
+
`404` with `code` `team_efficiency_disabled` when Team Efficiency is off for the
|
|
5370
|
+
workspace.
|
|
5369
5371
|
security:
|
|
5370
5372
|
- bearerAuth: []
|
|
5371
5373
|
parameters:
|
|
@@ -5389,9 +5391,18 @@ paths:
|
|
|
5389
5391
|
error: Forbidden
|
|
5390
5392
|
code: workspace_admin_required
|
|
5391
5393
|
"404":
|
|
5392
|
-
description: Feature flag off or workspace not found
|
|
5394
|
+
description: Feature flag off (`code` `team_efficiency_disabled`) or workspace not found
|
|
5395
|
+
content:
|
|
5396
|
+
application/json:
|
|
5397
|
+
schema:
|
|
5398
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5399
|
+
example:
|
|
5400
|
+
error: Not found
|
|
5401
|
+
code: team_efficiency_disabled
|
|
5393
5402
|
"503":
|
|
5394
|
-
description:
|
|
5403
|
+
description: >
|
|
5404
|
+
Google client id/secret unset, or OAuth state table missing/unwritable
|
|
5405
|
+
(`code` `googleforms_not_configured`)
|
|
5395
5406
|
content:
|
|
5396
5407
|
application/json:
|
|
5397
5408
|
schema:
|
|
@@ -5412,8 +5423,8 @@ paths:
|
|
|
5412
5423
|
workspace admin and both Forms scopes were granted. Success redirects to
|
|
5413
5424
|
`{spa}/workspace/connectors/googleforms?googleforms=connected`. Failures
|
|
5414
5425
|
redirect to the same page with `googleformsError=<code>`, one of
|
|
5415
|
-
`invalid_or_expired_state`, `workspace_admin_required`, `
|
|
5416
|
-
`oauth_error`, `invalid_callback`, `callback_failed`, `missing_scopes`,
|
|
5426
|
+
`invalid_or_expired_state`, `workspace_admin_required`, `team_efficiency_disabled`,
|
|
5427
|
+
`access_denied`, `oauth_error`, `invalid_callback`, `callback_failed`, `missing_scopes`,
|
|
5417
5428
|
`no_refresh_token`. No token is ever in the redirect.
|
|
5418
5429
|
parameters:
|
|
5419
5430
|
- name: code
|
|
@@ -5452,7 +5463,7 @@ paths:
|
|
|
5452
5463
|
Any workspace member. `connected` is true when a Google grant is stored. `needsReauth`
|
|
5453
5464
|
is true after Google rejected the refresh token (revoked access, password change, or an
|
|
5454
5465
|
unpublished consent screen); the admin must reconnect. Tokens are never returned.
|
|
5455
|
-
`404` when Team Efficiency is
|
|
5466
|
+
`404` with `code` `team_efficiency_disabled` when Team Efficiency is off.
|
|
5456
5467
|
security:
|
|
5457
5468
|
- bearerAuth: []
|
|
5458
5469
|
parameters:
|
|
@@ -5469,7 +5480,14 @@ paths:
|
|
|
5469
5480
|
"403":
|
|
5470
5481
|
$ref: "#/components/responses/Forbidden"
|
|
5471
5482
|
"404":
|
|
5472
|
-
description: Feature flag off or workspace not found
|
|
5483
|
+
description: Feature flag off (`code` `team_efficiency_disabled`) or workspace not found
|
|
5484
|
+
content:
|
|
5485
|
+
application/json:
|
|
5486
|
+
schema:
|
|
5487
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5488
|
+
example:
|
|
5489
|
+
error: Not found
|
|
5490
|
+
code: team_efficiency_disabled
|
|
5473
5491
|
delete:
|
|
5474
5492
|
tags: [TeamEfficiency]
|
|
5475
5493
|
summary: Disconnect Google Forms
|
|
@@ -5477,6 +5495,7 @@ paths:
|
|
|
5477
5495
|
description: >
|
|
5478
5496
|
Workspace **admin** only. Revokes the grant at Google (best effort) and deletes the
|
|
5479
5497
|
stored tokens. The saved Google Forms source and past DevEx aggregates are kept.
|
|
5498
|
+
`404` with `code` `team_efficiency_disabled` when Team Efficiency is off.
|
|
5480
5499
|
security:
|
|
5481
5500
|
- bearerAuth: []
|
|
5482
5501
|
parameters:
|
|
@@ -5496,7 +5515,14 @@ paths:
|
|
|
5496
5515
|
error: Forbidden
|
|
5497
5516
|
code: workspace_admin_required
|
|
5498
5517
|
"404":
|
|
5499
|
-
description: Feature flag off or workspace not found
|
|
5518
|
+
description: Feature flag off (`code` `team_efficiency_disabled`) or workspace not found
|
|
5519
|
+
content:
|
|
5520
|
+
application/json:
|
|
5521
|
+
schema:
|
|
5522
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5523
|
+
example:
|
|
5524
|
+
error: Not found
|
|
5525
|
+
code: team_efficiency_disabled
|
|
5500
5526
|
|
|
5501
5527
|
/workspaces/{workspaceId}/insights/sdlc/overview:
|
|
5502
5528
|
get:
|
|
@@ -17484,7 +17510,7 @@ components:
|
|
|
17484
17510
|
description: >
|
|
17485
17511
|
Datadog monitoring source for `PUT /workspaces/{workspaceId}/sources` and
|
|
17486
17512
|
`POST /workspaces/{workspaceId}/sources/test`. Requires an API key, an Application
|
|
17487
|
-
key, and a site host suffix (
|
|
17513
|
+
key, and a site host suffix (see Datadog sites docs). Raw keys are write-only.
|
|
17488
17514
|
required: [type, apiKey, appKey, site]
|
|
17489
17515
|
additionalProperties: false
|
|
17490
17516
|
properties:
|
|
@@ -17509,10 +17535,13 @@ components:
|
|
|
17509
17535
|
- us5.datadoghq.com
|
|
17510
17536
|
- datadoghq.eu
|
|
17511
17537
|
- ap1.datadoghq.com
|
|
17538
|
+
- ap2.datadoghq.com
|
|
17539
|
+
- uk1.datadoghq.com
|
|
17540
|
+
- ddog-gov.com
|
|
17541
|
+
- us2.ddog-gov.com
|
|
17512
17542
|
description: >
|
|
17513
|
-
Datadog site host suffix. Maps to API host `api.{site}`
|
|
17514
|
-
(US1
|
|
17515
|
-
EU `datadoghq.eu`, AP1 `ap1.datadoghq.com`). Gov/custom sites are out of scope.
|
|
17543
|
+
Datadog site host suffix (`DD_SITE`). Maps to API host `api.{site}`
|
|
17544
|
+
(US1, US3, US5, EU1, AP1, AP2, UK1, US1-FED, US2-FED).
|
|
17516
17545
|
orgName:
|
|
17517
17546
|
type: string
|
|
17518
17547
|
description: Optional org display name returned from a successful connection test.
|
|
@@ -17542,6 +17571,10 @@ components:
|
|
|
17542
17571
|
- us5.datadoghq.com
|
|
17543
17572
|
- datadoghq.eu
|
|
17544
17573
|
- ap1.datadoghq.com
|
|
17574
|
+
- ap2.datadoghq.com
|
|
17575
|
+
- uk1.datadoghq.com
|
|
17576
|
+
- ddog-gov.com
|
|
17577
|
+
- us2.ddog-gov.com
|
|
17545
17578
|
description: Configured Datadog site host suffix.
|
|
17546
17579
|
orgName:
|
|
17547
17580
|
type: string
|
|
@@ -23872,6 +23905,10 @@ components:
|
|
|
23872
23905
|
- us5.datadoghq.com
|
|
23873
23906
|
- datadoghq.eu
|
|
23874
23907
|
- ap1.datadoghq.com
|
|
23908
|
+
- ap2.datadoghq.com
|
|
23909
|
+
- uk1.datadoghq.com
|
|
23910
|
+
- ddog-gov.com
|
|
23911
|
+
- us2.ddog-gov.com
|
|
23875
23912
|
description: Configured Datadog site when connected.
|
|
23876
23913
|
orgName:
|
|
23877
23914
|
type: string
|
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -1829,7 +1829,7 @@ export interface paths {
|
|
|
1829
1829
|
};
|
|
1830
1830
|
/**
|
|
1831
1831
|
* Google sign-in URL for the Google Forms DevEx survey
|
|
1832
|
-
* @description Workspace admin only. Returns the Google OAuth authorize URL (offline access, read-only Forms scopes). State is stored server-side, single-use, and names this workspace and the signed-in admin. Editor or viewer is `403` with `code` `workspace_admin_required`. Missing Google client settings are `503` with `code` `googleforms_not_configured`. `404` when Team Efficiency is
|
|
1832
|
+
* @description Workspace admin only. Returns the Google OAuth authorize URL (offline access, read-only Forms scopes). State is stored server-side, single-use, and names this workspace and the signed-in admin. Editor or viewer is `403` with `code` `workspace_admin_required`. Missing Google client settings, or an unavailable OAuth state store (Postgres `42P01`/`42501` on insert), are `503` with `code` `googleforms_not_configured`. `404` with `code` `team_efficiency_disabled` when Team Efficiency is off for the workspace.
|
|
1833
1833
|
*/
|
|
1834
1834
|
get: operations["getGoogleFormsInstallUrl"];
|
|
1835
1835
|
put?: never;
|
|
@@ -1849,7 +1849,7 @@ export interface paths {
|
|
|
1849
1849
|
};
|
|
1850
1850
|
/**
|
|
1851
1851
|
* Google Forms OAuth callback
|
|
1852
|
-
* @description Browser return from Google. The provider redirect carries no API bearer token. `state` was issued by `getGoogleFormsInstallUrl` to a signed-in admin and is single-use (30 minute lifetime). The refresh token is stored encrypted only when that user is still a workspace admin and both Forms scopes were granted. Success redirects to `{spa}/workspace/connectors/googleforms?googleforms=connected`. Failures redirect to the same page with `googleformsError=<code>`, one of `invalid_or_expired_state`, `workspace_admin_required`, `
|
|
1852
|
+
* @description Browser return from Google. The provider redirect carries no API bearer token. `state` was issued by `getGoogleFormsInstallUrl` to a signed-in admin and is single-use (30 minute lifetime). The refresh token is stored encrypted only when that user is still a workspace admin and both Forms scopes were granted. Success redirects to `{spa}/workspace/connectors/googleforms?googleforms=connected`. Failures redirect to the same page with `googleformsError=<code>`, one of `invalid_or_expired_state`, `workspace_admin_required`, `team_efficiency_disabled`, `access_denied`, `oauth_error`, `invalid_callback`, `callback_failed`, `missing_scopes`, `no_refresh_token`. No token is ever in the redirect.
|
|
1853
1853
|
*/
|
|
1854
1854
|
get: operations["getGoogleFormsOauthCallback"];
|
|
1855
1855
|
put?: never;
|
|
@@ -1869,14 +1869,14 @@ export interface paths {
|
|
|
1869
1869
|
};
|
|
1870
1870
|
/**
|
|
1871
1871
|
* Google Forms connection status
|
|
1872
|
-
* @description Any workspace member. `connected` is true when a Google grant is stored. `needsReauth` is true after Google rejected the refresh token (revoked access, password change, or an unpublished consent screen); the admin must reconnect. Tokens are never returned. `404` when Team Efficiency is
|
|
1872
|
+
* @description Any workspace member. `connected` is true when a Google grant is stored. `needsReauth` is true after Google rejected the refresh token (revoked access, password change, or an unpublished consent screen); the admin must reconnect. Tokens are never returned. `404` with `code` `team_efficiency_disabled` when Team Efficiency is off.
|
|
1873
1873
|
*/
|
|
1874
1874
|
get: operations["getGoogleFormsConnection"];
|
|
1875
1875
|
put?: never;
|
|
1876
1876
|
post?: never;
|
|
1877
1877
|
/**
|
|
1878
1878
|
* Disconnect Google Forms
|
|
1879
|
-
* @description Workspace **admin** only. Revokes the grant at Google (best effort) and deletes the stored tokens. The saved Google Forms source and past DevEx aggregates are kept.
|
|
1879
|
+
* @description Workspace **admin** only. Revokes the grant at Google (best effort) and deletes the stored tokens. The saved Google Forms source and past DevEx aggregates are kept. `404` with `code` `team_efficiency_disabled` when Team Efficiency is off.
|
|
1880
1880
|
*/
|
|
1881
1881
|
delete: operations["deleteGoogleFormsConnection"];
|
|
1882
1882
|
options?: never;
|
|
@@ -6764,7 +6764,7 @@ export interface components {
|
|
|
6764
6764
|
/** @description New Relic user name when known from the last successful verify. */
|
|
6765
6765
|
userName?: string;
|
|
6766
6766
|
};
|
|
6767
|
-
/** @description Datadog monitoring source for `PUT /workspaces/{workspaceId}/sources` and `POST /workspaces/{workspaceId}/sources/test`. Requires an API key, an Application key, and a site host suffix (
|
|
6767
|
+
/** @description Datadog monitoring source for `PUT /workspaces/{workspaceId}/sources` and `POST /workspaces/{workspaceId}/sources/test`. Requires an API key, an Application key, and a site host suffix (see Datadog sites docs). Raw keys are write-only. */
|
|
6768
6768
|
DatadogSourceDto: {
|
|
6769
6769
|
/** @enum {string} */
|
|
6770
6770
|
type: "datadog";
|
|
@@ -6773,10 +6773,10 @@ export interface components {
|
|
|
6773
6773
|
/** @description Datadog Application key (write-only on PUT; encrypted at rest). */
|
|
6774
6774
|
appKey: string;
|
|
6775
6775
|
/**
|
|
6776
|
-
* @description Datadog site host suffix. Maps to API host `api.{site}` (US1
|
|
6776
|
+
* @description Datadog site host suffix (`DD_SITE`). Maps to API host `api.{site}` (US1, US3, US5, EU1, AP1, AP2, UK1, US1-FED, US2-FED).
|
|
6777
6777
|
* @enum {string}
|
|
6778
6778
|
*/
|
|
6779
|
-
site: "datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "datadoghq.eu" | "ap1.datadoghq.com";
|
|
6779
|
+
site: "datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "datadoghq.eu" | "ap1.datadoghq.com" | "ap2.datadoghq.com" | "uk1.datadoghq.com" | "ddog-gov.com" | "us2.ddog-gov.com";
|
|
6780
6780
|
/** @description Optional org display name returned from a successful connection test. */
|
|
6781
6781
|
orgName?: string;
|
|
6782
6782
|
};
|
|
@@ -6792,7 +6792,7 @@ export interface components {
|
|
|
6792
6792
|
* @description Configured Datadog site host suffix.
|
|
6793
6793
|
* @enum {string}
|
|
6794
6794
|
*/
|
|
6795
|
-
site: "datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "datadoghq.eu" | "ap1.datadoghq.com";
|
|
6795
|
+
site: "datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "datadoghq.eu" | "ap1.datadoghq.com" | "ap2.datadoghq.com" | "uk1.datadoghq.com" | "ddog-gov.com" | "us2.ddog-gov.com";
|
|
6796
6796
|
/** @description Org display name when known from the last successful verify. */
|
|
6797
6797
|
orgName?: string;
|
|
6798
6798
|
};
|
|
@@ -9805,7 +9805,7 @@ export interface components {
|
|
|
9805
9805
|
* @description Configured Datadog site when connected.
|
|
9806
9806
|
* @enum {string}
|
|
9807
9807
|
*/
|
|
9808
|
-
site?: "datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "datadoghq.eu" | "ap1.datadoghq.com";
|
|
9808
|
+
site?: "datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "datadoghq.eu" | "ap1.datadoghq.com" | "ap2.datadoghq.com" | "uk1.datadoghq.com" | "ddog-gov.com" | "us2.ddog-gov.com";
|
|
9809
9809
|
/** @description Org display name when known from the last successful verify. */
|
|
9810
9810
|
orgName?: string;
|
|
9811
9811
|
/**
|
|
@@ -21142,14 +21142,22 @@ export interface operations {
|
|
|
21142
21142
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21143
21143
|
};
|
|
21144
21144
|
};
|
|
21145
|
-
/** @description Feature flag off or workspace not found */
|
|
21145
|
+
/** @description Feature flag off (`code` `team_efficiency_disabled`) or workspace not found */
|
|
21146
21146
|
404: {
|
|
21147
21147
|
headers: {
|
|
21148
21148
|
[name: string]: unknown;
|
|
21149
21149
|
};
|
|
21150
|
-
content
|
|
21150
|
+
content: {
|
|
21151
|
+
/**
|
|
21152
|
+
* @example {
|
|
21153
|
+
* "error": "Not found",
|
|
21154
|
+
* "code": "team_efficiency_disabled"
|
|
21155
|
+
* }
|
|
21156
|
+
*/
|
|
21157
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21158
|
+
};
|
|
21151
21159
|
};
|
|
21152
|
-
/** @description Google client id or
|
|
21160
|
+
/** @description Google client id/secret unset, or OAuth state table missing/unwritable (`code` `googleforms_not_configured`) */
|
|
21153
21161
|
503: {
|
|
21154
21162
|
headers: {
|
|
21155
21163
|
[name: string]: unknown;
|
|
@@ -21220,12 +21228,20 @@ export interface operations {
|
|
|
21220
21228
|
};
|
|
21221
21229
|
401: components["responses"]["Unauthorized"];
|
|
21222
21230
|
403: components["responses"]["Forbidden"];
|
|
21223
|
-
/** @description Feature flag off or workspace not found */
|
|
21231
|
+
/** @description Feature flag off (`code` `team_efficiency_disabled`) or workspace not found */
|
|
21224
21232
|
404: {
|
|
21225
21233
|
headers: {
|
|
21226
21234
|
[name: string]: unknown;
|
|
21227
21235
|
};
|
|
21228
|
-
content
|
|
21236
|
+
content: {
|
|
21237
|
+
/**
|
|
21238
|
+
* @example {
|
|
21239
|
+
* "error": "Not found",
|
|
21240
|
+
* "code": "team_efficiency_disabled"
|
|
21241
|
+
* }
|
|
21242
|
+
*/
|
|
21243
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21244
|
+
};
|
|
21229
21245
|
};
|
|
21230
21246
|
};
|
|
21231
21247
|
};
|
|
@@ -21263,12 +21279,20 @@ export interface operations {
|
|
|
21263
21279
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21264
21280
|
};
|
|
21265
21281
|
};
|
|
21266
|
-
/** @description Feature flag off or workspace not found */
|
|
21282
|
+
/** @description Feature flag off (`code` `team_efficiency_disabled`) or workspace not found */
|
|
21267
21283
|
404: {
|
|
21268
21284
|
headers: {
|
|
21269
21285
|
[name: string]: unknown;
|
|
21270
21286
|
};
|
|
21271
|
-
content
|
|
21287
|
+
content: {
|
|
21288
|
+
/**
|
|
21289
|
+
* @example {
|
|
21290
|
+
* "error": "Not found",
|
|
21291
|
+
* "code": "team_efficiency_disabled"
|
|
21292
|
+
* }
|
|
21293
|
+
*/
|
|
21294
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21295
|
+
};
|
|
21272
21296
|
};
|
|
21273
21297
|
};
|
|
21274
21298
|
};
|