@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
|
@@ -1828,7 +1828,7 @@ export interface paths {
|
|
|
1828
1828
|
};
|
|
1829
1829
|
/**
|
|
1830
1830
|
* Google sign-in URL for the Google Forms DevEx survey
|
|
1831
|
-
* @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
|
|
1831
|
+
* @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.
|
|
1832
1832
|
*/
|
|
1833
1833
|
get: operations["getGoogleFormsInstallUrl"];
|
|
1834
1834
|
put?: never;
|
|
@@ -1848,7 +1848,7 @@ export interface paths {
|
|
|
1848
1848
|
};
|
|
1849
1849
|
/**
|
|
1850
1850
|
* Google Forms OAuth callback
|
|
1851
|
-
* @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`, `
|
|
1851
|
+
* @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.
|
|
1852
1852
|
*/
|
|
1853
1853
|
get: operations["getGoogleFormsOauthCallback"];
|
|
1854
1854
|
put?: never;
|
|
@@ -1868,14 +1868,14 @@ export interface paths {
|
|
|
1868
1868
|
};
|
|
1869
1869
|
/**
|
|
1870
1870
|
* Google Forms connection status
|
|
1871
|
-
* @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
|
|
1871
|
+
* @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.
|
|
1872
1872
|
*/
|
|
1873
1873
|
get: operations["getGoogleFormsConnection"];
|
|
1874
1874
|
put?: never;
|
|
1875
1875
|
post?: never;
|
|
1876
1876
|
/**
|
|
1877
1877
|
* Disconnect Google Forms
|
|
1878
|
-
* @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.
|
|
1878
|
+
* @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.
|
|
1879
1879
|
*/
|
|
1880
1880
|
delete: operations["deleteGoogleFormsConnection"];
|
|
1881
1881
|
options?: never;
|
|
@@ -6763,7 +6763,7 @@ export interface components {
|
|
|
6763
6763
|
/** @description New Relic user name when known from the last successful verify. */
|
|
6764
6764
|
userName?: string;
|
|
6765
6765
|
};
|
|
6766
|
-
/** @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 (
|
|
6766
|
+
/** @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. */
|
|
6767
6767
|
DatadogSourceDto: {
|
|
6768
6768
|
/** @enum {string} */
|
|
6769
6769
|
type: "datadog";
|
|
@@ -6772,10 +6772,10 @@ export interface components {
|
|
|
6772
6772
|
/** @description Datadog Application key (write-only on PUT; encrypted at rest). */
|
|
6773
6773
|
appKey: string;
|
|
6774
6774
|
/**
|
|
6775
|
-
* @description Datadog site host suffix. Maps to API host `api.{site}` (US1
|
|
6775
|
+
* @description Datadog site host suffix (`DD_SITE`). Maps to API host `api.{site}` (US1, US3, US5, EU1, AP1, AP2, UK1, US1-FED, US2-FED).
|
|
6776
6776
|
* @enum {string}
|
|
6777
6777
|
*/
|
|
6778
|
-
site: "datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "datadoghq.eu" | "ap1.datadoghq.com";
|
|
6778
|
+
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";
|
|
6779
6779
|
/** @description Optional org display name returned from a successful connection test. */
|
|
6780
6780
|
orgName?: string;
|
|
6781
6781
|
};
|
|
@@ -6791,7 +6791,7 @@ export interface components {
|
|
|
6791
6791
|
* @description Configured Datadog site host suffix.
|
|
6792
6792
|
* @enum {string}
|
|
6793
6793
|
*/
|
|
6794
|
-
site: "datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "datadoghq.eu" | "ap1.datadoghq.com";
|
|
6794
|
+
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";
|
|
6795
6795
|
/** @description Org display name when known from the last successful verify. */
|
|
6796
6796
|
orgName?: string;
|
|
6797
6797
|
};
|
|
@@ -9804,7 +9804,7 @@ export interface components {
|
|
|
9804
9804
|
* @description Configured Datadog site when connected.
|
|
9805
9805
|
* @enum {string}
|
|
9806
9806
|
*/
|
|
9807
|
-
site?: "datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "datadoghq.eu" | "ap1.datadoghq.com";
|
|
9807
|
+
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";
|
|
9808
9808
|
/** @description Org display name when known from the last successful verify. */
|
|
9809
9809
|
orgName?: string;
|
|
9810
9810
|
/**
|
|
@@ -21141,14 +21141,22 @@ export interface operations {
|
|
|
21141
21141
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21142
21142
|
};
|
|
21143
21143
|
};
|
|
21144
|
-
/** @description Feature flag off or workspace not found */
|
|
21144
|
+
/** @description Feature flag off (`code` `team_efficiency_disabled`) or workspace not found */
|
|
21145
21145
|
404: {
|
|
21146
21146
|
headers: {
|
|
21147
21147
|
[name: string]: unknown;
|
|
21148
21148
|
};
|
|
21149
|
-
content
|
|
21149
|
+
content: {
|
|
21150
|
+
/**
|
|
21151
|
+
* @example {
|
|
21152
|
+
* "error": "Not found",
|
|
21153
|
+
* "code": "team_efficiency_disabled"
|
|
21154
|
+
* }
|
|
21155
|
+
*/
|
|
21156
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21157
|
+
};
|
|
21150
21158
|
};
|
|
21151
|
-
/** @description Google client id or
|
|
21159
|
+
/** @description Google client id/secret unset, or OAuth state table missing/unwritable (`code` `googleforms_not_configured`) */
|
|
21152
21160
|
503: {
|
|
21153
21161
|
headers: {
|
|
21154
21162
|
[name: string]: unknown;
|
|
@@ -21219,12 +21227,20 @@ export interface operations {
|
|
|
21219
21227
|
};
|
|
21220
21228
|
401: components["responses"]["Unauthorized"];
|
|
21221
21229
|
403: components["responses"]["Forbidden"];
|
|
21222
|
-
/** @description Feature flag off or workspace not found */
|
|
21230
|
+
/** @description Feature flag off (`code` `team_efficiency_disabled`) or workspace not found */
|
|
21223
21231
|
404: {
|
|
21224
21232
|
headers: {
|
|
21225
21233
|
[name: string]: unknown;
|
|
21226
21234
|
};
|
|
21227
|
-
content
|
|
21235
|
+
content: {
|
|
21236
|
+
/**
|
|
21237
|
+
* @example {
|
|
21238
|
+
* "error": "Not found",
|
|
21239
|
+
* "code": "team_efficiency_disabled"
|
|
21240
|
+
* }
|
|
21241
|
+
*/
|
|
21242
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21243
|
+
};
|
|
21228
21244
|
};
|
|
21229
21245
|
};
|
|
21230
21246
|
};
|
|
@@ -21262,12 +21278,20 @@ export interface operations {
|
|
|
21262
21278
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21263
21279
|
};
|
|
21264
21280
|
};
|
|
21265
|
-
/** @description Feature flag off or workspace not found */
|
|
21281
|
+
/** @description Feature flag off (`code` `team_efficiency_disabled`) or workspace not found */
|
|
21266
21282
|
404: {
|
|
21267
21283
|
headers: {
|
|
21268
21284
|
[name: string]: unknown;
|
|
21269
21285
|
};
|
|
21270
|
-
content
|
|
21286
|
+
content: {
|
|
21287
|
+
/**
|
|
21288
|
+
* @example {
|
|
21289
|
+
* "error": "Not found",
|
|
21290
|
+
* "code": "team_efficiency_disabled"
|
|
21291
|
+
* }
|
|
21292
|
+
*/
|
|
21293
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21294
|
+
};
|
|
21271
21295
|
};
|
|
21272
21296
|
};
|
|
21273
21297
|
};
|